yansu 0.0.0-beta.1
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.
- package/README.md +1 -0
- package/bin.mjs +18 -0
- package/dist/cli.d.mts +2 -0
- package/dist/cli.mjs +68 -0
- package/dist/dirs.d.mts +4 -0
- package/dist/dirs.mjs +6 -0
- package/dist/index.d.mts +78 -0
- package/dist/index.mjs +121 -0
- package/dist/nitro.json +15 -0
- package/dist/public/_nuxt/BHIHUtPz.js +4 -0
- package/dist/public/_nuxt/CCgOhniq.js +1 -0
- package/dist/public/_nuxt/CR6vfq1R.js +1 -0
- package/dist/public/_nuxt/DmxzK6E8.js +1 -0
- package/dist/public/_nuxt/builds/latest.json +1 -0
- package/dist/public/_nuxt/builds/meta/e9079134-f314-434b-b3a7-092c4a1e187d.json +1 -0
- package/dist/public/_nuxt/entry.DJ3VOi_0.css +1 -0
- package/dist/public/_nuxt/error-404.lC6KBLNm.css +1 -0
- package/dist/public/_nuxt/error-500.NtBcR2wE.css +1 -0
- package/dist/server/chunks/_/error-500.mjs +9 -0
- package/dist/server/chunks/build/_plugin-vue_export-helper-DjsbPc54.mjs +29 -0
- package/dist/server/chunks/build/client.precomputed.mjs +3 -0
- package/dist/server/chunks/build/error-404-Du0ot2hm.mjs +369 -0
- package/dist/server/chunks/build/error-500-Y3RUV6n2.mjs +73 -0
- package/dist/server/chunks/build/server.mjs +727 -0
- package/dist/server/chunks/nitro/nitro.mjs +5176 -0
- package/dist/server/chunks/routes/api/metadata.json.mjs +147 -0
- package/dist/server/chunks/routes/api/platform.json.mjs +20 -0
- package/dist/server/chunks/routes/renderer.mjs +408 -0
- package/dist/server/chunks/virtual/_virtual_spa-template.mjs +3 -0
- package/dist/server/index.mjs +9 -0
- package/dist/server/node_modules/.nitro/@vue/shared@3.5.25/dist/shared.cjs.prod.js +604 -0
- package/dist/server/node_modules/.nitro/@vue/shared@3.5.25/package.json +47 -0
- package/dist/server/node_modules/.nitro/@vue/shared@3.5.26/dist/shared.cjs.prod.js +604 -0
- package/dist/server/node_modules/.nitro/@vue/shared@3.5.26/package.json +47 -0
- package/dist/server/node_modules/@babel/parser/lib/index.js +14662 -0
- package/dist/server/node_modules/@babel/parser/package.json +50 -0
- package/dist/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/dist/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/dist/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/dist/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/dist/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/dist/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/dist/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1853 -0
- package/dist/server/node_modules/@vue/reactivity/package.json +55 -0
- package/dist/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6770 -0
- package/dist/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/dist/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1732 -0
- package/dist/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/dist/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +879 -0
- package/dist/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/dist/server/node_modules/ansis/index.cjs +1 -0
- package/dist/server/node_modules/ansis/index.mjs +1 -0
- package/dist/server/node_modules/ansis/package.json +25 -0
- package/dist/server/node_modules/birpc/dist/index.mjs +173 -0
- package/dist/server/node_modules/birpc/package.json +56 -0
- package/dist/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/dist/server/node_modules/consola/dist/core.mjs +512 -0
- package/dist/server/node_modules/consola/dist/index.mjs +651 -0
- package/dist/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/dist/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/dist/server/node_modules/consola/package.json +136 -0
- package/dist/server/node_modules/devalue/index.js +4 -0
- package/dist/server/node_modules/devalue/package.json +37 -0
- package/dist/server/node_modules/devalue/src/base64.js +110 -0
- package/dist/server/node_modules/devalue/src/constants.js +6 -0
- package/dist/server/node_modules/devalue/src/parse.js +205 -0
- package/dist/server/node_modules/devalue/src/stringify.js +265 -0
- package/dist/server/node_modules/devalue/src/uneval.js +407 -0
- package/dist/server/node_modules/devalue/src/utils.js +118 -0
- package/dist/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/dist/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/dist/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/dist/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/dist/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/dist/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/dist/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/dist/server/node_modules/entities/package.json +113 -0
- package/dist/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/dist/server/node_modules/estree-walker/package.json +37 -0
- package/dist/server/node_modules/get-port-please/dist/index.mjs +430 -0
- package/dist/server/node_modules/get-port-please/package.json +39 -0
- package/dist/server/node_modules/hookable/dist/index.mjs +290 -0
- package/dist/server/node_modules/hookable/package.json +49 -0
- package/dist/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/dist/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/dist/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/dist/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/dist/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/dist/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/dist/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/dist/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/dist/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/dist/server/node_modules/source-map-js/lib/util.js +594 -0
- package/dist/server/node_modules/source-map-js/package.json +71 -0
- package/dist/server/node_modules/source-map-js/source-map.js +8 -0
- package/dist/server/node_modules/structured-clone-es/dist/index.mjs +285 -0
- package/dist/server/node_modules/structured-clone-es/package.json +56 -0
- package/dist/server/node_modules/ufo/dist/index.mjs +638 -0
- package/dist/server/node_modules/ufo/package.json +47 -0
- package/dist/server/node_modules/unhead/dist/index.mjs +9 -0
- package/dist/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/dist/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/dist/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/dist/server/node_modules/unhead/dist/server.mjs +182 -0
- package/dist/server/node_modules/unhead/dist/shared/unhead.B578PsDV.mjs +266 -0
- package/dist/server/node_modules/unhead/dist/shared/unhead.BPM0-cfG.mjs +44 -0
- package/dist/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/dist/server/node_modules/unhead/dist/shared/unhead.BpRRHAhY.mjs +194 -0
- package/dist/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/dist/server/node_modules/unhead/dist/shared/unhead.DH45uomy.mjs +180 -0
- package/dist/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/dist/server/node_modules/unhead/dist/shared/unhead.DZbvapt-.mjs +70 -0
- package/dist/server/node_modules/unhead/dist/shared/unhead.Djo8ep_Y.mjs +166 -0
- package/dist/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/dist/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/dist/server/node_modules/unhead/package.json +105 -0
- package/dist/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/dist/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/dist/server/node_modules/vue/index.js +7 -0
- package/dist/server/node_modules/vue/index.mjs +1 -0
- package/dist/server/node_modules/vue/package.json +112 -0
- package/dist/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/dist/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
- package/dist/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/dist/server/node_modules/ws/lib/buffer-util.js +131 -0
- package/dist/server/node_modules/ws/lib/constants.js +19 -0
- package/dist/server/node_modules/ws/lib/event-target.js +292 -0
- package/dist/server/node_modules/ws/lib/extension.js +203 -0
- package/dist/server/node_modules/ws/lib/limiter.js +55 -0
- package/dist/server/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/dist/server/node_modules/ws/lib/receiver.js +706 -0
- package/dist/server/node_modules/ws/lib/sender.js +602 -0
- package/dist/server/node_modules/ws/lib/stream.js +161 -0
- package/dist/server/node_modules/ws/lib/subprotocol.js +62 -0
- package/dist/server/node_modules/ws/lib/validation.js +152 -0
- package/dist/server/node_modules/ws/lib/websocket-server.js +554 -0
- package/dist/server/node_modules/ws/lib/websocket.js +1393 -0
- package/dist/server/node_modules/ws/package.json +69 -0
- package/dist/server/node_modules/ws/wrapper.mjs +8 -0
- package/dist/server/package.json +32 -0
- package/dist/shared/yansu.DmdNF4qf.mjs +151 -0
- package/package.json +50 -0
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
import { useSSRContext, mergeProps, withCtx, createTextVNode, toDisplayString, defineComponent, shallowRef, h, resolveComponent, computed } from 'vue';
|
|
2
|
+
import { v as parseQuery, l as hasProtocol, n as joinURL, A as withTrailingSlash, B as withoutTrailingSlash } from '../nitro/nitro.mjs';
|
|
3
|
+
import { u as useRouter, a as useNuxtApp, r as resolveRouteObject, b as useRuntimeConfig, n as navigateTo, c as nuxtLinkDefaults } from './server.mjs';
|
|
4
|
+
import { ssrRenderAttrs, ssrInterpolate, ssrRenderComponent } from 'vue/server-renderer';
|
|
5
|
+
import { _ as _export_sfc, u as useHead } from './_plugin-vue_export-helper-DjsbPc54.mjs';
|
|
6
|
+
import 'node:http';
|
|
7
|
+
import 'node:https';
|
|
8
|
+
import 'node:events';
|
|
9
|
+
import 'node:buffer';
|
|
10
|
+
import 'node:fs';
|
|
11
|
+
import 'node:path';
|
|
12
|
+
import 'node:crypto';
|
|
13
|
+
import 'node:url';
|
|
14
|
+
import '../routes/renderer.mjs';
|
|
15
|
+
import 'vue-bundle-renderer/runtime';
|
|
16
|
+
import 'unhead/server';
|
|
17
|
+
import 'devalue';
|
|
18
|
+
import 'unhead/utils';
|
|
19
|
+
|
|
20
|
+
const firstNonUndefined = (...args) => args.find((arg) => arg !== void 0);
|
|
21
|
+
// @__NO_SIDE_EFFECTS__
|
|
22
|
+
function defineNuxtLink(options) {
|
|
23
|
+
const componentName = options.componentName || "NuxtLink";
|
|
24
|
+
function isHashLinkWithoutHashMode(link) {
|
|
25
|
+
return typeof link === "string" && link.startsWith("#");
|
|
26
|
+
}
|
|
27
|
+
function resolveTrailingSlashBehavior(to, resolve, trailingSlash) {
|
|
28
|
+
const effectiveTrailingSlash = trailingSlash ?? options.trailingSlash;
|
|
29
|
+
if (!to || effectiveTrailingSlash !== "append" && effectiveTrailingSlash !== "remove") {
|
|
30
|
+
return to;
|
|
31
|
+
}
|
|
32
|
+
if (typeof to === "string") {
|
|
33
|
+
return applyTrailingSlashBehavior(to, effectiveTrailingSlash);
|
|
34
|
+
}
|
|
35
|
+
const path = "path" in to && to.path !== void 0 ? to.path : resolve(to).path;
|
|
36
|
+
const resolvedPath = {
|
|
37
|
+
...to,
|
|
38
|
+
name: void 0,
|
|
39
|
+
// named routes would otherwise always override trailing slash behavior
|
|
40
|
+
path: applyTrailingSlashBehavior(path, effectiveTrailingSlash)
|
|
41
|
+
};
|
|
42
|
+
return resolvedPath;
|
|
43
|
+
}
|
|
44
|
+
function useNuxtLink(props) {
|
|
45
|
+
const router = useRouter();
|
|
46
|
+
const config = useRuntimeConfig();
|
|
47
|
+
const hasTarget = computed(() => !!props.target && props.target !== "_self");
|
|
48
|
+
const isAbsoluteUrl = computed(() => {
|
|
49
|
+
const path = props.to || props.href || "";
|
|
50
|
+
return typeof path === "string" && hasProtocol(path, { acceptRelative: true });
|
|
51
|
+
});
|
|
52
|
+
const builtinRouterLink = resolveComponent("RouterLink");
|
|
53
|
+
const useBuiltinLink = builtinRouterLink && typeof builtinRouterLink !== "string" ? builtinRouterLink.useLink : void 0;
|
|
54
|
+
const isExternal = computed(() => {
|
|
55
|
+
if (props.external) {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
const path = props.to || props.href || "";
|
|
59
|
+
if (typeof path === "object") {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
return path === "" || isAbsoluteUrl.value;
|
|
63
|
+
});
|
|
64
|
+
const to = computed(() => {
|
|
65
|
+
const path = props.to || props.href || "";
|
|
66
|
+
if (isExternal.value) {
|
|
67
|
+
return path;
|
|
68
|
+
}
|
|
69
|
+
return resolveTrailingSlashBehavior(path, router.resolve, props.trailingSlash);
|
|
70
|
+
});
|
|
71
|
+
const link = isExternal.value ? void 0 : useBuiltinLink?.({ ...props, to });
|
|
72
|
+
const href = computed(() => {
|
|
73
|
+
const effectiveTrailingSlash = props.trailingSlash ?? options.trailingSlash;
|
|
74
|
+
if (!to.value || isAbsoluteUrl.value || isHashLinkWithoutHashMode(to.value)) {
|
|
75
|
+
return to.value;
|
|
76
|
+
}
|
|
77
|
+
if (isExternal.value) {
|
|
78
|
+
const path = typeof to.value === "object" && "path" in to.value ? resolveRouteObject(to.value) : to.value;
|
|
79
|
+
const href2 = typeof path === "object" ? router.resolve(path).href : path;
|
|
80
|
+
return applyTrailingSlashBehavior(href2, effectiveTrailingSlash);
|
|
81
|
+
}
|
|
82
|
+
if (typeof to.value === "object") {
|
|
83
|
+
return router.resolve(to.value)?.href ?? null;
|
|
84
|
+
}
|
|
85
|
+
return applyTrailingSlashBehavior(joinURL(config.app.baseURL, to.value), effectiveTrailingSlash);
|
|
86
|
+
});
|
|
87
|
+
return {
|
|
88
|
+
to,
|
|
89
|
+
hasTarget,
|
|
90
|
+
isAbsoluteUrl,
|
|
91
|
+
isExternal,
|
|
92
|
+
//
|
|
93
|
+
href,
|
|
94
|
+
isActive: link?.isActive ?? computed(() => to.value === router.currentRoute.value.path),
|
|
95
|
+
isExactActive: link?.isExactActive ?? computed(() => to.value === router.currentRoute.value.path),
|
|
96
|
+
route: link?.route ?? computed(() => router.resolve(to.value)),
|
|
97
|
+
async navigate(_e) {
|
|
98
|
+
await navigateTo(href.value, { replace: props.replace, external: isExternal.value || hasTarget.value });
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
return defineComponent({
|
|
103
|
+
name: componentName,
|
|
104
|
+
props: {
|
|
105
|
+
// Routing
|
|
106
|
+
to: {
|
|
107
|
+
type: [String, Object],
|
|
108
|
+
default: void 0,
|
|
109
|
+
required: false
|
|
110
|
+
},
|
|
111
|
+
href: {
|
|
112
|
+
type: [String, Object],
|
|
113
|
+
default: void 0,
|
|
114
|
+
required: false
|
|
115
|
+
},
|
|
116
|
+
// Attributes
|
|
117
|
+
target: {
|
|
118
|
+
type: String,
|
|
119
|
+
default: void 0,
|
|
120
|
+
required: false
|
|
121
|
+
},
|
|
122
|
+
rel: {
|
|
123
|
+
type: String,
|
|
124
|
+
default: void 0,
|
|
125
|
+
required: false
|
|
126
|
+
},
|
|
127
|
+
noRel: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: void 0,
|
|
130
|
+
required: false
|
|
131
|
+
},
|
|
132
|
+
// Prefetching
|
|
133
|
+
prefetch: {
|
|
134
|
+
type: Boolean,
|
|
135
|
+
default: void 0,
|
|
136
|
+
required: false
|
|
137
|
+
},
|
|
138
|
+
prefetchOn: {
|
|
139
|
+
type: [String, Object],
|
|
140
|
+
default: void 0,
|
|
141
|
+
required: false
|
|
142
|
+
},
|
|
143
|
+
noPrefetch: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: void 0,
|
|
146
|
+
required: false
|
|
147
|
+
},
|
|
148
|
+
// Styling
|
|
149
|
+
activeClass: {
|
|
150
|
+
type: String,
|
|
151
|
+
default: void 0,
|
|
152
|
+
required: false
|
|
153
|
+
},
|
|
154
|
+
exactActiveClass: {
|
|
155
|
+
type: String,
|
|
156
|
+
default: void 0,
|
|
157
|
+
required: false
|
|
158
|
+
},
|
|
159
|
+
prefetchedClass: {
|
|
160
|
+
type: String,
|
|
161
|
+
default: void 0,
|
|
162
|
+
required: false
|
|
163
|
+
},
|
|
164
|
+
// Vue Router's `<RouterLink>` additional props
|
|
165
|
+
replace: {
|
|
166
|
+
type: Boolean,
|
|
167
|
+
default: void 0,
|
|
168
|
+
required: false
|
|
169
|
+
},
|
|
170
|
+
ariaCurrentValue: {
|
|
171
|
+
type: String,
|
|
172
|
+
default: void 0,
|
|
173
|
+
required: false
|
|
174
|
+
},
|
|
175
|
+
// Edge cases handling
|
|
176
|
+
external: {
|
|
177
|
+
type: Boolean,
|
|
178
|
+
default: void 0,
|
|
179
|
+
required: false
|
|
180
|
+
},
|
|
181
|
+
// Slot API
|
|
182
|
+
custom: {
|
|
183
|
+
type: Boolean,
|
|
184
|
+
default: void 0,
|
|
185
|
+
required: false
|
|
186
|
+
},
|
|
187
|
+
// Behavior
|
|
188
|
+
trailingSlash: {
|
|
189
|
+
type: String,
|
|
190
|
+
default: void 0,
|
|
191
|
+
required: false
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
useLink: useNuxtLink,
|
|
195
|
+
setup(props, { slots }) {
|
|
196
|
+
const router = useRouter();
|
|
197
|
+
const { to, href, navigate, isExternal, hasTarget, isAbsoluteUrl } = useNuxtLink(props);
|
|
198
|
+
shallowRef(false);
|
|
199
|
+
const el = void 0;
|
|
200
|
+
const elRef = void 0;
|
|
201
|
+
async function prefetch(nuxtApp = useNuxtApp()) {
|
|
202
|
+
{
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return () => {
|
|
207
|
+
if (!isExternal.value && !hasTarget.value && !isHashLinkWithoutHashMode(to.value)) {
|
|
208
|
+
const routerLinkProps = {
|
|
209
|
+
ref: elRef,
|
|
210
|
+
to: to.value,
|
|
211
|
+
activeClass: props.activeClass || options.activeClass,
|
|
212
|
+
exactActiveClass: props.exactActiveClass || options.exactActiveClass,
|
|
213
|
+
replace: props.replace,
|
|
214
|
+
ariaCurrentValue: props.ariaCurrentValue,
|
|
215
|
+
custom: props.custom
|
|
216
|
+
};
|
|
217
|
+
if (!props.custom) {
|
|
218
|
+
routerLinkProps.rel = props.rel || void 0;
|
|
219
|
+
}
|
|
220
|
+
return h(
|
|
221
|
+
resolveComponent("RouterLink"),
|
|
222
|
+
routerLinkProps,
|
|
223
|
+
slots.default
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
const target = props.target || null;
|
|
227
|
+
const rel = firstNonUndefined(
|
|
228
|
+
// converts `""` to `null` to prevent the attribute from being added as empty (`rel=""`)
|
|
229
|
+
props.noRel ? "" : props.rel,
|
|
230
|
+
options.externalRelAttribute,
|
|
231
|
+
/*
|
|
232
|
+
* A fallback rel of `noopener noreferrer` is applied for external links or links that open in a new tab.
|
|
233
|
+
* This solves a reverse tabnapping security flaw in browsers pre-2021 as well as improving privacy.
|
|
234
|
+
*/
|
|
235
|
+
isAbsoluteUrl.value || hasTarget.value ? "noopener noreferrer" : ""
|
|
236
|
+
) || null;
|
|
237
|
+
if (props.custom) {
|
|
238
|
+
if (!slots.default) {
|
|
239
|
+
return null;
|
|
240
|
+
}
|
|
241
|
+
return slots.default({
|
|
242
|
+
href: href.value,
|
|
243
|
+
navigate,
|
|
244
|
+
prefetch,
|
|
245
|
+
get route() {
|
|
246
|
+
if (!href.value) {
|
|
247
|
+
return void 0;
|
|
248
|
+
}
|
|
249
|
+
const url = new URL(href.value, "http://localhost");
|
|
250
|
+
return {
|
|
251
|
+
path: url.pathname,
|
|
252
|
+
fullPath: url.pathname,
|
|
253
|
+
get query() {
|
|
254
|
+
return parseQuery(url.search);
|
|
255
|
+
},
|
|
256
|
+
hash: url.hash,
|
|
257
|
+
params: {},
|
|
258
|
+
name: void 0,
|
|
259
|
+
matched: [],
|
|
260
|
+
redirectedFrom: void 0,
|
|
261
|
+
meta: {},
|
|
262
|
+
href: href.value
|
|
263
|
+
};
|
|
264
|
+
},
|
|
265
|
+
rel,
|
|
266
|
+
target,
|
|
267
|
+
isExternal: isExternal.value || hasTarget.value,
|
|
268
|
+
isActive: false,
|
|
269
|
+
isExactActive: false
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
return h("a", {
|
|
273
|
+
ref: el,
|
|
274
|
+
href: href.value || null,
|
|
275
|
+
// converts `""` to `null` to prevent the attribute from being added as empty (`href=""`)
|
|
276
|
+
rel,
|
|
277
|
+
target,
|
|
278
|
+
onClick: (event) => {
|
|
279
|
+
if (isExternal.value || hasTarget.value) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
event.preventDefault();
|
|
283
|
+
return props.replace ? router.replace(href.value) : router.push(href.value);
|
|
284
|
+
}
|
|
285
|
+
}, slots.default?.());
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
const __nuxt_component_0 = /* @__PURE__ */ defineNuxtLink(nuxtLinkDefaults);
|
|
291
|
+
function applyTrailingSlashBehavior(to, trailingSlash) {
|
|
292
|
+
const normalizeFn = trailingSlash === "append" ? withTrailingSlash : withoutTrailingSlash;
|
|
293
|
+
const hasProtocolDifferentFromHttp = hasProtocol(to) && !to.startsWith("http");
|
|
294
|
+
if (hasProtocolDifferentFromHttp) {
|
|
295
|
+
return to;
|
|
296
|
+
}
|
|
297
|
+
return normalizeFn(to, true);
|
|
298
|
+
}
|
|
299
|
+
const _sfc_main = {
|
|
300
|
+
__name: "error-404",
|
|
301
|
+
__ssrInlineRender: true,
|
|
302
|
+
props: {
|
|
303
|
+
appName: {
|
|
304
|
+
type: String,
|
|
305
|
+
default: "Nuxt"
|
|
306
|
+
},
|
|
307
|
+
statusCode: {
|
|
308
|
+
type: Number,
|
|
309
|
+
default: 404
|
|
310
|
+
},
|
|
311
|
+
statusMessage: {
|
|
312
|
+
type: String,
|
|
313
|
+
default: "Page not found"
|
|
314
|
+
},
|
|
315
|
+
description: {
|
|
316
|
+
type: String,
|
|
317
|
+
default: "Sorry, the page you are looking for could not be found."
|
|
318
|
+
},
|
|
319
|
+
backHome: {
|
|
320
|
+
type: String,
|
|
321
|
+
default: "Go back home"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
setup(__props) {
|
|
325
|
+
const props = __props;
|
|
326
|
+
useHead({
|
|
327
|
+
title: `${props.statusCode} - ${props.statusMessage} | ${props.appName}`,
|
|
328
|
+
script: [
|
|
329
|
+
{
|
|
330
|
+
innerHTML: `!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
style: [
|
|
334
|
+
{
|
|
335
|
+
innerHTML: `*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,: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 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--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: }`
|
|
336
|
+
}
|
|
337
|
+
]
|
|
338
|
+
});
|
|
339
|
+
return (_ctx, _push, _parent, _attrs) => {
|
|
340
|
+
const _component_NuxtLink = __nuxt_component_0;
|
|
341
|
+
_push(`<div${ssrRenderAttrs(mergeProps({ class: "antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide" }, _attrs))} data-v-10cd8cf1><div class="max-w-520px text-center" data-v-10cd8cf1><h1 class="font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]" data-v-10cd8cf1>${ssrInterpolate(__props.statusCode)}</h1><h2 class="font-semibold mb-2 sm:text-3xl text-2xl" data-v-10cd8cf1>${ssrInterpolate(__props.statusMessage)}</h2><p class="mb-4 px-2 text-[#64748B] text-md" data-v-10cd8cf1>${ssrInterpolate(__props.description)}</p><div class="flex items-center justify-center w-full" data-v-10cd8cf1>`);
|
|
342
|
+
_push(ssrRenderComponent(_component_NuxtLink, {
|
|
343
|
+
to: "/",
|
|
344
|
+
class: "font-medium hover:text-[#00DC82] text-sm underline underline-offset-3"
|
|
345
|
+
}, {
|
|
346
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
347
|
+
if (_push2) {
|
|
348
|
+
_push2(`${ssrInterpolate(__props.backHome)}`);
|
|
349
|
+
} else {
|
|
350
|
+
return [
|
|
351
|
+
createTextVNode(toDisplayString(__props.backHome), 1)
|
|
352
|
+
];
|
|
353
|
+
}
|
|
354
|
+
}),
|
|
355
|
+
_: 1
|
|
356
|
+
}, _parent));
|
|
357
|
+
_push(`</div></div></div>`);
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
const _sfc_setup = _sfc_main.setup;
|
|
362
|
+
_sfc_main.setup = (props, ctx) => {
|
|
363
|
+
const ssrContext = useSSRContext();
|
|
364
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../../node_modules/.pnpm/nuxt@4.2.2_@parcel+watcher@2.5.1_@types+node@25.0.3_@vue+compiler-sfc@3.5.26_cac@6.7.14_4ec6669f18d845abd6992fd7e7988545/node_modules/nuxt/dist/app/components/error-404.vue");
|
|
365
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
366
|
+
};
|
|
367
|
+
const error404 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10cd8cf1"]]);
|
|
368
|
+
|
|
369
|
+
export { error404 as default };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { mergeProps, useSSRContext } from 'vue';
|
|
2
|
+
import { ssrRenderAttrs, ssrInterpolate } from 'vue/server-renderer';
|
|
3
|
+
import { _ as _export_sfc, u as useHead } from './_plugin-vue_export-helper-DjsbPc54.mjs';
|
|
4
|
+
import './server.mjs';
|
|
5
|
+
import '../nitro/nitro.mjs';
|
|
6
|
+
import 'node:http';
|
|
7
|
+
import 'node:https';
|
|
8
|
+
import 'node:events';
|
|
9
|
+
import 'node:buffer';
|
|
10
|
+
import 'node:fs';
|
|
11
|
+
import 'node:path';
|
|
12
|
+
import 'node:crypto';
|
|
13
|
+
import 'node:url';
|
|
14
|
+
import '../routes/renderer.mjs';
|
|
15
|
+
import 'vue-bundle-renderer/runtime';
|
|
16
|
+
import 'unhead/server';
|
|
17
|
+
import 'devalue';
|
|
18
|
+
import 'unhead/utils';
|
|
19
|
+
|
|
20
|
+
const _sfc_main = {
|
|
21
|
+
__name: "error-500",
|
|
22
|
+
__ssrInlineRender: true,
|
|
23
|
+
props: {
|
|
24
|
+
appName: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "Nuxt"
|
|
27
|
+
},
|
|
28
|
+
statusCode: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: 500
|
|
31
|
+
},
|
|
32
|
+
statusMessage: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "Internal server error"
|
|
35
|
+
},
|
|
36
|
+
description: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "This page is temporarily unavailable."
|
|
39
|
+
},
|
|
40
|
+
refresh: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "Refresh this page"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
setup(__props) {
|
|
46
|
+
const props = __props;
|
|
47
|
+
useHead({
|
|
48
|
+
title: `${props.statusCode} - ${props.statusMessage} | ${props.appName}`,
|
|
49
|
+
script: [
|
|
50
|
+
{
|
|
51
|
+
innerHTML: `!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
style: [
|
|
55
|
+
{
|
|
56
|
+
innerHTML: `*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,: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 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--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: }`
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
});
|
|
60
|
+
return (_ctx, _push, _parent, _attrs) => {
|
|
61
|
+
_push(`<div${ssrRenderAttrs(mergeProps({ class: "antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide" }, _attrs))} data-v-93bd907f><div class="max-w-520px text-center" data-v-93bd907f><h1 class="font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]" data-v-93bd907f>${ssrInterpolate(__props.statusCode)}</h1><h2 class="font-semibold mb-2 sm:text-3xl text-2xl" data-v-93bd907f>${ssrInterpolate(__props.statusMessage)}</h2><p class="mb-4 px-2 text-[#64748B] text-md" data-v-93bd907f>${ssrInterpolate(__props.description)}</p></div></div>`);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const _sfc_setup = _sfc_main.setup;
|
|
66
|
+
_sfc_main.setup = (props, ctx) => {
|
|
67
|
+
const ssrContext = useSSRContext();
|
|
68
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../../node_modules/.pnpm/nuxt@4.2.2_@parcel+watcher@2.5.1_@types+node@25.0.3_@vue+compiler-sfc@3.5.26_cac@6.7.14_4ec6669f18d845abd6992fd7e7988545/node_modules/nuxt/dist/app/components/error-500.vue");
|
|
69
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
70
|
+
};
|
|
71
|
+
const error500 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-93bd907f"]]);
|
|
72
|
+
|
|
73
|
+
export { error500 as default };
|