@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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var s,c;function T(){if(c)return s;c=1;function o(e){const i=e.regex,t={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{className:"variable",variants:[{begin:i.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const n={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},u=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),m={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,n]};n.contains.push(a);const d={match:/\\"/},l={className:"string",begin:/'/,end:/'/},p={match:/\\'/},h={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t]},b=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=e.SHEBANG({binary:`(${b.join("|")})`,relevance:10}),f={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},_=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],E=["true","false"],S={match:/(\/[a-z._-]+)+/},N=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],w=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],A=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],y=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:_,literal:E,built_in:[...N,...w,"set","shopt",...A,...y]},contains:[g,e.SHEBANG(),f,h,u,m,S,a,d,l,p,t]}}return s=o,s}exports.__require=T;
|
package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
var s, c;
|
|
2
|
+
function k() {
|
|
3
|
+
if (c) return s;
|
|
4
|
+
c = 1;
|
|
5
|
+
function o(e) {
|
|
6
|
+
const i = e.regex, t = {}, r = {
|
|
7
|
+
begin: /\$\{/,
|
|
8
|
+
end: /\}/,
|
|
9
|
+
contains: [
|
|
10
|
+
"self",
|
|
11
|
+
{
|
|
12
|
+
begin: /:-/,
|
|
13
|
+
contains: [t]
|
|
14
|
+
}
|
|
15
|
+
// default values
|
|
16
|
+
]
|
|
17
|
+
};
|
|
18
|
+
Object.assign(t, {
|
|
19
|
+
className: "variable",
|
|
20
|
+
variants: [
|
|
21
|
+
{ begin: i.concat(
|
|
22
|
+
/\$[\w\d#@][\w\d_]*/,
|
|
23
|
+
// negative look-ahead tries to avoid matching patterns that are not
|
|
24
|
+
// Perl at all like $ident$, @ident@, etc.
|
|
25
|
+
"(?![\\w\\d])(?![$])"
|
|
26
|
+
) },
|
|
27
|
+
r
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
const n = {
|
|
31
|
+
className: "subst",
|
|
32
|
+
begin: /\$\(/,
|
|
33
|
+
end: /\)/,
|
|
34
|
+
contains: [e.BACKSLASH_ESCAPE]
|
|
35
|
+
}, m = e.inherit(
|
|
36
|
+
e.COMMENT(),
|
|
37
|
+
{
|
|
38
|
+
match: [
|
|
39
|
+
/(^|\s)/,
|
|
40
|
+
/#.*$/
|
|
41
|
+
],
|
|
42
|
+
scope: {
|
|
43
|
+
2: "comment"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
), u = {
|
|
47
|
+
begin: /<<-?\s*(?=\w+)/,
|
|
48
|
+
starts: { contains: [
|
|
49
|
+
e.END_SAME_AS_BEGIN({
|
|
50
|
+
begin: /(\w+)/,
|
|
51
|
+
end: /(\w+)/,
|
|
52
|
+
className: "string"
|
|
53
|
+
})
|
|
54
|
+
] }
|
|
55
|
+
}, a = {
|
|
56
|
+
className: "string",
|
|
57
|
+
begin: /"/,
|
|
58
|
+
end: /"/,
|
|
59
|
+
contains: [
|
|
60
|
+
e.BACKSLASH_ESCAPE,
|
|
61
|
+
t,
|
|
62
|
+
n
|
|
63
|
+
]
|
|
64
|
+
};
|
|
65
|
+
n.contains.push(a);
|
|
66
|
+
const p = {
|
|
67
|
+
match: /\\"/
|
|
68
|
+
}, d = {
|
|
69
|
+
className: "string",
|
|
70
|
+
begin: /'/,
|
|
71
|
+
end: /'/
|
|
72
|
+
}, l = {
|
|
73
|
+
match: /\\'/
|
|
74
|
+
}, h = {
|
|
75
|
+
begin: /\$?\(\(/,
|
|
76
|
+
end: /\)\)/,
|
|
77
|
+
contains: [
|
|
78
|
+
{
|
|
79
|
+
begin: /\d+#[0-9a-f]+/,
|
|
80
|
+
className: "number"
|
|
81
|
+
},
|
|
82
|
+
e.NUMBER_MODE,
|
|
83
|
+
t
|
|
84
|
+
]
|
|
85
|
+
}, b = [
|
|
86
|
+
"fish",
|
|
87
|
+
"bash",
|
|
88
|
+
"zsh",
|
|
89
|
+
"sh",
|
|
90
|
+
"csh",
|
|
91
|
+
"ksh",
|
|
92
|
+
"tcsh",
|
|
93
|
+
"dash",
|
|
94
|
+
"scsh"
|
|
95
|
+
], f = e.SHEBANG({
|
|
96
|
+
binary: `(${b.join("|")})`,
|
|
97
|
+
relevance: 10
|
|
98
|
+
}), g = {
|
|
99
|
+
className: "function",
|
|
100
|
+
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
|
|
101
|
+
returnBegin: !0,
|
|
102
|
+
contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
|
|
103
|
+
relevance: 0
|
|
104
|
+
}, _ = [
|
|
105
|
+
"if",
|
|
106
|
+
"then",
|
|
107
|
+
"else",
|
|
108
|
+
"elif",
|
|
109
|
+
"fi",
|
|
110
|
+
"time",
|
|
111
|
+
"for",
|
|
112
|
+
"while",
|
|
113
|
+
"until",
|
|
114
|
+
"in",
|
|
115
|
+
"do",
|
|
116
|
+
"done",
|
|
117
|
+
"case",
|
|
118
|
+
"esac",
|
|
119
|
+
"coproc",
|
|
120
|
+
"function",
|
|
121
|
+
"select"
|
|
122
|
+
], E = [
|
|
123
|
+
"true",
|
|
124
|
+
"false"
|
|
125
|
+
], S = { match: /(\/[a-z._-]+)+/ }, N = [
|
|
126
|
+
"break",
|
|
127
|
+
"cd",
|
|
128
|
+
"continue",
|
|
129
|
+
"eval",
|
|
130
|
+
"exec",
|
|
131
|
+
"exit",
|
|
132
|
+
"export",
|
|
133
|
+
"getopts",
|
|
134
|
+
"hash",
|
|
135
|
+
"pwd",
|
|
136
|
+
"readonly",
|
|
137
|
+
"return",
|
|
138
|
+
"shift",
|
|
139
|
+
"test",
|
|
140
|
+
"times",
|
|
141
|
+
"trap",
|
|
142
|
+
"umask",
|
|
143
|
+
"unset"
|
|
144
|
+
], w = [
|
|
145
|
+
"alias",
|
|
146
|
+
"bind",
|
|
147
|
+
"builtin",
|
|
148
|
+
"caller",
|
|
149
|
+
"command",
|
|
150
|
+
"declare",
|
|
151
|
+
"echo",
|
|
152
|
+
"enable",
|
|
153
|
+
"help",
|
|
154
|
+
"let",
|
|
155
|
+
"local",
|
|
156
|
+
"logout",
|
|
157
|
+
"mapfile",
|
|
158
|
+
"printf",
|
|
159
|
+
"read",
|
|
160
|
+
"readarray",
|
|
161
|
+
"source",
|
|
162
|
+
"sudo",
|
|
163
|
+
"type",
|
|
164
|
+
"typeset",
|
|
165
|
+
"ulimit",
|
|
166
|
+
"unalias"
|
|
167
|
+
], A = [
|
|
168
|
+
"autoload",
|
|
169
|
+
"bg",
|
|
170
|
+
"bindkey",
|
|
171
|
+
"bye",
|
|
172
|
+
"cap",
|
|
173
|
+
"chdir",
|
|
174
|
+
"clone",
|
|
175
|
+
"comparguments",
|
|
176
|
+
"compcall",
|
|
177
|
+
"compctl",
|
|
178
|
+
"compdescribe",
|
|
179
|
+
"compfiles",
|
|
180
|
+
"compgroups",
|
|
181
|
+
"compquote",
|
|
182
|
+
"comptags",
|
|
183
|
+
"comptry",
|
|
184
|
+
"compvalues",
|
|
185
|
+
"dirs",
|
|
186
|
+
"disable",
|
|
187
|
+
"disown",
|
|
188
|
+
"echotc",
|
|
189
|
+
"echoti",
|
|
190
|
+
"emulate",
|
|
191
|
+
"fc",
|
|
192
|
+
"fg",
|
|
193
|
+
"float",
|
|
194
|
+
"functions",
|
|
195
|
+
"getcap",
|
|
196
|
+
"getln",
|
|
197
|
+
"history",
|
|
198
|
+
"integer",
|
|
199
|
+
"jobs",
|
|
200
|
+
"kill",
|
|
201
|
+
"limit",
|
|
202
|
+
"log",
|
|
203
|
+
"noglob",
|
|
204
|
+
"popd",
|
|
205
|
+
"print",
|
|
206
|
+
"pushd",
|
|
207
|
+
"pushln",
|
|
208
|
+
"rehash",
|
|
209
|
+
"sched",
|
|
210
|
+
"setcap",
|
|
211
|
+
"setopt",
|
|
212
|
+
"stat",
|
|
213
|
+
"suspend",
|
|
214
|
+
"ttyctl",
|
|
215
|
+
"unfunction",
|
|
216
|
+
"unhash",
|
|
217
|
+
"unlimit",
|
|
218
|
+
"unsetopt",
|
|
219
|
+
"vared",
|
|
220
|
+
"wait",
|
|
221
|
+
"whence",
|
|
222
|
+
"where",
|
|
223
|
+
"which",
|
|
224
|
+
"zcompile",
|
|
225
|
+
"zformat",
|
|
226
|
+
"zftp",
|
|
227
|
+
"zle",
|
|
228
|
+
"zmodload",
|
|
229
|
+
"zparseopts",
|
|
230
|
+
"zprof",
|
|
231
|
+
"zpty",
|
|
232
|
+
"zregexparse",
|
|
233
|
+
"zsocket",
|
|
234
|
+
"zstyle",
|
|
235
|
+
"ztcp"
|
|
236
|
+
], y = [
|
|
237
|
+
"chcon",
|
|
238
|
+
"chgrp",
|
|
239
|
+
"chown",
|
|
240
|
+
"chmod",
|
|
241
|
+
"cp",
|
|
242
|
+
"dd",
|
|
243
|
+
"df",
|
|
244
|
+
"dir",
|
|
245
|
+
"dircolors",
|
|
246
|
+
"ln",
|
|
247
|
+
"ls",
|
|
248
|
+
"mkdir",
|
|
249
|
+
"mkfifo",
|
|
250
|
+
"mknod",
|
|
251
|
+
"mktemp",
|
|
252
|
+
"mv",
|
|
253
|
+
"realpath",
|
|
254
|
+
"rm",
|
|
255
|
+
"rmdir",
|
|
256
|
+
"shred",
|
|
257
|
+
"sync",
|
|
258
|
+
"touch",
|
|
259
|
+
"truncate",
|
|
260
|
+
"vdir",
|
|
261
|
+
"b2sum",
|
|
262
|
+
"base32",
|
|
263
|
+
"base64",
|
|
264
|
+
"cat",
|
|
265
|
+
"cksum",
|
|
266
|
+
"comm",
|
|
267
|
+
"csplit",
|
|
268
|
+
"cut",
|
|
269
|
+
"expand",
|
|
270
|
+
"fmt",
|
|
271
|
+
"fold",
|
|
272
|
+
"head",
|
|
273
|
+
"join",
|
|
274
|
+
"md5sum",
|
|
275
|
+
"nl",
|
|
276
|
+
"numfmt",
|
|
277
|
+
"od",
|
|
278
|
+
"paste",
|
|
279
|
+
"ptx",
|
|
280
|
+
"pr",
|
|
281
|
+
"sha1sum",
|
|
282
|
+
"sha224sum",
|
|
283
|
+
"sha256sum",
|
|
284
|
+
"sha384sum",
|
|
285
|
+
"sha512sum",
|
|
286
|
+
"shuf",
|
|
287
|
+
"sort",
|
|
288
|
+
"split",
|
|
289
|
+
"sum",
|
|
290
|
+
"tac",
|
|
291
|
+
"tail",
|
|
292
|
+
"tr",
|
|
293
|
+
"tsort",
|
|
294
|
+
"unexpand",
|
|
295
|
+
"uniq",
|
|
296
|
+
"wc",
|
|
297
|
+
"arch",
|
|
298
|
+
"basename",
|
|
299
|
+
"chroot",
|
|
300
|
+
"date",
|
|
301
|
+
"dirname",
|
|
302
|
+
"du",
|
|
303
|
+
"echo",
|
|
304
|
+
"env",
|
|
305
|
+
"expr",
|
|
306
|
+
"factor",
|
|
307
|
+
// "false", // keyword literal already
|
|
308
|
+
"groups",
|
|
309
|
+
"hostid",
|
|
310
|
+
"id",
|
|
311
|
+
"link",
|
|
312
|
+
"logname",
|
|
313
|
+
"nice",
|
|
314
|
+
"nohup",
|
|
315
|
+
"nproc",
|
|
316
|
+
"pathchk",
|
|
317
|
+
"pinky",
|
|
318
|
+
"printenv",
|
|
319
|
+
"printf",
|
|
320
|
+
"pwd",
|
|
321
|
+
"readlink",
|
|
322
|
+
"runcon",
|
|
323
|
+
"seq",
|
|
324
|
+
"sleep",
|
|
325
|
+
"stat",
|
|
326
|
+
"stdbuf",
|
|
327
|
+
"stty",
|
|
328
|
+
"tee",
|
|
329
|
+
"test",
|
|
330
|
+
"timeout",
|
|
331
|
+
// "true", // keyword literal already
|
|
332
|
+
"tty",
|
|
333
|
+
"uname",
|
|
334
|
+
"unlink",
|
|
335
|
+
"uptime",
|
|
336
|
+
"users",
|
|
337
|
+
"who",
|
|
338
|
+
"whoami",
|
|
339
|
+
"yes"
|
|
340
|
+
];
|
|
341
|
+
return {
|
|
342
|
+
name: "Bash",
|
|
343
|
+
aliases: [
|
|
344
|
+
"sh",
|
|
345
|
+
"zsh"
|
|
346
|
+
],
|
|
347
|
+
keywords: {
|
|
348
|
+
$pattern: /\b[a-z][a-z0-9._-]+\b/,
|
|
349
|
+
keyword: _,
|
|
350
|
+
literal: E,
|
|
351
|
+
built_in: [
|
|
352
|
+
...N,
|
|
353
|
+
...w,
|
|
354
|
+
// Shell modifiers
|
|
355
|
+
"set",
|
|
356
|
+
"shopt",
|
|
357
|
+
...A,
|
|
358
|
+
...y
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
contains: [
|
|
362
|
+
f,
|
|
363
|
+
// to catch known shells and boost relevancy
|
|
364
|
+
e.SHEBANG(),
|
|
365
|
+
// to catch unknown shells but still highlight the shebang
|
|
366
|
+
g,
|
|
367
|
+
h,
|
|
368
|
+
m,
|
|
369
|
+
u,
|
|
370
|
+
S,
|
|
371
|
+
a,
|
|
372
|
+
p,
|
|
373
|
+
d,
|
|
374
|
+
l,
|
|
375
|
+
t
|
|
376
|
+
]
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
return s = o, s;
|
|
380
|
+
}
|
|
381
|
+
export {
|
|
382
|
+
k as __require
|
|
383
|
+
};
|
package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var _,E;function C(){if(E)return _;E=1;function m(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),d="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",p="("+d+"|"+r.optional(o)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},i={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:r.optional(o)+e.IDENT_RE,relevance:0},u=r.optional(o)+e.IDENT_RE+"\\s*\\(",t={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},l=[i,s,n,e.C_BLOCK_COMMENT_MODE,c,a],g={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:t,contains:l.concat([{begin:/\(/,end:/\)/,keywords:t,contains:l.concat(["self"]),relevance:0}]),relevance:0},b={begin:"("+p+"[\\*&\\s]+)+"+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:t,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:d,keywords:t,relevance:0},{begin:u,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,a,c,s,{begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,a,c,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,i]};return{name:"C",aliases:["h"],keywords:t,disableAutodetect:!0,illegal:"</",contains:[].concat(g,b,l,[i,{begin:e.IDENT_RE+"::",keywords:t},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:i,strings:a,keywords:t}}}return _=m,_}exports.__require=C;
|
package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js
ADDED
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
var _, E;
|
|
2
|
+
function A() {
|
|
3
|
+
if (E) return _;
|
|
4
|
+
E = 1;
|
|
5
|
+
function m(e) {
|
|
6
|
+
const r = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), d = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", p = "(" + d + "|" + r.optional(o) + "[a-zA-Z_]\\w*" + r.optional("<[^<>]+>") + ")", s = {
|
|
7
|
+
className: "type",
|
|
8
|
+
variants: [
|
|
9
|
+
{ begin: "\\b[a-z\\d_]*_t\\b" },
|
|
10
|
+
{ match: /\batomic_[a-z]{3,6}\b/ }
|
|
11
|
+
]
|
|
12
|
+
}, a = {
|
|
13
|
+
className: "string",
|
|
14
|
+
variants: [
|
|
15
|
+
{
|
|
16
|
+
begin: '(u8?|U|L)?"',
|
|
17
|
+
end: '"',
|
|
18
|
+
illegal: "\\n",
|
|
19
|
+
contains: [e.BACKSLASH_ESCAPE]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
begin: "(u8?|U|L)?'(" + "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)" + "|.)",
|
|
23
|
+
end: "'",
|
|
24
|
+
illegal: "."
|
|
25
|
+
},
|
|
26
|
+
e.END_SAME_AS_BEGIN({
|
|
27
|
+
begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,
|
|
28
|
+
end: /\)([^()\\ ]{0,16})"/
|
|
29
|
+
})
|
|
30
|
+
]
|
|
31
|
+
}, c = {
|
|
32
|
+
className: "number",
|
|
33
|
+
variants: [
|
|
34
|
+
{ match: /\b(0b[01']+)/ },
|
|
35
|
+
{ match: /(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/ },
|
|
36
|
+
{ match: /(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/ },
|
|
37
|
+
{ match: /(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/ }
|
|
38
|
+
],
|
|
39
|
+
relevance: 0
|
|
40
|
+
}, i = {
|
|
41
|
+
className: "meta",
|
|
42
|
+
begin: /#\s*[a-z]+\b/,
|
|
43
|
+
end: /$/,
|
|
44
|
+
keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include" },
|
|
45
|
+
contains: [
|
|
46
|
+
{
|
|
47
|
+
begin: /\\\n/,
|
|
48
|
+
relevance: 0
|
|
49
|
+
},
|
|
50
|
+
e.inherit(a, { className: "string" }),
|
|
51
|
+
{
|
|
52
|
+
className: "string",
|
|
53
|
+
begin: /<.*?>/
|
|
54
|
+
},
|
|
55
|
+
n,
|
|
56
|
+
e.C_BLOCK_COMMENT_MODE
|
|
57
|
+
]
|
|
58
|
+
}, f = {
|
|
59
|
+
className: "title",
|
|
60
|
+
begin: r.optional(o) + e.IDENT_RE,
|
|
61
|
+
relevance: 0
|
|
62
|
+
}, u = r.optional(o) + e.IDENT_RE + "\\s*\\(", t = {
|
|
63
|
+
keyword: [
|
|
64
|
+
"asm",
|
|
65
|
+
"auto",
|
|
66
|
+
"break",
|
|
67
|
+
"case",
|
|
68
|
+
"continue",
|
|
69
|
+
"default",
|
|
70
|
+
"do",
|
|
71
|
+
"else",
|
|
72
|
+
"enum",
|
|
73
|
+
"extern",
|
|
74
|
+
"for",
|
|
75
|
+
"fortran",
|
|
76
|
+
"goto",
|
|
77
|
+
"if",
|
|
78
|
+
"inline",
|
|
79
|
+
"register",
|
|
80
|
+
"restrict",
|
|
81
|
+
"return",
|
|
82
|
+
"sizeof",
|
|
83
|
+
"typeof",
|
|
84
|
+
"typeof_unqual",
|
|
85
|
+
"struct",
|
|
86
|
+
"switch",
|
|
87
|
+
"typedef",
|
|
88
|
+
"union",
|
|
89
|
+
"volatile",
|
|
90
|
+
"while",
|
|
91
|
+
"_Alignas",
|
|
92
|
+
"_Alignof",
|
|
93
|
+
"_Atomic",
|
|
94
|
+
"_Generic",
|
|
95
|
+
"_Noreturn",
|
|
96
|
+
"_Static_assert",
|
|
97
|
+
"_Thread_local",
|
|
98
|
+
// aliases
|
|
99
|
+
"alignas",
|
|
100
|
+
"alignof",
|
|
101
|
+
"noreturn",
|
|
102
|
+
"static_assert",
|
|
103
|
+
"thread_local",
|
|
104
|
+
// not a C keyword but is, for all intents and purposes, treated exactly like one.
|
|
105
|
+
"_Pragma"
|
|
106
|
+
],
|
|
107
|
+
type: [
|
|
108
|
+
"float",
|
|
109
|
+
"double",
|
|
110
|
+
"signed",
|
|
111
|
+
"unsigned",
|
|
112
|
+
"int",
|
|
113
|
+
"short",
|
|
114
|
+
"long",
|
|
115
|
+
"char",
|
|
116
|
+
"void",
|
|
117
|
+
"_Bool",
|
|
118
|
+
"_BitInt",
|
|
119
|
+
"_Complex",
|
|
120
|
+
"_Imaginary",
|
|
121
|
+
"_Decimal32",
|
|
122
|
+
"_Decimal64",
|
|
123
|
+
"_Decimal96",
|
|
124
|
+
"_Decimal128",
|
|
125
|
+
"_Decimal64x",
|
|
126
|
+
"_Decimal128x",
|
|
127
|
+
"_Float16",
|
|
128
|
+
"_Float32",
|
|
129
|
+
"_Float64",
|
|
130
|
+
"_Float128",
|
|
131
|
+
"_Float32x",
|
|
132
|
+
"_Float64x",
|
|
133
|
+
"_Float128x",
|
|
134
|
+
// modifiers
|
|
135
|
+
"const",
|
|
136
|
+
"static",
|
|
137
|
+
"constexpr",
|
|
138
|
+
// aliases
|
|
139
|
+
"complex",
|
|
140
|
+
"bool",
|
|
141
|
+
"imaginary"
|
|
142
|
+
],
|
|
143
|
+
literal: "true false NULL",
|
|
144
|
+
// TODO: apply hinting work similar to what was done in cpp.js
|
|
145
|
+
built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
|
|
146
|
+
}, l = [
|
|
147
|
+
i,
|
|
148
|
+
s,
|
|
149
|
+
n,
|
|
150
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
151
|
+
c,
|
|
152
|
+
a
|
|
153
|
+
], g = {
|
|
154
|
+
// This mode covers expression context where we can't expect a function
|
|
155
|
+
// definition and shouldn't highlight anything that looks like one:
|
|
156
|
+
// `return some()`, `else if()`, `(x*sum(1, 2))`
|
|
157
|
+
variants: [
|
|
158
|
+
{
|
|
159
|
+
begin: /=/,
|
|
160
|
+
end: /;/
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
begin: /\(/,
|
|
164
|
+
end: /\)/
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
beginKeywords: "new throw return else",
|
|
168
|
+
end: /;/
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
keywords: t,
|
|
172
|
+
contains: l.concat([
|
|
173
|
+
{
|
|
174
|
+
begin: /\(/,
|
|
175
|
+
end: /\)/,
|
|
176
|
+
keywords: t,
|
|
177
|
+
contains: l.concat(["self"]),
|
|
178
|
+
relevance: 0
|
|
179
|
+
}
|
|
180
|
+
]),
|
|
181
|
+
relevance: 0
|
|
182
|
+
}, b = {
|
|
183
|
+
begin: "(" + p + "[\\*&\\s]+)+" + u,
|
|
184
|
+
returnBegin: !0,
|
|
185
|
+
end: /[{;=]/,
|
|
186
|
+
excludeEnd: !0,
|
|
187
|
+
keywords: t,
|
|
188
|
+
illegal: /[^\w\s\*&:<>.]/,
|
|
189
|
+
contains: [
|
|
190
|
+
{
|
|
191
|
+
// to prevent it from being confused as the function title
|
|
192
|
+
begin: d,
|
|
193
|
+
keywords: t,
|
|
194
|
+
relevance: 0
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
begin: u,
|
|
198
|
+
returnBegin: !0,
|
|
199
|
+
contains: [e.inherit(f, { className: "title.function" })],
|
|
200
|
+
relevance: 0
|
|
201
|
+
},
|
|
202
|
+
// allow for multiple declarations, e.g.:
|
|
203
|
+
// extern void f(int), g(char);
|
|
204
|
+
{
|
|
205
|
+
relevance: 0,
|
|
206
|
+
match: /,/
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
className: "params",
|
|
210
|
+
begin: /\(/,
|
|
211
|
+
end: /\)/,
|
|
212
|
+
keywords: t,
|
|
213
|
+
relevance: 0,
|
|
214
|
+
contains: [
|
|
215
|
+
n,
|
|
216
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
217
|
+
a,
|
|
218
|
+
c,
|
|
219
|
+
s,
|
|
220
|
+
// Count matching parentheses.
|
|
221
|
+
{
|
|
222
|
+
begin: /\(/,
|
|
223
|
+
end: /\)/,
|
|
224
|
+
keywords: t,
|
|
225
|
+
relevance: 0,
|
|
226
|
+
contains: [
|
|
227
|
+
"self",
|
|
228
|
+
n,
|
|
229
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
230
|
+
a,
|
|
231
|
+
c,
|
|
232
|
+
s
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
s,
|
|
238
|
+
n,
|
|
239
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
240
|
+
i
|
|
241
|
+
]
|
|
242
|
+
};
|
|
243
|
+
return {
|
|
244
|
+
name: "C",
|
|
245
|
+
aliases: ["h"],
|
|
246
|
+
keywords: t,
|
|
247
|
+
// Until differentiations are added between `c` and `cpp`, `c` will
|
|
248
|
+
// not be auto-detected to avoid auto-detect conflicts between C and C++
|
|
249
|
+
disableAutodetect: !0,
|
|
250
|
+
illegal: "</",
|
|
251
|
+
contains: [].concat(
|
|
252
|
+
g,
|
|
253
|
+
b,
|
|
254
|
+
l,
|
|
255
|
+
[
|
|
256
|
+
i,
|
|
257
|
+
{
|
|
258
|
+
begin: e.IDENT_RE + "::",
|
|
259
|
+
keywords: t
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
className: "class",
|
|
263
|
+
beginKeywords: "enum class struct union",
|
|
264
|
+
end: /[{;:<>=]/,
|
|
265
|
+
contains: [
|
|
266
|
+
{ beginKeywords: "final class struct" },
|
|
267
|
+
e.TITLE_MODE
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
),
|
|
272
|
+
exports: {
|
|
273
|
+
preprocessor: i,
|
|
274
|
+
strings: a,
|
|
275
|
+
keywords: t
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
return _ = m, _;
|
|
280
|
+
}
|
|
281
|
+
export {
|
|
282
|
+
A as __require
|
|
283
|
+
};
|