athar-mcp 0.1.0 → 0.2.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/dashboard/.output/nitro.json +15 -0
- package/dashboard/.output/public/_fonts/31PZhXd_YTCmsoiPQZc-xVtAWAkLogRFRj5mWplmKFE-6WsTw05QKugcwLySGc_b9CIheG8j8LRyo47qPL430Mk.woff2 +0 -0
- package/dashboard/.output/public/_fonts/3e3wuf-V_7icWvlsSS3Ud6R1mFSymwsfz35VcqiVjOk-jnii4_jMs7YAJOhzZP3bGdrbXGt5dYv8_t_rhpHzpcQ.woff2 +0 -0
- package/dashboard/.output/public/_fonts/3mk1pEYaO7RuhctnlpKcyb7yjVLICedncSfY13ffbM8-vJidvBvYJRk77_zQIyVpja44ymm1FQTiYKUcM_aD5Sg.woff2 +0 -0
- package/dashboard/.output/public/_fonts/9FWLUGCSCYLRIRMtCzLrt4Go7DMFXOeN_pyCOJD_44Y-Yh2wNaqrq_e759vVlc3tX81lMwRu9ktkQJX_Svgs-VI.woff2 +0 -0
- package/dashboard/.output/public/_fonts/9IZYb3o3tpRXPqjzNd4r3vIIohLuRBC5-h_ByvqRowU-ZgMUMfi6FcHpaV_ucYIWcBvLG6geajFq70Smps0DAj0.woff2 +0 -0
- package/dashboard/.output/public/_fonts/AA0_6TP-Ed9gQINhOsvbweBE3xLQgxmg6pXqHmvCwsM-egZLwYC5qVnfGWql7G5NfYTIiMP1PB_tQWIq5f7S-0k.woff2 +0 -0
- package/dashboard/.output/public/_fonts/BQnDL9FFy0Q_jvURlmv87luvmXLSMbSuXsfZv_R2Rkk-y5MVrLtP4J_1al8rz8R-MDaUOMAHckAWCwDrKhw25fY.woff2 +0 -0
- package/dashboard/.output/public/_fonts/Df7M9JXECnQBPeMk0JlWv5oI4E80OSjKvG82PCAX-MI-aXpKyr1n0W6NWbCApKANrm9O50H_fjFMdBzwfTY75iM.woff2 +0 -0
- package/dashboard/.output/public/_fonts/F00Bxq4ciZESODR5suhK3xDWcsQ9RLj9SyZQEevpEsw-BLNEvb6wAcL3fpb4n4d3zVEKUoa2hsUKxxkf3YdvJKc.woff2 +0 -0
- package/dashboard/.output/public/_fonts/HsvEuay0nMOs_2ObxMGaCaFlKdRnnDmfWeFTeRbjAVE-UeGuS_NHKiKleun7gcayWaUNaV2zWnEeGUxJVueLYm0.woff +0 -0
- package/dashboard/.output/public/_fonts/JSrPAbQHsQEdUrIE5Ts6fIQ2ymsa4i7HhiCpui6ulCc-_AoyGWssOn06OMh3ZY_GddBBPRny4Igxin4fT_1K6F4.woff2 +0 -0
- package/dashboard/.output/public/_fonts/Jtqhy44WKYEjGWTSusP5YJfJv7Wf74QqgkBOI9u_77s-Rl_Bht5SvmaotE20bkavBEAJEEGEa0hcz3d_8yOeXmw.woff +0 -0
- package/dashboard/.output/public/_fonts/KOrIgK47CByspZJWjOLg8AL2ADg9uFcNjZd9W78jrmM-dU37DP77KwUzMqqldljJHhSe3lJpaSfI9HPfiVAxPOM.woff2 +0 -0
- package/dashboard/.output/public/_fonts/M-60tFLmAJxdPjHsK-2ILWom5zPbu37lb3Qex2waL14-A9y4QcXALPi_RvQsmRsSFUxrT3_J213W4zPFIXetlbw.woff2 +0 -0
- package/dashboard/.output/public/_fonts/NwLHmPccLrJlBVGp4QRXOLZaNI0M_K6XuSwyVjpr47g-jl4tqz8gcsgAJDPcbl5roY78zy31I6Rq51WBLpZngFg.woff2 +0 -0
- package/dashboard/.output/public/_fonts/T-ozk-QJ_Ck37B2RHPl2i-s_gAGGo7suFgagWoJ8bO4-maDXQ_nEXKAaLHm4Joud3DJR9EVzS7QXWMWK8YOTIcs.woff2 +0 -0
- package/dashboard/.output/public/_fonts/TTYbISAfwy-y4uVGS9AH32sK7b2xJsoCESo64ryf8LU-y87nRMqBGo42rUOW9tWZa06o4oTa0USJrAMMoKDamgs.woff2 +0 -0
- package/dashboard/.output/public/_fonts/Y_5DOsLit49q2i2tbcNxnyUen9__GPCX8mwAi03q1aA-pBCjVKDT5tBT3BJckh9uzNkfUWeUIBPz9Y8T55vcj8E.woff2 +0 -0
- package/dashboard/.output/public/_fonts/ZHaz3DhCHNWhsElqYfuM71rfBBDgjuU2sd34vaYJwQg-71NZaZSGjxzAGjCMnCc2zS5rS_EGA0xHKPGCggWuXik.woff +0 -0
- package/dashboard/.output/public/_fonts/_lyVj3lEzRng_G7gZNcCmL83BnMEos-Hf8bpHLMzGQI-zsVE1T2QbmkXlEbQhs2gb3j3VBOOGhzqyW_ZW_0s3F8.woff2 +0 -0
- package/dashboard/.output/public/_fonts/bUcXp2ExGsFoCjH4L_AiPGX0TLCAgnqR8nvW7SxSJYQ-kvm9UWc_MFZW_r85yX6uPdzXVmdcUOio_Wb1x_7QdXM.woff2 +0 -0
- package/dashboard/.output/public/_fonts/f3COenLcoezM74LmVz7-HHQTyPKopVoMY6x2syLMzQE-shPZYE7IAjZWz4okT_CWn96WfGzoLhasK43_mhj3CZI.woff2 +0 -0
- package/dashboard/.output/public/_fonts/h9PwCjip_BNPVO50hT4v29USWFv6H3ZlYx_IestfqgY-sYfLVuZXl9E1aYbn1S0pAr4zfdQ_WT7iBZhrgQY6N-4.woff2 +0 -0
- package/dashboard/.output/public/_fonts/l00UCz_-QvI_NO8AGcu7ooAcrFDlxYUdxCSCh6gBwd4-vPjTZ3ztgw27A2TnHeCycxPvUtXWEVpG33_97ra6su8.woff2 +0 -0
- package/dashboard/.output/public/_fonts/nuenOq7ZFSZ65QudJO7uQ0sOjDqow2WjfXrQh4S9gEc-uF81rxcswER5srfhzyLfPoGlKNAIt2C_BvkXFOc19rw.woff2 +0 -0
- package/dashboard/.output/public/_fonts/pWMvGwciZ-EfQsfR2ueelhC7Jnt5K-8Px8PjPK0mDII-eT9iD0iZ9WWhTJs6V5GxXr0iaUwx_WxgGGriOiGb81o.woff2 +0 -0
- package/dashboard/.output/public/_fonts/sqxfSu-14RfawvZSbzb3mPoBYaXxmTGIac1Kk0GVk_w-oe_5KiWXPVdvpURHWSiaIjA1N_zLqpjSzmfpwRHr7CQ.woff2 +0 -0
- package/dashboard/.output/public/_fonts/wMdBqIWtsuS5eTYXRFwACf6n6oW2h-j42f90vWIPIO8-vrVOc_lrScYZMKO0_R3igKLheJfV2qZ3c5qlWOY0LDQ.woff +0 -0
- package/dashboard/.output/public/_fonts/y3mP_zJcojQwJn30TpF_XxDzgeM6Nbk7MaRg1Ne0YcI-lFx13nqMCMgk_S70gRmwEHXlE5BLp1B4W82RpFihpMs.woff2 +0 -0
- package/dashboard/.output/public/_fonts/zr3WxpLd5PmlBr7e4PWGkhZv6XTg70Pi4sCbC-CEV0Q-v2yL98XOiD3FkbiYlYYeAeTSVSkgAckeOp55Q5kHJmU.woff2 +0 -0
- package/dashboard/.output/public/_nuxt/B0Bu7wg2.js +1 -0
- package/dashboard/.output/public/_nuxt/BNBS3IWx.js +1 -0
- package/dashboard/.output/public/_nuxt/Ba3u15ft.js +1 -0
- package/dashboard/.output/public/_nuxt/CH7yjz82.js +4 -0
- package/dashboard/.output/public/_nuxt/COkkU9In.js +1 -0
- package/dashboard/.output/public/_nuxt/C_XEhq4z.js +1 -0
- package/dashboard/.output/public/_nuxt/YOlRD-cU.js +1 -0
- package/dashboard/.output/public/_nuxt/_id_.Dz86UAW3.css +1 -0
- package/dashboard/.output/public/_nuxt/builds/latest.json +1 -0
- package/dashboard/.output/public/_nuxt/builds/meta/a6e303b2-379a-45a9-8bdf-906e96134fda.json +1 -0
- package/dashboard/.output/public/_nuxt/entry.D51cHmax.css +1 -0
- package/dashboard/.output/public/_nuxt/error-404.C3kT2QX-.css +1 -0
- package/dashboard/.output/public/_nuxt/error-500.BW0Y54Of.css +1 -0
- package/dashboard/.output/public/_nuxt/fpe_5SoV.js +1 -0
- package/dashboard/.output/server/chunks/_/db.mjs +27 -0
- package/dashboard/.output/server/chunks/_/db.mjs.map +1 -0
- package/dashboard/.output/server/chunks/_/error-500.mjs +19 -0
- package/dashboard/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/_id_-CQaF66RF.mjs +139 -0
- package/dashboard/.output/server/chunks/build/_id_-CQaF66RF.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/_id_-styles.DKwggH1p.mjs +8 -0
- package/dashboard/.output/server/chunks/build/_id_-styles.DKwggH1p.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/app-styles.nHRnXOH3.mjs +25 -0
- package/dashboard/.output/server/chunks/build/app-styles.nHRnXOH3.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/dashboard/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/composables-lps5heb5.mjs +23 -0
- package/dashboard/.output/server/chunks/build/composables-lps5heb5.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/error-404-D0Xi6cQ6.mjs +92 -0
- package/dashboard/.output/server/chunks/build/error-404-D0Xi6cQ6.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/error-404-styles.C8lgdT6t.mjs +8 -0
- package/dashboard/.output/server/chunks/build/error-404-styles.C8lgdT6t.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/error-500-DabQpmqy.mjs +75 -0
- package/dashboard/.output/server/chunks/build/error-500-DabQpmqy.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/error-500-styles.Ccrcwcfa.mjs +8 -0
- package/dashboard/.output/server/chunks/build/error-500-styles.Ccrcwcfa.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/fetch-BlczD9wj.mjs +503 -0
- package/dashboard/.output/server/chunks/build/fetch-BlczD9wj.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/index-C-zhU_b9.mjs +174 -0
- package/dashboard/.output/server/chunks/build/index-C-zhU_b9.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/index-Dnk7jknb.mjs +154 -0
- package/dashboard/.output/server/chunks/build/index-Dnk7jknb.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/server.mjs +1552 -0
- package/dashboard/.output/server/chunks/build/server.mjs.map +1 -0
- package/dashboard/.output/server/chunks/build/styles.mjs +10 -0
- package/dashboard/.output/server/chunks/build/styles.mjs.map +1 -0
- package/dashboard/.output/server/chunks/nitro/nitro.mjs +5497 -0
- package/dashboard/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/dashboard/.output/server/chunks/routes/api/lessons/_id_.get.mjs +35 -0
- package/dashboard/.output/server/chunks/routes/api/lessons/_id_.get.mjs.map +1 -0
- package/dashboard/.output/server/chunks/routes/api/lessons.get.mjs +64 -0
- package/dashboard/.output/server/chunks/routes/api/lessons.get.mjs.map +1 -0
- package/dashboard/.output/server/chunks/routes/api/stats.get.mjs +59 -0
- package/dashboard/.output/server/chunks/routes/api/stats.get.mjs.map +1 -0
- package/dashboard/.output/server/chunks/routes/renderer.mjs +458 -0
- package/dashboard/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/dashboard/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/dashboard/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/dashboard/.output/server/index.mjs +10 -0
- package/dashboard/.output/server/index.mjs.map +1 -0
- package/dashboard/.output/server/node_modules/@babel/parser/lib/index.js +14599 -0
- package/dashboard/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/dashboard/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6759 -0
- package/dashboard/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/dashboard/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/dashboard/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/dashboard/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/dashboard/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
- package/dashboard/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
- package/dashboard/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1899 -0
- package/dashboard/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/dashboard/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6940 -0
- package/dashboard/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/dashboard/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1822 -0
- package/dashboard/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/dashboard/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +896 -0
- package/dashboard/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/dashboard/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/dashboard/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/dashboard/.output/server/node_modules/devalue/index.js +4 -0
- package/dashboard/.output/server/node_modules/devalue/package.json +40 -0
- package/dashboard/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/dashboard/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/dashboard/.output/server/node_modules/devalue/src/parse.js +283 -0
- package/dashboard/.output/server/node_modules/devalue/src/stringify.js +401 -0
- package/dashboard/.output/server/node_modules/devalue/src/uneval.js +552 -0
- package/dashboard/.output/server/node_modules/devalue/src/utils.js +160 -0
- package/dashboard/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/dashboard/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/dashboard/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/dashboard/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/dashboard/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/dashboard/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/dashboard/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/dashboard/.output/server/node_modules/entities/package.json +120 -0
- package/dashboard/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/dashboard/.output/server/node_modules/estree-walker/package.json +37 -0
- package/dashboard/.output/server/node_modules/hookable/dist/index.mjs +257 -0
- package/dashboard/.output/server/node_modules/hookable/package.json +53 -0
- package/dashboard/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
- package/dashboard/.output/server/node_modules/perfect-debounce/package.json +41 -0
- package/dashboard/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/dashboard/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/dashboard/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/dashboard/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/dashboard/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/dashboard/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/dashboard/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/dashboard/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/dashboard/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/dashboard/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/dashboard/.output/server/node_modules/source-map-js/package.json +71 -0
- package/dashboard/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/dashboard/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/dashboard/.output/server/node_modules/ufo/package.json +48 -0
- package/dashboard/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/dashboard/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/dashboard/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/dashboard/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/dashboard/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +207 -0
- package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
- package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +182 -0
- package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
- package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +44 -0
- package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
- package/dashboard/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/dashboard/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/dashboard/.output/server/node_modules/unhead/package.json +105 -0
- package/dashboard/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/dashboard/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/dashboard/.output/server/node_modules/vue/index.js +7 -0
- package/dashboard/.output/server/node_modules/vue/index.mjs +1 -0
- package/dashboard/.output/server/node_modules/vue/package.json +112 -0
- package/dashboard/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/dashboard/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +249 -0
- package/dashboard/.output/server/node_modules/vue-bundle-renderer/package.json +57 -0
- package/dashboard/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
- package/dashboard/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
- package/dashboard/.output/server/node_modules/vue-router/package.json +153 -0
- package/dashboard/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/dashboard/.output/server/package.json +29 -0
- package/dist/cli/commands/dashboard.d.ts +2 -0
- package/dist/cli/commands/dashboard.d.ts.map +1 -0
- package/dist/cli/commands/dashboard.js +30 -0
- package/dist/cli/commands/dashboard.js.map +1 -0
- package/dist/cli/index.js +5 -0
- package/dist/cli/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { S as SafeInputPlugin, F as FlatMetaPlugin } from './unhead.D4vSFytZ.mjs';
|
|
2
|
+
|
|
3
|
+
function useHead(unhead, input, options = {}) {
|
|
4
|
+
return unhead.push(input || {}, options);
|
|
5
|
+
}
|
|
6
|
+
function useHeadSafe(unhead, input = {}, options = {}) {
|
|
7
|
+
unhead.use(SafeInputPlugin);
|
|
8
|
+
return useHead(unhead, input, Object.assign(options, { _safe: true }));
|
|
9
|
+
}
|
|
10
|
+
function useSeoMeta(unhead, input = {}, options) {
|
|
11
|
+
unhead.use(FlatMetaPlugin);
|
|
12
|
+
function normalize(input2) {
|
|
13
|
+
if (input2._flatMeta) {
|
|
14
|
+
return input2;
|
|
15
|
+
}
|
|
16
|
+
const { title, titleTemplate, ...meta } = input2 || {};
|
|
17
|
+
return {
|
|
18
|
+
title,
|
|
19
|
+
titleTemplate,
|
|
20
|
+
_flatMeta: meta
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
const entry = unhead.push(normalize(input), options);
|
|
24
|
+
const corePatch = entry.patch;
|
|
25
|
+
if (!entry.__patched) {
|
|
26
|
+
entry.patch = (input2) => corePatch(normalize(input2));
|
|
27
|
+
entry.__patched = true;
|
|
28
|
+
}
|
|
29
|
+
return entry;
|
|
30
|
+
}
|
|
31
|
+
function useServerHead(unhead, input = {}, options = {}) {
|
|
32
|
+
options.mode = "server";
|
|
33
|
+
return unhead.push(input, options);
|
|
34
|
+
}
|
|
35
|
+
function useServerHeadSafe(unhead, input = {}, options = {}) {
|
|
36
|
+
options.mode = "server";
|
|
37
|
+
return useHeadSafe(unhead, input, { ...options, mode: "server" });
|
|
38
|
+
}
|
|
39
|
+
function useServerSeoMeta(unhead, input = {}, options) {
|
|
40
|
+
options.mode = "server";
|
|
41
|
+
return useSeoMeta(unhead, input, { ...options, mode: "server" });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { useHeadSafe as a, useSeoMeta as b, useServerHead as c, useServerHeadSafe as d, useServerSeoMeta as e, useHead as u };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { d as defineHeadPlugin } from './unhead.D4vSFytZ.mjs';
|
|
2
|
+
import { s as sortTags } from './unhead.CbpEuj3y.mjs';
|
|
3
|
+
import { p as processTemplateParams } from './unhead.BYvz9V1x.mjs';
|
|
4
|
+
|
|
5
|
+
const formatKey = (k) => !k.includes(":key") ? k.split(":").join(":key:") : k;
|
|
6
|
+
const AliasSortingPlugin = defineHeadPlugin({
|
|
7
|
+
key: "aliasSorting",
|
|
8
|
+
hooks: {
|
|
9
|
+
"tags:resolve": (ctx) => {
|
|
10
|
+
let m = false;
|
|
11
|
+
for (const t of ctx.tags) {
|
|
12
|
+
const p = t.tagPriority;
|
|
13
|
+
if (!p)
|
|
14
|
+
continue;
|
|
15
|
+
const s = String(p);
|
|
16
|
+
if (s.startsWith("before:")) {
|
|
17
|
+
const k = formatKey(s.slice(7));
|
|
18
|
+
const l = ctx.tagMap.get(k);
|
|
19
|
+
if (l) {
|
|
20
|
+
if (typeof l.tagPriority === "number")
|
|
21
|
+
t.tagPriority = l.tagPriority;
|
|
22
|
+
t._p = l._p - 1;
|
|
23
|
+
m = true;
|
|
24
|
+
}
|
|
25
|
+
} else if (s.startsWith("after:")) {
|
|
26
|
+
const k = formatKey(s.slice(6));
|
|
27
|
+
const l = ctx.tagMap.get(k);
|
|
28
|
+
if (l) {
|
|
29
|
+
if (typeof l.tagPriority === "number")
|
|
30
|
+
t.tagPriority = l.tagPriority;
|
|
31
|
+
t._p = l._p + 1;
|
|
32
|
+
m = true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (m)
|
|
37
|
+
ctx.tags = ctx.tags.sort(sortTags);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const DeprecationsPlugin = /* @__PURE__ */ defineHeadPlugin({
|
|
43
|
+
key: "deprecations",
|
|
44
|
+
hooks: {
|
|
45
|
+
"entries:normalize": ({ tags }) => {
|
|
46
|
+
for (const tag of tags) {
|
|
47
|
+
if (tag.props.children) {
|
|
48
|
+
tag.innerHTML = tag.props.children;
|
|
49
|
+
delete tag.props.children;
|
|
50
|
+
}
|
|
51
|
+
if (tag.props.hid) {
|
|
52
|
+
tag.key = tag.props.hid;
|
|
53
|
+
delete tag.props.hid;
|
|
54
|
+
}
|
|
55
|
+
if (tag.props.vmid) {
|
|
56
|
+
tag.key = tag.props.vmid;
|
|
57
|
+
delete tag.props.vmid;
|
|
58
|
+
}
|
|
59
|
+
if (tag.props.body) {
|
|
60
|
+
tag.tagPosition = "bodyClose";
|
|
61
|
+
delete tag.props.body;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
async function walkPromises(v) {
|
|
69
|
+
const type = typeof v;
|
|
70
|
+
if (type === "function") {
|
|
71
|
+
return v;
|
|
72
|
+
}
|
|
73
|
+
if (v instanceof Promise) {
|
|
74
|
+
return await v;
|
|
75
|
+
}
|
|
76
|
+
if (Array.isArray(v)) {
|
|
77
|
+
return await Promise.all(v.map((r) => walkPromises(r)));
|
|
78
|
+
}
|
|
79
|
+
if (v?.constructor === Object) {
|
|
80
|
+
const next = {};
|
|
81
|
+
for (const key of Object.keys(v)) {
|
|
82
|
+
next[key] = await walkPromises(v[key]);
|
|
83
|
+
}
|
|
84
|
+
return next;
|
|
85
|
+
}
|
|
86
|
+
return v;
|
|
87
|
+
}
|
|
88
|
+
const PromisesPlugin = /* @__PURE__ */ defineHeadPlugin({
|
|
89
|
+
key: "promises",
|
|
90
|
+
hooks: {
|
|
91
|
+
"entries:resolve": async (ctx) => {
|
|
92
|
+
const promises = [];
|
|
93
|
+
for (const k in ctx.entries) {
|
|
94
|
+
if (!ctx.entries[k]._promisesProcessed) {
|
|
95
|
+
promises.push(
|
|
96
|
+
walkPromises(ctx.entries[k].input).then((val) => {
|
|
97
|
+
ctx.entries[k].input = val;
|
|
98
|
+
ctx.entries[k]._promisesProcessed = true;
|
|
99
|
+
})
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
await Promise.all(promises);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
const SupportedAttrs = {
|
|
109
|
+
meta: "content",
|
|
110
|
+
link: "href",
|
|
111
|
+
htmlAttrs: "lang"
|
|
112
|
+
};
|
|
113
|
+
const contentAttrs = ["innerHTML", "textContent"];
|
|
114
|
+
const TemplateParamsPlugin = /* @__PURE__ */ defineHeadPlugin((head) => {
|
|
115
|
+
return {
|
|
116
|
+
key: "template-params",
|
|
117
|
+
hooks: {
|
|
118
|
+
"entries:normalize": (ctx) => {
|
|
119
|
+
const params = ctx.tags.filter((t) => t.tag === "templateParams" && t.mode === "server")?.[0]?.props || {};
|
|
120
|
+
if (Object.keys(params).length) {
|
|
121
|
+
head._ssrPayload = {
|
|
122
|
+
templateParams: {
|
|
123
|
+
...head._ssrPayload?.templateParams || {},
|
|
124
|
+
...params
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"tags:resolve": ({ tagMap, tags }) => {
|
|
130
|
+
const params = tagMap.get("templateParams")?.props || {};
|
|
131
|
+
const sep = params.separator || "|";
|
|
132
|
+
delete params.separator;
|
|
133
|
+
params.pageTitle = processTemplateParams(
|
|
134
|
+
// find templateParams
|
|
135
|
+
params.pageTitle || head._title || "",
|
|
136
|
+
params,
|
|
137
|
+
sep
|
|
138
|
+
);
|
|
139
|
+
for (const tag of tags) {
|
|
140
|
+
if (tag.processTemplateParams === false) {
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
const v = SupportedAttrs[tag.tag];
|
|
144
|
+
if (v && typeof tag.props[v] === "string") {
|
|
145
|
+
tag.props[v] = processTemplateParams(tag.props[v], params, sep);
|
|
146
|
+
} else if (tag.processTemplateParams || tag.tag === "titleTemplate" || tag.tag === "title") {
|
|
147
|
+
for (const p of contentAttrs) {
|
|
148
|
+
if (typeof tag[p] === "string")
|
|
149
|
+
tag[p] = processTemplateParams(tag[p], params, sep, tag.tag === "script" && tag.props.type.endsWith("json"));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
head._templateParams = params;
|
|
154
|
+
head._separator = sep;
|
|
155
|
+
},
|
|
156
|
+
"tags:afterResolve": ({ tagMap }) => {
|
|
157
|
+
const title = tagMap.get("title");
|
|
158
|
+
if (title?.textContent && title.processTemplateParams !== false) {
|
|
159
|
+
title.textContent = processTemplateParams(title.textContent, head._templateParams, head._separator);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
export { AliasSortingPlugin as A, DeprecationsPlugin as D, PromisesPlugin as P, TemplateParamsPlugin as T };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const SelfClosingTags = /* @__PURE__ */ new Set(["meta", "link", "base"]);
|
|
2
|
+
const DupeableTags = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]);
|
|
3
|
+
const TagsWithInnerContent = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]);
|
|
4
|
+
const HasElementTags = /* @__PURE__ */ new Set([
|
|
5
|
+
"base",
|
|
6
|
+
"meta",
|
|
7
|
+
"link",
|
|
8
|
+
"style",
|
|
9
|
+
"script",
|
|
10
|
+
"noscript"
|
|
11
|
+
]);
|
|
12
|
+
const ValidHeadTags = /* @__PURE__ */ new Set([
|
|
13
|
+
"title",
|
|
14
|
+
"base",
|
|
15
|
+
"htmlAttrs",
|
|
16
|
+
"bodyAttrs",
|
|
17
|
+
"meta",
|
|
18
|
+
"link",
|
|
19
|
+
"style",
|
|
20
|
+
"script",
|
|
21
|
+
"noscript"
|
|
22
|
+
]);
|
|
23
|
+
const UniqueTags = /* @__PURE__ */ new Set(["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"]);
|
|
24
|
+
const TagConfigKeys = /* @__PURE__ */ new Set(["key", "tagPosition", "tagPriority", "tagDuplicateStrategy", "innerHTML", "textContent", "processTemplateParams"]);
|
|
25
|
+
const ScriptNetworkEvents = /* @__PURE__ */ new Set(["onload", "onerror"]);
|
|
26
|
+
const UsesMergeStrategy = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"]);
|
|
27
|
+
const MetaTagsArrayable = /* @__PURE__ */ new Set([
|
|
28
|
+
"theme-color",
|
|
29
|
+
"google-site-verification",
|
|
30
|
+
"og",
|
|
31
|
+
"article",
|
|
32
|
+
"book",
|
|
33
|
+
"profile",
|
|
34
|
+
"twitter",
|
|
35
|
+
"author"
|
|
36
|
+
]);
|
|
37
|
+
|
|
38
|
+
export { DupeableTags as D, HasElementTags as H, MetaTagsArrayable as M, SelfClosingTags as S, TagsWithInnerContent as T, UniqueTags as U, ValidHeadTags as V, TagConfigKeys as a, ScriptNetworkEvents as b, UsesMergeStrategy as c };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { D as DupeableTags, H as HasElementTags, M as MetaTagsArrayable, b as ScriptNetworkEvents, S as SelfClosingTags, a as TagConfigKeys, T as TagsWithInnerContent, U as UniqueTags, c as UsesMergeStrategy, V as ValidHeadTags } from './shared/unhead.yem5I2v_.mjs';
|
|
2
|
+
export { d as dedupeKey, h as hashTag, i as isMetaArrayDupeKey, n as normalizeEntryToTags, a as normalizeProps, w as walkResolver } from './shared/unhead.B3VbJo7Y.mjs';
|
|
3
|
+
export { r as resolveMetaKeyType, a as resolveMetaKeyValue, b as resolvePackedMetaObjectValue, u as unpackMeta } from './shared/unhead.DQc16pHI.mjs';
|
|
4
|
+
export { s as sortTags, t as tagWeight } from './shared/unhead.CbpEuj3y.mjs';
|
|
5
|
+
export { p as processTemplateParams } from './shared/unhead.BYvz9V1x.mjs';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "unhead",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.1.15",
|
|
5
|
+
"description": "Full-stack <head> manager built for any framework.",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Harlan Wilton",
|
|
8
|
+
"email": "harlan@harlanzw.com",
|
|
9
|
+
"url": "https://harlanzw.com/"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public",
|
|
13
|
+
"tag": "2x"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"funding": "https://github.com/sponsors/harlan-zw",
|
|
17
|
+
"homepage": "https://unhead.unjs.io",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/unjs/unhead.git",
|
|
21
|
+
"directory": "packages/unhead"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/unjs/unhead/issues"
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"default": "./dist/index.mjs"
|
|
31
|
+
},
|
|
32
|
+
"./plugins": {
|
|
33
|
+
"types": "./dist/plugins.d.ts",
|
|
34
|
+
"default": "./dist/plugins.mjs"
|
|
35
|
+
},
|
|
36
|
+
"./server": {
|
|
37
|
+
"types": "./dist/server.d.ts",
|
|
38
|
+
"default": "./dist/server.mjs"
|
|
39
|
+
},
|
|
40
|
+
"./client": {
|
|
41
|
+
"types": "./dist/client.d.ts",
|
|
42
|
+
"default": "./dist/client.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./legacy": {
|
|
45
|
+
"types": "./dist/legacy.d.ts",
|
|
46
|
+
"default": "./dist/legacy.mjs"
|
|
47
|
+
},
|
|
48
|
+
"./utils": {
|
|
49
|
+
"types": "./dist/utils.d.ts",
|
|
50
|
+
"default": "./dist/utils.mjs"
|
|
51
|
+
},
|
|
52
|
+
"./types": {
|
|
53
|
+
"types": "./dist/types.d.ts",
|
|
54
|
+
"default": "./dist/types.mjs"
|
|
55
|
+
},
|
|
56
|
+
"./scripts": {
|
|
57
|
+
"types": "./dist/scripts.d.ts",
|
|
58
|
+
"default": "./dist/scripts.mjs"
|
|
59
|
+
},
|
|
60
|
+
"./parser": {
|
|
61
|
+
"types": "./dist/parser.d.ts",
|
|
62
|
+
"default": "./dist/parser.mjs"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"main": "dist/index.mjs",
|
|
66
|
+
"module": "dist/index.mjs",
|
|
67
|
+
"types": "dist/index.d.ts",
|
|
68
|
+
"optionalPlugins": {
|
|
69
|
+
"*": {
|
|
70
|
+
"plugins": [
|
|
71
|
+
"dist/plugins"
|
|
72
|
+
],
|
|
73
|
+
"server": [
|
|
74
|
+
"dist/server"
|
|
75
|
+
],
|
|
76
|
+
"client": [
|
|
77
|
+
"dist/client"
|
|
78
|
+
],
|
|
79
|
+
"legacy": [
|
|
80
|
+
"dist/legacy"
|
|
81
|
+
],
|
|
82
|
+
"types": [
|
|
83
|
+
"dist/types"
|
|
84
|
+
],
|
|
85
|
+
"utils": [
|
|
86
|
+
"dist/utils"
|
|
87
|
+
],
|
|
88
|
+
"scripts": [
|
|
89
|
+
"dist/scripts"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"files": [
|
|
94
|
+
"*.d.ts",
|
|
95
|
+
"dist"
|
|
96
|
+
],
|
|
97
|
+
"dependencies": {
|
|
98
|
+
"hookable": "^6.0.1"
|
|
99
|
+
},
|
|
100
|
+
"scripts": {
|
|
101
|
+
"build": "unbuild",
|
|
102
|
+
"stub": "unbuild --stub",
|
|
103
|
+
"test:attw": "attw --pack"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue v3.5.39
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
var compilerDom = require('@vue/compiler-dom');
|
|
11
|
+
var runtimeDom = require('@vue/runtime-dom');
|
|
12
|
+
var shared = require('@vue/shared');
|
|
13
|
+
|
|
14
|
+
function _interopNamespaceDefault(e) {
|
|
15
|
+
var n = Object.create(null);
|
|
16
|
+
if (e) {
|
|
17
|
+
for (var k in e) {
|
|
18
|
+
n[k] = e[k];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var runtimeDom__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeDom);
|
|
26
|
+
|
|
27
|
+
const compileCache = /* @__PURE__ */ Object.create(null);
|
|
28
|
+
function compileToFunction(template, options) {
|
|
29
|
+
if (!shared.isString(template)) {
|
|
30
|
+
if (template.nodeType) {
|
|
31
|
+
template = template.innerHTML;
|
|
32
|
+
} else {
|
|
33
|
+
runtimeDom.warn(`invalid template option: `, template);
|
|
34
|
+
return shared.NOOP;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const key = shared.genCacheKey(template, options);
|
|
38
|
+
const cached = compileCache[key];
|
|
39
|
+
if (cached) {
|
|
40
|
+
return cached;
|
|
41
|
+
}
|
|
42
|
+
if (template[0] === "#") {
|
|
43
|
+
const el = document.querySelector(template);
|
|
44
|
+
if (!el) {
|
|
45
|
+
runtimeDom.warn(`Template element not found or is empty: ${template}`);
|
|
46
|
+
}
|
|
47
|
+
template = el ? el.innerHTML : ``;
|
|
48
|
+
}
|
|
49
|
+
const opts = shared.extend(
|
|
50
|
+
{
|
|
51
|
+
hoistStatic: true,
|
|
52
|
+
onError: onError ,
|
|
53
|
+
onWarn: (e) => onError(e, true)
|
|
54
|
+
},
|
|
55
|
+
options
|
|
56
|
+
);
|
|
57
|
+
if (!opts.isCustomElement && typeof customElements !== "undefined") {
|
|
58
|
+
opts.isCustomElement = (tag) => !!customElements.get(tag);
|
|
59
|
+
}
|
|
60
|
+
const { code } = compilerDom.compile(template, opts);
|
|
61
|
+
function onError(err, asWarning = false) {
|
|
62
|
+
const message = asWarning ? err.message : `Template compilation error: ${err.message}`;
|
|
63
|
+
const codeFrame = err.loc && shared.generateCodeFrame(
|
|
64
|
+
template,
|
|
65
|
+
err.loc.start.offset,
|
|
66
|
+
err.loc.end.offset
|
|
67
|
+
);
|
|
68
|
+
runtimeDom.warn(codeFrame ? `${message}
|
|
69
|
+
${codeFrame}` : message);
|
|
70
|
+
}
|
|
71
|
+
const render = new Function("Vue", code)(runtimeDom__namespace);
|
|
72
|
+
render._rc = true;
|
|
73
|
+
return compileCache[key] = render;
|
|
74
|
+
}
|
|
75
|
+
runtimeDom.registerRuntimeCompiler(compileToFunction);
|
|
76
|
+
|
|
77
|
+
exports.compile = compileToFunction;
|
|
78
|
+
Object.keys(runtimeDom).forEach(function (k) {
|
|
79
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];
|
|
80
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue v3.5.39
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
var compilerDom = require('@vue/compiler-dom');
|
|
11
|
+
var runtimeDom = require('@vue/runtime-dom');
|
|
12
|
+
var shared = require('@vue/shared');
|
|
13
|
+
|
|
14
|
+
function _interopNamespaceDefault(e) {
|
|
15
|
+
var n = Object.create(null);
|
|
16
|
+
if (e) {
|
|
17
|
+
for (var k in e) {
|
|
18
|
+
n[k] = e[k];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var runtimeDom__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeDom);
|
|
26
|
+
|
|
27
|
+
const compileCache = /* @__PURE__ */ Object.create(null);
|
|
28
|
+
function compileToFunction(template, options) {
|
|
29
|
+
if (!shared.isString(template)) {
|
|
30
|
+
if (template.nodeType) {
|
|
31
|
+
template = template.innerHTML;
|
|
32
|
+
} else {
|
|
33
|
+
return shared.NOOP;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const key = shared.genCacheKey(template, options);
|
|
37
|
+
const cached = compileCache[key];
|
|
38
|
+
if (cached) {
|
|
39
|
+
return cached;
|
|
40
|
+
}
|
|
41
|
+
if (template[0] === "#") {
|
|
42
|
+
const el = document.querySelector(template);
|
|
43
|
+
template = el ? el.innerHTML : ``;
|
|
44
|
+
}
|
|
45
|
+
const opts = shared.extend(
|
|
46
|
+
{
|
|
47
|
+
hoistStatic: true,
|
|
48
|
+
onError: void 0,
|
|
49
|
+
onWarn: shared.NOOP
|
|
50
|
+
},
|
|
51
|
+
options
|
|
52
|
+
);
|
|
53
|
+
if (!opts.isCustomElement && typeof customElements !== "undefined") {
|
|
54
|
+
opts.isCustomElement = (tag) => !!customElements.get(tag);
|
|
55
|
+
}
|
|
56
|
+
const { code } = compilerDom.compile(template, opts);
|
|
57
|
+
const render = new Function("Vue", code)(runtimeDom__namespace);
|
|
58
|
+
render._rc = true;
|
|
59
|
+
return compileCache[key] = render;
|
|
60
|
+
}
|
|
61
|
+
runtimeDom.registerRuntimeCompiler(compileToFunction);
|
|
62
|
+
|
|
63
|
+
exports.compile = compileToFunction;
|
|
64
|
+
Object.keys(runtimeDom).forEach(function (k) {
|
|
65
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];
|
|
66
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index.js'
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vue",
|
|
3
|
+
"version": "3.5.39",
|
|
4
|
+
"description": "The progressive JavaScript framework for building modern web UI.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "dist/vue.runtime.esm-bundler.js",
|
|
7
|
+
"types": "dist/vue.d.ts",
|
|
8
|
+
"unpkg": "dist/vue.global.js",
|
|
9
|
+
"jsdelivr": "dist/vue.global.js",
|
|
10
|
+
"files": [
|
|
11
|
+
"index.js",
|
|
12
|
+
"index.mjs",
|
|
13
|
+
"dist",
|
|
14
|
+
"compiler-sfc",
|
|
15
|
+
"server-renderer",
|
|
16
|
+
"jsx-runtime",
|
|
17
|
+
"jsx.d.ts"
|
|
18
|
+
],
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./dist/vue.d.mts",
|
|
23
|
+
"node": "./index.mjs",
|
|
24
|
+
"default": "./dist/vue.runtime.esm-bundler.js"
|
|
25
|
+
},
|
|
26
|
+
"require": {
|
|
27
|
+
"types": "./dist/vue.d.ts",
|
|
28
|
+
"node": {
|
|
29
|
+
"production": "./dist/vue.cjs.prod.js",
|
|
30
|
+
"development": "./dist/vue.cjs.js",
|
|
31
|
+
"default": "./dist/vue.cjs.prod.js"
|
|
32
|
+
},
|
|
33
|
+
"default": "./index.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"./server-renderer": {
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./server-renderer/index.d.mts",
|
|
39
|
+
"default": "./server-renderer/index.mjs"
|
|
40
|
+
},
|
|
41
|
+
"require": {
|
|
42
|
+
"types": "./server-renderer/index.d.ts",
|
|
43
|
+
"default": "./server-renderer/index.js"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"./compiler-sfc": {
|
|
47
|
+
"import": {
|
|
48
|
+
"types": "./compiler-sfc/index.d.mts",
|
|
49
|
+
"browser": "./compiler-sfc/index.browser.mjs",
|
|
50
|
+
"default": "./compiler-sfc/index.mjs"
|
|
51
|
+
},
|
|
52
|
+
"require": {
|
|
53
|
+
"types": "./compiler-sfc/index.d.ts",
|
|
54
|
+
"browser": "./compiler-sfc/index.browser.js",
|
|
55
|
+
"default": "./compiler-sfc/index.js"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"./jsx-runtime": {
|
|
59
|
+
"types": "./jsx-runtime/index.d.ts",
|
|
60
|
+
"import": "./jsx-runtime/index.mjs",
|
|
61
|
+
"require": "./jsx-runtime/index.js"
|
|
62
|
+
},
|
|
63
|
+
"./jsx-dev-runtime": {
|
|
64
|
+
"types": "./jsx-runtime/index.d.ts",
|
|
65
|
+
"import": "./jsx-runtime/index.mjs",
|
|
66
|
+
"require": "./jsx-runtime/index.js"
|
|
67
|
+
},
|
|
68
|
+
"./jsx": "./jsx.d.ts",
|
|
69
|
+
"./dist/*": "./dist/*",
|
|
70
|
+
"./package.json": "./package.json"
|
|
71
|
+
},
|
|
72
|
+
"buildOptions": {
|
|
73
|
+
"name": "Vue",
|
|
74
|
+
"formats": [
|
|
75
|
+
"esm-bundler",
|
|
76
|
+
"esm-bundler-runtime",
|
|
77
|
+
"cjs",
|
|
78
|
+
"global",
|
|
79
|
+
"global-runtime",
|
|
80
|
+
"esm-browser",
|
|
81
|
+
"esm-browser-runtime"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"repository": {
|
|
85
|
+
"type": "git",
|
|
86
|
+
"url": "git+https://github.com/vuejs/core.git"
|
|
87
|
+
},
|
|
88
|
+
"keywords": [
|
|
89
|
+
"vue"
|
|
90
|
+
],
|
|
91
|
+
"author": "Evan You",
|
|
92
|
+
"license": "MIT",
|
|
93
|
+
"bugs": {
|
|
94
|
+
"url": "https://github.com/vuejs/core/issues"
|
|
95
|
+
},
|
|
96
|
+
"homepage": "https://vuejs.org/",
|
|
97
|
+
"dependencies": {
|
|
98
|
+
"@vue/shared": "3.5.39",
|
|
99
|
+
"@vue/runtime-dom": "3.5.39",
|
|
100
|
+
"@vue/server-renderer": "3.5.39",
|
|
101
|
+
"@vue/compiler-dom": "3.5.39",
|
|
102
|
+
"@vue/compiler-sfc": "3.5.39"
|
|
103
|
+
},
|
|
104
|
+
"peerDependencies": {
|
|
105
|
+
"typescript": "*"
|
|
106
|
+
},
|
|
107
|
+
"peerDependenciesMeta": {
|
|
108
|
+
"typescript": {
|
|
109
|
+
"optional": true
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vue/server-renderer'
|