@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,513 @@
|
|
|
1
|
+
import { defineComponent, computed, h, onServerPrefetch, toValue, getCurrentInstance, ref, shallowRef, nextTick, unref, toRef } from 'vue';
|
|
2
|
+
import { Icon, getIcon, loadIcon as loadIcon$1 } from '@iconify/vue';
|
|
3
|
+
import { getIconCSS } from '@iconify/utils/lib/css/icon';
|
|
4
|
+
import { c as useNuxtApp, f as useAppConfig, g as useRuntimeConfig, u as useHead, d as asyncDataDefaults, e as createError } from './server.mjs';
|
|
5
|
+
import { debounce } from 'perfect-debounce';
|
|
6
|
+
import '../nitro/nitro.mjs';
|
|
7
|
+
import 'node:http';
|
|
8
|
+
import 'node:https';
|
|
9
|
+
import 'node:events';
|
|
10
|
+
import 'node:buffer';
|
|
11
|
+
import 'node:fs';
|
|
12
|
+
import 'node:path';
|
|
13
|
+
import 'node:crypto';
|
|
14
|
+
import 'node:url';
|
|
15
|
+
import '@iconify/utils';
|
|
16
|
+
import 'consola';
|
|
17
|
+
import 'pinia';
|
|
18
|
+
import 'vue-router';
|
|
19
|
+
import 'tailwindcss/colors';
|
|
20
|
+
import 'vue/server-renderer';
|
|
21
|
+
import '../routes/renderer.mjs';
|
|
22
|
+
import 'vue-bundle-renderer/runtime';
|
|
23
|
+
import 'unhead/server';
|
|
24
|
+
import 'devalue';
|
|
25
|
+
import 'unhead/utils';
|
|
26
|
+
|
|
27
|
+
function useAsyncData(...args) {
|
|
28
|
+
const autoKey = typeof args[args.length - 1] === "string" ? args.pop() : void 0;
|
|
29
|
+
if (_isAutoKeyNeeded(args[0], args[1])) {
|
|
30
|
+
args.unshift(autoKey);
|
|
31
|
+
}
|
|
32
|
+
let [_key, _handler, options = {}] = args;
|
|
33
|
+
const key = computed(() => toValue(_key));
|
|
34
|
+
if (typeof key.value !== "string") {
|
|
35
|
+
throw new TypeError("[nuxt] [useAsyncData] key must be a string.");
|
|
36
|
+
}
|
|
37
|
+
if (typeof _handler !== "function") {
|
|
38
|
+
throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");
|
|
39
|
+
}
|
|
40
|
+
const nuxtApp = useNuxtApp();
|
|
41
|
+
options.server ??= true;
|
|
42
|
+
options.default ??= getDefault;
|
|
43
|
+
options.getCachedData ??= getDefaultCachedData;
|
|
44
|
+
options.lazy ??= false;
|
|
45
|
+
options.immediate ??= true;
|
|
46
|
+
options.deep ??= asyncDataDefaults.deep;
|
|
47
|
+
options.dedupe ??= "cancel";
|
|
48
|
+
options._functionName || "useAsyncData";
|
|
49
|
+
nuxtApp._asyncData[key.value];
|
|
50
|
+
function createInitialFetch() {
|
|
51
|
+
const initialFetchOptions = { cause: "initial", dedupe: options.dedupe };
|
|
52
|
+
if (!nuxtApp._asyncData[key.value]?._init) {
|
|
53
|
+
initialFetchOptions.cachedData = options.getCachedData(key.value, nuxtApp, { cause: "initial" });
|
|
54
|
+
nuxtApp._asyncData[key.value] = createAsyncData(nuxtApp, key.value, _handler, options, initialFetchOptions.cachedData);
|
|
55
|
+
}
|
|
56
|
+
return () => nuxtApp._asyncData[key.value].execute(initialFetchOptions);
|
|
57
|
+
}
|
|
58
|
+
const initialFetch = createInitialFetch();
|
|
59
|
+
const asyncData = nuxtApp._asyncData[key.value];
|
|
60
|
+
asyncData._deps++;
|
|
61
|
+
const fetchOnServer = options.server !== false && nuxtApp.payload.serverRendered;
|
|
62
|
+
if (fetchOnServer && options.immediate) {
|
|
63
|
+
const promise = initialFetch();
|
|
64
|
+
if (getCurrentInstance()) {
|
|
65
|
+
onServerPrefetch(() => promise);
|
|
66
|
+
} else {
|
|
67
|
+
nuxtApp.hook("app:created", async () => {
|
|
68
|
+
await promise;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const asyncReturn = {
|
|
73
|
+
data: writableComputedRef(() => nuxtApp._asyncData[key.value]?.data),
|
|
74
|
+
pending: writableComputedRef(() => nuxtApp._asyncData[key.value]?.pending),
|
|
75
|
+
status: writableComputedRef(() => nuxtApp._asyncData[key.value]?.status),
|
|
76
|
+
error: writableComputedRef(() => nuxtApp._asyncData[key.value]?.error),
|
|
77
|
+
refresh: (...args2) => {
|
|
78
|
+
if (!nuxtApp._asyncData[key.value]?._init) {
|
|
79
|
+
const initialFetch2 = createInitialFetch();
|
|
80
|
+
return initialFetch2();
|
|
81
|
+
}
|
|
82
|
+
return nuxtApp._asyncData[key.value].execute(...args2);
|
|
83
|
+
},
|
|
84
|
+
execute: (...args2) => asyncReturn.refresh(...args2),
|
|
85
|
+
clear: () => {
|
|
86
|
+
const entry = nuxtApp._asyncData[key.value];
|
|
87
|
+
if (entry?._abortController) {
|
|
88
|
+
try {
|
|
89
|
+
entry._abortController.abort(new DOMException("AsyncData aborted by user.", "AbortError"));
|
|
90
|
+
} finally {
|
|
91
|
+
entry._abortController = void 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
clearNuxtDataByKey(nuxtApp, key.value);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const asyncDataPromise = Promise.resolve(nuxtApp._asyncDataPromises[key.value]).then(() => asyncReturn);
|
|
98
|
+
Object.assign(asyncDataPromise, asyncReturn);
|
|
99
|
+
return asyncDataPromise;
|
|
100
|
+
}
|
|
101
|
+
function writableComputedRef(getter) {
|
|
102
|
+
return computed({
|
|
103
|
+
get() {
|
|
104
|
+
return getter()?.value;
|
|
105
|
+
},
|
|
106
|
+
set(value) {
|
|
107
|
+
const ref2 = getter();
|
|
108
|
+
if (ref2) {
|
|
109
|
+
ref2.value = value;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
function _isAutoKeyNeeded(keyOrFetcher, fetcher) {
|
|
115
|
+
if (typeof keyOrFetcher === "string") {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
if (typeof keyOrFetcher === "object" && keyOrFetcher !== null) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
if (typeof keyOrFetcher === "function" && typeof fetcher === "function") {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
function clearNuxtDataByKey(nuxtApp, key) {
|
|
127
|
+
if (key in nuxtApp.payload.data) {
|
|
128
|
+
nuxtApp.payload.data[key] = void 0;
|
|
129
|
+
}
|
|
130
|
+
if (key in nuxtApp.payload._errors) {
|
|
131
|
+
nuxtApp.payload._errors[key] = void 0;
|
|
132
|
+
}
|
|
133
|
+
if (nuxtApp._asyncData[key]) {
|
|
134
|
+
nuxtApp._asyncData[key].data.value = unref(nuxtApp._asyncData[key]._default());
|
|
135
|
+
nuxtApp._asyncData[key].error.value = void 0;
|
|
136
|
+
nuxtApp._asyncData[key].status.value = "idle";
|
|
137
|
+
}
|
|
138
|
+
if (key in nuxtApp._asyncDataPromises) {
|
|
139
|
+
nuxtApp._asyncDataPromises[key] = void 0;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function pick(obj, keys) {
|
|
143
|
+
const newObj = {};
|
|
144
|
+
for (const key of keys) {
|
|
145
|
+
newObj[key] = obj[key];
|
|
146
|
+
}
|
|
147
|
+
return newObj;
|
|
148
|
+
}
|
|
149
|
+
function createAsyncData(nuxtApp, key, _handler, options, initialCachedData) {
|
|
150
|
+
nuxtApp.payload._errors[key] ??= void 0;
|
|
151
|
+
const hasCustomGetCachedData = options.getCachedData !== getDefaultCachedData;
|
|
152
|
+
const handler = _handler ;
|
|
153
|
+
const _ref = options.deep ? ref : shallowRef;
|
|
154
|
+
const hasCachedData = initialCachedData !== void 0;
|
|
155
|
+
const unsubRefreshAsyncData = nuxtApp.hook("app:data:refresh", async (keys) => {
|
|
156
|
+
if (!keys || keys.includes(key)) {
|
|
157
|
+
await asyncData.execute({ cause: "refresh:hook" });
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
const asyncData = {
|
|
161
|
+
data: _ref(hasCachedData ? initialCachedData : options.default()),
|
|
162
|
+
pending: computed(() => asyncData.status.value === "pending"),
|
|
163
|
+
error: toRef(nuxtApp.payload._errors, key),
|
|
164
|
+
status: shallowRef("idle"),
|
|
165
|
+
execute: (...args) => {
|
|
166
|
+
const [_opts, newValue = void 0] = args;
|
|
167
|
+
const opts = _opts && newValue === void 0 && typeof _opts === "object" ? _opts : {};
|
|
168
|
+
if (nuxtApp._asyncDataPromises[key]) {
|
|
169
|
+
if ((opts.dedupe ?? options.dedupe) === "defer") {
|
|
170
|
+
return nuxtApp._asyncDataPromises[key];
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
{
|
|
174
|
+
const cachedData = "cachedData" in opts ? opts.cachedData : options.getCachedData(key, nuxtApp, { cause: opts.cause ?? "refresh:manual" });
|
|
175
|
+
if (cachedData !== void 0) {
|
|
176
|
+
nuxtApp.payload.data[key] = asyncData.data.value = cachedData;
|
|
177
|
+
asyncData.error.value = void 0;
|
|
178
|
+
asyncData.status.value = "success";
|
|
179
|
+
return Promise.resolve(cachedData);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
if (asyncData._abortController) {
|
|
183
|
+
asyncData._abortController.abort(new DOMException("AsyncData request cancelled by deduplication", "AbortError"));
|
|
184
|
+
}
|
|
185
|
+
asyncData._abortController = new AbortController();
|
|
186
|
+
asyncData.status.value = "pending";
|
|
187
|
+
const cleanupController = new AbortController();
|
|
188
|
+
const promise = new Promise(
|
|
189
|
+
(resolve, reject) => {
|
|
190
|
+
try {
|
|
191
|
+
const timeout = opts.timeout ?? options.timeout;
|
|
192
|
+
const mergedSignal = mergeAbortSignals([asyncData._abortController?.signal, opts?.signal], cleanupController.signal, timeout);
|
|
193
|
+
if (mergedSignal.aborted) {
|
|
194
|
+
const reason = mergedSignal.reason;
|
|
195
|
+
reject(reason instanceof Error ? reason : new DOMException(String(reason ?? "Aborted"), "AbortError"));
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
mergedSignal.addEventListener("abort", () => {
|
|
199
|
+
const reason = mergedSignal.reason;
|
|
200
|
+
reject(reason instanceof Error ? reason : new DOMException(String(reason ?? "Aborted"), "AbortError"));
|
|
201
|
+
}, { once: true, signal: cleanupController.signal });
|
|
202
|
+
return Promise.resolve(handler(nuxtApp, { signal: mergedSignal })).then(resolve, reject);
|
|
203
|
+
} catch (err) {
|
|
204
|
+
reject(err);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
).then(async (_result) => {
|
|
208
|
+
let result = _result;
|
|
209
|
+
if (options.transform) {
|
|
210
|
+
result = await options.transform(_result);
|
|
211
|
+
}
|
|
212
|
+
if (options.pick) {
|
|
213
|
+
result = pick(result, options.pick);
|
|
214
|
+
}
|
|
215
|
+
nuxtApp.payload.data[key] = result;
|
|
216
|
+
asyncData.data.value = result;
|
|
217
|
+
asyncData.error.value = void 0;
|
|
218
|
+
asyncData.status.value = "success";
|
|
219
|
+
}).catch((error) => {
|
|
220
|
+
if (nuxtApp._asyncDataPromises[key] && nuxtApp._asyncDataPromises[key] !== promise) {
|
|
221
|
+
return nuxtApp._asyncDataPromises[key];
|
|
222
|
+
}
|
|
223
|
+
if (asyncData._abortController?.signal.aborted) {
|
|
224
|
+
return nuxtApp._asyncDataPromises[key];
|
|
225
|
+
}
|
|
226
|
+
if (typeof DOMException !== "undefined" && error instanceof DOMException && error.name === "AbortError") {
|
|
227
|
+
asyncData.status.value = "idle";
|
|
228
|
+
return nuxtApp._asyncDataPromises[key];
|
|
229
|
+
}
|
|
230
|
+
asyncData.error.value = createError(error);
|
|
231
|
+
asyncData.data.value = unref(options.default());
|
|
232
|
+
asyncData.status.value = "error";
|
|
233
|
+
}).finally(() => {
|
|
234
|
+
cleanupController.abort();
|
|
235
|
+
delete nuxtApp._asyncDataPromises[key];
|
|
236
|
+
});
|
|
237
|
+
nuxtApp._asyncDataPromises[key] = promise;
|
|
238
|
+
return nuxtApp._asyncDataPromises[key];
|
|
239
|
+
},
|
|
240
|
+
_execute: debounce((...args) => asyncData.execute(...args), 0, { leading: true }),
|
|
241
|
+
_default: options.default,
|
|
242
|
+
_deps: 0,
|
|
243
|
+
_init: true,
|
|
244
|
+
_hash: void 0,
|
|
245
|
+
_off: () => {
|
|
246
|
+
unsubRefreshAsyncData();
|
|
247
|
+
if (nuxtApp._asyncData[key]?._init) {
|
|
248
|
+
nuxtApp._asyncData[key]._init = false;
|
|
249
|
+
}
|
|
250
|
+
if (!hasCustomGetCachedData) {
|
|
251
|
+
nextTick(() => {
|
|
252
|
+
if (!nuxtApp._asyncData[key]?._init) {
|
|
253
|
+
clearNuxtDataByKey(nuxtApp, key);
|
|
254
|
+
asyncData.execute = () => Promise.resolve();
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
return asyncData;
|
|
261
|
+
}
|
|
262
|
+
const getDefault = () => void 0;
|
|
263
|
+
const getDefaultCachedData = (key, nuxtApp, ctx) => {
|
|
264
|
+
if (nuxtApp.isHydrating) {
|
|
265
|
+
return nuxtApp.payload.data[key];
|
|
266
|
+
}
|
|
267
|
+
if (ctx.cause !== "refresh:manual" && ctx.cause !== "refresh:hook") {
|
|
268
|
+
return nuxtApp.static.data[key];
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
function mergeAbortSignals(signals, cleanupSignal, timeout) {
|
|
272
|
+
const list = signals.filter((s) => !!s);
|
|
273
|
+
if (typeof timeout === "number" && timeout >= 0) {
|
|
274
|
+
const timeoutSignal = AbortSignal.timeout?.(timeout);
|
|
275
|
+
if (timeoutSignal) {
|
|
276
|
+
list.push(timeoutSignal);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
if (AbortSignal.any) {
|
|
280
|
+
return AbortSignal.any(list);
|
|
281
|
+
}
|
|
282
|
+
const controller = new AbortController();
|
|
283
|
+
for (const sig of list) {
|
|
284
|
+
if (sig.aborted) {
|
|
285
|
+
const reason = sig.reason ?? new DOMException("Aborted", "AbortError");
|
|
286
|
+
try {
|
|
287
|
+
controller.abort(reason);
|
|
288
|
+
} catch {
|
|
289
|
+
controller.abort();
|
|
290
|
+
}
|
|
291
|
+
return controller.signal;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
const onAbort = () => {
|
|
295
|
+
const abortedSignal = list.find((s) => s.aborted);
|
|
296
|
+
const reason = abortedSignal?.reason ?? new DOMException("Aborted", "AbortError");
|
|
297
|
+
try {
|
|
298
|
+
controller.abort(reason);
|
|
299
|
+
} catch {
|
|
300
|
+
controller.abort();
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
for (const sig of list) {
|
|
304
|
+
sig.addEventListener?.("abort", onAbort, { once: true, signal: cleanupSignal });
|
|
305
|
+
}
|
|
306
|
+
return controller.signal;
|
|
307
|
+
}
|
|
308
|
+
async function loadIcon(name, timeout) {
|
|
309
|
+
if (!name)
|
|
310
|
+
return null;
|
|
311
|
+
const _icon = getIcon(name);
|
|
312
|
+
if (_icon)
|
|
313
|
+
return _icon;
|
|
314
|
+
let timeoutWarn;
|
|
315
|
+
const load = loadIcon$1(name).catch(() => {
|
|
316
|
+
console.warn(`[Icon] failed to load icon \`${name}\``);
|
|
317
|
+
return null;
|
|
318
|
+
});
|
|
319
|
+
if (timeout > 0)
|
|
320
|
+
await Promise.race([
|
|
321
|
+
load,
|
|
322
|
+
new Promise((resolve) => {
|
|
323
|
+
timeoutWarn = setTimeout(() => {
|
|
324
|
+
console.warn(`[Icon] loading icon \`${name}\` timed out after ${timeout}ms`);
|
|
325
|
+
resolve();
|
|
326
|
+
}, timeout);
|
|
327
|
+
})
|
|
328
|
+
]).finally(() => clearTimeout(timeoutWarn));
|
|
329
|
+
else
|
|
330
|
+
await load;
|
|
331
|
+
return getIcon(name);
|
|
332
|
+
}
|
|
333
|
+
function useResolvedName(getName) {
|
|
334
|
+
const options = useAppConfig().icon;
|
|
335
|
+
const collections = (options.collections || []).sort((a, b) => b.length - a.length);
|
|
336
|
+
return computed(() => {
|
|
337
|
+
const name = getName();
|
|
338
|
+
const bare = name.startsWith(options.cssSelectorPrefix) ? name.slice(options.cssSelectorPrefix.length) : name;
|
|
339
|
+
const resolved = options.aliases?.[bare] || bare;
|
|
340
|
+
if (!resolved.includes(":")) {
|
|
341
|
+
const collection = collections.find((c) => resolved.startsWith(c + "-"));
|
|
342
|
+
return collection ? collection + ":" + resolved.slice(collection.length + 1) : resolved;
|
|
343
|
+
}
|
|
344
|
+
return resolved;
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
function resolveCustomizeFn(customize, globalCustomize) {
|
|
348
|
+
if (customize === false) return void 0;
|
|
349
|
+
if (customize === true || customize === null) return globalCustomize;
|
|
350
|
+
return customize;
|
|
351
|
+
}
|
|
352
|
+
const SYMBOL_SERVER_CSS = "NUXT_ICONS_SERVER_CSS";
|
|
353
|
+
function escapeCssSelector(selector) {
|
|
354
|
+
return selector.replace(/([^\w-])/g, "\\$1");
|
|
355
|
+
}
|
|
356
|
+
const NuxtIconCss = /* @__PURE__ */ defineComponent({
|
|
357
|
+
name: "NuxtIconCss",
|
|
358
|
+
props: {
|
|
359
|
+
name: {
|
|
360
|
+
type: String,
|
|
361
|
+
required: true
|
|
362
|
+
},
|
|
363
|
+
customize: {
|
|
364
|
+
type: [Function, Boolean, null],
|
|
365
|
+
default: null,
|
|
366
|
+
required: false
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
setup(props) {
|
|
370
|
+
const nuxt = useNuxtApp();
|
|
371
|
+
const options = useAppConfig().icon;
|
|
372
|
+
const cssClass = computed(() => props.name ? options.cssSelectorPrefix + props.name : "");
|
|
373
|
+
const selector = computed(() => "." + escapeCssSelector(cssClass.value));
|
|
374
|
+
function getCSS(icon, withLayer = true) {
|
|
375
|
+
let iconSelector = selector.value;
|
|
376
|
+
if (options.cssWherePseudo) {
|
|
377
|
+
iconSelector = `:where(${iconSelector})`;
|
|
378
|
+
}
|
|
379
|
+
const css = getIconCSS(icon, {
|
|
380
|
+
iconSelector,
|
|
381
|
+
format: "compressed",
|
|
382
|
+
customise: resolveCustomizeFn(props.customize, options.customize)
|
|
383
|
+
});
|
|
384
|
+
if (options.cssLayer && withLayer) {
|
|
385
|
+
return `@layer ${options.cssLayer} { ${css} }`;
|
|
386
|
+
}
|
|
387
|
+
return css;
|
|
388
|
+
}
|
|
389
|
+
onServerPrefetch(async () => {
|
|
390
|
+
{
|
|
391
|
+
const configs = useRuntimeConfig().icon || {};
|
|
392
|
+
if (!configs?.serverKnownCssClasses?.includes(cssClass.value)) {
|
|
393
|
+
const icon = await loadIcon(props.name, options.fetchTimeout).catch(() => null);
|
|
394
|
+
if (!icon)
|
|
395
|
+
return null;
|
|
396
|
+
let ssrCSS = nuxt.vueApp._context.provides[SYMBOL_SERVER_CSS];
|
|
397
|
+
if (!ssrCSS) {
|
|
398
|
+
ssrCSS = nuxt.vueApp._context.provides[SYMBOL_SERVER_CSS] = /* @__PURE__ */ new Map();
|
|
399
|
+
nuxt.runWithContext(() => {
|
|
400
|
+
useHead({
|
|
401
|
+
style: [
|
|
402
|
+
() => {
|
|
403
|
+
const sep = "";
|
|
404
|
+
let css = Array.from(ssrCSS.values()).sort().join(sep);
|
|
405
|
+
if (options.cssLayer) {
|
|
406
|
+
css = `@layer ${options.cssLayer} {${sep}${css}${sep}}`;
|
|
407
|
+
}
|
|
408
|
+
return { innerHTML: css };
|
|
409
|
+
}
|
|
410
|
+
]
|
|
411
|
+
}, {
|
|
412
|
+
tagPriority: "low"
|
|
413
|
+
});
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
if (props.name && !ssrCSS.has(props.name)) {
|
|
417
|
+
const css = getCSS(icon, false);
|
|
418
|
+
ssrCSS.set(props.name, css);
|
|
419
|
+
}
|
|
420
|
+
return null;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
return () => h("span", { class: ["iconify", cssClass.value] });
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
const NuxtIconSvg = /* @__PURE__ */ defineComponent({
|
|
428
|
+
name: "NuxtIconSvg",
|
|
429
|
+
props: {
|
|
430
|
+
name: {
|
|
431
|
+
type: String,
|
|
432
|
+
required: true
|
|
433
|
+
},
|
|
434
|
+
customize: {
|
|
435
|
+
type: [Function, Boolean, null],
|
|
436
|
+
default: null,
|
|
437
|
+
required: false
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
setup(props, { slots }) {
|
|
441
|
+
useNuxtApp();
|
|
442
|
+
const options = useAppConfig().icon;
|
|
443
|
+
const name = useResolvedName(() => props.name);
|
|
444
|
+
const storeKey = "i-" + name.value;
|
|
445
|
+
if (name.value) {
|
|
446
|
+
onServerPrefetch(async () => {
|
|
447
|
+
{
|
|
448
|
+
await useAsyncData(
|
|
449
|
+
storeKey,
|
|
450
|
+
async () => await loadIcon(name.value, options.fetchTimeout),
|
|
451
|
+
{ deep: false }
|
|
452
|
+
);
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
return () => h(Icon, {
|
|
457
|
+
icon: name.value,
|
|
458
|
+
ssr: true,
|
|
459
|
+
// Iconify uses `customise`, where we expose `customize` for consistency
|
|
460
|
+
customise: resolveCustomizeFn(props.customize, options.customize)
|
|
461
|
+
}, slots);
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
const index = defineComponent({
|
|
465
|
+
name: "NuxtIcon",
|
|
466
|
+
props: {
|
|
467
|
+
name: {
|
|
468
|
+
type: String,
|
|
469
|
+
required: true
|
|
470
|
+
},
|
|
471
|
+
mode: {
|
|
472
|
+
type: String,
|
|
473
|
+
required: false,
|
|
474
|
+
default: null
|
|
475
|
+
},
|
|
476
|
+
size: {
|
|
477
|
+
type: [Number, String],
|
|
478
|
+
required: false,
|
|
479
|
+
default: null
|
|
480
|
+
},
|
|
481
|
+
customize: {
|
|
482
|
+
type: [Function, Boolean, null],
|
|
483
|
+
default: null,
|
|
484
|
+
required: false
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
setup(props, { slots }) {
|
|
488
|
+
const nuxtApp = useNuxtApp();
|
|
489
|
+
const runtimeOptions = useAppConfig().icon;
|
|
490
|
+
const name = useResolvedName(() => props.name);
|
|
491
|
+
const component = computed(
|
|
492
|
+
() => nuxtApp.vueApp?.component(name.value) || ((props.mode || runtimeOptions.mode) === "svg" ? NuxtIconSvg : NuxtIconCss)
|
|
493
|
+
);
|
|
494
|
+
const style = computed(() => {
|
|
495
|
+
const size = props.size || runtimeOptions.size;
|
|
496
|
+
return size ? { fontSize: Number.isNaN(+size) ? size : size + "px" } : null;
|
|
497
|
+
});
|
|
498
|
+
return () => h(
|
|
499
|
+
component.value,
|
|
500
|
+
{
|
|
501
|
+
...runtimeOptions.attrs,
|
|
502
|
+
name: name.value,
|
|
503
|
+
class: runtimeOptions.class,
|
|
504
|
+
style: style.value,
|
|
505
|
+
customize: props.customize
|
|
506
|
+
},
|
|
507
|
+
slots
|
|
508
|
+
);
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
|
|
512
|
+
export { index as default };
|
|
513
|
+
//# sourceMappingURL=index-cG54gaKX.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-cG54gaKX.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/index-cG54gaKX.js"],"names":[],"mappings":"","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_d323dde7_lang = ".toc-btn[data-v-d323dde7]{background-color:var(--color-gray-100,oklch(96.7% .003 264.542));border-radius:var(--radius-lg,.5rem);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));padding-block:calc(var(--spacing,.25rem)*2);padding-inline:calc(var(--spacing,.25rem)*3);transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)))}@media(hover:hover){.toc-btn[data-v-d323dde7]:hover{background-color:var(--color-blue-100,oklch(93.2% .032 255.585));color:var(--color-blue-700,oklch(48.8% .243 264.376))}}";
|
|
2
|
+
|
|
3
|
+
const indexStyles_BX2SZiiS = [
|
|
4
|
+
index_vue_vue_type_style_index_0_scoped_d323dde7_lang
|
|
5
|
+
];
|
|
6
|
+
|
|
7
|
+
export { indexStyles_BX2SZiiS as default };
|
|
8
|
+
//# sourceMappingURL=index-styles.BX2SZiiS.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-styles.BX2SZiiS.mjs","sources":["../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/index-styles-1.mjs-DyNuB4xB.js","../../../../node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/index-styles.BX2SZiiS.mjs"],"names":["style_0"],"mappings":"","x_google_ignoreList":[0,1]}
|