nuxt-ignis 0.3.0 → 0.3.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/.data/content/contents.sqlite +0 -0
- package/.env +43 -0
- package/.nuxt/components.d.ts +132 -0
- package/.nuxt/content/components.ts +51 -0
- package/.nuxt/content/database.compressed.mjs +1 -0
- package/.nuxt/content/manifest.ts +33 -0
- package/.nuxt/content/sql_dump +6 -0
- package/.nuxt/content/types.d.ts +13 -0
- package/.nuxt/dist/server/client.manifest.mjs +18 -1
- package/.nuxt/eslint.config.mjs +1 -1
- package/.nuxt/i18n.options.mjs +165 -0
- package/.nuxt/imports.d.ts +16 -0
- package/.nuxt/manifest/latest.json +1 -1
- package/.nuxt/manifest/meta/dev.json +1 -1
- package/.nuxt/mdc-configs.mjs +8 -0
- package/.nuxt/mdc-highlighter.mjs +213 -0
- package/.nuxt/mdc-image-component.mjs +1 -0
- package/.nuxt/mdc-imports.mjs +12 -0
- package/.nuxt/module/@nuxtjs-sitemap.d.ts +28 -0
- package/.nuxt/module/nuxt-robots.d.ts +35 -0
- package/.nuxt/module/nuxt-seo-utils.assets.d.ts +25 -0
- package/.nuxt/module/nuxt-seo-utils.d.ts +22 -0
- package/.nuxt/module/nuxt-site-config.d.ts +43 -0
- package/.nuxt/nitro.json +3 -3
- package/.nuxt/nuxt-i18n-logger.mjs +1 -0
- package/.nuxt/nuxt-icon-client-bundle.mjs +1 -0
- package/.nuxt/nuxt-icon-server-bundle.mjs +15 -0
- package/.nuxt/nuxt.d.ts +20 -5
- package/.nuxt/tailwind/postcss.mjs +15 -0
- package/.nuxt/tsconfig.json +151 -0
- package/.nuxt/tsconfig.server.json +140 -0
- package/.nuxt/types/build.d.ts +2 -0
- package/.nuxt/types/i18n-plugin.d.ts +104 -0
- package/.nuxt/types/imports.d.ts +70 -0
- package/.nuxt/types/neon.d.ts +35 -0
- package/.nuxt/types/nitro-imports.d.ts +263 -1
- package/.nuxt/types/nitro-routes.d.ts +61 -0
- package/.nuxt/types/plugins.d.ts +21 -2
- package/.nuxt/types/schema.d.ts +924 -2
- package/.nuxt/types/ui.d.ts +35 -0
- package/.nuxt/ui/accordion.ts +20 -0
- package/.nuxt/ui/alert.ts +264 -0
- package/.nuxt/ui/avatar-group.ts +52 -0
- package/.nuxt/ui/avatar.ts +54 -0
- package/.nuxt/ui/badge.ts +263 -0
- package/.nuxt/ui/breadcrumb.ts +45 -0
- package/.nuxt/ui/button-group.ts +16 -0
- package/.nuxt/ui/button.ts +378 -0
- package/.nuxt/ui/calendar.ts +103 -0
- package/.nuxt/ui/card.ts +34 -0
- package/.nuxt/ui/carousel.ts +38 -0
- package/.nuxt/ui/checkbox-group.ts +204 -0
- package/.nuxt/ui/checkbox.ts +236 -0
- package/.nuxt/ui/chip.ts +96 -0
- package/.nuxt/ui/collapsible.ts +6 -0
- package/.nuxt/ui/color-picker.ts +47 -0
- package/.nuxt/ui/command-palette.ts +50 -0
- package/.nuxt/ui/container.ts +3 -0
- package/.nuxt/ui/context-menu.ts +216 -0
- package/.nuxt/ui/drawer.ts +126 -0
- package/.nuxt/ui/dropdown-menu.ts +217 -0
- package/.nuxt/ui/form-field.ts +48 -0
- package/.nuxt/ui/form.ts +3 -0
- package/.nuxt/ui/index.ts +50 -0
- package/.nuxt/ui/input-menu.ts +436 -0
- package/.nuxt/ui/input-number.ts +245 -0
- package/.nuxt/ui/input.ts +289 -0
- package/.nuxt/ui/kbd.ts +31 -0
- package/.nuxt/ui/link.ts +22 -0
- package/.nuxt/ui/modal.ts +29 -0
- package/.nuxt/ui/navigation-menu.ts +501 -0
- package/.nuxt/ui/pagination.ts +13 -0
- package/.nuxt/ui/pin-input.ts +171 -0
- package/.nuxt/ui/popover.ts +6 -0
- package/.nuxt/ui/progress.ts +297 -0
- package/.nuxt/ui/radio-group.ts +350 -0
- package/.nuxt/ui/select-menu.ts +346 -0
- package/.nuxt/ui/select.ts +341 -0
- package/.nuxt/ui/separator.ts +172 -0
- package/.nuxt/ui/skeleton.ts +3 -0
- package/.nuxt/ui/slideover.ts +71 -0
- package/.nuxt/ui/slider.ts +171 -0
- package/.nuxt/ui/stepper.ts +202 -0
- package/.nuxt/ui/switch.ts +131 -0
- package/.nuxt/ui/table.ts +147 -0
- package/.nuxt/ui/tabs.ts +256 -0
- package/.nuxt/ui/textarea.ts +294 -0
- package/.nuxt/ui/toast.ts +81 -0
- package/.nuxt/ui/toaster.ts +91 -0
- package/.nuxt/ui/tooltip.ts +9 -0
- package/.nuxt/ui/tree.ts +154 -0
- package/.nuxt/ui-image-component.ts +1 -0
- package/.nuxt/ui.css +143 -0
- package/features.ts +30 -22
- package/package.json +2 -1
- package/tailwind.config.ts +1 -1
- package/.nuxt/dev/index.mjs +0 -2948
- package/.nuxt/dev/index.mjs.map +0 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export const localeCodes = [
|
|
6
|
+
"en"
|
|
7
|
+
]
|
|
8
|
+
|
|
9
|
+
export const localeLoaders = {
|
|
10
|
+
en: []
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const vueI18nConfigs = [
|
|
14
|
+
() => import("#nuxt-i18n/b87d93de" /* webpackChunkName: "config_i18n_46config_46ts_b87d93de" */)
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
export const nuxtI18nOptions = {
|
|
18
|
+
restructureDir: "i18n",
|
|
19
|
+
experimental: {
|
|
20
|
+
localeDetector: "",
|
|
21
|
+
switchLocalePathLinkSSR: false,
|
|
22
|
+
autoImportTranslationFunctions: false,
|
|
23
|
+
typedPages: true,
|
|
24
|
+
typedOptionsAndMessages: false,
|
|
25
|
+
generatedLocaleFilePathFormat: "absolute",
|
|
26
|
+
alternateLinkCanonicalQueries: false,
|
|
27
|
+
hmr: true
|
|
28
|
+
},
|
|
29
|
+
bundle: {
|
|
30
|
+
compositionOnly: true,
|
|
31
|
+
runtimeOnly: false,
|
|
32
|
+
fullInstall: true,
|
|
33
|
+
dropMessageCompiler: false,
|
|
34
|
+
optimizeTranslationDirective: false
|
|
35
|
+
},
|
|
36
|
+
compilation: {
|
|
37
|
+
strictMessage: true,
|
|
38
|
+
escapeHtml: false
|
|
39
|
+
},
|
|
40
|
+
customBlocks: {
|
|
41
|
+
defaultSFCLang: "json",
|
|
42
|
+
globalSFCScope: false
|
|
43
|
+
},
|
|
44
|
+
locales: [
|
|
45
|
+
"en"
|
|
46
|
+
],
|
|
47
|
+
defaultLocale: "",
|
|
48
|
+
defaultDirection: "ltr",
|
|
49
|
+
routesNameSeparator: "___",
|
|
50
|
+
trailingSlash: false,
|
|
51
|
+
defaultLocaleRouteNameSuffix: "default",
|
|
52
|
+
strategy: "no_prefix",
|
|
53
|
+
lazy: false,
|
|
54
|
+
langDir: "locales",
|
|
55
|
+
rootRedirect: undefined,
|
|
56
|
+
detectBrowserLanguage: {
|
|
57
|
+
alwaysRedirect: false,
|
|
58
|
+
cookieCrossOrigin: false,
|
|
59
|
+
cookieDomain: null,
|
|
60
|
+
cookieKey: "i18n_redirected",
|
|
61
|
+
cookieSecure: false,
|
|
62
|
+
fallbackLocale: "",
|
|
63
|
+
redirectOn: "root",
|
|
64
|
+
useCookie: true
|
|
65
|
+
},
|
|
66
|
+
differentDomains: false,
|
|
67
|
+
baseUrl: "",
|
|
68
|
+
customRoutes: "page",
|
|
69
|
+
pages: {},
|
|
70
|
+
skipSettingLocaleOnNavigate: false,
|
|
71
|
+
types: "composition",
|
|
72
|
+
debug: false,
|
|
73
|
+
parallelPlugin: false,
|
|
74
|
+
multiDomainLocales: false,
|
|
75
|
+
i18nModules: []
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const normalizedLocales = [
|
|
79
|
+
{
|
|
80
|
+
language: "en",
|
|
81
|
+
code: "en"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
export const NUXT_I18N_MODULE_ID = "@nuxtjs/i18n"
|
|
86
|
+
export const parallelPlugin = false
|
|
87
|
+
export const isSSG = false
|
|
88
|
+
export const hasPages = true
|
|
89
|
+
|
|
90
|
+
export const DEFAULT_COOKIE_KEY = "i18n_redirected"
|
|
91
|
+
export const DEFAULT_DYNAMIC_PARAMS_KEY = "nuxtI18nInternal"
|
|
92
|
+
export const SWITCH_LOCALE_PATH_LINK_IDENTIFIER = "nuxt-i18n-slp"
|
|
93
|
+
/** client **/
|
|
94
|
+
if(import.meta.hot) {
|
|
95
|
+
|
|
96
|
+
function deepEqual(a, b, ignoreKeys = []) {
|
|
97
|
+
// Same reference?
|
|
98
|
+
if (a === b) return true
|
|
99
|
+
|
|
100
|
+
// Check if either is null or not an object
|
|
101
|
+
if (a == null || b == null || typeof a !== 'object' || typeof b !== 'object') {
|
|
102
|
+
return false
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Get top-level keys, excluding ignoreKeys
|
|
106
|
+
const keysA = Object.keys(a).filter(k => !ignoreKeys.includes(k))
|
|
107
|
+
const keysB = Object.keys(b).filter(k => !ignoreKeys.includes(k))
|
|
108
|
+
|
|
109
|
+
// Must have the same number of keys (after ignoring)
|
|
110
|
+
if (keysA.length !== keysB.length) {
|
|
111
|
+
return false
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Check each property
|
|
115
|
+
for (const key of keysA) {
|
|
116
|
+
if (!keysB.includes(key)) {
|
|
117
|
+
return false
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const valA = a[key]
|
|
121
|
+
const valB = b[key]
|
|
122
|
+
|
|
123
|
+
// Compare functions stringified
|
|
124
|
+
if (typeof valA === 'function' && typeof valB === 'function') {
|
|
125
|
+
if (valA.toString() !== valB.toString()) {
|
|
126
|
+
return false
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
// If nested, do a normal recursive check (no ignoring at deeper levels)
|
|
130
|
+
else if (typeof valA === 'object' && typeof valB === 'object') {
|
|
131
|
+
if (!deepEqual(valA, valB)) {
|
|
132
|
+
return false
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
// Compare primitive values
|
|
136
|
+
else if (valA !== valB) {
|
|
137
|
+
return false
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return true
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
async function loadCfg(config) {
|
|
147
|
+
const nuxt = useNuxtApp()
|
|
148
|
+
const { default: resolver } = await config()
|
|
149
|
+
return typeof resolver === 'function' ? await nuxt.runWithContext(() => resolver()) : resolver
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
import.meta.hot.accept("../i18n/i18n.config.ts", async mod => {
|
|
156
|
+
const [oldData, newData] = await Promise.all([loadCfg(vueI18nConfigs[0]), loadCfg(() => Promise.resolve(mod))]);
|
|
157
|
+
vueI18nConfigs[0] = () => Promise.resolve(mod)
|
|
158
|
+
if(deepEqual(oldData, newData, ['messages', 'numberFormats', 'datetimeFormats'])) {
|
|
159
|
+
return await useNuxtApp()._nuxtI18nDev.resetI18nProperties()
|
|
160
|
+
}
|
|
161
|
+
import.meta.hot.send('i18n:options-complex-invalidation', {})
|
|
162
|
+
})
|
|
163
|
+
|
|
164
|
+
}
|
|
165
|
+
/** client-end **/
|
package/.nuxt/imports.d.ts
CHANGED
|
@@ -33,6 +33,10 @@ export { scanI18NSources, scanI18Names } from '../utils/i18n-sources';
|
|
|
33
33
|
export { UIOptions, DBOptions } from '../utils/ignis-types';
|
|
34
34
|
export { pslo } from '../utils/pslo-utils';
|
|
35
35
|
export { useNonce } from '../node_modules/.pnpm/nuxt-security@2.2.0_magicast@0.3.5_rollup@4.41.0/node_modules/nuxt-security/dist/runtime/composables/nonce';
|
|
36
|
+
export { updateSiteConfig } from '../node_modules/.pnpm/nuxt-site-config@3.1.9_magi_fc9ec4489b75c78db1aed1033cea2b3a/node_modules/nuxt-site-config/dist/runtime/app/composables/updateSiteConfig';
|
|
37
|
+
export { useNitroOrigin } from '../node_modules/.pnpm/nuxt-site-config@3.1.9_magi_fc9ec4489b75c78db1aed1033cea2b3a/node_modules/nuxt-site-config/dist/runtime/app/composables/useNitroOrigin';
|
|
38
|
+
export { useSiteConfig } from '../node_modules/.pnpm/nuxt-site-config@3.1.9_magi_fc9ec4489b75c78db1aed1033cea2b3a/node_modules/nuxt-site-config/dist/runtime/app/composables/useSiteConfig';
|
|
39
|
+
export { createSitePathResolver, withSiteTrailingSlash, withSiteUrl } from '../node_modules/.pnpm/nuxt-site-config@3.1.9_magi_fc9ec4489b75c78db1aed1033cea2b3a/node_modules/nuxt-site-config/dist/runtime/app/composables/utils';
|
|
36
40
|
export { useImage } from '../node_modules/.pnpm/@nuxt+image@1.10.0_@netlify_b4a362fadc10aa100425ec080018ae5f/node_modules/@nuxt/image/dist/runtime/composables';
|
|
37
41
|
export { defineStore, acceptHMRUpdate, usePinia, storeToRefs } from '../node_modules/.pnpm/@pinia+nuxt@0.11.0_magicast_a67d88851b9ae3b0828837d8cf9ec91f/node_modules/@pinia/nuxt/dist/runtime/composables';
|
|
38
42
|
export { useScript } from '../node_modules/.pnpm/@nuxt+scripts@0.11.7_@netli_ebfcefabcbe3d3a1075abfbf8a0e2f1a/node_modules/@nuxt/scripts/dist/runtime/composables/useScript';
|
|
@@ -62,5 +66,17 @@ export { useScriptNpm } from '../node_modules/.pnpm/@nuxt+scripts@0.11.7_@netli_
|
|
|
62
66
|
export { useScriptGoogleTagManager } from '../node_modules/.pnpm/@nuxt+scripts@0.11.7_@netli_ebfcefabcbe3d3a1075abfbf8a0e2f1a/node_modules/@nuxt/scripts/dist/runtime/registry/google-tag-manager';
|
|
63
67
|
export { useScriptGoogleAnalytics } from '../node_modules/.pnpm/@nuxt+scripts@0.11.7_@netli_ebfcefabcbe3d3a1075abfbf8a0e2f1a/node_modules/@nuxt/scripts/dist/runtime/registry/google-analytics';
|
|
64
68
|
export { useScriptUmamiAnalytics } from '../node_modules/.pnpm/@nuxt+scripts@0.11.7_@netli_ebfcefabcbe3d3a1075abfbf8a0e2f1a/node_modules/@nuxt/scripts/dist/runtime/registry/umami-analytics';
|
|
69
|
+
export { useNeon } from '../node_modules/.pnpm/nuxt-neon@0.6.0_magicast@0.3.5/node_modules/nuxt-neon/dist/runtime/composables/useNeon';
|
|
70
|
+
export { isNeonSuccess, isNeonError, formatNeonError } from '../node_modules/.pnpm/nuxt-neon@0.6.0_magicast@0.3.5/node_modules/nuxt-neon/dist/runtime/utils/neonErrors';
|
|
71
|
+
export { useI18n } from '../node_modules/.pnpm/vue-i18n@10.0.7_vue@3.5.14_typescript@5.8.3_/node_modules/vue-i18n/dist/vue-i18n';
|
|
72
|
+
export { useRouteBaseName, useLocalePath, useLocaleRoute, useSwitchLocalePath, useLocaleHead, useBrowserLocale, useCookieLocale, useSetI18nParams, defineI18nRoute, defineI18nLocale, defineI18nConfig } from '../node_modules/.pnpm/@nuxtjs+i18n@9.5.4_@vue+com_da7feb0b3ae47aac624194dfc2786910/node_modules/@nuxtjs/i18n/dist/runtime/composables/index';
|
|
73
|
+
export { useRobotsRule } from '../node_modules/.pnpm/@nuxtjs+robots@5.2.10_magic_09575d7e403dce16d6423e011b5a6500/node_modules/@nuxtjs/robots/dist/runtime/app/composables/useRobotsRule';
|
|
74
|
+
export { defineOgImage, defineOgImageComponent, defineOgImageScreenshot } from '../node_modules/.pnpm/nuxt-og-image@5.1.3_@unhead_016a02da852510886427e1ecf476d0e9/node_modules/nuxt-og-image/dist/runtime/app/composables/mock';
|
|
75
|
+
export { useBreadcrumbItems } from '../node_modules/.pnpm/nuxt-seo-utils@7.0.10_magic_e43b4f83c972427e42e84b0d774d1b19/node_modules/nuxt-seo-utils/dist/runtime/app/composables/useBreadcrumbItems';
|
|
76
|
+
export { queryCollection, queryCollectionSearchSections, queryCollectionNavigation, queryCollectionItemSurroundings } from '../node_modules/.pnpm/@nuxt+content@3.5.1_magicast@0.3.5_typescript@5.8.3/node_modules/@nuxt/content/dist/runtime/app';
|
|
77
|
+
export { flatUnwrap as unwrapSlot } from '../node_modules/.pnpm/@nuxtjs+mdc@0.17.0_magicast@0.3.5/node_modules/@nuxtjs/mdc/dist/runtime/utils/node';
|
|
78
|
+
export { parseMarkdown } from '../node_modules/.pnpm/@nuxtjs+mdc@0.17.0_magicast@0.3.5/node_modules/@nuxtjs/mdc/dist/runtime/parser';
|
|
79
|
+
export { stringifyMarkdown } from '../node_modules/.pnpm/@nuxtjs+mdc@0.17.0_magicast@0.3.5/node_modules/@nuxtjs/mdc/dist/runtime/stringify';
|
|
80
|
+
export { useUserSession } from '../node_modules/.pnpm/nuxt-auth-utils@0.5.20_magicast@0.3.5/node_modules/nuxt-auth-utils/dist/runtime/app/composables/session';
|
|
65
81
|
export { useNuxtDevTools } from '../node_modules/.pnpm/@nuxt+devtools@2.4.1_vite@6_1dedbaa3bcdbced3d429534f9b1d1d28/node_modules/@nuxt/devtools/dist/runtime/use-nuxt-devtools';
|
|
66
82
|
export { definePageMeta } from '../node_modules/.pnpm/nuxt@3.17.4_@netlify+blobs@_a40ac8eff18b588ba9c9a272f06b10aa/node_modules/nuxt/dist/pages/runtime/composables';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"dev","timestamp":
|
|
1
|
+
{"id":"dev","timestamp":1747855435846}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"dev","timestamp":
|
|
1
|
+
{"id":"dev","timestamp":1747855435846,"matcher":{"static":{"/__nuxt_content/content/sql_dump":{"prerender":true}},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { getMdcConfigs } from '#mdc-configs'
|
|
2
|
+
import { createOnigurumaEngine } from 'shiki/engine/oniguruma'
|
|
3
|
+
import { createJavaScriptRegexEngine } from "shiki/engine/javascript";
|
|
4
|
+
export function createShikiHighlighter({
|
|
5
|
+
langs = [],
|
|
6
|
+
themes = [],
|
|
7
|
+
bundledLangs = {},
|
|
8
|
+
bundledThemes = {},
|
|
9
|
+
getMdcConfigs,
|
|
10
|
+
options: shikiOptions,
|
|
11
|
+
engine
|
|
12
|
+
} = {}) {
|
|
13
|
+
let shiki;
|
|
14
|
+
let configs;
|
|
15
|
+
async function _getShiki() {
|
|
16
|
+
const { createHighlighterCore, addClassToHast, isSpecialLang, isSpecialTheme } = await import("shiki/core");
|
|
17
|
+
const { transformerNotationDiff, transformerNotationErrorLevel, transformerNotationFocus, transformerNotationHighlight } = await import("@shikijs/transformers");
|
|
18
|
+
const shiki2 = await createHighlighterCore({
|
|
19
|
+
langs,
|
|
20
|
+
themes,
|
|
21
|
+
engine: engine || createJavaScriptRegexEngine()
|
|
22
|
+
});
|
|
23
|
+
for await (const config of await getConfigs()) {
|
|
24
|
+
await config.shiki?.setup?.(shiki2);
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
shiki: shiki2,
|
|
28
|
+
addClassToHast,
|
|
29
|
+
isSpecialLang,
|
|
30
|
+
isSpecialTheme,
|
|
31
|
+
transformers: [
|
|
32
|
+
transformerNotationDiff(),
|
|
33
|
+
transformerNotationErrorLevel(),
|
|
34
|
+
transformerNotationFocus(),
|
|
35
|
+
transformerNotationHighlight()
|
|
36
|
+
]
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
async function getShiki() {
|
|
40
|
+
if (!shiki) {
|
|
41
|
+
shiki = _getShiki();
|
|
42
|
+
}
|
|
43
|
+
return shiki;
|
|
44
|
+
}
|
|
45
|
+
async function getConfigs() {
|
|
46
|
+
if (!configs) {
|
|
47
|
+
configs = Promise.resolve(getMdcConfigs?.() || []);
|
|
48
|
+
}
|
|
49
|
+
return configs;
|
|
50
|
+
}
|
|
51
|
+
const highlighter = async (code, lang, theme, options = {}) => {
|
|
52
|
+
const {
|
|
53
|
+
shiki: shiki2,
|
|
54
|
+
addClassToHast,
|
|
55
|
+
isSpecialLang,
|
|
56
|
+
isSpecialTheme,
|
|
57
|
+
transformers: baseTransformers
|
|
58
|
+
} = await getShiki();
|
|
59
|
+
const codeToHastOptions = {
|
|
60
|
+
defaultColor: false,
|
|
61
|
+
meta: {
|
|
62
|
+
__raw: options.meta
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
if (lang === "ts-type" || lang === "typescript-type") {
|
|
66
|
+
lang = "typescript";
|
|
67
|
+
codeToHastOptions.grammarContextCode = "let a:";
|
|
68
|
+
} else if (lang === "vue-html" || lang === "vue-template") {
|
|
69
|
+
lang = "vue";
|
|
70
|
+
codeToHastOptions.grammarContextCode = "<template>";
|
|
71
|
+
}
|
|
72
|
+
const themesObject = { ...typeof theme === "string" ? { default: theme } : theme || {} };
|
|
73
|
+
const loadedThemes = shiki2.getLoadedThemes();
|
|
74
|
+
const loadedLanguages = shiki2.getLoadedLanguages();
|
|
75
|
+
if (typeof lang === "string" && !loadedLanguages.includes(lang) && !isSpecialLang(lang)) {
|
|
76
|
+
if (bundledLangs[lang]) {
|
|
77
|
+
await shiki2.loadLanguage(bundledLangs[lang]);
|
|
78
|
+
} else {
|
|
79
|
+
if (process.dev) {
|
|
80
|
+
console.warn(`[@nuxtjs/mdc] Language "${lang}" is not loaded to the Shiki highlighter, fallback to plain text. Add the language to "mdc.highlight.langs" to fix this.`);
|
|
81
|
+
}
|
|
82
|
+
lang = "text";
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
for (const [color, theme2] of Object.entries(themesObject)) {
|
|
86
|
+
if (typeof theme2 === "string" && !loadedThemes.includes(theme2) && !isSpecialTheme(theme2)) {
|
|
87
|
+
if (bundledThemes[theme2]) {
|
|
88
|
+
await shiki2.loadTheme(bundledThemes[theme2]);
|
|
89
|
+
} else {
|
|
90
|
+
if (process.dev) {
|
|
91
|
+
console.warn(`[@nuxtjs/mdc] Theme "${theme2}" is not loaded to the Shiki highlighter. Add the theme to "mdc.highlight.themes" to fix this.`);
|
|
92
|
+
}
|
|
93
|
+
themesObject[color] = "none";
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
const transformersMap = /* @__PURE__ */ new Map();
|
|
98
|
+
for (const transformer of baseTransformers) {
|
|
99
|
+
transformersMap.set(transformer.name || `transformer:${Math.random()}-${transformer.constructor.name}`, transformer);
|
|
100
|
+
}
|
|
101
|
+
for (const config of await getConfigs()) {
|
|
102
|
+
const newTransformers = typeof config.shiki?.transformers === "function" ? await config.shiki?.transformers(code, lang, theme, options) : config.shiki?.transformers || [];
|
|
103
|
+
for (const transformer of newTransformers) {
|
|
104
|
+
transformersMap.set(transformer.name || `transformer:${Math.random()}-${transformer.constructor.name}`, transformer);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
const root = shiki2.codeToHast(code.trimEnd(), {
|
|
108
|
+
lang,
|
|
109
|
+
...codeToHastOptions,
|
|
110
|
+
themes: themesObject,
|
|
111
|
+
transformers: [
|
|
112
|
+
...transformersMap.values(),
|
|
113
|
+
{
|
|
114
|
+
name: "mdc:highlight",
|
|
115
|
+
line(node, line) {
|
|
116
|
+
if (options.highlights?.includes(line))
|
|
117
|
+
addClassToHast(node, "highlight");
|
|
118
|
+
node.properties.line = line;
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: "mdc:newline",
|
|
123
|
+
line(node) {
|
|
124
|
+
if (code?.includes("\n")) {
|
|
125
|
+
if (node.children.length === 0 || node.children.length === 1 && node.children[0].type === "element" && node.children[0].children.length === 1 && node.children[0].children[0].type === "text" && node.children[0].children[0].value === "") {
|
|
126
|
+
node.children = [{
|
|
127
|
+
type: "element",
|
|
128
|
+
tagName: "span",
|
|
129
|
+
properties: {
|
|
130
|
+
emptyLinePlaceholder: true
|
|
131
|
+
},
|
|
132
|
+
children: [{ type: "text", value: "\n" }]
|
|
133
|
+
}];
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
const last = node.children.at(-1);
|
|
137
|
+
if (last?.type === "element" && last.tagName === "span") {
|
|
138
|
+
const text = last.children.at(-1);
|
|
139
|
+
if (text?.type === "text")
|
|
140
|
+
text.value += "\n";
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
});
|
|
147
|
+
const preEl = root.children[0];
|
|
148
|
+
const codeEl = preEl.children[0];
|
|
149
|
+
const wrapperStyle = shikiOptions?.wrapperStyle;
|
|
150
|
+
preEl.properties.style = wrapperStyle ? typeof wrapperStyle === "string" ? wrapperStyle : preEl.properties.style : "";
|
|
151
|
+
const styles = [];
|
|
152
|
+
Object.keys(themesObject).forEach((color) => {
|
|
153
|
+
const colorScheme = color !== "default" ? `.${color}` : "";
|
|
154
|
+
styles.push(
|
|
155
|
+
wrapperStyle ? `${colorScheme} .shiki,` : "",
|
|
156
|
+
`html .${color} .shiki span {`,
|
|
157
|
+
`color: var(--shiki-${color});`,
|
|
158
|
+
`background: var(--shiki-${color}-bg);`,
|
|
159
|
+
`font-style: var(--shiki-${color}-font-style);`,
|
|
160
|
+
`font-weight: var(--shiki-${color}-font-weight);`,
|
|
161
|
+
`text-decoration: var(--shiki-${color}-text-decoration);`,
|
|
162
|
+
"}"
|
|
163
|
+
);
|
|
164
|
+
styles.push(
|
|
165
|
+
`html${colorScheme} .shiki span {`,
|
|
166
|
+
`color: var(--shiki-${color});`,
|
|
167
|
+
`background: var(--shiki-${color}-bg);`,
|
|
168
|
+
`font-style: var(--shiki-${color}-font-style);`,
|
|
169
|
+
`font-weight: var(--shiki-${color}-font-weight);`,
|
|
170
|
+
`text-decoration: var(--shiki-${color}-text-decoration);`,
|
|
171
|
+
"}"
|
|
172
|
+
);
|
|
173
|
+
});
|
|
174
|
+
return {
|
|
175
|
+
tree: codeEl.children,
|
|
176
|
+
className: Array.isArray(preEl.properties.class) ? preEl.properties.class.join(" ") : preEl.properties.class,
|
|
177
|
+
inlineStyle: preEl.properties.style,
|
|
178
|
+
style: styles.join("")
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
return highlighter;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
const bundledLangs = {
|
|
185
|
+
"javascript": () => import('@shikijs/langs/javascript').then(r => r.default || r),
|
|
186
|
+
"js": () => import('@shikijs/langs/javascript').then(r => r.default || r),
|
|
187
|
+
"jsx": () => import('@shikijs/langs/jsx').then(r => r.default || r),
|
|
188
|
+
"json": () => import('@shikijs/langs/json').then(r => r.default || r),
|
|
189
|
+
"typescript": () => import('@shikijs/langs/typescript').then(r => r.default || r),
|
|
190
|
+
"ts": () => import('@shikijs/langs/typescript').then(r => r.default || r),
|
|
191
|
+
"tsx": () => import('@shikijs/langs/tsx').then(r => r.default || r),
|
|
192
|
+
"vue": () => import('@shikijs/langs/vue').then(r => r.default || r),
|
|
193
|
+
"css": () => import('@shikijs/langs/css').then(r => r.default || r),
|
|
194
|
+
"html": () => import('@shikijs/langs/html').then(r => r.default || r),
|
|
195
|
+
"shellscript": () => import('@shikijs/langs/shellscript').then(r => r.default || r),
|
|
196
|
+
"bash": () => import('@shikijs/langs/shellscript').then(r => r.default || r),
|
|
197
|
+
"sh": () => import('@shikijs/langs/shellscript').then(r => r.default || r),
|
|
198
|
+
"shell": () => import('@shikijs/langs/shellscript').then(r => r.default || r),
|
|
199
|
+
"zsh": () => import('@shikijs/langs/shellscript').then(r => r.default || r),
|
|
200
|
+
"markdown": () => import('@shikijs/langs/markdown').then(r => r.default || r),
|
|
201
|
+
"md": () => import('@shikijs/langs/markdown').then(r => r.default || r),
|
|
202
|
+
"mdc": () => import('@shikijs/langs/mdc').then(r => r.default || r),
|
|
203
|
+
"yaml": () => import('@shikijs/langs/yaml').then(r => r.default || r),
|
|
204
|
+
"yml": () => import('@shikijs/langs/yaml').then(r => r.default || r),
|
|
205
|
+
}
|
|
206
|
+
const bundledThemes = {
|
|
207
|
+
"github-light": () => import('@shikijs/themes/github-light').then(r => r.default || r),
|
|
208
|
+
"github-dark": () => import('@shikijs/themes/github-dark').then(r => r.default || r),
|
|
209
|
+
}
|
|
210
|
+
const options = {"theme":{"default":"github-light","dark":"github-dark"}}
|
|
211
|
+
const engine = createOnigurumaEngine(() => import('shiki/wasm'))
|
|
212
|
+
const highlighter = createShikiHighlighter({ bundledLangs, bundledThemes, options, getMdcConfigs, engine })
|
|
213
|
+
export default highlighter
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "C:/Git/nuxt-ignis/core/node_modules/.pnpm/@nuxt+image@1.10.0_@netlify_b4a362fadc10aa100425ec080018ae5f/node_modules/@nuxt/image/dist/runtime/components/NuxtImg.vue"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import _RemarkEmoji from 'remark-emoji'
|
|
2
|
+
import _Highlight from 'C:/Git/nuxt-ignis/core/node_modules/.pnpm/@nuxtjs+mdc@0.17.0_magicast@0.3.5/node_modules/@nuxtjs/mdc/dist/runtime/highlighter/rehype-nuxt.js'
|
|
3
|
+
|
|
4
|
+
export const remarkPlugins = {
|
|
5
|
+
'remark-emoji': { instance: _RemarkEmoji },
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const rehypePlugins = {
|
|
9
|
+
'highlight': { instance: _Highlight, options: {} },
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const highlight = {"theme":{"default":"github-light","dark":"github-dark"}}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Generated by @nuxtjs/sitemap
|
|
2
|
+
|
|
3
|
+
declare module 'nitropack' {
|
|
4
|
+
interface PrerenderRoute {
|
|
5
|
+
_sitemap?: import('../../node_modules/.pnpm/@nuxtjs+sitemap@7.2.10_h3@1_13ec74af8cc1f89248cc881ec9689707/node_modules/@nuxtjs/sitemap/runtime/types').SitemapUrl
|
|
6
|
+
}
|
|
7
|
+
interface NitroRouteRules {
|
|
8
|
+
index?: boolean
|
|
9
|
+
sitemap?: import('../../node_modules/.pnpm/@nuxtjs+sitemap@7.2.10_h3@1_13ec74af8cc1f89248cc881ec9689707/node_modules/@nuxtjs/sitemap/runtime/types').SitemapItemDefaults
|
|
10
|
+
}
|
|
11
|
+
interface NitroRouteConfig {
|
|
12
|
+
index?: boolean
|
|
13
|
+
sitemap?: import('../../node_modules/.pnpm/@nuxtjs+sitemap@7.2.10_h3@1_13ec74af8cc1f89248cc881ec9689707/node_modules/@nuxtjs/sitemap/runtime/types').SitemapItemDefaults
|
|
14
|
+
}
|
|
15
|
+
interface NitroRuntimeHooks {
|
|
16
|
+
'sitemap:index-resolved': (ctx: import('../../node_modules/.pnpm/@nuxtjs+sitemap@7.2.10_h3@1_13ec74af8cc1f89248cc881ec9689707/node_modules/@nuxtjs/sitemap/runtime/types').SitemapIndexRenderCtx) => void | Promise<void>
|
|
17
|
+
'sitemap:input': (ctx: import('../../node_modules/.pnpm/@nuxtjs+sitemap@7.2.10_h3@1_13ec74af8cc1f89248cc881ec9689707/node_modules/@nuxtjs/sitemap/runtime/types').SitemapInputCtx) => void | Promise<void>
|
|
18
|
+
'sitemap:resolved': (ctx: import('../../node_modules/.pnpm/@nuxtjs+sitemap@7.2.10_h3@1_13ec74af8cc1f89248cc881ec9689707/node_modules/@nuxtjs/sitemap/runtime/types').SitemapRenderCtx) => void | Promise<void>
|
|
19
|
+
'sitemap:output': (ctx: import('../../node_modules/.pnpm/@nuxtjs+sitemap@7.2.10_h3@1_13ec74af8cc1f89248cc881ec9689707/node_modules/@nuxtjs/sitemap/runtime/types').SitemapOutputHookCtx) => void | Promise<void>
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
declare module 'vue-router' {
|
|
23
|
+
interface RouteMeta {
|
|
24
|
+
sitemap?: import('../../node_modules/.pnpm/@nuxtjs+sitemap@7.2.10_h3@1_13ec74af8cc1f89248cc881ec9689707/node_modules/@nuxtjs/sitemap/runtime/types').SitemapItemDefaults
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export {}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Generated by nuxt-robots
|
|
2
|
+
|
|
3
|
+
declare module 'nitropack' {
|
|
4
|
+
interface NitroApp {
|
|
5
|
+
_robots: {
|
|
6
|
+
ctx: import('../../node_modules/.pnpm/@nuxtjs+robots@5.2.10_magic_09575d7e403dce16d6423e011b5a6500/node_modules/@nuxtjs/robots/dist/runtime/types').HookRobotsConfigContext
|
|
7
|
+
nuxtContentUrls?: Set<string>
|
|
8
|
+
},
|
|
9
|
+
_robotsRuleMactcher: (url: string) => string
|
|
10
|
+
}
|
|
11
|
+
interface NitroRouteRules {
|
|
12
|
+
robots?: boolean | string | {
|
|
13
|
+
indexable: boolean
|
|
14
|
+
rule: string
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
interface NitroRouteConfig {
|
|
18
|
+
robots?: boolean | string | {
|
|
19
|
+
indexable: boolean
|
|
20
|
+
rule: string
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
interface NitroRuntimeHooks {
|
|
24
|
+
'robots:config': (ctx: import('../../node_modules/.pnpm/@nuxtjs+robots@5.2.10_magic_09575d7e403dce16d6423e011b5a6500/node_modules/@nuxtjs/robots/dist/runtime/types').HookRobotsConfigContext) => void | Promise<void>
|
|
25
|
+
'robots:robots-txt': (ctx: import('../../node_modules/.pnpm/@nuxtjs+robots@5.2.10_magic_09575d7e403dce16d6423e011b5a6500/node_modules/@nuxtjs/robots/dist/runtime/types').HookRobotsTxtContext) => void | Promise<void>
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
declare module 'h3' {
|
|
29
|
+
import type { RobotsContext } from '#robots/types'
|
|
30
|
+
interface H3EventContext {
|
|
31
|
+
robots: RobotsContext
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export {}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated by nuxt-seo-utils.assets
|
|
2
|
+
|
|
3
|
+
declare module '#app' {
|
|
4
|
+
import { HeadEntry, HeadTag } from '@unhead/vue/types'
|
|
5
|
+
|
|
6
|
+
interface RuntimeNuxtHooks {
|
|
7
|
+
'head:tags': (tag: HeadTag[]) => Promise<void> | void
|
|
8
|
+
'head:entries': (entries: HeadEntry[]) => Promise<void> | void
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
declare module '@unhead/schema' {
|
|
12
|
+
|
|
13
|
+
type PublicFiles = '/favicon.ico' | '/nuxt-ignis.png' | '/unsplash.jpg' | (string & Record<never, never>)
|
|
14
|
+
type JsFiles = (string & Record<never, never>)
|
|
15
|
+
|
|
16
|
+
interface SchemaAugmentations {
|
|
17
|
+
link: import('@unhead/schema').UserTagConfigWithoutInnerContent & {
|
|
18
|
+
href: PublicFiles
|
|
19
|
+
}
|
|
20
|
+
script: import('@unhead/schema').TagUserProperties & {
|
|
21
|
+
src: JsFiles
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Generated by nuxt-seo-utils
|
|
2
|
+
|
|
3
|
+
declare module 'nitropack' {
|
|
4
|
+
interface NitroRouteRules {
|
|
5
|
+
seoMeta?: import('../../node_modules/.pnpm/nuxt-seo-utils@7.0.10_magic_e43b4f83c972427e42e84b0d774d1b19/node_modules/nuxt-seo-utils/dist/runtime/types').MetaFlatSerializable
|
|
6
|
+
head?: import('../../node_modules/.pnpm/nuxt-seo-utils@7.0.10_magic_e43b4f83c972427e42e84b0d774d1b19/node_modules/nuxt-seo-utils/dist/runtime/types').Head
|
|
7
|
+
}
|
|
8
|
+
interface NitroRouteConfig {
|
|
9
|
+
seoMeta?: import('../../node_modules/.pnpm/nuxt-seo-utils@7.0.10_magic_e43b4f83c972427e42e84b0d774d1b19/node_modules/nuxt-seo-utils/dist/runtime/types').MetaFlatSerializable
|
|
10
|
+
head?: import('../../node_modules/.pnpm/nuxt-seo-utils@7.0.10_magic_e43b4f83c972427e42e84b0d774d1b19/node_modules/nuxt-seo-utils/dist/runtime/types').Head
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare module '@nuxt/schema' {
|
|
15
|
+
interface AppHeadMetaObject { seoMeta?: import('../../node_modules/.pnpm/nuxt-seo-utils@7.0.10_magic_e43b4f83c972427e42e84b0d774d1b19/node_modules/nuxt-seo-utils/dist/runtime/types').MetaFlatSerializable }
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare module 'nuxt/schema' {
|
|
19
|
+
interface AppHeadMetaObject { seoMeta?: import('../../node_modules/.pnpm/nuxt-seo-utils@7.0.10_magic_e43b4f83c972427e42e84b0d774d1b19/node_modules/nuxt-seo-utils/dist/runtime/types').MetaFlatSerializable }
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Generated by nuxt-site-config
|
|
2
|
+
|
|
3
|
+
declare module 'nitropack' {
|
|
4
|
+
interface NitroRouteRules {
|
|
5
|
+
site?: import('../../node_modules/.pnpm/nuxt-site-config@3.1.9_magi_fc9ec4489b75c78db1aed1033cea2b3a/node_modules/nuxt-site-config/dist/runtime/types').SiteConfigInput
|
|
6
|
+
}
|
|
7
|
+
interface NitroRouteConfig {
|
|
8
|
+
site?: import('../../node_modules/.pnpm/nuxt-site-config@3.1.9_magi_fc9ec4489b75c78db1aed1033cea2b3a/node_modules/nuxt-site-config/dist/runtime/types').SiteConfig
|
|
9
|
+
}
|
|
10
|
+
interface NitroRuntimeHooks {
|
|
11
|
+
'site-config:init': (ctx: import('../../node_modules/.pnpm/nuxt-site-config@3.1.9_magi_fc9ec4489b75c78db1aed1033cea2b3a/node_modules/nuxt-site-config/dist/runtime/types').HookSiteConfigInitContext) => void | Promise<void>
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare module 'h3' {
|
|
16
|
+
interface H3EventContext {
|
|
17
|
+
siteConfig: import('../../node_modules/.pnpm/nuxt-site-config@3.1.9_magi_fc9ec4489b75c78db1aed1033cea2b3a/node_modules/nuxt-site-config/dist/runtime/types').SiteConfigStack
|
|
18
|
+
siteConfigNitroOrigin: string
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare module '@nuxt/schema' {
|
|
23
|
+
interface Nuxt {
|
|
24
|
+
_siteConfig?: import('../../node_modules/.pnpm/nuxt-site-config@3.1.9_magi_fc9ec4489b75c78db1aed1033cea2b3a/node_modules/nuxt-site-config/dist/runtime/types').SiteConfigStack
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
declare module 'nuxt/app' {
|
|
28
|
+
interface NuxtApp {
|
|
29
|
+
$nuxtSiteConfig: import('../../node_modules/.pnpm/nuxt-site-config@3.1.9_magi_fc9ec4489b75c78db1aed1033cea2b3a/node_modules/nuxt-site-config/dist/runtime/types').SiteConfigStack
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
declare module '#app' {
|
|
33
|
+
interface NuxtApp {
|
|
34
|
+
$nuxtSiteConfig: import('../../node_modules/.pnpm/nuxt-site-config@3.1.9_magi_fc9ec4489b75c78db1aed1033cea2b3a/node_modules/nuxt-site-config/dist/runtime/types').SiteConfigStack
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
declare global {
|
|
38
|
+
interface Window {
|
|
39
|
+
__NUXT_SITE_CONFIG__: import('../../node_modules/.pnpm/nuxt-site-config@3.1.9_magi_fc9ec4489b75c78db1aed1033cea2b3a/node_modules/nuxt-site-config/dist/runtime/types').SiteConfigResolved
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export {}
|
package/.nuxt/nitro.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"date": "2025-05-
|
|
2
|
+
"date": "2025-05-21T19:23:32.743Z",
|
|
3
3
|
"preset": "nitro-dev",
|
|
4
4
|
"framework": {
|
|
5
5
|
"name": "nuxt",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"nitro": "2.11.12"
|
|
10
10
|
},
|
|
11
11
|
"dev": {
|
|
12
|
-
"pid":
|
|
12
|
+
"pid": 28328,
|
|
13
13
|
"workerAddress": {
|
|
14
|
-
"socketPath": "\\\\.\\pipe\\nitro-worker-
|
|
14
|
+
"socketPath": "\\\\.\\pipe\\nitro-worker-28328-2-1-5894.sock"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function createLogger() {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function init() {}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'
|
|
2
|
+
const require = createRequire(import.meta.url)
|
|
3
|
+
function createRemoteCollection(fetchEndpoint) {
|
|
4
|
+
let _cache
|
|
5
|
+
return async () => {
|
|
6
|
+
if (_cache)
|
|
7
|
+
return _cache
|
|
8
|
+
const res = await fetch(fetchEndpoint).then(r => r.json())
|
|
9
|
+
_cache = res
|
|
10
|
+
return res
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const collections = {
|
|
15
|
+
}
|