@fangzhongya/vue-archive 0.1.21 → 0.1.23
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/dist/_virtual/_commonjsHelpers.cjs +1 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/_plugin-vue_export-helper.cjs +1 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/common.cjs +1 -0
- package/dist/_virtual/common.js +7 -0
- package/dist/_virtual/core.cjs +1 -0
- package/dist/_virtual/core.js +7 -0
- package/dist/index.css +1 -2
- package/dist/node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dace39d2ab17d71b087de9a32848566a/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs +1 -0
- package/dist/node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dace39d2ab17d71b087de9a32848566a/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +31 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +5 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +47 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.cjs +3 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1063 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +383 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +283 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +527 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +388 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +929 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +60 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +157 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +76 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +113 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +246 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +664 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +44 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.cjs +2 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +248 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +998 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +65 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +73 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +222 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +243 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +475 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +53 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.cjs +2 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +572 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +19 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +32 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +405 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +213 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +394 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +311 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +914 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +31 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +621 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +805 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +759 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +128 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +120 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +225 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +189 -0
- package/dist/packages/components/aside/index.vue.cjs +1 -0
- package/dist/packages/components/aside/index.vue.js +98 -0
- package/dist/packages/components/aside/index.vue2.cjs +1 -0
- package/dist/packages/components/aside/index.vue2.js +4 -0
- package/dist/packages/components/boxurl/index.vue.cjs +1 -0
- package/dist/packages/components/boxurl/index.vue.js +62 -0
- package/dist/packages/components/boxurl/index.vue2.cjs +1 -0
- package/dist/packages/components/boxurl/index.vue2.js +4 -0
- package/dist/packages/components/choice/choice.vue.cjs +1 -0
- package/dist/packages/components/choice/choice.vue.js +46 -0
- package/dist/packages/components/choice/choice.vue2.cjs +1 -0
- package/dist/packages/components/choice/choice.vue2.js +4 -0
- package/dist/packages/components/choice/index.vue.cjs +1 -0
- package/dist/packages/components/choice/index.vue.js +87 -0
- package/dist/packages/components/choice/index.vue2.cjs +1 -0
- package/dist/packages/components/choice/index.vue2.js +4 -0
- package/dist/packages/components/code/highlight.vue.cjs +1 -0
- package/dist/packages/components/code/highlight.vue.js +16 -0
- package/dist/packages/components/code/highlight.vue2.cjs +1 -0
- package/dist/packages/components/code/highlight.vue2.js +20 -0
- package/dist/packages/components/code/index.vue.cjs +1 -0
- package/dist/packages/components/code/index.vue.js +115 -0
- package/dist/packages/components/code/index.vue2.cjs +1 -0
- package/dist/packages/components/code/index.vue2.js +4 -0
- package/dist/packages/components/compo/code.vue.cjs +1 -0
- package/dist/packages/components/compo/code.vue.js +21 -0
- package/dist/packages/components/compo/code.vue3.cjs +1 -0
- package/dist/packages/components/compo/code.vue3.js +5 -0
- package/dist/packages/components/compo/ftable.vue.cjs +1 -0
- package/dist/packages/components/compo/ftable.vue.js +57 -0
- package/dist/packages/components/compo/ftable.vue2.cjs +1 -0
- package/dist/packages/components/compo/ftable.vue2.js +4 -0
- package/dist/packages/components/compo/index.cjs +1 -0
- package/dist/packages/components/compo/index.js +127 -0
- package/dist/packages/components/compo/index.vue.cjs +1 -0
- package/dist/packages/components/compo/index.vue.js +79 -0
- package/dist/packages/components/compo/index.vue2.cjs +1 -0
- package/dist/packages/components/compo/index.vue2.js +4 -0
- package/dist/packages/components/compo/info-top.vue.cjs +1 -0
- package/dist/packages/components/compo/info-top.vue.js +32 -0
- package/dist/packages/components/compo/info-top.vue2.cjs +1 -0
- package/dist/packages/components/compo/info-top.vue2.js +4 -0
- package/dist/packages/components/compo/info.vue.cjs +1 -0
- package/dist/packages/components/compo/info.vue.js +41 -0
- package/dist/packages/components/compo/info.vue2.cjs +1 -0
- package/dist/packages/components/compo/info.vue2.js +4 -0
- package/dist/packages/components/compo/props.vue.cjs +1 -0
- package/dist/packages/components/compo/props.vue.js +87 -0
- package/dist/packages/components/compo/props.vue2.cjs +1 -0
- package/dist/packages/components/compo/props.vue2.js +4 -0
- package/dist/packages/components/compo/top.cjs +1 -0
- package/dist/packages/components/compo/top.js +148 -0
- package/dist/packages/components/header/index.vue.cjs +1 -0
- package/dist/packages/components/header/index.vue.js +10 -0
- package/dist/packages/components/main/index.vue.cjs +1 -0
- package/dist/packages/components/main/index.vue.js +68 -0
- package/dist/packages/components/main/index.vue2.cjs +1 -0
- package/dist/packages/components/main/index.vue2.js +4 -0
- package/dist/packages/components/md/index.vue.cjs +1 -0
- package/dist/packages/components/md/index.vue.js +56 -0
- package/dist/packages/components/md/index.vue2.cjs +1 -0
- package/dist/packages/components/md/index.vue2.js +4 -0
- package/dist/packages/components/test/index.cjs +1 -0
- package/dist/packages/components/test/index.js +105 -0
- package/dist/packages/components/test/index.vue.cjs +1 -0
- package/dist/packages/components/test/index.vue.js +75 -0
- package/dist/packages/components/test/index.vue2.cjs +1 -0
- package/dist/packages/components/test/index.vue2.js +4 -0
- package/dist/packages/components/test/top.cjs +1 -0
- package/dist/packages/components/test/top.js +148 -0
- package/dist/packages/components/use/code.cjs +20 -0
- package/dist/packages/components/use/code.js +212 -0
- package/dist/packages/components/use/code.vue.cjs +1 -0
- package/dist/packages/components/use/code.vue.js +66 -0
- package/dist/packages/components/use/code.vue2.cjs +1 -0
- package/dist/packages/components/use/code.vue2.js +4 -0
- package/dist/packages/components/use/edit.cjs +18 -0
- package/dist/packages/components/use/edit.js +214 -0
- package/dist/packages/components/use/effect.vue.cjs +1 -0
- package/dist/packages/components/use/effect.vue.js +12 -0
- package/dist/packages/components/use/index.cjs +1 -0
- package/dist/packages/components/use/index.js +196 -0
- package/dist/packages/components/use/prettier.cjs +1 -0
- package/dist/packages/components/use/prettier.js +40 -0
- package/dist/packages/components/use/retrie/any/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/any/index.vue.js +115 -0
- package/dist/packages/components/use/retrie/any/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/any/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/array/index.vue.cjs +3 -0
- package/dist/packages/components/use/retrie/array/index.vue.js +55 -0
- package/dist/packages/components/use/retrie/array/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/array/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/boolean/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/boolean/index.vue.js +68 -0
- package/dist/packages/components/use/retrie/boolean/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/boolean/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/choice/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/choice/index.vue.js +142 -0
- package/dist/packages/components/use/retrie/choice/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/choice/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/expose/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/expose/index.vue.js +63 -0
- package/dist/packages/components/use/retrie/expose/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/expose/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/form/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/form/index.vue.js +148 -0
- package/dist/packages/components/use/retrie/form/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/form/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/function/index.vue.cjs +3 -0
- package/dist/packages/components/use/retrie/function/index.vue.js +68 -0
- package/dist/packages/components/use/retrie/function/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/function/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/index.vue.js +103 -0
- package/dist/packages/components/use/retrie/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/input/editor/editor.cjs +1 -0
- package/dist/packages/components/use/retrie/input/editor/editor.js +104 -0
- package/dist/packages/components/use/retrie/input/editor/editor.vue.cjs +5 -0
- package/dist/packages/components/use/retrie/input/editor/editor.vue.js +59 -0
- package/dist/packages/components/use/retrie/input/editor/editor.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/input/editor/editor.vue3.js +5 -0
- package/dist/packages/components/use/retrie/input/editor/getExtraLib.cjs +416 -0
- package/dist/packages/components/use/retrie/input/editor/getExtraLib.js +427 -0
- package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/input/index.vue.js +54 -0
- package/dist/packages/components/use/retrie/input/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/input/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/input/text.vue.cjs +5 -0
- package/dist/packages/components/use/retrie/input/text.vue.js +39 -0
- package/dist/packages/components/use/retrie/input/text.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/input/text.vue3.js +5 -0
- package/dist/packages/components/use/retrie/number/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/number/index.vue.js +50 -0
- package/dist/packages/components/use/retrie/number/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/number/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/object/index.vue.cjs +3 -0
- package/dist/packages/components/use/retrie/object/index.vue.js +55 -0
- package/dist/packages/components/use/retrie/object/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/object/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/other/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/other/index.vue.js +67 -0
- package/dist/packages/components/use/retrie/other/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/other/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/select/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/select/index.vue.js +123 -0
- package/dist/packages/components/use/retrie/select/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/select/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/slot/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/slot/index.vue.js +43 -0
- package/dist/packages/components/use/retrie/slot/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/slot/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/string/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/string/index.vue.js +53 -0
- package/dist/packages/components/use/retrie/string/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/string/index.vue3.js +5 -0
- package/dist/packages/components/use/set-code.vue.cjs +1 -0
- package/dist/packages/components/use/set-code.vue.js +63 -0
- package/dist/packages/components/use/set-code.vue2.cjs +1 -0
- package/dist/packages/components/use/set-code.vue2.js +4 -0
- package/dist/packages/components/use/set-emit.vue.cjs +1 -0
- package/dist/packages/components/use/set-emit.vue.js +50 -0
- package/dist/packages/components/use/set-emit.vue3.cjs +1 -0
- package/dist/packages/components/use/set-emit.vue3.js +5 -0
- package/dist/packages/components/use/set-expose.vue.cjs +1 -0
- package/dist/packages/components/use/set-expose.vue.js +66 -0
- package/dist/packages/components/use/set-expose.vue3.cjs +1 -0
- package/dist/packages/components/use/set-expose.vue3.js +5 -0
- package/dist/packages/components/use/set-props.vue.cjs +1 -0
- package/dist/packages/components/use/set-props.vue.js +71 -0
- package/dist/packages/components/use/set-props.vue2.cjs +1 -0
- package/dist/packages/components/use/set-props.vue2.js +4 -0
- package/dist/packages/components/use/set-slot.vue.cjs +1 -0
- package/dist/packages/components/use/set-slot.vue.js +45 -0
- package/dist/packages/components/use/set-slot.vue2.cjs +1 -0
- package/dist/packages/components/use/set-slot.vue2.js +4 -0
- package/dist/packages/components/use/util.cjs +3 -0
- package/dist/packages/components/use/util.js +294 -0
- package/dist/packages/config.cjs +1 -0
- package/dist/packages/config.js +14 -0
- package/dist/packages/directives/adjust/index.cjs +1 -0
- package/dist/packages/directives/adjust/index.js +246 -0
- package/dist/packages/index/index.vue.cjs +1 -0
- package/dist/packages/index/index.vue.js +4 -0
- package/dist/packages/index/index.vue2.cjs +1 -0
- package/dist/packages/index/index.vue2.js +14 -0
- package/dist/packages/index.cjs +1 -0
- package/dist/packages/index.d.ts +1 -0
- package/dist/packages/index.js +20 -0
- package/dist/packages/page/compon/index.vue.cjs +1 -0
- package/dist/packages/page/compon/index.vue.js +4 -0
- package/dist/packages/page/compon/index.vue2.cjs +1 -0
- package/dist/packages/page/compon/index.vue2.js +21 -0
- package/dist/packages/page/comprops/index.vue.cjs +1 -0
- package/dist/packages/page/comprops/index.vue.js +4 -0
- package/dist/packages/page/comprops/index.vue2.cjs +1 -0
- package/dist/packages/page/comprops/index.vue2.js +91 -0
- package/dist/packages/page/develop/index.vue.cjs +1 -0
- package/dist/packages/page/develop/index.vue.js +4 -0
- package/dist/packages/page/develop/index.vue2.cjs +1 -0
- package/dist/packages/page/develop/index.vue2.js +26 -0
- package/dist/packages/page/edit/index.vue.cjs +1 -0
- package/dist/packages/page/edit/index.vue.js +4 -0
- package/dist/packages/page/edit/index.vue2.cjs +1 -0
- package/dist/packages/page/edit/index.vue2.js +27 -0
- package/dist/packages/page/index/index.vue.cjs +1 -0
- package/dist/packages/page/index/index.vue.js +4 -0
- package/dist/packages/page/index/index.vue2.cjs +1 -0
- package/dist/packages/page/index/index.vue2.js +61 -0
- package/dist/packages/page/single/index.vue.cjs +1 -0
- package/dist/packages/page/single/index.vue.js +4 -0
- package/dist/packages/page/single/index.vue2.cjs +1 -0
- package/dist/packages/page/single/index.vue2.js +60 -0
- package/dist/packages/page/tests/index.vue.cjs +1 -0
- package/dist/packages/page/tests/index.vue.js +4 -0
- package/dist/packages/page/tests/index.vue2.cjs +1 -0
- package/dist/packages/page/tests/index.vue2.js +67 -0
- package/dist/packages/router/file.cjs +1 -0
- package/dist/packages/router/file.js +44 -0
- package/dist/packages/router/index.cjs +1 -0
- package/dist/packages/router/index.js +122 -0
- package/dist/packages/utils/annotat.cjs +1 -0
- package/dist/packages/utils/annotat.js +322 -0
- package/dist/packages/utils/common.cjs +1 -0
- package/dist/packages/utils/common.js +200 -0
- package/dist/packages/utils/glob.cjs +5 -0
- package/dist/packages/utils/glob.js +502 -0
- package/dist/packages/utils/index.cjs +1 -0
- package/dist/packages/utils/index.js +14 -0
- package/dist/packages/utils/props.cjs +1 -0
- package/dist/packages/utils/props.js +110 -0
- package/dist/packages/utils/storage.cjs +1 -0
- package/dist/packages/utils/storage.js +34 -0
- package/dist/packages/utils/util.cjs +1 -0
- package/dist/packages/utils/util.js +46 -0
- package/package.json +5 -5
- package/dist/config.cjs +0 -1
- package/dist/config.js +0 -11
- package/dist/index/index.cjs +0 -1
- package/dist/index/index.js +0 -5
- package/dist/index/index.vue_vue_type_script_setup_true_lang.cjs +0 -1
- package/dist/index/index.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/index.cjs +0 -1
- package/dist/index.js +0 -15
- package/dist/router/file.cjs +0 -1
- package/dist/router/file.js +0 -32
- package/dist/router/index.cjs +0 -1
- package/dist/router/index.js +0 -45
- package/dist/utils/storage.cjs +0 -1
- package/dist/utils/storage.js +0 -23
|
@@ -0,0 +1,759 @@
|
|
|
1
|
+
var C, F;
|
|
2
|
+
function V() {
|
|
3
|
+
if (F) return C;
|
|
4
|
+
F = 1;
|
|
5
|
+
const N = "[A-Za-z$_][0-9A-Za-z$_]*", M = [
|
|
6
|
+
"as",
|
|
7
|
+
// for exports
|
|
8
|
+
"in",
|
|
9
|
+
"of",
|
|
10
|
+
"if",
|
|
11
|
+
"for",
|
|
12
|
+
"while",
|
|
13
|
+
"finally",
|
|
14
|
+
"var",
|
|
15
|
+
"new",
|
|
16
|
+
"function",
|
|
17
|
+
"do",
|
|
18
|
+
"return",
|
|
19
|
+
"void",
|
|
20
|
+
"else",
|
|
21
|
+
"break",
|
|
22
|
+
"catch",
|
|
23
|
+
"instanceof",
|
|
24
|
+
"with",
|
|
25
|
+
"throw",
|
|
26
|
+
"case",
|
|
27
|
+
"default",
|
|
28
|
+
"try",
|
|
29
|
+
"switch",
|
|
30
|
+
"continue",
|
|
31
|
+
"typeof",
|
|
32
|
+
"delete",
|
|
33
|
+
"let",
|
|
34
|
+
"yield",
|
|
35
|
+
"const",
|
|
36
|
+
"class",
|
|
37
|
+
// JS handles these with a special rule
|
|
38
|
+
// "get",
|
|
39
|
+
// "set",
|
|
40
|
+
"debugger",
|
|
41
|
+
"async",
|
|
42
|
+
"await",
|
|
43
|
+
"static",
|
|
44
|
+
"import",
|
|
45
|
+
"from",
|
|
46
|
+
"export",
|
|
47
|
+
"extends",
|
|
48
|
+
// It's reached stage 3, which is "recommended for implementation":
|
|
49
|
+
"using"
|
|
50
|
+
], v = [
|
|
51
|
+
"true",
|
|
52
|
+
"false",
|
|
53
|
+
"null",
|
|
54
|
+
"undefined",
|
|
55
|
+
"NaN",
|
|
56
|
+
"Infinity"
|
|
57
|
+
], w = [
|
|
58
|
+
// Fundamental objects
|
|
59
|
+
"Object",
|
|
60
|
+
"Function",
|
|
61
|
+
"Boolean",
|
|
62
|
+
"Symbol",
|
|
63
|
+
// numbers and dates
|
|
64
|
+
"Math",
|
|
65
|
+
"Date",
|
|
66
|
+
"Number",
|
|
67
|
+
"BigInt",
|
|
68
|
+
// text
|
|
69
|
+
"String",
|
|
70
|
+
"RegExp",
|
|
71
|
+
// Indexed collections
|
|
72
|
+
"Array",
|
|
73
|
+
"Float32Array",
|
|
74
|
+
"Float64Array",
|
|
75
|
+
"Int8Array",
|
|
76
|
+
"Uint8Array",
|
|
77
|
+
"Uint8ClampedArray",
|
|
78
|
+
"Int16Array",
|
|
79
|
+
"Int32Array",
|
|
80
|
+
"Uint16Array",
|
|
81
|
+
"Uint32Array",
|
|
82
|
+
"BigInt64Array",
|
|
83
|
+
"BigUint64Array",
|
|
84
|
+
// Keyed collections
|
|
85
|
+
"Set",
|
|
86
|
+
"Map",
|
|
87
|
+
"WeakSet",
|
|
88
|
+
"WeakMap",
|
|
89
|
+
// Structured data
|
|
90
|
+
"ArrayBuffer",
|
|
91
|
+
"SharedArrayBuffer",
|
|
92
|
+
"Atomics",
|
|
93
|
+
"DataView",
|
|
94
|
+
"JSON",
|
|
95
|
+
// Control abstraction objects
|
|
96
|
+
"Promise",
|
|
97
|
+
"Generator",
|
|
98
|
+
"GeneratorFunction",
|
|
99
|
+
"AsyncFunction",
|
|
100
|
+
// Reflection
|
|
101
|
+
"Reflect",
|
|
102
|
+
"Proxy",
|
|
103
|
+
// Internationalization
|
|
104
|
+
"Intl",
|
|
105
|
+
// WebAssembly
|
|
106
|
+
"WebAssembly"
|
|
107
|
+
], L = [
|
|
108
|
+
"Error",
|
|
109
|
+
"EvalError",
|
|
110
|
+
"InternalError",
|
|
111
|
+
"RangeError",
|
|
112
|
+
"ReferenceError",
|
|
113
|
+
"SyntaxError",
|
|
114
|
+
"TypeError",
|
|
115
|
+
"URIError"
|
|
116
|
+
], x = [
|
|
117
|
+
"setInterval",
|
|
118
|
+
"setTimeout",
|
|
119
|
+
"clearInterval",
|
|
120
|
+
"clearTimeout",
|
|
121
|
+
"require",
|
|
122
|
+
"exports",
|
|
123
|
+
"eval",
|
|
124
|
+
"isFinite",
|
|
125
|
+
"isNaN",
|
|
126
|
+
"parseFloat",
|
|
127
|
+
"parseInt",
|
|
128
|
+
"decodeURI",
|
|
129
|
+
"decodeURIComponent",
|
|
130
|
+
"encodeURI",
|
|
131
|
+
"encodeURIComponent",
|
|
132
|
+
"escape",
|
|
133
|
+
"unescape"
|
|
134
|
+
], k = [
|
|
135
|
+
"arguments",
|
|
136
|
+
"this",
|
|
137
|
+
"super",
|
|
138
|
+
"console",
|
|
139
|
+
"window",
|
|
140
|
+
"document",
|
|
141
|
+
"localStorage",
|
|
142
|
+
"sessionStorage",
|
|
143
|
+
"module",
|
|
144
|
+
"global"
|
|
145
|
+
// Node.js
|
|
146
|
+
], D = [].concat(
|
|
147
|
+
x,
|
|
148
|
+
w,
|
|
149
|
+
L
|
|
150
|
+
);
|
|
151
|
+
function G(e) {
|
|
152
|
+
const a = e.regex, t = (s, { after: d }) => {
|
|
153
|
+
const S = "</" + s[0].slice(1);
|
|
154
|
+
return s.input.indexOf(S, d) !== -1;
|
|
155
|
+
}, n = N, u = {
|
|
156
|
+
begin: "<>",
|
|
157
|
+
end: "</>"
|
|
158
|
+
}, y = /<[A-Za-z0-9\\._:-]+\s*\/>/, i = {
|
|
159
|
+
begin: /<[A-Za-z0-9\\._:-]+/,
|
|
160
|
+
end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
|
|
161
|
+
/**
|
|
162
|
+
* @param {RegExpMatchArray} match
|
|
163
|
+
* @param {CallbackResponse} response
|
|
164
|
+
*/
|
|
165
|
+
isTrulyOpeningTag: (s, d) => {
|
|
166
|
+
const S = s[0].length + s.index, p = s.input[S];
|
|
167
|
+
if (
|
|
168
|
+
// HTML should not include another raw `<` inside a tag
|
|
169
|
+
// nested type?
|
|
170
|
+
// `<Array<Array<number>>`, etc.
|
|
171
|
+
p === "<" || // the , gives away that this is not HTML
|
|
172
|
+
// `<T, A extends keyof T, V>`
|
|
173
|
+
p === ","
|
|
174
|
+
) {
|
|
175
|
+
d.ignoreMatch();
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
p === ">" && (t(s, { after: S }) || d.ignoreMatch());
|
|
179
|
+
let O;
|
|
180
|
+
const $ = s.input.substring(S);
|
|
181
|
+
if (O = $.match(/^\s*=/)) {
|
|
182
|
+
d.ignoreMatch();
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
if ((O = $.match(/^\s+extends\s+/)) && O.index === 0) {
|
|
186
|
+
d.ignoreMatch();
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}, o = {
|
|
191
|
+
$pattern: N,
|
|
192
|
+
keyword: M,
|
|
193
|
+
literal: v,
|
|
194
|
+
built_in: D,
|
|
195
|
+
"variable.language": k
|
|
196
|
+
}, T = "[0-9](_?[0-9])*", l = `\\.(${T})`, b = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", g = {
|
|
197
|
+
className: "number",
|
|
198
|
+
variants: [
|
|
199
|
+
// DecimalLiteral
|
|
200
|
+
{ begin: `(\\b(${b})((${l})|\\.)?|(${l}))[eE][+-]?(${T})\\b` },
|
|
201
|
+
{ begin: `\\b(${b})\\b((${l})\\b|\\.)?|(${l})\\b` },
|
|
202
|
+
// DecimalBigIntegerLiteral
|
|
203
|
+
{ begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
|
|
204
|
+
// NonDecimalIntegerLiteral
|
|
205
|
+
{ begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" },
|
|
206
|
+
{ begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" },
|
|
207
|
+
{ begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" },
|
|
208
|
+
// LegacyOctalIntegerLiteral (does not include underscore separators)
|
|
209
|
+
// https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals
|
|
210
|
+
{ begin: "\\b0[0-7]+n?\\b" }
|
|
211
|
+
],
|
|
212
|
+
relevance: 0
|
|
213
|
+
}, c = {
|
|
214
|
+
className: "subst",
|
|
215
|
+
begin: "\\$\\{",
|
|
216
|
+
end: "\\}",
|
|
217
|
+
keywords: o,
|
|
218
|
+
contains: []
|
|
219
|
+
// defined later
|
|
220
|
+
}, _ = {
|
|
221
|
+
begin: ".?html`",
|
|
222
|
+
end: "",
|
|
223
|
+
starts: {
|
|
224
|
+
end: "`",
|
|
225
|
+
returnEnd: !1,
|
|
226
|
+
contains: [
|
|
227
|
+
e.BACKSLASH_ESCAPE,
|
|
228
|
+
c
|
|
229
|
+
],
|
|
230
|
+
subLanguage: "xml"
|
|
231
|
+
}
|
|
232
|
+
}, m = {
|
|
233
|
+
begin: ".?css`",
|
|
234
|
+
end: "",
|
|
235
|
+
starts: {
|
|
236
|
+
end: "`",
|
|
237
|
+
returnEnd: !1,
|
|
238
|
+
contains: [
|
|
239
|
+
e.BACKSLASH_ESCAPE,
|
|
240
|
+
c
|
|
241
|
+
],
|
|
242
|
+
subLanguage: "css"
|
|
243
|
+
}
|
|
244
|
+
}, r = {
|
|
245
|
+
begin: ".?gql`",
|
|
246
|
+
end: "",
|
|
247
|
+
starts: {
|
|
248
|
+
end: "`",
|
|
249
|
+
returnEnd: !1,
|
|
250
|
+
contains: [
|
|
251
|
+
e.BACKSLASH_ESCAPE,
|
|
252
|
+
c
|
|
253
|
+
],
|
|
254
|
+
subLanguage: "graphql"
|
|
255
|
+
}
|
|
256
|
+
}, R = {
|
|
257
|
+
className: "string",
|
|
258
|
+
begin: "`",
|
|
259
|
+
end: "`",
|
|
260
|
+
contains: [
|
|
261
|
+
e.BACKSLASH_ESCAPE,
|
|
262
|
+
c
|
|
263
|
+
]
|
|
264
|
+
}, E = {
|
|
265
|
+
className: "comment",
|
|
266
|
+
variants: [
|
|
267
|
+
e.COMMENT(
|
|
268
|
+
/\/\*\*(?!\/)/,
|
|
269
|
+
"\\*/",
|
|
270
|
+
{
|
|
271
|
+
relevance: 0,
|
|
272
|
+
contains: [
|
|
273
|
+
{
|
|
274
|
+
begin: "(?=@[A-Za-z]+)",
|
|
275
|
+
relevance: 0,
|
|
276
|
+
contains: [
|
|
277
|
+
{
|
|
278
|
+
className: "doctag",
|
|
279
|
+
begin: "@[A-Za-z]+"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
className: "type",
|
|
283
|
+
begin: "\\{",
|
|
284
|
+
end: "\\}",
|
|
285
|
+
excludeEnd: !0,
|
|
286
|
+
excludeBegin: !0,
|
|
287
|
+
relevance: 0
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
className: "variable",
|
|
291
|
+
begin: n + "(?=\\s*(-)|$)",
|
|
292
|
+
endsParent: !0,
|
|
293
|
+
relevance: 0
|
|
294
|
+
},
|
|
295
|
+
// eat spaces (not newlines) so we can find
|
|
296
|
+
// types or variables
|
|
297
|
+
{
|
|
298
|
+
begin: /(?=[^\n])\s/,
|
|
299
|
+
relevance: 0
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
),
|
|
306
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
307
|
+
e.C_LINE_COMMENT_MODE
|
|
308
|
+
]
|
|
309
|
+
}, f = [
|
|
310
|
+
e.APOS_STRING_MODE,
|
|
311
|
+
e.QUOTE_STRING_MODE,
|
|
312
|
+
_,
|
|
313
|
+
m,
|
|
314
|
+
r,
|
|
315
|
+
R,
|
|
316
|
+
// Skip numbers when they are part of a variable name
|
|
317
|
+
{ match: /\$\d+/ },
|
|
318
|
+
g
|
|
319
|
+
// This is intentional:
|
|
320
|
+
// See https://github.com/highlightjs/highlight.js/issues/3288
|
|
321
|
+
// hljs.REGEXP_MODE
|
|
322
|
+
];
|
|
323
|
+
c.contains = f.concat({
|
|
324
|
+
// we need to pair up {} inside our subst to prevent
|
|
325
|
+
// it from ending too early by matching another }
|
|
326
|
+
begin: /\{/,
|
|
327
|
+
end: /\}/,
|
|
328
|
+
keywords: o,
|
|
329
|
+
contains: [
|
|
330
|
+
"self"
|
|
331
|
+
].concat(f)
|
|
332
|
+
});
|
|
333
|
+
const B = [].concat(E, c.contains), I = B.concat([
|
|
334
|
+
// eat recursive parens in sub expressions
|
|
335
|
+
{
|
|
336
|
+
begin: /(\s*)\(/,
|
|
337
|
+
end: /\)/,
|
|
338
|
+
keywords: o,
|
|
339
|
+
contains: ["self"].concat(B)
|
|
340
|
+
}
|
|
341
|
+
]), A = {
|
|
342
|
+
className: "params",
|
|
343
|
+
// convert this to negative lookbehind in v12
|
|
344
|
+
begin: /(\s*)\(/,
|
|
345
|
+
// to match the parms with
|
|
346
|
+
end: /\)/,
|
|
347
|
+
excludeBegin: !0,
|
|
348
|
+
excludeEnd: !0,
|
|
349
|
+
keywords: o,
|
|
350
|
+
contains: I
|
|
351
|
+
}, z = {
|
|
352
|
+
variants: [
|
|
353
|
+
// class Car extends vehicle
|
|
354
|
+
{
|
|
355
|
+
match: [
|
|
356
|
+
/class/,
|
|
357
|
+
/\s+/,
|
|
358
|
+
n,
|
|
359
|
+
/\s+/,
|
|
360
|
+
/extends/,
|
|
361
|
+
/\s+/,
|
|
362
|
+
a.concat(n, "(", a.concat(/\./, n), ")*")
|
|
363
|
+
],
|
|
364
|
+
scope: {
|
|
365
|
+
1: "keyword",
|
|
366
|
+
3: "title.class",
|
|
367
|
+
5: "keyword",
|
|
368
|
+
7: "title.class.inherited"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
// class Car
|
|
372
|
+
{
|
|
373
|
+
match: [
|
|
374
|
+
/class/,
|
|
375
|
+
/\s+/,
|
|
376
|
+
n
|
|
377
|
+
],
|
|
378
|
+
scope: {
|
|
379
|
+
1: "keyword",
|
|
380
|
+
3: "title.class"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
}, U = {
|
|
385
|
+
relevance: 0,
|
|
386
|
+
match: a.either(
|
|
387
|
+
// Hard coded exceptions
|
|
388
|
+
/\bJSON/,
|
|
389
|
+
// Float32Array, OutT
|
|
390
|
+
/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,
|
|
391
|
+
// CSSFactory, CSSFactoryT
|
|
392
|
+
/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,
|
|
393
|
+
// FPs, FPsT
|
|
394
|
+
/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/
|
|
395
|
+
// P
|
|
396
|
+
// single letters are not highlighted
|
|
397
|
+
// BLAH
|
|
398
|
+
// this will be flagged as a UPPER_CASE_CONSTANT instead
|
|
399
|
+
),
|
|
400
|
+
className: "title.class",
|
|
401
|
+
keywords: {
|
|
402
|
+
_: [
|
|
403
|
+
// se we still get relevance credit for JS library classes
|
|
404
|
+
...w,
|
|
405
|
+
...L
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
}, K = {
|
|
409
|
+
label: "use_strict",
|
|
410
|
+
className: "meta",
|
|
411
|
+
relevance: 10,
|
|
412
|
+
begin: /^\s*['"]use (strict|asm)['"]/
|
|
413
|
+
}, H = {
|
|
414
|
+
variants: [
|
|
415
|
+
{
|
|
416
|
+
match: [
|
|
417
|
+
/function/,
|
|
418
|
+
/\s+/,
|
|
419
|
+
n,
|
|
420
|
+
/(?=\s*\()/
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
// anonymous function
|
|
424
|
+
{
|
|
425
|
+
match: [
|
|
426
|
+
/function/,
|
|
427
|
+
/\s*(?=\()/
|
|
428
|
+
]
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
className: {
|
|
432
|
+
1: "keyword",
|
|
433
|
+
3: "title.function"
|
|
434
|
+
},
|
|
435
|
+
label: "func.def",
|
|
436
|
+
contains: [A],
|
|
437
|
+
illegal: /%/
|
|
438
|
+
}, Y = {
|
|
439
|
+
relevance: 0,
|
|
440
|
+
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
441
|
+
className: "variable.constant"
|
|
442
|
+
};
|
|
443
|
+
function W(s) {
|
|
444
|
+
return a.concat("(?!", s.join("|"), ")");
|
|
445
|
+
}
|
|
446
|
+
const q = {
|
|
447
|
+
match: a.concat(
|
|
448
|
+
/\b/,
|
|
449
|
+
W([
|
|
450
|
+
...x,
|
|
451
|
+
"super",
|
|
452
|
+
"import"
|
|
453
|
+
].map((s) => `${s}\\s*\\(`)),
|
|
454
|
+
n,
|
|
455
|
+
a.lookahead(/\s*\(/)
|
|
456
|
+
),
|
|
457
|
+
className: "title.function",
|
|
458
|
+
relevance: 0
|
|
459
|
+
}, J = {
|
|
460
|
+
begin: a.concat(/\./, a.lookahead(
|
|
461
|
+
a.concat(n, /(?![0-9A-Za-z$_(])/)
|
|
462
|
+
)),
|
|
463
|
+
end: n,
|
|
464
|
+
excludeBegin: !0,
|
|
465
|
+
keywords: "prototype",
|
|
466
|
+
className: "property",
|
|
467
|
+
relevance: 0
|
|
468
|
+
}, X = {
|
|
469
|
+
match: [
|
|
470
|
+
/get|set/,
|
|
471
|
+
/\s+/,
|
|
472
|
+
n,
|
|
473
|
+
/(?=\()/
|
|
474
|
+
],
|
|
475
|
+
className: {
|
|
476
|
+
1: "keyword",
|
|
477
|
+
3: "title.function"
|
|
478
|
+
},
|
|
479
|
+
contains: [
|
|
480
|
+
{
|
|
481
|
+
// eat to avoid empty params
|
|
482
|
+
begin: /\(\)/
|
|
483
|
+
},
|
|
484
|
+
A
|
|
485
|
+
]
|
|
486
|
+
}, P = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", Q = {
|
|
487
|
+
match: [
|
|
488
|
+
/const|var|let/,
|
|
489
|
+
/\s+/,
|
|
490
|
+
n,
|
|
491
|
+
/\s*/,
|
|
492
|
+
/=\s*/,
|
|
493
|
+
/(async\s*)?/,
|
|
494
|
+
// async is optional
|
|
495
|
+
a.lookahead(P)
|
|
496
|
+
],
|
|
497
|
+
keywords: "async",
|
|
498
|
+
className: {
|
|
499
|
+
1: "keyword",
|
|
500
|
+
3: "title.function"
|
|
501
|
+
},
|
|
502
|
+
contains: [
|
|
503
|
+
A
|
|
504
|
+
]
|
|
505
|
+
};
|
|
506
|
+
return {
|
|
507
|
+
name: "JavaScript",
|
|
508
|
+
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
509
|
+
keywords: o,
|
|
510
|
+
// this will be extended by TypeScript
|
|
511
|
+
exports: { PARAMS_CONTAINS: I, CLASS_REFERENCE: U },
|
|
512
|
+
illegal: /#(?![$_A-z])/,
|
|
513
|
+
contains: [
|
|
514
|
+
e.SHEBANG({
|
|
515
|
+
label: "shebang",
|
|
516
|
+
binary: "node",
|
|
517
|
+
relevance: 5
|
|
518
|
+
}),
|
|
519
|
+
K,
|
|
520
|
+
e.APOS_STRING_MODE,
|
|
521
|
+
e.QUOTE_STRING_MODE,
|
|
522
|
+
_,
|
|
523
|
+
m,
|
|
524
|
+
r,
|
|
525
|
+
R,
|
|
526
|
+
E,
|
|
527
|
+
// Skip numbers when they are part of a variable name
|
|
528
|
+
{ match: /\$\d+/ },
|
|
529
|
+
g,
|
|
530
|
+
U,
|
|
531
|
+
{
|
|
532
|
+
scope: "attr",
|
|
533
|
+
match: n + a.lookahead(":"),
|
|
534
|
+
relevance: 0
|
|
535
|
+
},
|
|
536
|
+
Q,
|
|
537
|
+
{
|
|
538
|
+
// "value" container
|
|
539
|
+
begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
|
|
540
|
+
keywords: "return throw case",
|
|
541
|
+
relevance: 0,
|
|
542
|
+
contains: [
|
|
543
|
+
E,
|
|
544
|
+
e.REGEXP_MODE,
|
|
545
|
+
{
|
|
546
|
+
className: "function",
|
|
547
|
+
// we have to count the parens to make sure we actually have the
|
|
548
|
+
// correct bounding ( ) before the =>. There could be any number of
|
|
549
|
+
// sub-expressions inside also surrounded by parens.
|
|
550
|
+
begin: P,
|
|
551
|
+
returnBegin: !0,
|
|
552
|
+
end: "\\s*=>",
|
|
553
|
+
contains: [
|
|
554
|
+
{
|
|
555
|
+
className: "params",
|
|
556
|
+
variants: [
|
|
557
|
+
{
|
|
558
|
+
begin: e.UNDERSCORE_IDENT_RE,
|
|
559
|
+
relevance: 0
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
className: null,
|
|
563
|
+
begin: /\(\s*\)/,
|
|
564
|
+
skip: !0
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
begin: /(\s*)\(/,
|
|
568
|
+
end: /\)/,
|
|
569
|
+
excludeBegin: !0,
|
|
570
|
+
excludeEnd: !0,
|
|
571
|
+
keywords: o,
|
|
572
|
+
contains: I
|
|
573
|
+
}
|
|
574
|
+
]
|
|
575
|
+
}
|
|
576
|
+
]
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
// could be a comma delimited list of params to a function call
|
|
580
|
+
begin: /,/,
|
|
581
|
+
relevance: 0
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
match: /\s+/,
|
|
585
|
+
relevance: 0
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
// JSX
|
|
589
|
+
variants: [
|
|
590
|
+
{ begin: u.begin, end: u.end },
|
|
591
|
+
{ match: y },
|
|
592
|
+
{
|
|
593
|
+
begin: i.begin,
|
|
594
|
+
// we carefully check the opening tag to see if it truly
|
|
595
|
+
// is a tag and not a false positive
|
|
596
|
+
"on:begin": i.isTrulyOpeningTag,
|
|
597
|
+
end: i.end
|
|
598
|
+
}
|
|
599
|
+
],
|
|
600
|
+
subLanguage: "xml",
|
|
601
|
+
contains: [
|
|
602
|
+
{
|
|
603
|
+
begin: i.begin,
|
|
604
|
+
end: i.end,
|
|
605
|
+
skip: !0,
|
|
606
|
+
contains: ["self"]
|
|
607
|
+
}
|
|
608
|
+
]
|
|
609
|
+
}
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
H,
|
|
613
|
+
{
|
|
614
|
+
// prevent this from getting swallowed up by function
|
|
615
|
+
// since they appear "function like"
|
|
616
|
+
beginKeywords: "while if switch catch for"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
// we have to count the parens to make sure we actually have the correct
|
|
620
|
+
// bounding ( ). There could be any number of sub-expressions inside
|
|
621
|
+
// also surrounded by parens.
|
|
622
|
+
begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
|
|
623
|
+
// end parens
|
|
624
|
+
returnBegin: !0,
|
|
625
|
+
label: "func.def",
|
|
626
|
+
contains: [
|
|
627
|
+
A,
|
|
628
|
+
e.inherit(e.TITLE_MODE, { begin: n, className: "title.function" })
|
|
629
|
+
]
|
|
630
|
+
},
|
|
631
|
+
// catch ... so it won't trigger the property rule below
|
|
632
|
+
{
|
|
633
|
+
match: /\.\.\./,
|
|
634
|
+
relevance: 0
|
|
635
|
+
},
|
|
636
|
+
J,
|
|
637
|
+
// hack: prevents detection of keywords in some circumstances
|
|
638
|
+
// .keyword()
|
|
639
|
+
// $keyword = x
|
|
640
|
+
{
|
|
641
|
+
match: "\\$" + n,
|
|
642
|
+
relevance: 0
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
match: [/\bconstructor(?=\s*\()/],
|
|
646
|
+
className: { 1: "title.function" },
|
|
647
|
+
contains: [A]
|
|
648
|
+
},
|
|
649
|
+
q,
|
|
650
|
+
Y,
|
|
651
|
+
z,
|
|
652
|
+
X,
|
|
653
|
+
{
|
|
654
|
+
match: /\$[(.]/
|
|
655
|
+
// relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
|
|
656
|
+
}
|
|
657
|
+
]
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
function Z(e) {
|
|
661
|
+
const a = e.regex, t = G(e), n = N, u = [
|
|
662
|
+
"any",
|
|
663
|
+
"void",
|
|
664
|
+
"number",
|
|
665
|
+
"boolean",
|
|
666
|
+
"string",
|
|
667
|
+
"object",
|
|
668
|
+
"never",
|
|
669
|
+
"symbol",
|
|
670
|
+
"bigint",
|
|
671
|
+
"unknown"
|
|
672
|
+
], y = {
|
|
673
|
+
begin: [
|
|
674
|
+
/namespace/,
|
|
675
|
+
/\s+/,
|
|
676
|
+
e.IDENT_RE
|
|
677
|
+
],
|
|
678
|
+
beginScope: {
|
|
679
|
+
1: "keyword",
|
|
680
|
+
3: "title.class"
|
|
681
|
+
}
|
|
682
|
+
}, i = {
|
|
683
|
+
beginKeywords: "interface",
|
|
684
|
+
end: /\{/,
|
|
685
|
+
excludeEnd: !0,
|
|
686
|
+
keywords: {
|
|
687
|
+
keyword: "interface extends",
|
|
688
|
+
built_in: u
|
|
689
|
+
},
|
|
690
|
+
contains: [t.exports.CLASS_REFERENCE]
|
|
691
|
+
}, o = {
|
|
692
|
+
className: "meta",
|
|
693
|
+
relevance: 10,
|
|
694
|
+
begin: /^\s*['"]use strict['"]/
|
|
695
|
+
}, T = [
|
|
696
|
+
"type",
|
|
697
|
+
// "namespace",
|
|
698
|
+
"interface",
|
|
699
|
+
"public",
|
|
700
|
+
"private",
|
|
701
|
+
"protected",
|
|
702
|
+
"implements",
|
|
703
|
+
"declare",
|
|
704
|
+
"abstract",
|
|
705
|
+
"readonly",
|
|
706
|
+
"enum",
|
|
707
|
+
"override",
|
|
708
|
+
"satisfies"
|
|
709
|
+
], l = {
|
|
710
|
+
$pattern: N,
|
|
711
|
+
keyword: M.concat(T),
|
|
712
|
+
literal: v,
|
|
713
|
+
built_in: D.concat(u),
|
|
714
|
+
"variable.language": k
|
|
715
|
+
}, b = {
|
|
716
|
+
className: "meta",
|
|
717
|
+
begin: "@" + n
|
|
718
|
+
}, g = (r, R, h) => {
|
|
719
|
+
const E = r.contains.findIndex((f) => f.label === R);
|
|
720
|
+
if (E === -1)
|
|
721
|
+
throw new Error("can not find mode to replace");
|
|
722
|
+
r.contains.splice(E, 1, h);
|
|
723
|
+
};
|
|
724
|
+
Object.assign(t.keywords, l), t.exports.PARAMS_CONTAINS.push(b);
|
|
725
|
+
const c = t.contains.find((r) => r.scope === "attr"), _ = Object.assign(
|
|
726
|
+
{},
|
|
727
|
+
c,
|
|
728
|
+
{ match: a.concat(n, a.lookahead(/\s*\?:/)) }
|
|
729
|
+
);
|
|
730
|
+
t.exports.PARAMS_CONTAINS.push([
|
|
731
|
+
t.exports.CLASS_REFERENCE,
|
|
732
|
+
// class reference for highlighting the params types
|
|
733
|
+
c,
|
|
734
|
+
// highlight the params key
|
|
735
|
+
_
|
|
736
|
+
// Added for optional property assignment highlighting
|
|
737
|
+
]), t.contains = t.contains.concat([
|
|
738
|
+
b,
|
|
739
|
+
y,
|
|
740
|
+
i,
|
|
741
|
+
_
|
|
742
|
+
// Added for optional property assignment highlighting
|
|
743
|
+
]), g(t, "shebang", e.SHEBANG()), g(t, "use_strict", o);
|
|
744
|
+
const m = t.contains.find((r) => r.label === "func.def");
|
|
745
|
+
return m.relevance = 0, Object.assign(t, {
|
|
746
|
+
name: "TypeScript",
|
|
747
|
+
aliases: [
|
|
748
|
+
"ts",
|
|
749
|
+
"tsx",
|
|
750
|
+
"mts",
|
|
751
|
+
"cts"
|
|
752
|
+
]
|
|
753
|
+
}), t;
|
|
754
|
+
}
|
|
755
|
+
return C = Z, C;
|
|
756
|
+
}
|
|
757
|
+
export {
|
|
758
|
+
V as __require
|
|
759
|
+
};
|