@elgap/edukaai 0.1.0
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/.output/nitro.json +15 -0
- package/.output/public/_nuxt/BHDzAs85.js +1 -0
- package/.output/public/_nuxt/BJzbfdL_.js +1 -0
- package/.output/public/_nuxt/BKGLlKXk.js +6 -0
- package/.output/public/_nuxt/BLuXzJk3.js +1 -0
- package/.output/public/_nuxt/BNOzzLI3.js +1 -0
- package/.output/public/_nuxt/BO5GMwXh.js +1 -0
- package/.output/public/_nuxt/BQRbsFGy.js +1 -0
- package/.output/public/_nuxt/Be4MVdOg.js +1 -0
- package/.output/public/_nuxt/Bu4d3Z1T.js +1 -0
- package/.output/public/_nuxt/BwpBBNv4.js +1 -0
- package/.output/public/_nuxt/C1Og9-6n.js +97 -0
- package/.output/public/_nuxt/C3CjAhtj.js +1 -0
- package/.output/public/_nuxt/C6E3Ty3z.js +1 -0
- package/.output/public/_nuxt/COct4B42.js +1 -0
- package/.output/public/_nuxt/CQ6g2dtj.js +1 -0
- package/.output/public/_nuxt/CURSW5TV.js +246 -0
- package/.output/public/_nuxt/CW57JW4s.js +1 -0
- package/.output/public/_nuxt/Cg2fM61o.js +18 -0
- package/.output/public/_nuxt/CgGOeWta.js +1 -0
- package/.output/public/_nuxt/CoyYbT7u.js +1 -0
- package/.output/public/_nuxt/D11MHbGc.js +133 -0
- package/.output/public/_nuxt/D24dz0S8.js +1 -0
- package/.output/public/_nuxt/D3EFPr8x.js +1 -0
- package/.output/public/_nuxt/Dvt4ZHil.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/ab87ba0e-6d0d-4466-8b12-00d44f8fb9d3.json +1 -0
- package/.output/public/_nuxt/default.C1K1-g4D.css +1 -0
- package/.output/public/_nuxt/entry.CH8k-Mga.css +1 -0
- package/.output/public/_nuxt/error-404.C-Ezrlz-.css +1 -0
- package/.output/public/_nuxt/error-500.DBWf9FGj.css +1 -0
- package/.output/public/_nuxt/first-training.wFDD65zm.css +1 -0
- package/.output/public/_nuxt/import.cUKYdCrq.css +1 -0
- package/.output/public/_nuxt/index.D-2VHyHA.css +1 -0
- package/.output/public/_nuxt/index.D4J_vHmL.css +1 -0
- package/.output/public/_nuxt/mPJeLIz7.js +1 -0
- package/.output/server/chunks/_/error-500.mjs +19 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/build/ExampleCard-styles.BUOJhEg0.mjs +8 -0
- package/.output/server/chunks/build/ExampleCard-styles.BUOJhEg0.mjs.map +1 -0
- package/.output/server/chunks/build/ExampleForm-Bcpl0CfL.mjs +238 -0
- package/.output/server/chunks/build/ExampleForm-Bcpl0CfL.mjs.map +1 -0
- package/.output/server/chunks/build/ImportPreview-styles.CFmMl5Ok.mjs +8 -0
- package/.output/server/chunks/build/ImportPreview-styles.CFmMl5Ok.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-BUSGcL-H.mjs +113 -0
- package/.output/server/chunks/build/_id_-BUSGcL-H.mjs.map +1 -0
- package/.output/server/chunks/build/axolotl-C-EXGgM8.mjs +112 -0
- package/.output/server/chunks/build/axolotl-C-EXGgM8.mjs.map +1 -0
- package/.output/server/chunks/build/best-practices-DsadorHb.mjs +38 -0
- package/.output/server/chunks/build/best-practices-DsadorHb.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/build/default-DPkqqHOE.mjs +354 -0
- package/.output/server/chunks/build/default-DPkqqHOE.mjs.map +1 -0
- package/.output/server/chunks/build/default-styles.DsqVVS7k.mjs +8 -0
- package/.output/server/chunks/build/default-styles.DsqVVS7k.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-K4UfZNck.mjs +97 -0
- package/.output/server/chunks/build/error-404-K4UfZNck.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DuDrf-v0.mjs +8 -0
- package/.output/server/chunks/build/error-404-styles.DuDrf-v0.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-CA7TEPNg.mjs +79 -0
- package/.output/server/chunks/build/error-500-CA7TEPNg.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.8IYEHzz6.mjs +8 -0
- package/.output/server/chunks/build/error-500-styles.8IYEHzz6.mjs.map +1 -0
- package/.output/server/chunks/build/examples-BHK8MDrs.mjs +134 -0
- package/.output/server/chunks/build/examples-BHK8MDrs.mjs.map +1 -0
- package/.output/server/chunks/build/export-BzxFqqfP.mjs +233 -0
- package/.output/server/chunks/build/export-BzxFqqfP.mjs.map +1 -0
- package/.output/server/chunks/build/faq-DKch73dS.mjs +112 -0
- package/.output/server/chunks/build/faq-DKch73dS.mjs.map +1 -0
- package/.output/server/chunks/build/field-guide-qbukT8F0.mjs +38 -0
- package/.output/server/chunks/build/field-guide-qbukT8F0.mjs.map +1 -0
- package/.output/server/chunks/build/first-training-BbEOBcEW.mjs +343 -0
- package/.output/server/chunks/build/first-training-BbEOBcEW.mjs.map +1 -0
- package/.output/server/chunks/build/first-training-styles.BzOa_KRD.mjs +8 -0
- package/.output/server/chunks/build/first-training-styles.BzOa_KRD.mjs.map +1 -0
- package/.output/server/chunks/build/glossary-CxSGCJoH.mjs +397 -0
- package/.output/server/chunks/build/glossary-CxSGCJoH.mjs.map +1 -0
- package/.output/server/chunks/build/huggingface-TSmyUzZU.mjs +128 -0
- package/.output/server/chunks/build/huggingface-TSmyUzZU.mjs.map +1 -0
- package/.output/server/chunks/build/import-C0kYhRv9.mjs +247 -0
- package/.output/server/chunks/build/import-C0kYhRv9.mjs.map +1 -0
- package/.output/server/chunks/build/index-C1ntBEWd.mjs +235 -0
- package/.output/server/chunks/build/index-C1ntBEWd.mjs.map +1 -0
- package/.output/server/chunks/build/index-D3CxihcX.mjs +320 -0
- package/.output/server/chunks/build/index-D3CxihcX.mjs.map +1 -0
- package/.output/server/chunks/build/index-DgKa1cy0.mjs +360 -0
- package/.output/server/chunks/build/index-DgKa1cy0.mjs.map +1 -0
- package/.output/server/chunks/build/index-cG54gaKX.mjs +513 -0
- package/.output/server/chunks/build/index-cG54gaKX.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles.BX2SZiiS.mjs +8 -0
- package/.output/server/chunks/build/index-styles.BX2SZiiS.mjs.map +1 -0
- package/.output/server/chunks/build/llm-training-DIqc0eiM.mjs +91 -0
- package/.output/server/chunks/build/llm-training-DIqc0eiM.mjs.map +1 -0
- package/.output/server/chunks/build/new-b3338aLF.mjs +92 -0
- package/.output/server/chunks/build/new-b3338aLF.mjs.map +1 -0
- package/.output/server/chunks/build/nuxt-link-Ceyd90PQ.mjs +290 -0
- package/.output/server/chunks/build/nuxt-link-Ceyd90PQ.mjs.map +1 -0
- package/.output/server/chunks/build/sample-datasets-CVLWMQUA.mjs +45 -0
- package/.output/server/chunks/build/sample-datasets-CVLWMQUA.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +1979 -0
- package/.output/server/chunks/build/server.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +20 -0
- package/.output/server/chunks/build/styles.mjs.map +1 -0
- package/.output/server/chunks/build/test-router-BYM6Cpst.mjs +105 -0
- package/.output/server/chunks/build/test-router-BYM6Cpst.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +5800 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +481 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +12 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/api.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/app.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/component.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/context.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/hooks.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/index.js +22 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/util.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/const.js +5 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/env.js +17 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/index.js +45 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/plugin.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/proxy.js +111 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/time.js +28 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/package.json +37 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@7.7.9/dist/index.cjs +42 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@7.7.9/package.json +32 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.cjs +299 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
- package/.output/server/node_modules/.nitro/hookable@6.0.1/dist/index.mjs +266 -0
- package/.output/server/node_modules/.nitro/hookable@6.0.1/package.json +52 -0
- package/.output/server/node_modules/.nitro/perfect-debounce@1.0.0/dist/index.cjs +59 -0
- package/.output/server/node_modules/.nitro/perfect-debounce@1.0.0/package.json +44 -0
- package/.output/server/node_modules/.nitro/perfect-debounce@2.1.0/dist/index.mjs +89 -0
- package/.output/server/node_modules/.nitro/perfect-debounce@2.1.0/package.json +41 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14582 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +292 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +702 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +76 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +40 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +52 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +133 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +20 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +15 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +18 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +18 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +31 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +80 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +102 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +29 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +60 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +204 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +35 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +134 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +167 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +81 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +94 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +78 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +68 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +47 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +105 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +38 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +94 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +64 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +18 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +58 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +34 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +126 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +21 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +38 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +93 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +48 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +24 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +44 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +125 -0
- package/.output/server/node_modules/@iconify/utils/lib/index.js +53 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +32 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +63 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +10 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +115 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +32 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +15 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +10 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +69 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +55 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +8 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +9 -0
- package/.output/server/node_modules/@iconify/utils/package.json +118 -0
- package/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +1893 -0
- package/.output/server/node_modules/@iconify/vue/package.json +64 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-kit/dist/index.cjs +6850 -0
- package/.output/server/node_modules/@vue/devtools-kit/package.json +44 -0
- package/.output/server/node_modules/@vue/devtools-shared/dist/index.cjs +378 -0
- package/.output/server/node_modules/@vue/devtools-shared/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1870 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6810 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1750 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/birpc/dist/index.cjs +296 -0
- package/.output/server/node_modules/birpc/package.json +57 -0
- package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/.output/server/node_modules/consola/package.json +136 -0
- package/.output/server/node_modules/devalue/index.js +4 -0
- package/.output/server/node_modules/devalue/package.json +37 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +7 -0
- package/.output/server/node_modules/devalue/src/parse.js +246 -0
- package/.output/server/node_modules/devalue/src/stringify.js +350 -0
- package/.output/server/node_modules/devalue/src/uneval.js +490 -0
- package/.output/server/node_modules/devalue/src/utils.js +148 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/pinia/dist/pinia.prod.cjs +719 -0
- package/.output/server/node_modules/pinia/package.json +94 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/package.json +89 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BPM0-cfG.mjs +44 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.D_nrZZPH.mjs +182 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.ckV6dpEQ.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.fVVqDC1O.mjs +203 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +105 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
- package/.output/server/node_modules/vue-router/package.json +153 -0
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/package.json +37 -0
- package/LICENSE +21 -0
- package/README.md +132 -0
- package/bin/cli.js +75 -0
- package/package.json +71 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nitro.mjs","sources":["../../../../node_modules/destr/dist/index.mjs","../../../../node_modules/ufo/dist/index.mjs","../../../../node_modules/radix3/dist/index.mjs","../../../../node_modules/defu/dist/defu.mjs","../../../../node_modules/node-mock-http/dist/index.mjs","../../../../node_modules/h3/dist/index.mjs","../../../../node_modules/nitropack/node_modules/hookable/dist/index.mjs","../../../../node_modules/node-fetch-native/dist/native.mjs","../../../../node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../node_modules/ofetch/dist/node.mjs","../../../../node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../node_modules/unstorage/dist/index.mjs","../../../../node_modules/unstorage/drivers/utils/index.mjs","../../../../node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../node_modules/unstorage/drivers/fs-lite.mjs","../../../../node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs","../../../../node_modules/ohash/dist/crypto/node/index.mjs","../../../../node_modules/ohash/dist/index.mjs","../../../../node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../node_modules/klona/dist/index.mjs","../../../../node_modules/scule/dist/index.mjs","../../../../node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../node_modules/unctx/dist/index.mjs","../../../../node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../node_modules/@nuxt/nitro-server/dist/runtime/utils/error.mjs","../../../../node_modules/@nuxt/nitro-server/dist/runtime/handlers/error.mjs","../../../../node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../node_modules/@nuxtjs/color-mode/dist/runtime/nitro-plugin.js","../../../../node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs","../../../../node_modules/nitropack/dist/runtime/internal/static.mjs","../../../../node_modules/nitropack/dist/runtime/internal/renderer.mjs","../../../../node_modules/@nuxt/nitro-server/dist/runtime/utils/paths.mjs","../../../../node_modules/.cache/nuxt/.nuxt/nuxt-icon-server-bundle.mjs","../../../../node_modules/@nuxt/icon/dist/runtime/server/api.js","../../../../node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["getQuery","createRouter","f","h","c","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","$fetch","normalizeKey","defineDriver","DRIVER_NAME","dirname","fsPromises","resolve","fsp","serialize","hash","_inlineAppConfig","createRadixRouter","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43]}
|
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import { createRenderer, getRequestDependencies, getPreloadLinks, getPrefetchLinks } from 'vue-bundle-renderer/runtime';
|
|
2
|
+
import { b as buildAssetsURL, u as useRuntimeConfig, g as getResponseStatusText, a as getResponseStatus, d as defineRenderHandler, p as publicAssetsURL, c as getQuery, e as createError, f as destr, h as getRouteRules, j as joinURL, i as useNitroApp } from '../nitro/nitro.mjs';
|
|
3
|
+
import { renderToString } from 'vue/server-renderer';
|
|
4
|
+
import { createHead as createHead$1, propsToString, renderSSRHead } from 'unhead/server';
|
|
5
|
+
import { stringify, uneval } from 'devalue';
|
|
6
|
+
import { walkResolver } from 'unhead/utils';
|
|
7
|
+
import { isRef, toValue, hasInjectionContext, inject, ref, watchEffect, getCurrentInstance, onBeforeUnmount, onDeactivated, onActivated } from 'vue';
|
|
8
|
+
|
|
9
|
+
const VueResolver = (_, value) => {
|
|
10
|
+
return isRef(value) ? toValue(value) : value;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const headSymbol = "usehead";
|
|
14
|
+
// @__NO_SIDE_EFFECTS__
|
|
15
|
+
function vueInstall(head) {
|
|
16
|
+
const plugin = {
|
|
17
|
+
install(app) {
|
|
18
|
+
app.config.globalProperties.$unhead = head;
|
|
19
|
+
app.config.globalProperties.$head = head;
|
|
20
|
+
app.provide(headSymbol, head);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return plugin.install;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// @__NO_SIDE_EFFECTS__
|
|
27
|
+
function injectHead() {
|
|
28
|
+
if (hasInjectionContext()) {
|
|
29
|
+
const instance = inject(headSymbol);
|
|
30
|
+
if (instance) {
|
|
31
|
+
return instance;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
|
|
35
|
+
}
|
|
36
|
+
function useHead(input, options = {}) {
|
|
37
|
+
const head = options.head || /* @__PURE__ */ injectHead();
|
|
38
|
+
return head.ssr ? head.push(input || {}, options) : clientUseHead(head, input, options);
|
|
39
|
+
}
|
|
40
|
+
function clientUseHead(head, input, options = {}) {
|
|
41
|
+
const deactivated = ref(false);
|
|
42
|
+
let entry;
|
|
43
|
+
watchEffect(() => {
|
|
44
|
+
const i = deactivated.value ? {} : walkResolver(input, VueResolver);
|
|
45
|
+
if (entry) {
|
|
46
|
+
entry.patch(i);
|
|
47
|
+
} else {
|
|
48
|
+
entry = head.push(i, options);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
const vm = getCurrentInstance();
|
|
52
|
+
if (vm) {
|
|
53
|
+
onBeforeUnmount(() => {
|
|
54
|
+
entry.dispose();
|
|
55
|
+
});
|
|
56
|
+
onDeactivated(() => {
|
|
57
|
+
deactivated.value = true;
|
|
58
|
+
});
|
|
59
|
+
onActivated(() => {
|
|
60
|
+
deactivated.value = false;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return entry;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// @__NO_SIDE_EFFECTS__
|
|
67
|
+
function createHead(options = {}) {
|
|
68
|
+
const head = createHead$1({
|
|
69
|
+
...options,
|
|
70
|
+
propResolvers: [VueResolver]
|
|
71
|
+
});
|
|
72
|
+
head.install = vueInstall(head);
|
|
73
|
+
return head;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const NUXT_RUNTIME_PAYLOAD_EXTRACTION = false;
|
|
77
|
+
|
|
78
|
+
const appHead = {"meta":[{"name":"viewport","content":"width=device-width, initial-scale=1"},{"charset":"utf-8"}],"link":[],"style":[],"script":[],"noscript":[]};
|
|
79
|
+
|
|
80
|
+
const appRootTag = "div";
|
|
81
|
+
|
|
82
|
+
const appRootAttrs = {"id":"__nuxt","class":"isolate"};
|
|
83
|
+
|
|
84
|
+
const appTeleportTag = "div";
|
|
85
|
+
|
|
86
|
+
const appTeleportAttrs = {"id":"teleports"};
|
|
87
|
+
|
|
88
|
+
const appSpaLoaderTag = "div";
|
|
89
|
+
|
|
90
|
+
const appSpaLoaderAttrs = {"id":"__nuxt-loader"};
|
|
91
|
+
|
|
92
|
+
const appId = "nuxt-app";
|
|
93
|
+
|
|
94
|
+
const APP_ROOT_OPEN_TAG = `<${appRootTag}${propsToString(appRootAttrs)}>`;
|
|
95
|
+
const APP_ROOT_CLOSE_TAG = `</${appRootTag}>`;
|
|
96
|
+
// @ts-expect-error file will be produced after app build
|
|
97
|
+
const getServerEntry = () => import('../build/server.mjs').then((r) => r.default || r);
|
|
98
|
+
// @ts-expect-error file will be produced after app build
|
|
99
|
+
const getPrecomputedDependencies = () => import('../build/client.precomputed.mjs').then((r) => r.default || r).then((r) => typeof r === "function" ? r() : r);
|
|
100
|
+
// -- SSR Renderer --
|
|
101
|
+
const getSSRRenderer = lazyCachedFunction(async () => {
|
|
102
|
+
// Load server bundle
|
|
103
|
+
const createSSRApp = await getServerEntry();
|
|
104
|
+
if (!createSSRApp) {
|
|
105
|
+
throw new Error("Server bundle is not available");
|
|
106
|
+
}
|
|
107
|
+
// Load precomputed dependencies
|
|
108
|
+
const precomputed = await getPrecomputedDependencies();
|
|
109
|
+
// Create renderer
|
|
110
|
+
const renderer = createRenderer(createSSRApp, {
|
|
111
|
+
precomputed,
|
|
112
|
+
manifest: undefined,
|
|
113
|
+
renderToString: renderToString$1,
|
|
114
|
+
buildAssetsURL
|
|
115
|
+
});
|
|
116
|
+
async function renderToString$1(input, context) {
|
|
117
|
+
const html = await renderToString(input, context);
|
|
118
|
+
return APP_ROOT_OPEN_TAG + html + APP_ROOT_CLOSE_TAG;
|
|
119
|
+
}
|
|
120
|
+
return renderer;
|
|
121
|
+
});
|
|
122
|
+
// -- SPA Renderer --
|
|
123
|
+
const getSPARenderer = lazyCachedFunction(async () => {
|
|
124
|
+
const precomputed = await getPrecomputedDependencies();
|
|
125
|
+
// @ts-expect-error virtual file
|
|
126
|
+
const spaTemplate = await import('../virtual/_virtual_spa-template.mjs').then((r) => r.template).catch(() => "").then((r) => {
|
|
127
|
+
{
|
|
128
|
+
const APP_SPA_LOADER_OPEN_TAG = `<${appSpaLoaderTag}${propsToString(appSpaLoaderAttrs)}>`;
|
|
129
|
+
const APP_SPA_LOADER_CLOSE_TAG = `</${appSpaLoaderTag}>`;
|
|
130
|
+
const appTemplate = APP_ROOT_OPEN_TAG + APP_ROOT_CLOSE_TAG;
|
|
131
|
+
const loaderTemplate = r ? APP_SPA_LOADER_OPEN_TAG + r + APP_SPA_LOADER_CLOSE_TAG : "";
|
|
132
|
+
return appTemplate + loaderTemplate;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
// Create SPA renderer and cache the result for all requests
|
|
136
|
+
const renderer = createRenderer(() => () => {}, {
|
|
137
|
+
precomputed,
|
|
138
|
+
manifest: undefined,
|
|
139
|
+
renderToString: () => spaTemplate,
|
|
140
|
+
buildAssetsURL
|
|
141
|
+
});
|
|
142
|
+
const result = await renderer.renderToString({});
|
|
143
|
+
const renderToString = (ssrContext) => {
|
|
144
|
+
const config = useRuntimeConfig(ssrContext.event);
|
|
145
|
+
ssrContext.modules ||= new Set();
|
|
146
|
+
ssrContext.payload.serverRendered = false;
|
|
147
|
+
ssrContext.config = {
|
|
148
|
+
public: config.public,
|
|
149
|
+
app: config.app
|
|
150
|
+
};
|
|
151
|
+
return Promise.resolve(result);
|
|
152
|
+
};
|
|
153
|
+
return {
|
|
154
|
+
rendererContext: renderer.rendererContext,
|
|
155
|
+
renderToString
|
|
156
|
+
};
|
|
157
|
+
});
|
|
158
|
+
function lazyCachedFunction(fn) {
|
|
159
|
+
let res = null;
|
|
160
|
+
return () => {
|
|
161
|
+
if (res === null) {
|
|
162
|
+
res = fn().catch((err) => {
|
|
163
|
+
res = null;
|
|
164
|
+
throw err;
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
return res;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function getRenderer(ssrContext) {
|
|
171
|
+
return ssrContext.noSSR ? getSPARenderer() : getSSRRenderer();
|
|
172
|
+
}
|
|
173
|
+
// @ts-expect-error file will be produced after app build
|
|
174
|
+
const getSSRStyles = lazyCachedFunction(() => import('../build/styles.mjs').then((r) => r.default || r));
|
|
175
|
+
|
|
176
|
+
function renderPayloadResponse(ssrContext) {
|
|
177
|
+
return {
|
|
178
|
+
body: stringify(splitPayload(ssrContext).payload, ssrContext["~payloadReducers"]) ,
|
|
179
|
+
statusCode: getResponseStatus(ssrContext.event),
|
|
180
|
+
statusMessage: getResponseStatusText(ssrContext.event),
|
|
181
|
+
headers: {
|
|
182
|
+
"content-type": "application/json;charset=utf-8" ,
|
|
183
|
+
"x-powered-by": "Nuxt"
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
function renderPayloadJsonScript(opts) {
|
|
188
|
+
const contents = opts.data ? stringify(opts.data, opts.ssrContext["~payloadReducers"]) : "";
|
|
189
|
+
const payload = {
|
|
190
|
+
"type": "application/json",
|
|
191
|
+
"innerHTML": contents,
|
|
192
|
+
"data-nuxt-data": appId,
|
|
193
|
+
"data-ssr": !(opts.ssrContext.noSSR)
|
|
194
|
+
};
|
|
195
|
+
{
|
|
196
|
+
payload.id = "__NUXT_DATA__";
|
|
197
|
+
}
|
|
198
|
+
if (opts.src) {
|
|
199
|
+
payload["data-src"] = opts.src;
|
|
200
|
+
}
|
|
201
|
+
const config = uneval(opts.ssrContext.config);
|
|
202
|
+
return [payload, { innerHTML: `window.__NUXT__={};window.__NUXT__.config=${config}` }];
|
|
203
|
+
}
|
|
204
|
+
function splitPayload(ssrContext) {
|
|
205
|
+
const { data, prerenderedAt, ...initial } = ssrContext.payload;
|
|
206
|
+
return {
|
|
207
|
+
initial: {
|
|
208
|
+
...initial,
|
|
209
|
+
prerenderedAt
|
|
210
|
+
},
|
|
211
|
+
payload: {
|
|
212
|
+
data,
|
|
213
|
+
prerenderedAt
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const unheadOptions = {
|
|
219
|
+
disableDefaults: true,
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
function createSSRContext(event) {
|
|
223
|
+
const ssrContext = {
|
|
224
|
+
url: event.path,
|
|
225
|
+
event,
|
|
226
|
+
runtimeConfig: useRuntimeConfig(event),
|
|
227
|
+
noSSR: event.context.nuxt?.noSSR || (false),
|
|
228
|
+
head: createHead(unheadOptions),
|
|
229
|
+
error: false,
|
|
230
|
+
nuxt: undefined,
|
|
231
|
+
payload: {},
|
|
232
|
+
["~payloadReducers"]: Object.create(null),
|
|
233
|
+
modules: new Set()
|
|
234
|
+
};
|
|
235
|
+
return ssrContext;
|
|
236
|
+
}
|
|
237
|
+
function setSSRError(ssrContext, error) {
|
|
238
|
+
ssrContext.error = true;
|
|
239
|
+
ssrContext.payload = { error };
|
|
240
|
+
ssrContext.url = error.url;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
async function renderInlineStyles(usedModules) {
|
|
244
|
+
const styleMap = await getSSRStyles();
|
|
245
|
+
const inlinedStyles = new Set();
|
|
246
|
+
for (const mod of usedModules) {
|
|
247
|
+
if (mod in styleMap && styleMap[mod]) {
|
|
248
|
+
for (const style of await styleMap[mod]()) {
|
|
249
|
+
inlinedStyles.add(style);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
return Array.from(inlinedStyles).map((style) => ({ innerHTML: style }));
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const renderSSRHeadOptions = {"omitLineBreaks":true};
|
|
257
|
+
|
|
258
|
+
const entryIds = [];
|
|
259
|
+
|
|
260
|
+
// @ts-expect-error private property consumed by vite-generated url helpers
|
|
261
|
+
globalThis.__buildAssetsURL = buildAssetsURL;
|
|
262
|
+
// @ts-expect-error private property consumed by vite-generated url helpers
|
|
263
|
+
globalThis.__publicAssetsURL = publicAssetsURL;
|
|
264
|
+
const HAS_APP_TELEPORTS = !!(appTeleportAttrs.id);
|
|
265
|
+
const APP_TELEPORT_OPEN_TAG = HAS_APP_TELEPORTS ? `<${appTeleportTag}${propsToString(appTeleportAttrs)}>` : "";
|
|
266
|
+
const APP_TELEPORT_CLOSE_TAG = HAS_APP_TELEPORTS ? `</${appTeleportTag}>` : "";
|
|
267
|
+
const PAYLOAD_URL_RE = /^[^?]*\/_payload.json(?:\?.*)?$/ ;
|
|
268
|
+
const PAYLOAD_FILENAME = "_payload.json" ;
|
|
269
|
+
const renderer = defineRenderHandler(async (event) => {
|
|
270
|
+
const nitroApp = useNitroApp();
|
|
271
|
+
// Whether we're rendering an error page
|
|
272
|
+
const ssrError = event.path.startsWith("/__nuxt_error") ? getQuery(event) : null;
|
|
273
|
+
if (ssrError && !("__unenv__" in event.node.req)) {
|
|
274
|
+
throw createError({
|
|
275
|
+
status: 404,
|
|
276
|
+
statusText: "Page Not Found: /__nuxt_error",
|
|
277
|
+
message: "Page Not Found: /__nuxt_error"
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
// Initialize ssr context
|
|
281
|
+
const ssrContext = createSSRContext(event);
|
|
282
|
+
// needed for hash hydration plugin to work
|
|
283
|
+
const headEntryOptions = { mode: "server" };
|
|
284
|
+
ssrContext.head.push(appHead, headEntryOptions);
|
|
285
|
+
if (ssrError) {
|
|
286
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
287
|
+
const status = ssrError.status || ssrError.statusCode;
|
|
288
|
+
if (status) {
|
|
289
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
290
|
+
ssrError.status = ssrError.statusCode = Number.parseInt(status);
|
|
291
|
+
}
|
|
292
|
+
if (typeof ssrError.data === "string") {
|
|
293
|
+
try {
|
|
294
|
+
ssrError.data = destr(ssrError.data);
|
|
295
|
+
} catch {}
|
|
296
|
+
}
|
|
297
|
+
setSSRError(ssrContext, ssrError);
|
|
298
|
+
}
|
|
299
|
+
// Get route options (for `ssr: false`, `isr`, `cache` and `noScripts`)
|
|
300
|
+
const routeOptions = getRouteRules(event);
|
|
301
|
+
// Whether we are prerendering route or using ISR/SWR caching
|
|
302
|
+
const _PAYLOAD_EXTRACTION = !ssrContext.noSSR && (NUXT_RUNTIME_PAYLOAD_EXTRACTION);
|
|
303
|
+
const isRenderingPayload = (_PAYLOAD_EXTRACTION || false) && PAYLOAD_URL_RE.test(ssrContext.url);
|
|
304
|
+
if (isRenderingPayload) {
|
|
305
|
+
const url = ssrContext.url.substring(0, ssrContext.url.lastIndexOf("/")) || "/";
|
|
306
|
+
ssrContext.url = url;
|
|
307
|
+
event._path = event.node.req.url = url;
|
|
308
|
+
}
|
|
309
|
+
if (routeOptions.ssr === false) {
|
|
310
|
+
ssrContext.noSSR = true;
|
|
311
|
+
}
|
|
312
|
+
const payloadURL = _PAYLOAD_EXTRACTION ? joinURL(ssrContext.runtimeConfig.app.cdnURL || ssrContext.runtimeConfig.app.baseURL, ssrContext.url.replace(/\?.*$/, ""), PAYLOAD_FILENAME) + "?" + ssrContext.runtimeConfig.app.buildId : undefined;
|
|
313
|
+
// Render app
|
|
314
|
+
const renderer = await getRenderer(ssrContext);
|
|
315
|
+
{
|
|
316
|
+
for (const id of entryIds) {
|
|
317
|
+
ssrContext.modules.add(id);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
const _rendered = await renderer.renderToString(ssrContext).catch(async (error) => {
|
|
321
|
+
// We use error to bypass full render if we have an early response we can make
|
|
322
|
+
// TODO: remove _renderResponse in nuxt v5
|
|
323
|
+
if ((ssrContext["~renderResponse"] || ssrContext._renderResponse) && error.message === "skipping render") {
|
|
324
|
+
return {};
|
|
325
|
+
}
|
|
326
|
+
// Use explicitly thrown error in preference to subsequent rendering errors
|
|
327
|
+
const _err = !ssrError && ssrContext.payload?.error || error;
|
|
328
|
+
await ssrContext.nuxt?.hooks.callHook("app:error", _err);
|
|
329
|
+
throw _err;
|
|
330
|
+
});
|
|
331
|
+
// Render inline styles
|
|
332
|
+
// TODO: remove _renderResponse in nuxt v5
|
|
333
|
+
const inlinedStyles = !ssrContext["~renderResponse"] && !ssrContext._renderResponse && !isRenderingPayload ? await renderInlineStyles(ssrContext.modules ?? []) : [];
|
|
334
|
+
await ssrContext.nuxt?.hooks.callHook("app:rendered", {
|
|
335
|
+
ssrContext,
|
|
336
|
+
renderResult: _rendered
|
|
337
|
+
});
|
|
338
|
+
if (ssrContext["~renderResponse"] || ssrContext._renderResponse) {
|
|
339
|
+
// TODO: remove _renderResponse in nuxt v5
|
|
340
|
+
return ssrContext["~renderResponse"] || ssrContext._renderResponse;
|
|
341
|
+
}
|
|
342
|
+
// Handle errors
|
|
343
|
+
if (ssrContext.payload?.error && !ssrError) {
|
|
344
|
+
throw ssrContext.payload.error;
|
|
345
|
+
}
|
|
346
|
+
// Directly render payload routes
|
|
347
|
+
if (isRenderingPayload) {
|
|
348
|
+
const response = renderPayloadResponse(ssrContext);
|
|
349
|
+
return response;
|
|
350
|
+
}
|
|
351
|
+
const NO_SCRIPTS = routeOptions.noScripts;
|
|
352
|
+
// Setup head
|
|
353
|
+
const { styles, scripts } = getRequestDependencies(ssrContext, renderer.rendererContext);
|
|
354
|
+
// 1. Preload payloads and app manifest
|
|
355
|
+
if (_PAYLOAD_EXTRACTION && !NO_SCRIPTS) {
|
|
356
|
+
ssrContext.head.push({ link: [{
|
|
357
|
+
rel: "preload",
|
|
358
|
+
as: "fetch",
|
|
359
|
+
crossorigin: "anonymous",
|
|
360
|
+
href: payloadURL
|
|
361
|
+
} ] }, headEntryOptions);
|
|
362
|
+
}
|
|
363
|
+
if (ssrContext["~preloadManifest"] && !NO_SCRIPTS) {
|
|
364
|
+
ssrContext.head.push({ link: [{
|
|
365
|
+
rel: "preload",
|
|
366
|
+
as: "fetch",
|
|
367
|
+
fetchpriority: "low",
|
|
368
|
+
crossorigin: "anonymous",
|
|
369
|
+
href: buildAssetsURL(`builds/meta/${ssrContext.runtimeConfig.app.buildId}.json`)
|
|
370
|
+
}] }, {
|
|
371
|
+
...headEntryOptions,
|
|
372
|
+
tagPriority: "low"
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
// 2. Styles
|
|
376
|
+
if (inlinedStyles.length) {
|
|
377
|
+
ssrContext.head.push({ style: inlinedStyles });
|
|
378
|
+
}
|
|
379
|
+
const link = [];
|
|
380
|
+
for (const resource of Object.values(styles)) {
|
|
381
|
+
// Add CSS links in <head> for CSS files
|
|
382
|
+
// - in production
|
|
383
|
+
// - in dev mode when not rendering an island
|
|
384
|
+
link.push({
|
|
385
|
+
rel: "stylesheet",
|
|
386
|
+
href: renderer.rendererContext.buildAssetsURL(resource.file),
|
|
387
|
+
crossorigin: ""
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
if (link.length) {
|
|
391
|
+
ssrContext.head.push({ link }, headEntryOptions);
|
|
392
|
+
}
|
|
393
|
+
if (!NO_SCRIPTS) {
|
|
394
|
+
// 4. Resource Hints
|
|
395
|
+
// Remove lazy hydrated modules from ssrContext.modules so they don't get preloaded
|
|
396
|
+
// (CSS links are already added above, this only affects JS preloads)
|
|
397
|
+
if (ssrContext["~lazyHydratedModules"]) {
|
|
398
|
+
for (const id of ssrContext["~lazyHydratedModules"]) {
|
|
399
|
+
ssrContext.modules?.delete(id);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
ssrContext.head.push({ link: getPreloadLinks(ssrContext, renderer.rendererContext) }, headEntryOptions);
|
|
403
|
+
ssrContext.head.push({ link: getPrefetchLinks(ssrContext, renderer.rendererContext) }, headEntryOptions);
|
|
404
|
+
// 5. Payloads
|
|
405
|
+
ssrContext.head.push({ script: _PAYLOAD_EXTRACTION ? renderPayloadJsonScript({
|
|
406
|
+
ssrContext,
|
|
407
|
+
data: splitPayload(ssrContext).initial,
|
|
408
|
+
src: payloadURL
|
|
409
|
+
}) : renderPayloadJsonScript({
|
|
410
|
+
ssrContext,
|
|
411
|
+
data: ssrContext.payload
|
|
412
|
+
}) }, {
|
|
413
|
+
...headEntryOptions,
|
|
414
|
+
tagPosition: "bodyClose",
|
|
415
|
+
tagPriority: "high"
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
// 6. Scripts
|
|
419
|
+
if (!routeOptions.noScripts) {
|
|
420
|
+
const tagPosition = "head";
|
|
421
|
+
ssrContext.head.push({ script: Object.values(scripts).map((resource) => ({
|
|
422
|
+
type: resource.module ? "module" : null,
|
|
423
|
+
src: renderer.rendererContext.buildAssetsURL(resource.file),
|
|
424
|
+
defer: resource.module ? null : true,
|
|
425
|
+
tagPosition,
|
|
426
|
+
crossorigin: ""
|
|
427
|
+
})) }, headEntryOptions);
|
|
428
|
+
}
|
|
429
|
+
const { headTags, bodyTags, bodyTagsOpen, htmlAttrs, bodyAttrs } = await renderSSRHead(ssrContext.head, renderSSRHeadOptions);
|
|
430
|
+
// Create render context
|
|
431
|
+
const htmlContext = {
|
|
432
|
+
htmlAttrs: htmlAttrs ? [htmlAttrs] : [],
|
|
433
|
+
head: normalizeChunks([headTags]),
|
|
434
|
+
bodyAttrs: bodyAttrs ? [bodyAttrs] : [],
|
|
435
|
+
bodyPrepend: normalizeChunks([bodyTagsOpen, ssrContext.teleports?.body]),
|
|
436
|
+
body: [_rendered.html, APP_TELEPORT_OPEN_TAG + (HAS_APP_TELEPORTS ? joinTags([ssrContext.teleports?.[`#${appTeleportAttrs.id}`]]) : "") + APP_TELEPORT_CLOSE_TAG],
|
|
437
|
+
bodyAppend: [bodyTags]
|
|
438
|
+
};
|
|
439
|
+
// Allow hooking into the rendered result
|
|
440
|
+
await nitroApp.hooks.callHook("render:html", htmlContext, { event });
|
|
441
|
+
// Construct HTML response
|
|
442
|
+
return {
|
|
443
|
+
body: renderHTMLDocument(htmlContext),
|
|
444
|
+
statusCode: getResponseStatus(event),
|
|
445
|
+
statusMessage: getResponseStatusText(event),
|
|
446
|
+
headers: {
|
|
447
|
+
"content-type": "text/html;charset=utf-8",
|
|
448
|
+
"x-powered-by": "Nuxt"
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
});
|
|
452
|
+
function normalizeChunks(chunks) {
|
|
453
|
+
const result = [];
|
|
454
|
+
for (const _chunk of chunks) {
|
|
455
|
+
const chunk = _chunk?.trim();
|
|
456
|
+
if (chunk) {
|
|
457
|
+
result.push(chunk);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
return result;
|
|
461
|
+
}
|
|
462
|
+
function joinTags(tags) {
|
|
463
|
+
return tags.join("");
|
|
464
|
+
}
|
|
465
|
+
function joinAttrs(chunks) {
|
|
466
|
+
if (chunks.length === 0) {
|
|
467
|
+
return "";
|
|
468
|
+
}
|
|
469
|
+
return " " + chunks.join(" ");
|
|
470
|
+
}
|
|
471
|
+
function renderHTMLDocument(html) {
|
|
472
|
+
return "<!DOCTYPE html>" + `<html${joinAttrs(html.htmlAttrs)}>` + `<head>${joinTags(html.head)}</head>` + `<body${joinAttrs(html.bodyAttrs)}>${joinTags(html.bodyPrepend)}${joinTags(html.body)}${joinTags(html.bodyAppend)}</body>` + "</html>";
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
const renderer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
476
|
+
__proto__: null,
|
|
477
|
+
default: renderer
|
|
478
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
479
|
+
|
|
480
|
+
export { headSymbol as h, renderer$1 as r, useHead as u };
|
|
481
|
+
//# sourceMappingURL=renderer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.mjs","sources":["../../../../node_modules/@unhead/vue/dist/shared/vue.N9zWjxoK.mjs","../../../../node_modules/@unhead/vue/dist/shared/vue.Cr7xSEtD.mjs","../../../../node_modules/@unhead/vue/dist/server.mjs","../../../../node_modules/@nuxt/nitro-server/dist/runtime/utils/renderer/build-files.mjs","../../../../node_modules/@nuxt/nitro-server/dist/runtime/utils/renderer/payload.mjs","../../../../node_modules/@nuxt/nitro-server/dist/runtime/utils/renderer/app.mjs","../../../../node_modules/@nuxt/nitro-server/dist/runtime/utils/renderer/inline-styles.mjs","../../../../node_modules/@nuxt/nitro-server/dist/runtime/handlers/renderer.mjs"],"names":["renderToString","_renderToString"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_virtual_spa-template.mjs","sources":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import process from 'node:process';globalThis._importMeta_={url:import.meta.url,env:process.env};import 'node:http';
|
|
2
|
+
import 'node:https';
|
|
3
|
+
export { C as default } from './chunks/nitro/nitro.mjs';
|
|
4
|
+
import 'node:events';
|
|
5
|
+
import 'node:buffer';
|
|
6
|
+
import 'node:fs';
|
|
7
|
+
import 'node:path';
|
|
8
|
+
import 'node:crypto';
|
|
9
|
+
import 'node:url';
|
|
10
|
+
import '@iconify/utils';
|
|
11
|
+
import 'consola';
|
|
12
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api.js"), exports);
|
|
18
|
+
__exportStar(require("./app.js"), exports);
|
|
19
|
+
__exportStar(require("./component.js"), exports);
|
|
20
|
+
__exportStar(require("./context.js"), exports);
|
|
21
|
+
__exportStar(require("./hooks.js"), exports);
|
|
22
|
+
__exportStar(require("./util.js"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isProxyAvailable = exports.getTarget = exports.getDevtoolsGlobalHook = void 0;
|
|
4
|
+
function getDevtoolsGlobalHook() {
|
|
5
|
+
return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
6
|
+
}
|
|
7
|
+
exports.getDevtoolsGlobalHook = getDevtoolsGlobalHook;
|
|
8
|
+
function getTarget() {
|
|
9
|
+
// @ts-expect-error navigator and windows are not available in all environments
|
|
10
|
+
return (typeof navigator !== 'undefined' && typeof window !== 'undefined')
|
|
11
|
+
? window
|
|
12
|
+
: typeof globalThis !== 'undefined'
|
|
13
|
+
? globalThis
|
|
14
|
+
: {};
|
|
15
|
+
}
|
|
16
|
+
exports.getTarget = getTarget;
|
|
17
|
+
exports.isProxyAvailable = typeof Proxy === 'function';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.setupDevtoolsPlugin = void 0;
|
|
18
|
+
const env_js_1 = require("./env.js");
|
|
19
|
+
const const_js_1 = require("./const.js");
|
|
20
|
+
const proxy_js_1 = require("./proxy.js");
|
|
21
|
+
__exportStar(require("./api/index.js"), exports);
|
|
22
|
+
__exportStar(require("./plugin.js"), exports);
|
|
23
|
+
__exportStar(require("./time.js"), exports);
|
|
24
|
+
function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
|
|
25
|
+
const descriptor = pluginDescriptor;
|
|
26
|
+
const target = (0, env_js_1.getTarget)();
|
|
27
|
+
const hook = (0, env_js_1.getDevtoolsGlobalHook)();
|
|
28
|
+
const enableProxy = env_js_1.isProxyAvailable && descriptor.enableEarlyProxy;
|
|
29
|
+
if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) {
|
|
30
|
+
hook.emit(const_js_1.HOOK_SETUP, pluginDescriptor, setupFn);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
const proxy = enableProxy ? new proxy_js_1.ApiProxy(descriptor, hook) : null;
|
|
34
|
+
const list = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || [];
|
|
35
|
+
list.push({
|
|
36
|
+
pluginDescriptor: descriptor,
|
|
37
|
+
setupFn,
|
|
38
|
+
proxy,
|
|
39
|
+
});
|
|
40
|
+
if (proxy) {
|
|
41
|
+
setupFn(proxy.proxiedTarget);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.setupDevtoolsPlugin = setupDevtoolsPlugin;
|