@nuxt/schema-nightly 4.6.0-29833429.e2a0e5da → 4.6.0-29836601.d5e5f1bd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -912,6 +912,8 @@ interface NuxtRequestContext {
|
|
|
912
912
|
/** The context of a {@link RequestEvent}, which carries Nuxt's own per-request state. */
|
|
913
913
|
interface RequestEventContext extends Record<string, unknown> {
|
|
914
914
|
nuxt?: NuxtRequestContext;
|
|
915
|
+
/** The dynamic segments matched for the request, as the server builder resolved them. */
|
|
916
|
+
params?: Record<string, string | undefined>;
|
|
915
917
|
}
|
|
916
918
|
/**
|
|
917
919
|
* The web-standard part of a request event, which every server runtime provides. Portable
|
|
@@ -2084,6 +2086,8 @@ interface RuntimeConfigApp extends RuntimeConfigNamespace {
|
|
|
2084
2086
|
buildId: string;
|
|
2085
2087
|
}
|
|
2086
2088
|
interface RuntimeConfig extends RuntimeConfigNamespace {
|
|
2089
|
+
/** The application's root secret, overridable at runtime with `NUXT_APP_SECRET`. */
|
|
2090
|
+
appSecret: string;
|
|
2087
2091
|
public: PublicRuntimeConfig;
|
|
2088
2092
|
app: RuntimeConfigApp;
|
|
2089
2093
|
}
|
|
@@ -3230,6 +3234,7 @@ interface ConfigSchema {
|
|
|
3230
3234
|
* The value of this object is accessible from server only using `useRuntimeConfig`.
|
|
3231
3235
|
* It mainly should hold _private_ configuration which is not exposed on the frontend. This could include a reference to your API secret tokens.
|
|
3232
3236
|
* Anything under `public` and `app` will be exposed to the frontend as well.
|
|
3237
|
+
* Keys prefixed with `app` (such as `app` and `appSecret`) are reserved for Nuxt.
|
|
3233
3238
|
* Values are automatically replaced by matching env variables at runtime, e.g. setting an environment variable `NUXT_API_KEY=my-api-key NUXT_PUBLIC_BASE_URL=/foo/` would overwrite the two values in the example below.
|
|
3234
3239
|
*
|
|
3235
3240
|
* @example
|
|
@@ -3298,6 +3303,15 @@ interface ConfigSchema {
|
|
|
3298
3303
|
loadingTemplate: (data: {
|
|
3299
3304
|
loading?: string;
|
|
3300
3305
|
}) => string;
|
|
3306
|
+
/**
|
|
3307
|
+
* Base path of the live error channel served in development.
|
|
3308
|
+
*
|
|
3309
|
+
* Error pages and overlays subscribe to it to update in place, dismiss
|
|
3310
|
+
* themselves when the problem is fixed, and open a frame in the editor.
|
|
3311
|
+
*
|
|
3312
|
+
* @experimental
|
|
3313
|
+
*/
|
|
3314
|
+
errorChannel: string;
|
|
3301
3315
|
/**
|
|
3302
3316
|
* Set CORS options for the dev server
|
|
3303
3317
|
*/
|
|
@@ -3336,6 +3350,8 @@ interface ConfigSchema {
|
|
|
3336
3350
|
* Inline styles when rendering HTML (currently vite only).
|
|
3337
3351
|
*
|
|
3338
3352
|
* You can also pass a function that receives the path of a Vue component and returns a boolean indicating whether to inline the styles for that component.
|
|
3353
|
+
*
|
|
3354
|
+
* Pages covered by a `noScripts` route rule always have their styles inlined.
|
|
3339
3355
|
*/
|
|
3340
3356
|
inlineStyles: boolean | ((id?: string) => boolean);
|
|
3341
3357
|
/**
|
|
@@ -4118,6 +4134,12 @@ interface ConfigSchema {
|
|
|
4118
4134
|
* @private
|
|
4119
4135
|
*/
|
|
4120
4136
|
_modules: Array<any>;
|
|
4137
|
+
/**
|
|
4138
|
+
* Sources of the pages that are served without scripts, as registered in `ssrContext.modules`.
|
|
4139
|
+
*
|
|
4140
|
+
* @private
|
|
4141
|
+
*/
|
|
4142
|
+
_noScriptsPageSources: Array<string>;
|
|
4121
4143
|
/**
|
|
4122
4144
|
* Configuration for Nuxt's server builder.
|
|
4123
4145
|
*
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as NuxtHookCallback, A as RuntimeConfigApp, An as ServerPluginInput, At as NuxtPageMeta, B as WebpackConfig, Bn as NuxtImportPreset, Bt as RequestEventContext, C as NuxtAppConfig, Cn as ServerHandler, Ct as ModuleInstallInfo, D as NuxtOptions, Dn as ServerHandlerMethod, Dt as NuxtLayout, E as NuxtConfigInput, En as ServerHandlerInput, Et as NuxtHooks, F as ViewTransitionOptions, Fn as NuxtImport, Ft as AppRouteRulesBase, G as Nuxt, Gn as NuxtPackageImportPreset, Gt as ServerRoutes, H as AppHeadMetaObject, Hn as NuxtImportPresetSource, Ht as ServerRequestTypes, I as ViewTransitionPageOptions, In as NuxtImportAddonsOptions, It as AppRouteRulesExtensions, J as NuxtPlugin, Jt as NuxtManifestResource, K as NuxtApp, Kt as ServerTypes, L as ViteConfig, Ln as NuxtImportCommon, Lt as NuxtRequestContext, M as SchemaDefinition, Mn as TracingChannelOptions, Mt as VueTSConfig, N as SharedAppConfig, Nn as TracingChannelOptionsBase, Nt as WatchEvent, O as PublicRuntimeConfig, On as ServerImportsOptions, Ot as NuxtMiddleware, P as UpperSnakeCase, Pn as ImportsOptions, Pt as AppRouteRules, Qt as NuxtDeprecatedHook, R as ViteOptions, Rn as NuxtImportDeclarationType, Rt as NuxtRequestEvent, S as DefineNuxtConfig, Sn as ServerApiVariants, St as ImportPresetWithDeprecation, T as NuxtConfig, Tn as ServerHandlerFallback, Tt as NuxtHookName, U as MetaObject, Un as NuxtImportScanDir, Ut as ServerRouteHandler, V as WebpackPluginInstance, Vn as NuxtImportPresetName, Vt as ServerEventHandler, W as MetaObjectRaw, Wn as NuxtImportScanOptions, Wt as ServerRouteSegment, Xt as NuxtIgnoreOptions, Y as NuxtPluginTemplate, Yt as NuxtIgnoreMatcher, Zt as NuxtIgnoreTestResult, _ as NuxtDotenvOptions, _n as NitroTypes, _t as ModuleSetupReturn, a as ScanDir, an as NuxtCompatibilityIssue, at as NuxtTemplateDependency, b as AppConfigInput, bn as RouteRuleConfigFallback, bt as GenerateAppOptions, c as KeyedFunctionFactory, cn as DevServerHandlerFallback, ct as NuxtDebugContext, d as NuxtLinkOptions, dn as NitroConfig, dt as ModuleDefinition, en as NuxtHookKeys, f as RouterConfig, fn as NitroConfigFallback, ft as ModuleDependencies, g as NuxtConfigLayerMeta, gn as NitroInstanceOptionsFallback, gt as ModuleSetupInstallResult, h as NuxtConfigLayer, hn as NitroInstanceOptions, ht as ModuleOptions, i as ComponentsOptions, in as NuxtCompatibility, it as NuxtTemplateChange, j as RuntimeValue, jn as ServerRouteMeta, jt as TSReference, k as RuntimeConfig, kn as ServerPlugin, kt as NuxtPage, l as NuxtCompilerOptions, ln as DevServerHandlerFunction, lt as NuxtDebugModuleMutationRecord, m as RouterOptions, mn as NitroInstanceFallback, mt as ModuleMeta, n as ComponentMeta, nn as NuxtHookSpyEvent, nt as NuxtServerTemplate, o as CompilerScanDir, on as NuxtCompatibilityIssues, ot as NuxtTypeTemplate, p as RouterConfigSerializable, pn as NitroInstance, pt as ModuleDependencyMeta, q as NuxtBuildOutputs, qt as NuxtManifest, r as ComponentsDir, rn as NuxtNestedHooks, rt as NuxtTemplate, s as KeyedFunction, sn as DevServerHandler, st as ResolvedNuxtTemplate, t as Component, tn as NuxtHookRegistry, u as ConfigSchema, un as DevServerHandlerInput, ut as NuxtDebugOptions, v as NuxtLayerSourceOptions, vn as RouteRuleConfig, vt as NuxtModule, w as NuxtBuilder, wn as ServerHandlerEnv, wt as NuxtAnalyzeMeta, x as CustomAppConfig, xn as ServerApi, xt as HookResult, y as AppConfig, yn as RouteRuleConfigExtensions, yt as ResolvedModuleOptions, z as VitePlugin, zn as NuxtImportEntry, zt as RequestEvent } from "./components-
|
|
1
|
+
import { $t as NuxtHookCallback, A as RuntimeConfigApp, An as ServerPluginInput, At as NuxtPageMeta, B as WebpackConfig, Bn as NuxtImportPreset, Bt as RequestEventContext, C as NuxtAppConfig, Cn as ServerHandler, Ct as ModuleInstallInfo, D as NuxtOptions, Dn as ServerHandlerMethod, Dt as NuxtLayout, E as NuxtConfigInput, En as ServerHandlerInput, Et as NuxtHooks, F as ViewTransitionOptions, Fn as NuxtImport, Ft as AppRouteRulesBase, G as Nuxt, Gn as NuxtPackageImportPreset, Gt as ServerRoutes, H as AppHeadMetaObject, Hn as NuxtImportPresetSource, Ht as ServerRequestTypes, I as ViewTransitionPageOptions, In as NuxtImportAddonsOptions, It as AppRouteRulesExtensions, J as NuxtPlugin, Jt as NuxtManifestResource, K as NuxtApp, Kt as ServerTypes, L as ViteConfig, Ln as NuxtImportCommon, Lt as NuxtRequestContext, M as SchemaDefinition, Mn as TracingChannelOptions, Mt as VueTSConfig, N as SharedAppConfig, Nn as TracingChannelOptionsBase, Nt as WatchEvent, O as PublicRuntimeConfig, On as ServerImportsOptions, Ot as NuxtMiddleware, P as UpperSnakeCase, Pn as ImportsOptions, Pt as AppRouteRules, Qt as NuxtDeprecatedHook, R as ViteOptions, Rn as NuxtImportDeclarationType, Rt as NuxtRequestEvent, S as DefineNuxtConfig, Sn as ServerApiVariants, St as ImportPresetWithDeprecation, T as NuxtConfig, Tn as ServerHandlerFallback, Tt as NuxtHookName, U as MetaObject, Un as NuxtImportScanDir, Ut as ServerRouteHandler, V as WebpackPluginInstance, Vn as NuxtImportPresetName, Vt as ServerEventHandler, W as MetaObjectRaw, Wn as NuxtImportScanOptions, Wt as ServerRouteSegment, Xt as NuxtIgnoreOptions, Y as NuxtPluginTemplate, Yt as NuxtIgnoreMatcher, Zt as NuxtIgnoreTestResult, _ as NuxtDotenvOptions, _n as NitroTypes, _t as ModuleSetupReturn, a as ScanDir, an as NuxtCompatibilityIssue, at as NuxtTemplateDependency, b as AppConfigInput, bn as RouteRuleConfigFallback, bt as GenerateAppOptions, c as KeyedFunctionFactory, cn as DevServerHandlerFallback, ct as NuxtDebugContext, d as NuxtLinkOptions, dn as NitroConfig, dt as ModuleDefinition, en as NuxtHookKeys, f as RouterConfig, fn as NitroConfigFallback, ft as ModuleDependencies, g as NuxtConfigLayerMeta, gn as NitroInstanceOptionsFallback, gt as ModuleSetupInstallResult, h as NuxtConfigLayer, hn as NitroInstanceOptions, ht as ModuleOptions, i as ComponentsOptions, in as NuxtCompatibility, it as NuxtTemplateChange, j as RuntimeValue, jn as ServerRouteMeta, jt as TSReference, k as RuntimeConfig, kn as ServerPlugin, kt as NuxtPage, l as NuxtCompilerOptions, ln as DevServerHandlerFunction, lt as NuxtDebugModuleMutationRecord, m as RouterOptions, mn as NitroInstanceFallback, mt as ModuleMeta, n as ComponentMeta, nn as NuxtHookSpyEvent, nt as NuxtServerTemplate, o as CompilerScanDir, on as NuxtCompatibilityIssues, ot as NuxtTypeTemplate, p as RouterConfigSerializable, pn as NitroInstance, pt as ModuleDependencyMeta, q as NuxtBuildOutputs, qt as NuxtManifest, r as ComponentsDir, rn as NuxtNestedHooks, rt as NuxtTemplate, s as KeyedFunction, sn as DevServerHandler, st as ResolvedNuxtTemplate, t as Component, tn as NuxtHookRegistry, u as ConfigSchema, un as DevServerHandlerInput, ut as NuxtDebugOptions, v as NuxtLayerSourceOptions, vn as RouteRuleConfig, vt as NuxtModule, w as NuxtBuilder, wn as ServerHandlerEnv, wt as NuxtAnalyzeMeta, x as CustomAppConfig, xn as ServerApi, xt as HookResult, y as AppConfig, yn as RouteRuleConfigExtensions, yt as ResolvedModuleOptions, z as VitePlugin, zn as NuxtImportEntry, zt as RequestEvent } from "./components-Dw-GUVLx.mjs";
|
|
2
2
|
import { InputObject } from "untyped";
|
|
3
3
|
//#region src/config/index.d.ts
|
|
4
4
|
declare const _default: InputObject;
|
package/dist/index.mjs
CHANGED
|
@@ -564,6 +564,7 @@ var common_default = defineResolvers({
|
|
|
564
564
|
const [app, buildId] = await Promise.all([get("app"), get("buildId")]);
|
|
565
565
|
provideFallbackValues(val);
|
|
566
566
|
return defu(val, {
|
|
567
|
+
appSecret: "",
|
|
567
568
|
public: {},
|
|
568
569
|
app: {
|
|
569
570
|
buildId,
|
|
@@ -587,15 +588,14 @@ function withTrailingSlash(str) {
|
|
|
587
588
|
//#region src/templates/loading.ts
|
|
588
589
|
const _messages = {
|
|
589
590
|
"appName": "Nuxt",
|
|
590
|
-
"loading": "Loading"
|
|
591
|
-
"version": "4.0"
|
|
591
|
+
"loading": "Loading"
|
|
592
592
|
};
|
|
593
593
|
const template = (messages) => {
|
|
594
594
|
messages = {
|
|
595
595
|
..._messages,
|
|
596
596
|
...messages
|
|
597
597
|
};
|
|
598
|
-
return "<!DOCTYPE html><html lang=\"en\"><head><title>" + escapeHtml(messages.loading) + " | " + escapeHtml(messages.appName) + "</title><meta charset=\"utf-8\"><meta content=\"width=device-width,initial-scale=1,minimum-scale=1\" name=\"viewport\"><style>.nuxt-loader-bar{background:#00dc82;height:3px;position:fixed;bottom:0;left:0;right:0}.triangle-loading{position:absolute}.triangle-loading>path{fill:none;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128px;animation:nuxt-loading-move 3s linear infinite}.nuxt-logo:hover .triangle-loading>path{animation-play-state:paused}@keyframes nuxt-loading-move{to{stroke-dashoffset:-128px}}@media (prefers-color-scheme:dark){body,html{color:#fff;--lightningcss-light:;--lightningcss-dark:initial;color-scheme:dark}}*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after,:before{--un-content:\"\"}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}svg{vertical-align:middle;display:block}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x:;--un-pan-y:;--un-pinch-zoom:;--un-scroll-snap-strictness:proximity;--un-ordinal:;--un-slashed-zero:;--un-numeric-figure:;--un-numeric-spacing:;--un-numeric-fraction:;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset:;--un-shadow:0 0 #0000;--un-ring-inset:;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur:;--un-brightness:;--un-contrast:;--un-drop-shadow:;--un-grayscale:;--un-hue-rotate:;--un-invert:;--un-saturate:;--un-sepia:;--un-backdrop-blur:;--un-backdrop-brightness:;--un-backdrop-contrast:;--un-backdrop-grayscale:;--un-backdrop-hue-rotate:;--un-backdrop-invert:;--un-backdrop-opacity:;--un-backdrop-saturate:;--un-backdrop-sepia:}.relative{position:relative}.inline-block{display:inline-block}.min-h-screen{min-height:100vh}.flex{display:flex}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.border{border-width:1px}.border-\\[\\#00DC42\\]\\/50{border-color:#00dc4280}.group:hover .group-hover\\:border-\\[\\#00DC42\\]{--un-border-opacity:1;border-color:rgb(0 220 66/var(--un-border-opacity))}.rounded{border-radius:.25rem}.bg-\\[\\#00DC42\\]\\/10{background-color:#00dc421a}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.group:hover .group-hover\\:bg-\\[\\#00DC42\\]\\/15{background-color:#00dc4226}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.text-center{text-align:center}.text-\\[16px\\]{font-size:16px}.group:hover .group-hover\\:text-\\[\\#00DC82\\],.text-\\[\\#00DC82\\]{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.text-\\[\\#00DC82\\]\\/80{color:#00dc82cc}.group:hover .group-hover\\:text-\\[\\#020420\\],.text-\\[\\#020420\\]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\\[\\#020420\\]\\/80{color:#020420cc}.font-semibold{font-weight:600}.leading-none{line-height:1}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\\:bg-\\[\\#020420\\]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\\:text-gray-200{--un-text-opacity:1;color:rgb(224 224 224/var(--un-text-opacity))}.dark\\:text-white,.group:hover .dark\\:group-hover\\:text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}</style></head><body class=\"antialiased bg-white dark:bg-[#020420] dark:text-white flex flex-col font-sans items-center justify-center min-h-screen overflow-hidden relative text-[#020420] text-center\"><a href=\"https://nuxt.com/?utm_source=nuxt-loading-screen\" target=\"_blank\" rel=\"noopener\" class=\"flex gap-4 group items-end nuxt-logo\" id=\"nuxtImg\"><div class=\"relative\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" fill=\"none\" class=\"group-hover:text-[#00DC82] text-[#00DC82]/80 triangle-loading\" viewBox=\"0 0 37 25\"><path stroke=\"currentColor\" d=\"M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567\"/></svg> <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"214\" height=\"53\" fill=\"none\" class=\"dark:group-hover:text-white dark:text-gray-200 group-hover:text-[#020420] text-[#020420]/80\" viewBox=\"0 0 800 200\"><path fill=\"currentColor\" d=\"M377 200a4 4 0 0 0 4-4v-93s5.244 8.286 15 25l38.707 66.961c1.789 3.119 5.084 5.039 8.649 5.039H470V50h-27a4 4 0 0 0-4 4v94l-17-30-36.588-62.98c-1.792-3.108-5.081-5.02-8.639-5.02H350v150zm299.203-56.143L710.551 92h-25.73a9.97 9.97 0 0 0-8.333 4.522L660.757 120.5l-15.731-23.978A9.97 9.97 0 0 0 636.693 92h-25.527l34.348 51.643L608.524 200h24.966a9.97 9.97 0 0 0 8.29-4.458l19.18-28.756 18.981 28.72a9.97 9.97 0 0 0 8.313 4.494h24.736zM724.598 92h19.714V60.071h28.251V92H800v24.857h-27.437V159.5c0 10.5 5.284 15.429 14.43 15.429H800V200h-16.869c-23.576 0-38.819-14.143-38.819-39.214v-43.929h-19.714zM590 92h-15c-3.489 0-6.218.145-8.5 2.523-2.282 2.246-2.5 3.63-2.5 7.066v52.486c0 8.058-.376 12.962-4 16.925-3.624 3.831-8.619 5-16 5-7.247 0-12.376-1.169-16-5-3.624-3.963-4-8.867-4-16.925v-52.486c0-3.435-.218-4.82-2.5-7.066C519.218 92.145 516.489 92 513 92h-15v62.422q0 21.006 11.676 33.292C517.594 195.905 529.103 200 544 200s26.204-4.095 34.123-12.286Q590 175.428 590 154.422z\"/></svg></div> <span class=\"bg-[#00DC42]/10 border border-[#00DC42]/50 font-mono font-semibold group-hover:bg-[#00DC42]/15 group-hover:border-[#00DC42] inline-block leading-none px-2.5 py-1.5 rounded text-[#00DC82] text-[16px]\">4.6.0-29833429.e2a0e5da</span> </a><div class=\"nuxt-loader-bar\"></div><script>if(void 0===window.fetch)setTimeout(()=>window.location.reload(),200);else{let t=200;const e=async()=>{try{if(!(await window.fetch(window.location.href,{headers:{accept:\"text/html\"}}).then(t=>t.text())).includes(\"__NUXT_LOADING__\"))return window.location.reload()}catch{}setTimeout(e,t),t=Math.min(Math.round(1.5*t),1e3)};e()}<\/script><script>const prefersReducedMotion=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;function whatHemisphere(){let e=new Date;if(null==e.getTimezoneOffset)return null;e=e.getFullYear();let t=-new Date(e,0,1,0,0,0,0).getTimezoneOffset()- -new Date(e,6,1,0,0,0,0).getTimezoneOffset();return t<0?\"N\":t>0?\"S\":null}const months={N:[10,11,0],S:[4,5,6]},hemisphere=whatHemisphere();if(hemisphere&&months[hemisphere].includes((new Date).getMonth())&&!prefersReducedMotion){let e=\"false\"!==localStorage.getItem(\"nuxt-snow\"),t=null,n=[],r=Date.now();const i=25e-5,a=1.25,o={current:0,maxCurrent:4,force:.1,target:.1,min:.1,max:.4,easing:.01},s=(e,t)=>(e%t+t)%t,d=document.createElement(\"button\");d.id=\"snow-toggle\",d.style=\"position:fixed;bottom:16px;right:16px;z-index:100;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:8px;padding:8px 12px;cursor:pointer;font-size:20px;\",document.body.appendChild(d);const h=document.createElement(\"canvas\");h.id=\"snow-canvas\",h.style=\"position:fixed;inset:0;z-index:-10;pointer-events:none;opacity:0;transition:opacity 0.5s;filter:blur(4px);\",document.body.appendChild(h);const l=h.getContext(\"2d\");function resize(){h.width=window.innerWidth,h.height=window.innerHeight,n=Array.from({length:Math.floor(h.width*h.height*i)},()=>({x:Math.random()*h.width,y:Math.random()*h.height,vx:1+Math.random(),vy:1+Math.random(),vsin:10*Math.random(),rangle:2*Math.random()*Math.PI,rsin:10*Math.random(),color:`rgba(255,255,255,${.1+.15*Math.random()})`,size:5*Math.random()*4*(h.height/1e3)}))}function draw(){l.clearRect(0,0,h.width,h.height);const e=Date.now(),i=e-r;r=e,o.force+=(o.target-o.force)*o.easing,o.current=Math.max(-o.maxCurrent,Math.min(o.current+o.force*i*.05,o.maxCurrent)),Math.random()>.995&&(o.target=(o.min+Math.random()*(o.max-o.min))*(Math.random()>.5?-1:1));const d=.2*i;n.forEach(e=>{e.x=s(e.x+d+o.current*e.vx,h.width),e.y=s(e.y+d*e.vy*a,h.height),e.x+=Math.sin(d*e.vsin)*e.rsin*.5,e.rangle+=.01*d,l.fillStyle=e.color,l.beginPath(),l.ellipse(e.x,e.y,e.size,.66*e.size,e.rangle,0,2*Math.PI),l.fill()}),t=requestAnimationFrame(draw)}function update(){d.innerHTML=e?\"☀️\":\"❄️\",d.title=e?\"Disable snow\":\"Enable snow\",e?(resize(),window.addEventListener(\"resize\",resize),h.style.opacity=1,r=Date.now(),draw()):(t&&cancelAnimationFrame(t),t=null,window.removeEventListener(\"resize\",resize),h.style.opacity=0)}d.onclick=()=>{e=!e,localStorage.setItem(\"nuxt-snow\",e),update()},update()}<\/script></body></html>";
|
|
598
|
+
return "<!DOCTYPE html><html lang=\"en\"><head><title data-app-name=\"" + escapeHtml(messages.appName) + "\">" + escapeHtml(messages.loading) + " | " + escapeHtml(messages.appName) + "</title><meta charset=\"utf-8\"><meta content=\"width=device-width,initial-scale=1,minimum-scale=1\" name=\"viewport\"><style>:root{--nuxt-mint:#00dc82;--nuxt-mist:#e8fff4e0;--nuxt-dim:#00dc828c;--nuxt-logo:calc(min(10vw, 68px))}*,:after,:before{box-sizing:border-box}body,html{width:100%;height:100%;color:var(--nuxt-mist);background:#000;margin:0}body{-webkit-font-smoothing:antialiased;justify-content:center;align-items:center;font-family:ui-sans-serif,system-ui,sans-serif;display:flex;overflow:hidden}#nuxt-shader,svg{display:block}#nuxt-shader{z-index:0;touch-action:none;opacity:0;width:100%;height:100%;transition:opacity .4s;position:fixed;inset:0}.nuxt-lockup{z-index:1;color:inherit;cursor:pointer;background:0 0;border:0;align-items:center;padding:0;display:flex;position:relative}.nuxt-logo-slot{width:var(--nuxt-logo);height:calc(.66667 * var(--nuxt-logo));flex:0 0 var(--nuxt-logo);color:var(--nuxt-mint)}.nuxt-logo-slot>svg{width:100%;height:100%}.nuxt-logo-slot>svg>path{fill:currentColor}.nuxt-loader-bar{z-index:1;width:var(--nuxt-progress,4%);background:var(--nuxt-mint);height:2px;transition:width .3s;position:fixed;bottom:0;left:0;right:auto}.nuxt-season{z-index:1;width:30px;height:30px;color:var(--nuxt-mint);cursor:pointer;background:#00dc8214;border:1px solid #00dc823d;border-radius:8px;justify-content:center;align-items:center;padding:0;transition:opacity .2s,background-color .2s;display:flex;position:fixed;bottom:26px;right:22px}.nuxt-season[hidden]{display:none}.nuxt-season:hover{background:#00dc8229}.nuxt-season>svg{width:16px;height:16px}.nuxt-sr{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-color-scheme:light){:root{--nuxt-mist:#0a0a0ac2;--nuxt-dim:#0a0a0a6b;--nuxt-accent:#00a86a}body,html{background:#fff}}</style><script>var e=/swiftshader|llvmpipe|softpipe|software|basic render/i,t=.55;function n(e,n,t,o){let a=1-Math.exp(-Math.min(Math.max(t,0),.05)/Math.max(o,.001));return[e[0]+(n[0]-e[0])*a,e[1]+(n[1]-e[1])*a]}function r(){try{let e=new URLSearchParams(window.location.search).get(\"winter\");if(null!==e)return\"0\"!==e&&\"false\"!==e}catch{}let e=new Date,n=e.getFullYear(),t=-new Date(n,0,1).getTimezoneOffset(),o=-new Date(n,6,1).getTimezoneOffset();return t!==o&&(t-o>0?[4,5,6]:[10,11,0]).includes(e.getMonth())}function i(o,a,i){let s,l,c,h,d,f,u=!1,p=0,v=1,m=1,g=[.5,.5],w=[.1,.1],x=[.5,.5],y=0,E=new Float32Array(8).fill(-1),L=-1,k=0,b=-1/0,A=!1,S=!1,P=!1,R=!1,M=0,_=0,C=0,N=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches,O=window.matchMedia(\"(prefers-color-scheme: light)\"),z=+!!O.matches,T=+!!r(),F=()=>{u||S||!A||(b=-1/0,p||=requestAnimationFrame(B))},I=e=>{z=+!!e.matches,W(),F()},W=()=>{s&&(z>0?s.blendFuncSeparate(s.ONE,s.ONE_MINUS_SRC_ALPHA,s.ZERO,s.ONE):s.blendFuncSeparate(s.ONE,s.ONE,s.ONE,s.ONE))},q=()=>{if(!s)return;let e=o.getBoundingClientRect();if(e.width<=0||e.height<=0)return;let n=Math.min(window.devicePixelRatio||1,1.75,2688/e.width),t=[Math.max(1,Math.floor(e.width*n)),Math.max(1,Math.floor(e.height*n))];(t[0]!==v||t[1]!==m)&&(v=t[0],m=t[1],o.width=v,o.height=m,s.viewport(0,0,v,m));let r=a.getBoundingClientRect();g=[(r.left+r.width/2-e.left)/Math.max(1,e.width),(r.top+r.height/2-e.top)/Math.max(1,e.height)],w=[Math.max(.001,r.width/Math.max(1,e.width)),Math.max(.001,r.height/Math.max(1,e.height))]},H=e=>{if(\"touch\"===e.pointerType)return;let n=o.getBoundingClientRect();h=[Math.min(1,Math.max(0,(e.clientX-n.left)/Math.max(1,n.width))),Math.min(1,Math.max(0,(e.clientY-n.top)/Math.max(1,n.height)))]},D=()=>{h=void 0},U=()=>{let e=E.findIndex(e=>e<0);e<0&&(e=E.indexOf(Math.max(...E))),E[e]=0,F()},K=e=>{\"touch\"!==e.pointerType&&(L=0,F())},Z=e=>{e.preventDefault(),Y(),o.remove()},X=e=>{if(e!==S&&!u){if(e&&!A)return void(P=!0);if(S=e,S)return M=_,h=void 0,p&&cancelAnimationFrame(p),void(p=0);P=!1,R=!0,p||=requestAnimationFrame(B)}},B=e=>{if(u||(p=requestAnimationFrame(B),_=e,R&&(R=!1,C+=e-M,b=-1/0,k=(e-C)/1e3),e-b<33)||!s||!l||!d)return;b=e;let o=(e-C)/1e3,a=Math.min(Math.max(o-k,0),.05);k=o,x=n(x,h??x,a,.22),y+=(+!!h-y)*(1-Math.exp(-a/.35));for(let e=0;e<E.length;e++)E[e]<0||(E[e]+=a*t,E[e]>=1&&(E[e]=-1));L>=0&&(L+=a*t,L>=1&&(L=-1)),s.uniform2f(d.uLogoCentre,g[0],g[1]),s.uniform2f(d.uLogoScale,w[0],w[1]),s.uniform2f(d.uResolution,v,m),s.uniform2f(d.uPointer,x[0],x[1]),s.uniform1fv(d.uWave,E),s.uniform1f(d.uHoverWave,L),s.uniform2f(d.uMisc,o,y),s.uniform2f(d.uSeason,T,z),s.uniform1f(d.uLight,z);let r=+(z>0);s.clearColor(r,r,r,1),s.clear(s.COLOR_BUFFER_BIT),s.drawArrays(s.TRIANGLES,0,T>0?1111440:1098240),A||(A=!0,V.onFirstFrame?.(),P&&X(!0)),N&&(cancelAnimationFrame(p),p=0)},Y=()=>{u||(u=!0,p&&cancelAnimationFrame(p),p=0,c?.disconnect(),window.removeEventListener(\"pointermove\",H),document.documentElement.removeEventListener(\"pointerleave\",D),i?.removeEventListener(\"click\",U),i?.removeEventListener(\"pointerenter\",K),O.removeEventListener(\"change\",I),o.removeEventListener(\"webglcontextlost\",Z),s&&l&&s.deleteProgram(l),s=void 0,l=void 0)},G=(e,n,t)=>{let o=e.createShader(n);if(!o)throw Error(\"Could not create shader.\");if(e.shaderSource(o,t),e.compileShader(o),!e.getShaderParameter(o,e.COMPILE_STATUS)){let n=e.getShaderInfoLog(o);throw e.deleteShader(o),Error(`Shader failed to compile: ${n}`)}return o};try{(()=>{let n=o.getContext(\"webgl2\",{alpha:!1,antialias:!1,depth:!1,stencil:!1,powerPreference:\"low-power\"});if(!n)throw Error(\"No WebGL2 context.\");let t=n.getExtension(\"WEBGL_debug_renderer_info\"),r=String(t&&n.getParameter(t.UNMASKED_RENDERER_WEBGL)||n.getParameter(n.RENDERER)||\"\");if(e.test(r))throw Error(`Software renderer (${r}); falling back to the lockup.`);s=n;let h=G(n,n.VERTEX_SHADER,\"#version 300 es\\n// A particle mountain range for the dev-server loading screen.\\n//\\n// One draw call and no vertex buffers: every particle is a quad whose position\\n// is derived from gl_VertexID, sampled from a ridged heightfield in\\n// perspective, so the field reads as a range of peaks seen at a grazing angle.\\n// Nothing here depends on build progress — the screen looks the same at one\\n// second and at two minutes.\\n//\\n// Motion, all continuous loops:\\n// · per-particle drift and shimmer\\n// · slow luminosity waves crossing the field\\n// · a ripple radiating from the lockup\\n// · overlapping shockwaves fired by clicking the lockup\\nprecision highp float;\\n\\nuniform vec2 uLogoCentre;\\nuniform vec2 uLogoScale;\\nuniform vec2 uResolution;\\n/** pointer position in canvas space, smoothed */\\nuniform vec2 uPointer;\\n/** shockwave phases 0..1; negative entries are inactive */\\nuniform float uWave[8];\\n/** subtle pointer-enter wave phase; negative while inactive */\\nuniform float uHoverWave;\\n/** x: seconds, y: pointer presence 0..1 */\\nuniform vec2 uMisc;\\n/** x: winter 0..1 — snow on the peaks and falling flakes; y: 1 in light mode */\\nuniform vec2 uSeason;\\n\\nout vec2 vLocal;\\n/** dark: emitted colour, w unused. light: ink colour, w its coverage. */\\nout vec4 vTint;\\n\\nconst vec3 MINT = vec3(0.0, 0.8627451, 0.5098039);\\nconst vec3 MINT_PALE = vec3(0.6235294, 1.0, 0.8156863);\\nconst vec3 SNOW = vec3(0.88, 1.0, 0.96);\\n\\n// Light mode draws the same range as ink on paper. Emitted light becomes\\n// coverage, and the renderer blends it over the page instead of adding it to\\n// the dark. Alpha rather than subtraction, so a crest that many particles\\n// land on settles on the brand green instead of running away to black.\\nconst vec3 INK = vec3(0.0);\\nconst vec3 LUMA = vec3(0.2126, 0.7152, 0.0722);\\n\\n// grid of particles\\nconst uint COLS = 704u;\\nconst uint ROWS = 260u;\\nconst uint TERRAIN_COUNT = COLS * ROWS;\\n\\n// camera\\nconst float Z_NEAR = 1.3;\\nconst float Z_FAR = 26.0;\\nconst float CAM_Y = 2.4;\\nconst float FOCAL = 1.3;\\nconst float HORIZON = 0.30;\\n\\n// the two summits that shape the skyline, in screen-x units\\nconst float PEAK1_X = -0.40;\\nconst float PEAK1_H = 3.2;\\nconst float PEAK2_X = 0.40;\\nconst float PEAK2_H = 2.2;\\n\\nconst vec2 QUAD[6] = vec2[6](\\n vec2(-1.0, -1.0), vec2(1.0, -1.0), vec2(-1.0, 1.0),\\n vec2(-1.0, 1.0), vec2(1.0, -1.0), vec2(1.0, 1.0)\\n);\\n\\nfloat hash21 (vec2 p) {\\n vec2 q = fract(p * vec2(0.1031, 0.1030));\\n q += dot(q, q.yx + 33.33);\\n return fract((q.x + q.y) * q.x);\\n}\\n\\nfloat noise2 (vec2 p) {\\n vec2 i = floor(p);\\n vec2 f = fract(p);\\n vec2 u = f * f * (3.0 - 2.0 * f);\\n float a = hash21(i);\\n float b = hash21(i + vec2(1.0, 0.0));\\n float c = hash21(i + vec2(0.0, 1.0));\\n float d = hash21(i + vec2(1.0, 1.0));\\n return mix(mix(a, b, u.x), mix(c, d, u.x), u.y);\\n}\\n\\nfloat shockwave (float phase, float dist) {\\n if (phase < 0.0) { return 0.0; }\\n float radius = phase * 1.7;\\n float width = 0.09 + phase * 0.20;\\n return exp(-((dist - radius) * (dist - radius)) / (width * width))\\n * (1.0 - smoothstep(0.55, 1.0, phase))\\n * smoothstep(0.0, 0.04, phase);\\n}\\n\\n// `shape` flattens the relief on narrow screens. A summit covers the same\\n// fraction of screen height whatever the aspect, but far fewer pixels of width\\n// in portrait, so without this the peaks turn into needles.\\nfloat terrain (float x, float z, float u, float shape) {\\n // ridged noise stretched along the view axis gives crest lines that flow\\n // into the distance rather than a lumpy field\\n vec2 q = vec2(x * 0.30, z * 0.085);\\n float r = 0.0;\\n float amp = 0.55;\\n mat2 rot = mat2(1.6, 1.2, -1.2, 1.6);\\n for (int i = 0; i < 5; i++) {\\n r += amp * (1.0 - abs(2.0 * noise2(q) - 1.0));\\n q = rot * q;\\n amp *= 0.55;\\n }\\n float h = pow(max(r, 0.0), 1.5) * 2.6;\\n h *= 0.70 + 0.60 * noise2(vec2(x * 0.05, z * 0.05) + 7.0);\\n // two designed summits, far enough back to break the horizon\\n float rise = smoothstep(3.0, 9.0, z);\\n h += rise * PEAK1_H * max(0.0, 1.0 - abs(u - PEAK1_X) * 3.2);\\n h += rise * PEAK2_H * max(0.0, 1.0 - abs(u - PEAK2_X) * 3.6);\\n return max(h, 0.0) * shape;\\n}\\n\\nvoid main () {\\n uint id = uint(gl_VertexID) / 6u;\\n int corner = gl_VertexID % 6;\\n float t = uMisc.x;\\n vec2 resolution = max(uResolution, vec2(1.0));\\n float aspect = max(resolution.x / resolution.y, 0.5);\\n float winter = uSeason.x;\\n float light = uSeason.y;\\n\\n // the icon centre is needed by both the terrain and the flakes\\n float logoH = max(uLogoScale.y, 0.01);\\n vec2 centre = vec2(\\n uLogoCentre.x * 2.0 - 1.0,\\n 1.0 - 2.0 * uLogoCentre.y\\n );\\n vec2 offset = QUAD[corner];\\n\\n // A flake drifting down the screen, in its own parallax layer. Independent of\\n // the terrain: it lives in screen space and wraps around forever. Flakes are\\n // drawn from the indices past the terrain, so winter costs nothing out of\\n // season — the draw call is simply shorter.\\n if (id >= TERRAIN_COUNT) {\\n float fi = float(id - TERRAIN_COUNT);\\n float r1 = hash21(vec2(fi, 1.7));\\n float r2 = hash21(vec2(fi, 5.3));\\n float r3 = hash21(vec2(fi, 9.1));\\n // near flakes are bigger, brighter and fall faster\\n float depth = 0.30 + r3 * 0.70;\\n float x = (r1 * 2.4 - 1.2) + sin(t * (0.25 + r2 * 0.35) + r1 * 40.0) * 0.05 * depth;\\n float y = 1.2 - fract(r2 + t * (0.020 + r3 * 0.035)) * 2.5;\\n vec2 pos = vec2(x, y);\\n\\n // flakes thin out over the icon so they never sit on the mark\\n vec2 toCentre = vec2((pos.x - centre.x) * aspect, pos.y - centre.y);\\n vec2 clear = abs(toCentre / vec2(logoH * 3.4, logoH * 2.8));\\n float clearing = 0.25 + 0.75 * smoothstep(0.5, 1.2, pow(pow(clear.x, 3.0) + pow(clear.y, 3.0), 1.0 / 3.0));\\n float twinkle = 0.75 + 0.25 * sin(t * (1.1 + r1 * 2.0) + r2 * 30.0);\\n float sizePx = (0.55 + depth * 1.5) * (resolution.y / 900.0);\\n float amount = (0.16 + 0.48 * depth) * twinkle * clearing * winter;\\n\\n gl_Position = vec4(pos + offset * sizePx * 2.0 / resolution, 0.5, 1.0);\\n vLocal = offset;\\n // white flakes cannot show on paper, so light mode draws them as ink\\n vTint = light > 0.5 ? vec4(INK, amount * 1.6) : vec4(SNOW * amount, 1.0);\\n return;\\n }\\n\\n uint col = id % COLS;\\n uint row = id / COLS;\\n vec2 seed = vec2(float(col), float(row));\\n float jitterX = hash21(seed) - 0.5;\\n float jitterY = hash21(seed + 17.0) - 0.5;\\n float rnd = hash21(seed + 41.0);\\n\\n // screen-x is fixed per column; depth is biased so the near field is denser\\n float u = ((float(col) + jitterX) / float(COLS)) * 2.3 - 1.15;\\n float v = clamp((float(row) + jitterY) / float(ROWS), 0.0, 1.0);\\n float z = mix(Z_NEAR, Z_FAR, pow(v, 1.5));\\n // widen the field of view and flatten the range as the window narrows, so a\\n // phone shows a range rather than a row of spikes\\n float shape = clamp(aspect / 1.6, 0.5, 1.0);\\n float tanX = max(aspect, 0.95) / FOCAL;\\n float xw = u * z * tanX;\\n\\n float h = terrain(xw, z, u, shape);\\n h += (noise2(vec2(xw * 1.6, z * 1.6)) - 0.5) * 0.05 * shape;\\n\\n // shading from the surface itself: one fixed light, plus a convexity term\\n // that picks out the crests\\n float e = 0.22;\\n float hxp = terrain(xw + e, z, u, shape);\\n float hxm = terrain(xw - e, z, u, shape);\\n float hzp = terrain(xw, z + e, u, shape);\\n vec3 normal = normalize(vec3(-(hxp - hxm) / (2.0 * e), 1.0, -(hzp - h) / e));\\n vec3 lightDir = normalize(vec3(-0.12, 0.60, -0.42));\\n float diffuse = pow(max(dot(normal, lightDir), 0.0), 1.3);\\n float crest = smoothstep(0.0, 1.5, (2.0 * h - hxp - hxm) / (e * e) * 0.2);\\n\\n float sy = (h - CAM_Y) / z * FOCAL + HORIZON;\\n\\n // nearer ridges hide what lies behind them, which is what makes the skyline\\n float occluded = 0.0;\\n for (int k = 1; k <= 4; k++) {\\n float zs = Z_NEAR + (z - Z_NEAR) * float(k) / 5.0;\\n float hs = terrain(u * zs * tanX, zs, u, shape);\\n occluded = max(occluded, step(sy + 0.012, (hs - CAM_Y) / zs * FOCAL + HORIZON));\\n }\\n\\n // the icon sits in a tight clearing so it always reads on plain ground.\\n // Waves and ripples are measured from this same point, so they leave the mark.\\n vec2 toCentre = vec2((u - centre.x) * aspect, sy - centre.y);\\n float dist = length(toCentre);\\n // The clearing has to read as haze, not as a hole cut out of the scene, so it\\n // fades over a short distance and its edge is broken up by noise. A squircle\\n // around the icon, not the old icon+wordmark block.\\n vec2 clear = abs(toCentre / vec2(logoH * 3.6, logoH * 3.0));\\n float clearEdge = pow(pow(clear.x, 3.0) + pow(clear.y, 3.0), 1.0 / 3.0)\\n + (noise2(vec2(xw * 0.55, z * 0.55)) - 0.5) * 0.30;\\n float clearing = smoothstep(0.46, 1.30, clearEdge);\\n\\n // ambient ripple, always running\\n float ripplePhase = fract(t * 0.30);\\n float rippleRadius = ripplePhase * 2.4;\\n float rippleWidth = 0.16 + ripplePhase * 0.25;\\n float ripple = exp(-((dist - rippleRadius) * (dist - rippleRadius)) / (rippleWidth * rippleWidth))\\n * (1.0 - smoothstep(0.55, 0.95, ripplePhase))\\n * smoothstep(0.0, 0.05, ripplePhase);\\n\\n // Every click has an independent phase, so its ring keeps travelling even\\n // when another click starts a new one.\\n float shock = 0.0;\\n for (int i = 0; i < 8; i++) {\\n shock += shockwave(uWave[i], dist);\\n }\\n shock += shockwave(uHoverWave, dist) * 0.25;\\n\\n float fog = exp(-(z - Z_NEAR) * 0.075) * (1.0 - smoothstep(0.86, 1.0, v));\\n float nearFade = smoothstep(Z_NEAR, 2.6, z);\\n // in winter the snowline drops a long way and the caps turn properly white\\n float snowline = 2.6 - winter * 1.7;\\n float snow = smoothstep(snowline, snowline + 1.0 - winter * 0.45, h);\\n float shimmer = 0.88 + 0.12 * sin(t * (0.7 + rnd * 1.4) + rnd * 31.0);\\n float grain = 0.88 + 0.24 * noise2(vec2(xw * 3.0, z * 3.0));\\n\\n // a fifth of the particles pulse on their own cycle, so the field never\\n // settles into a repeating pattern\\n float pulses = step(0.82, hash21(seed + 63.0));\\n float pulse = pow(0.5 + 0.5 * sin(t * (0.5 + rnd * 1.1) + rnd * 61.0), 6.0);\\n\\n // two slow noise waves drifting across the field\\n float waveA = noise2(vec2(xw * 0.22 - t * 0.20, z * 0.22)) - 0.5;\\n float waveB = noise2(vec2(xw * 0.55 + t * 0.09, z * 0.55 - t * 0.14)) - 0.5;\\n float wave = 1.0 + waveA * 0.24 + waveB * 0.16;\\n\\n // snow throws light back, so the caps read brighter as well as whiter\\n float lit = diffuse * 0.18 + crest * (0.34 + diffuse * 0.45) + snow * (0.06 + winter * 0.30);\\n float brightness = (0.008 + lit * grain)\\n * fog * nearFade * wave * shimmer\\n * (1.0 + pulse * (0.18 + pulses * 1.1))\\n * (1.0 + ripple * 0.75 + shock * 3.0);\\n vec3 tint = mix(MINT * 0.75, MINT_PALE, clamp(crest + snow * 0.5, 0.0, 1.0));\\n tint = mix(tint, SNOW, winter * snow) * brightness;\\n\\n float glint = step(0.993, rnd) * diffuse * (0.5 + 0.5 * sin(t * 2.0 + rnd * 47.0));\\n tint += vec3(0.85, 1.0, 0.93) * glint * fog * 0.55;\\n\\n // the pointer stirs nearby dust\\n vec2 pointer = vec2((uPointer.x - 0.5) * 2.0, (0.5 - uPointer.y) * 2.0);\\n vec2 toPointer = vec2((u - pointer.x) * aspect, sy - pointer.y);\\n float excite = (1.0 - smoothstep(0.0, 0.55, length(toPointer))) * uMisc.y;\\n vec2 push = normalize(toPointer + vec2(0.0001, 0.0)) * excite * (0.006 + 0.010 * rnd);\\n tint *= 1.0 + excite * 1.3;\\n\\n // Light mode reuses every lighting term above and only reinterprets it: how\\n // much light a particle emits becomes how much ink it lays down. Taking the\\n // luminance keeps the two themes at matching density, and the crests that go\\n // palest on black carry the brand green on paper. Snow is the one term that\\n // has to invert — a white cap can only read on paper by leaving it bare.\\n if (light > 0.5) {\\n // lifted, since faint dust that reads fine against black all but vanishes\\n // against white\\n float coverage = pow(clamp(dot(tint, LUMA) * 2.2, 0.0, 1.0), 0.8) * (1.0 - winter * snow * 0.6);\\n vTint = vec4(INK, coverage * (1.0 - occluded) * clearing);\\n } else {\\n vTint = vec4(tint * (1.0 - occluded) * clearing, 1.0);\\n }\\n\\n // particles float around their anchor, more freely up close\\n float floatAmp = (0.0015 + (1.0 - v) * 0.006) * (1.0 + excite * 2.5);\\n vec2 drift = vec2(\\n sin(t * (0.35 + rnd * 0.5) + rnd * 40.0),\\n cos(t * (0.28 + rnd * 0.45) + rnd * 23.0) * 1.4\\n ) * floatAmp;\\n\\n // the shockwave shoves particles outward as it passes\\n vec2 shockPush = vec2(toCentre.x / max(dist, 0.02) / aspect, toCentre.y / max(dist, 0.02)) * shock * 0.045;\\n\\n float sizePx = clamp(16.0 / z, 0.65, 1.9)\\n * (0.75 + 0.5 * hash21(seed + 27.0))\\n * (1.0 + glint * 0.25 + ripple * 0.20 + shock * 0.75);\\n\\n gl_Position = vec4(\\n vec2(u, sy) + drift + push + shockPush + offset * sizePx * 2.0 / resolution,\\n 0.5,\\n 1.0\\n );\\n vLocal = offset;\\n}\\n\"),f=G(n,n.FRAGMENT_SHADER,\"#version 300 es\\nprecision highp float;\\n\\nin vec2 vLocal;\\nin vec4 vTint;\\n/** 1 in light mode; uniform across the draw, so the branch is free */\\nuniform float uLight;\\nout vec4 fragColor;\\n\\nvoid main () {\\n float falloff = 1.0 - smoothstep(0.45, 1.0, length(vLocal));\\n if (uLight > 0.5) {\\n // premultiplied, so it composites over the page and settles on the ink\\n // colour however much dust lands on it\\n float alpha = vTint.a * falloff;\\n fragColor = vec4(vTint.rgb * alpha, alpha);\\n } else {\\n fragColor = vec4(vTint.rgb * falloff, 1.0);\\n }\\n}\\n\"),u=n.createProgram();if(!u)throw Error(\"Could not create program.\");if(n.attachShader(u,h),n.attachShader(u,f),n.linkProgram(u),n.deleteShader(h),n.deleteShader(f),!n.getProgramParameter(u,n.LINK_STATUS)){let e=n.getProgramInfoLog(u);throw n.deleteProgram(u),Error(`Program failed to link: ${e}`)}l=u,n.useProgram(u);let v=e=>n.getUniformLocation(u,e);d={uLogoCentre:v(\"uLogoCentre\"),uLogoScale:v(\"uLogoScale\"),uResolution:v(\"uResolution\"),uPointer:v(\"uPointer\"),uWave:v(\"uWave[0]\"),uHoverWave:v(\"uHoverWave\"),uMisc:v(\"uMisc\"),uSeason:v(\"uSeason\"),uLight:v(\"uLight\")},n.bindVertexArray(n.createVertexArray()),n.disable(n.DEPTH_TEST),n.enable(n.BLEND),W(),q(),c=typeof ResizeObserver>\"u\"?void 0:new ResizeObserver(q),c?.observe(o),c?.observe(a),window.addEventListener(\"pointermove\",H),document.documentElement.addEventListener(\"pointerleave\",D),i?.addEventListener(\"click\",U),i?.addEventListener(\"pointerenter\",K),O.addEventListener(\"change\",I),o.addEventListener(\"webglcontextlost\",Z),p||=requestAnimationFrame(B)})(),f=Promise.resolve()}catch(e){Y(),f=Promise.reject(e instanceof Error?e:Error(String(e)))}let V={ready:f,dispose:Y,setPaused:X,setWinter:e=>{let n=+!!e;n!==T&&(T=n,F())}};return V}var a=\"nuxt-snow\";function o(){try{return\"false\"!==window.localStorage.getItem(a)}catch{return!0}}function s(e){let n=r(),t=o();if(e.setWinter(n&&t),!n)return;let i=document.querySelector(\"#nuxt-season\");if(!i)return;let s=()=>{i.style.opacity=t?\"1\":\"0.4\",i.setAttribute(\"aria-pressed\",String(t)),i.title=t?\"Turn off snow\":\"Turn on snow\"};s(),i.hidden=!1,i.addEventListener(\"click\",()=>{t=!t,e.setWinter(t),s();try{window.localStorage.setItem(a,String(t))}catch{}})}function c(){try{let e=new URLSearchParams(window.location.search).get(\"shader\");return\"0\"===e||\"false\"===e}catch{return!1}}function l(){let e=document.querySelector(\"#nuxt-shader\"),n=document.querySelector(\"#nuxt-logo-slot\");if(!e||!n||!window.WebGL2RenderingContext||c())return void e?.remove();let t=i(e,n,document.querySelector(\".nuxt-lockup\"));s(t),t.onFirstFrame=()=>{e.style.opacity=\"1\"},t.ready.catch(()=>e.remove()),window.addEventListener(\"pagehide\",()=>t.dispose(),{once:!0});let o=e=>t.setPaused(e);window===window.top?(window.addEventListener(\"blur\",()=>o(!0)),window.addEventListener(\"focus\",()=>o(!1)),document.addEventListener(\"visibilitychange\",()=>{document.hidden?o(!0):document.hasFocus()&&o(!1)}),(document.hidden||!document.hasFocus())&&o(!0)):(document.addEventListener(\"visibilitychange\",()=>o(document.hidden)),document.hidden&&o(!0))}\"loading\"===document.readyState?document.addEventListener(\"DOMContentLoaded\",l,{once:!0}):l();<\/script></head><body><canvas id=\"nuxt-shader\" aria-hidden=\"true\"></canvas><button type=\"button\" class=\"nuxt-lockup\" id=\"nuxtImg\" aria-label=\"" + escapeHtml(messages.appName) + "\"><span id=\"nuxt-logo-slot\" class=\"nuxt-logo-slot\"> <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" aria-hidden=\"true\" viewBox=\"0 0 48 32\"><path d=\"M26.88 32h17.76c.567 0 1.11-.2 1.6-.48s.997-.633 1.28-1.12c.283-.486.48-1.038.48-1.6s-.196-1.114-.48-1.6l-12-20.64a2.9 2.9 0 0 0-1.12-1.12c-.49-.28-1.193-.48-1.76-.48s-1.11.2-1.6.48-.837.634-1.12 1.12l-3.04 5.28L20.8 1.6c-.284-.487-.63-1-1.12-1.28S18.647 0 18.08 0s-1.11.04-1.6.32-.997.793-1.28 1.28L.32 27.2c-.284.486-.32 1.038-.32 1.6 0 .561.037 1.113.32 1.6.283.486.79.84 1.28 1.12s1.033.48 1.6.48h11.2c4.438 0 7.668-1.99 9.92-5.76l5.44-9.44 2.88-4.96 8.8 15.04H29.76zm-12.64-5.12H6.4L18.08 6.72 24 16.8l-3.921 6.836c-1.496 2.446-3.201 3.244-5.839 3.244\"/></svg> </span></button> <button class=\"nuxt-season\" id=\"nuxt-season\" type=\"button\" hidden aria-pressed=\"true\" title=\"Turn off snow\"><svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.3\" aria-hidden=\"true\" viewBox=\"0 0 16 16\"><path d=\"M8 1.6v12.8M2.46 4.8l11.08 6.4m-11.08 0 11.08-6.4M6.1 3.1 8 4.2l1.9-1.1m-3.8 9.8L8 11.8l1.9 1.1\"/></svg> <span class=\"nuxt-sr\">Snow</span></button> <div class=\"nuxt-loader-bar\"></div><script>const loadingRoot=document.documentElement,loadingTitleElement=document.querySelector(\"title\"),loadingAppName=loadingTitleElement?.dataset.appName||\"Nuxt\",loadingSuffix=` | ${loadingAppName}`,updateLoadingTitle=()=>{const e=loadingRoot.style.getPropertyValue(\"--nuxt-progress\").trim(),t=e.endsWith(\"%\")?Number.parseFloat(e):Number.NaN;let i=document.title.replace(/^\\d+% \\| /,\"\");i.endsWith(loadingSuffix)&&(i=i.slice(0,-loadingSuffix.length));const n=Number.isFinite(t)?`${Math.round(Math.min(100,Math.max(0,t)))}% | `:\"\";document.title=`${n}${i}${loadingSuffix}`};\"undefined\"!=typeof MutationObserver&&(new MutationObserver(updateLoadingTitle).observe(loadingRoot,{attributes:!0,attributeFilter:[\"style\"]}),updateLoadingTitle());<\/script><script>if(!window.frameElement)if(void 0===window.fetch)setTimeout(()=>window.location.reload(),200);else{let t=200;const e=async()=>{try{if(!(await window.fetch(window.location.href,{headers:{accept:\"text/html\"}}).then(t=>t.text())).includes(\"__NUXT_LOADING__\"))return window.location.reload()}catch{}setTimeout(e,t),t=Math.min(Math.round(1.5*t),1e3)};e()}<\/script></body></html>";
|
|
599
599
|
};
|
|
600
600
|
//#endregion
|
|
601
601
|
//#region src/config/dev.ts
|
|
@@ -605,6 +605,7 @@ var dev_default = defineResolvers({ devServer: {
|
|
|
605
605
|
host: process.env.NUXT_HOST || process.env.NITRO_HOST || process.env.HOST || void 0,
|
|
606
606
|
url: "http://localhost:3000",
|
|
607
607
|
loadingTemplate: template,
|
|
608
|
+
errorChannel: "/__nuxt_dev__/error",
|
|
608
609
|
cors: { origin: [/^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\])(?::\d+)?$/] }
|
|
609
610
|
} });
|
|
610
611
|
//#endregion
|
|
@@ -896,7 +897,8 @@ var internal_default = defineResolvers({
|
|
|
896
897
|
_nuxtConfigFiles: [],
|
|
897
898
|
appDir: "",
|
|
898
899
|
_installedModules: [],
|
|
899
|
-
_modules: []
|
|
900
|
+
_modules: [],
|
|
901
|
+
_noScriptsPageSources: []
|
|
900
902
|
});
|
|
901
903
|
//#endregion
|
|
902
904
|
//#region src/config/nitro.ts
|
package/dist/internal.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as NuxtServerBuildOutput, Q as NuxtServerBuildInput, X as NuxtServerBuild, Z as NuxtServerBuildCapabilities, et as NuxtServerBuildPreview, tt as NuxtServerBuildRuntime } from "./components-
|
|
1
|
+
import { $ as NuxtServerBuildOutput, Q as NuxtServerBuildInput, X as NuxtServerBuild, Z as NuxtServerBuildCapabilities, et as NuxtServerBuildPreview, tt as NuxtServerBuildRuntime } from "./components-Dw-GUVLx.mjs";
|
|
2
2
|
export type { NuxtServerBuild, NuxtServerBuildCapabilities, NuxtServerBuildInput, NuxtServerBuildOutput, NuxtServerBuildPreview, NuxtServerBuildRuntime };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/schema-nightly",
|
|
3
|
-
"version": "4.6.0-
|
|
3
|
+
"version": "4.6.0-29836601.d5e5f1bd",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"env.d.ts"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vue/shared": "^3.5.
|
|
35
|
+
"@vue/shared": "^3.5.43",
|
|
36
36
|
"defu": "^6.1.7",
|
|
37
37
|
"nostics": "^1.2.0",
|
|
38
38
|
"pathe": "^2.0.3",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@unhead/vue": "^3.4.1",
|
|
47
47
|
"@vitejs/plugin-vue": "^6.0.9",
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^5.1.6",
|
|
49
|
-
"@vue/compiler-core": "3.5.
|
|
50
|
-
"@vue/compiler-sfc": "3.5.
|
|
49
|
+
"@vue/compiler-core": "3.5.43",
|
|
50
|
+
"@vue/compiler-sfc": "3.5.43",
|
|
51
51
|
"@vue/language-core": "3.3.11",
|
|
52
52
|
"chokidar": "^5.0.0",
|
|
53
53
|
"compatx": "^0.2.0",
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
"untyped": "^2.0.0",
|
|
68
68
|
"vite": "^8.3.0",
|
|
69
69
|
"vitest": "5.0.1",
|
|
70
|
-
"vue": "^3.5.
|
|
70
|
+
"vue": "^3.5.43",
|
|
71
71
|
"vue-bundle-renderer": "^2.4.0",
|
|
72
72
|
"vue-loader": "^17.4.2",
|
|
73
73
|
"vue-router": "^5.3.1",
|
|
74
|
-
"webpack": "^5.111.
|
|
74
|
+
"webpack": "^5.111.1",
|
|
75
75
|
"webpack-dev-middleware": "^8.3.0"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|