@fangzhongya/vue-archive 0.0.92 → 0.0.94
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/index.css +1 -1
- package/dist/node/index.cjs +28 -25
- package/dist/node/index.js +28 -25
- package/dist/packages/components/aside/index.vue.cjs +1 -1
- package/dist/packages/components/aside/index.vue.js +21 -20
- package/dist/packages/components/code/highlight.vue2.cjs +1 -1
- package/dist/packages/components/code/highlight.vue2.js +1 -1
- package/dist/packages/components/compo/info.vue.cjs +1 -1
- package/dist/packages/components/compo/info.vue.js +5 -5
- package/dist/packages/components/test/top.cjs +1 -1
- package/dist/packages/components/test/top.js +3 -3
- package/dist/packages/components/use/code.d.ts +18 -25
- package/dist/packages/components/use/retrie/any/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/any/index.vue.js +7 -5
- package/dist/packages/components/use/retrie/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/index.vue.js +5 -5
- package/dist/packages/utils/glob.cjs +1 -1
- package/dist/packages/utils/glob.js +1 -1
- package/package.json +19 -14
- /package/dist/node_modules/.pnpm/{@highlightjs_vue-plugin@2.1_dd6f49d866ebfd1af8876034987b0674 → @highlightjs_vue-plugin@2.1_5dcf460b2cab0b2df1badb9cb42568f4}/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@highlightjs_vue-plugin@2.1_dd6f49d866ebfd1af8876034987b0674 → @highlightjs_vue-plugin@2.1_5dcf460b2cab0b2df1badb9cb42568f4}/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +0 -0
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root{--bor-cor: rgb(239, 248, 255);--but-cor: rgb(27, 155, 253);--but-hover-cor: rgb(0, 145, 255);--bg-but-hover-cor: rgb(128, 199, 253);--bg-aside-cor: rgb(228, 251, 197);--bg-aside-on-cor: rgb(78,
|
|
1
|
+
:root{--bor-cor: rgb(239, 248, 255);--but-cor: rgb(27, 155, 253);--but-hover-cor: rgb(0, 145, 255);--bg-but-hover-cor: rgb(128, 199, 253);--bg-aside-cor: rgb(228, 251, 197);--bg-aside-on-cor: rgb(78, 184, 250);--bg-index-cor: rgb(248, 248, 248);--bg-table-th-cor: rgb(207, 246, 251);--bg-table-td-cor: rgb(221, 243, 246);--bg-test-cor: rgb(247, 255, 251);--bg-test-err-cor: rgb(255, 210, 210);--bg-test-pro-cor: rgb(203, 246, 255);--bg-test-err-pro-cor: rgb(251, 203, 255);--te-test-err-cor: rgb(247, 56, 56);--te-test-pro-cor: rgb(106, 131, 255);--bg-test-body: rgb(255, 255, 255);--bg-code-highlig: rgb(255, 251, 223);--bg-code: rgb(255, 255, 255);--bg-box-cor: rgb(227, 227, 227);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(255, 255, 255);--bg-use-component-cor: rgb(246, 246, 246);--text-cor: rgb(0, 0, 0);--fs-1: 12px;--fs-2: 14px;--fs-3: 16px;--fs-4: 18px;--fs-5: 20px}.__document{position:fixed;top:0;left:0;width:100vw;height:100vh;overflow:auto;text-align:left;width:100%;height:100%;padding:0;margin:0}.__document .but-div{cursor:pointer}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .but-div{color:var(--but-cor);padding:5px 10px}.__document .aside{width:100%;overflow:hidden;padding:10px;box-sizing:border-box}.__document .aside .aside-search{width:100%;box-sizing:border-box;margin-bottom:10px}.__document .aside .aside-search .aside-search-input{width:100%;height:30px;border-radius:4px;box-sizing:border-box}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-radius:4px;border-bottom:1px solid var(--bor-cor);cursor:pointer}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li{display:flex;flex-direction:row;align-items:center}.__document .aside .aside-li.on{background-color:var(--bg-aside-on-cor)}.__document .aside .aside-li .aside-li-name{width:100%}.__document .aside .aside-li .aside-li-name .aside-li-name-alias{font-size:var(--fs-2)}.__document .aside .aside-li .aside-li-name .aside-li-name-aliass{font-size:var(--fs-1)}.__document .md{position:relative}.__document .md-top-name{padding:10px;font-size:16px;font-weight:700}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo-info .compo-info-name-span{font-size:18px;font-weight:700;padding:10px 0}.__document .compo .compo-top .compo-top-name{padding:10px;font-size:var(--fs-4)}.__document .compo .compo-top .compo-top-name .compo-top-name-li{font-size:var(--fs-2)}.__document .compo .compo-top .compo-top-info{padding:10px;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-info .compo-top-athor,.__document .compo .compo-top .compo-top-info .compo-top-date{flex:1;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-descriptions{padding:0 10px;font-size:var(--fs-2)}.__document .compo .compo-li h4{margin:10px 0 0;padding:10px}.__document .compo .compo-li .compo-talbe{width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body{border:1px solid var(--bor-cor);width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body td,.__document .compo .compo-li .compo-talbe .compo-talbe-body th{padding:5px 10px;border-bottom:1px solid var(--bor-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body th{background-color:var(--bg-table-th-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body td{background-color:var(--bg-table-td-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body tr:last-child td{border-bottom:0}.__document .compo .compo-li .compo-talbe .compo-talbe-body .compo-talbe-zw{width:100%;text-align:center;padding:10px}.__document .compo .compo-md{padding:10px;background-color:var(--bg-md-cor)}.__document .compo .compo-use{padding:10px;background-color:var(--bg-use-cor)}.__document .main .main-but{text-align:right;display:flex;flex-direction:row;align-items:center}.__document .test.error .test-top-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top .test-top-top{padding:10px;background-color:var(--bg-test-cor)}.__document .test .test-top .test-top-error{color:var(--te-test-err-cor)}.__document .test .test-top .test-top-proposal{color:var(--te-test-pro-cor)}.__document .test .test-div .test-body{padding:10px;background-color:var(--bg-test-body)}.__document .code{padding:0}.__document .code .code-top .code-top-but,.__document .code .code-top .code-top-but .top-but-files{display:flex;flex-direction:row;align-items:center}.__document .code .code-highlightjs{padding:0}.__document .code .code-highlightjs .hljs{background-color:var(--bg-code-highlig)}.__document .box-url{position:relative}.__document .box-url:hover .box-url-box{display:block}.__document .box-url .box-url-box{position:fixed;top:25px;display:none;background-color:var(--bg-box-cor);font-size:var(--fs-1);color:var(--text-cor);z-index:100000}.__document .box-url .box-url-box .box-div-li{height:20px;line-height:20px;display:flex;flex-direction:row;align-items:center}.__document .box-url .box-url-box .box-div-li .box-div-li-span{white-space:nowrap;padding:5px 10px}.__document .box-url .box-url-box .box-div-but{padding:10px;cursor:pointer}.__document .box-url .box-url-box .box-div-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .box-url .box-url-box .box-div-but{color:var(--but-cor)}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{position:relative;z-index:100}.__document .__document-index .index-aside .index-aside-div{height:100%;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-index .index-body{flex:1;position:relative;background-color:var(--bg-index-cor)}.__document .__document-index .index-body .index-div{padding:20px;position:absolute;inset:0;overflow-y:auto}.__document .__document-tests{padding:10px;height:100%;position:relative}.__document .__document-tests .tests-top .but-div.on{background-color:var(--bg-aside-on-cor)}.__document .__document-develop,.__document .__document-single{padding:10px;height:100%;position:relative}.__document .__document-single .single-top .single-top-li{display:flex;flex-direction:row;align-items:center}.__document .__document-single .single-top .single-top-li .single-top-li-span{padding:5px 10px}.__document .__document-compon{box-sizing:border-box;height:100%;width:100%;position:relative;display:flex}.__document .__document-compon .__document-compon-body{padding:10px;flex:1;overflow-y:auto}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{display:flex;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but{cursor:pointer}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.form-input-text{padding:10px;height:160px;width:100%;box-sizing:border-box}.editor-div{padding:10px;height:160px;background-color:#eee}.editor-div .editor-code{height:100%;width:100%;min-height:80px;background-color:#fff}.form-input{font-size:16px}.form-select{position:relative;font-size:16px}.form-select .form-select-input{padding:10px;width:100%;font-size:16px;box-sizing:border-box}.form-select .form-select-box{position:absolute;width:100%;z-index:100;background-color:#000;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #000000}.form-select .form-select-box .form-select-list-div .form-select-list-li{background-color:#e9e9e9;padding:10px;cursor:pointer;border-bottom:1px solid #000000}.form-select{position:relative}.form-select .form-select-box{position:absolute;background-color:#fff;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #fff}.form-select .form-select-box .form-select-list-div .form-select-list-li{padding:10px;border-bottom:1px solid #eee}.form-select .form-select-box .form-select-list-div .form-select-list-li:last-child{border:0}.form-select .form-select-box .form-select-list-div .form-select-list-li.active{color:#0051ff}.form-boolean{display:flex;font-size:16px;padding:10px}.form-boolean .form-boolean-div{margin-right:10px}.form-string{font-size:16px}.form-string .form-string-text{padding:10px;width:100%;box-sizing:border-box}.form-number{font-size:16px}.form-number .form-number-input{padding:10px;width:100%;box-sizing:border-box}.com-retrie .com-retrie-li .com-retrie-label{padding:5px 0}.set-emit .set-emit-li{padding:10px}.set-emit .set-emit-name{font-size:18px;padding:5px 0}.set-emit .set-emit-value{font-size:16px;background-color:azure}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
|
2
2
|
Theme: StackOverflow Light
|
|
3
3
|
Description: Light theme as used on stackoverflow.com
|
|
4
4
|
Author: stackoverflow.com
|
package/dist/node/index.cjs
CHANGED
|
@@ -87,12 +87,12 @@ __export(index_exports, {
|
|
|
87
87
|
});
|
|
88
88
|
module.exports = __toCommonJS(index_exports);
|
|
89
89
|
|
|
90
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
90
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
|
|
91
91
|
function isArray(obj2) {
|
|
92
92
|
return Object.prototype.toString.call(obj2) == "[object Array]";
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
95
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
|
|
96
96
|
function getStartSames(str, val) {
|
|
97
97
|
let s = "";
|
|
98
98
|
const vs = [...val];
|
|
@@ -108,7 +108,7 @@ function getStartSames(str, val) {
|
|
|
108
108
|
return [s, str.substring(index), val.substring(index)];
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
111
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-AWC672JW.js
|
|
112
112
|
function getImportUrl(url, imp) {
|
|
113
113
|
const arr = getStartSames(url, imp);
|
|
114
114
|
const ts2 = arr[0];
|
|
@@ -135,12 +135,12 @@ function getImportUrl(url, imp) {
|
|
|
135
135
|
return ds.join("") + arr[2].replace(/\\/g, "/");
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
138
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
139
139
|
function firstUpper(str) {
|
|
140
140
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
143
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
144
144
|
function lineToLargeHump(name) {
|
|
145
145
|
let arr = name.split("-");
|
|
146
146
|
arr = arr.map((vs) => {
|
|
@@ -849,7 +849,7 @@ function runDev(config2, configCallback) {
|
|
|
849
849
|
return new FangMd(config2, configCallback);
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
852
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
|
|
853
853
|
var zObj = {
|
|
854
854
|
"<": "<",
|
|
855
855
|
">": ">",
|
|
@@ -870,7 +870,7 @@ function htmlEscape(str) {
|
|
|
870
870
|
// packages/node/index.ts
|
|
871
871
|
var import_node_path = require("path");
|
|
872
872
|
|
|
873
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
873
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
|
|
874
874
|
function mergeObject(a, b, j = 0, i) {
|
|
875
875
|
if (a instanceof Array) {
|
|
876
876
|
if (j > 0 && i) {
|
|
@@ -924,7 +924,7 @@ function getConfig(key) {
|
|
|
924
924
|
return config[key];
|
|
925
925
|
}
|
|
926
926
|
|
|
927
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
927
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
|
|
928
928
|
function getVueText(content) {
|
|
929
929
|
const result = {
|
|
930
930
|
template: "",
|
|
@@ -971,7 +971,7 @@ function getVueTexts(content) {
|
|
|
971
971
|
};
|
|
972
972
|
}
|
|
973
973
|
|
|
974
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
974
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
975
975
|
function humpToLine(name) {
|
|
976
976
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
977
977
|
let result;
|
|
@@ -993,12 +993,12 @@ function humpToLine(name) {
|
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
995
|
|
|
996
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
996
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
997
997
|
function firstLower(str) {
|
|
998
998
|
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1001
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
|
|
1002
1002
|
function asyncMergeArray(arr, callback) {
|
|
1003
1003
|
return new Promise((resolve2, reject) => {
|
|
1004
1004
|
let index = 0;
|
|
@@ -1022,7 +1022,7 @@ function asyncMergeArray(arr, callback) {
|
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
1025
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1025
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js
|
|
1026
1026
|
function getSuffix2(url) {
|
|
1027
1027
|
const reg = /\.([a-z|A-Z]+)$/;
|
|
1028
1028
|
const regs = reg.exec(url);
|
|
@@ -1032,7 +1032,7 @@ function getSuffix2(url) {
|
|
|
1032
1032
|
return "";
|
|
1033
1033
|
}
|
|
1034
1034
|
|
|
1035
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1035
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
|
|
1036
1036
|
function matchsStart2(key, matchs) {
|
|
1037
1037
|
if (matchs && matchs.length > 0) {
|
|
1038
1038
|
for (const value of matchs) {
|
|
@@ -1052,7 +1052,7 @@ function matchsStart2(key, matchs) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
1054
|
|
|
1055
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1055
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
|
|
1056
1056
|
function matchsEnd2(key, matchs) {
|
|
1057
1057
|
if (matchs && matchs.length > 0) {
|
|
1058
1058
|
for (const value of matchs) {
|
|
@@ -1715,7 +1715,7 @@ function parse(source, options = {}) {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
var stringify = getStringifier();
|
|
1717
1717
|
|
|
1718
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1718
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
|
|
1719
1719
|
function deComment(code) {
|
|
1720
1720
|
let output = "";
|
|
1721
1721
|
let state = "code";
|
|
@@ -1807,7 +1807,7 @@ function deComment(code) {
|
|
|
1807
1807
|
return output;
|
|
1808
1808
|
}
|
|
1809
1809
|
|
|
1810
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1810
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-DILPRD5C.js
|
|
1811
1811
|
function getImports(code, includeType = false) {
|
|
1812
1812
|
code = deComment(code);
|
|
1813
1813
|
const imports = /* @__PURE__ */ new Set();
|
|
@@ -2146,7 +2146,7 @@ function getTestArrs(arr, com, exa) {
|
|
|
2146
2146
|
"/([^/]+)\\." + defaultExtensions.join("|") + "$"
|
|
2147
2147
|
);
|
|
2148
2148
|
let ms = key.match(reg) || key.match(reg2);
|
|
2149
|
-
if (ms && ms
|
|
2149
|
+
if (ms && ms[1]) {
|
|
2150
2150
|
let value = "";
|
|
2151
2151
|
if (ms && ms.length > 1) {
|
|
2152
2152
|
value = ms[1];
|
|
@@ -3198,17 +3198,20 @@ var top_default2 = (0, import_vue2.defineComponent)({
|
|
|
3198
3198
|
},
|
|
3199
3199
|
render(propss, a, props2) {
|
|
3200
3200
|
const domss = getTestTopDom(props2.value, import_vue2.h);
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3201
|
+
if (domss && domss.length > 0) {
|
|
3202
|
+
return (0, import_vue2.h)(
|
|
3203
|
+
"div",
|
|
3204
|
+
{
|
|
3205
|
+
class: "test-top-top"
|
|
3206
|
+
},
|
|
3207
|
+
domss
|
|
3208
|
+
);
|
|
3209
|
+
}
|
|
3210
|
+
return "";
|
|
3208
3211
|
}
|
|
3209
3212
|
});
|
|
3210
3213
|
|
|
3211
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
3214
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
|
|
3212
3215
|
var FUNCTION_REGEX = /^\s*(?:(async)\s+)?(?:function\s*(\*?)\s*(\w*)\s*\(([\s\S]*?)\)|(\*?\s*)\b(\w+)\s*\(([\s\S]*?)\)|\(([\s\S]*?)\)|([^=>,\(\)]+?))\s*(?:=>)?\s*(?:\{([\s\S]*?)\}|([\s\S]*))$/;
|
|
3213
3216
|
function getFunctionFormat(v) {
|
|
3214
3217
|
if (!v) return;
|
package/dist/node/index.js
CHANGED
|
@@ -58,12 +58,12 @@ var init_prettier = __esm({
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
61
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
|
|
62
62
|
function isArray(obj2) {
|
|
63
63
|
return Object.prototype.toString.call(obj2) == "[object Array]";
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
66
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
|
|
67
67
|
function getStartSames(str, val) {
|
|
68
68
|
let s = "";
|
|
69
69
|
const vs = [...val];
|
|
@@ -79,7 +79,7 @@ function getStartSames(str, val) {
|
|
|
79
79
|
return [s, str.substring(index), val.substring(index)];
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
82
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-AWC672JW.js
|
|
83
83
|
function getImportUrl(url, imp) {
|
|
84
84
|
const arr = getStartSames(url, imp);
|
|
85
85
|
const ts2 = arr[0];
|
|
@@ -106,12 +106,12 @@ function getImportUrl(url, imp) {
|
|
|
106
106
|
return ds.join("") + arr[2].replace(/\\/g, "/");
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
109
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
110
110
|
function firstUpper(str) {
|
|
111
111
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
114
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
115
115
|
function lineToLargeHump(name) {
|
|
116
116
|
let arr = name.split("-");
|
|
117
117
|
arr = arr.map((vs) => {
|
|
@@ -831,7 +831,7 @@ function runDev(config2, configCallback) {
|
|
|
831
831
|
return new FangMd(config2, configCallback);
|
|
832
832
|
}
|
|
833
833
|
|
|
834
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
834
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
|
|
835
835
|
var zObj = {
|
|
836
836
|
"<": "<",
|
|
837
837
|
">": ">",
|
|
@@ -852,7 +852,7 @@ function htmlEscape(str) {
|
|
|
852
852
|
// packages/node/index.ts
|
|
853
853
|
import { join as join4 } from "path";
|
|
854
854
|
|
|
855
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
855
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
|
|
856
856
|
function mergeObject(a, b, j = 0, i) {
|
|
857
857
|
if (a instanceof Array) {
|
|
858
858
|
if (j > 0 && i) {
|
|
@@ -906,7 +906,7 @@ function getConfig(key) {
|
|
|
906
906
|
return config[key];
|
|
907
907
|
}
|
|
908
908
|
|
|
909
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
909
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
|
|
910
910
|
function getVueText(content) {
|
|
911
911
|
const result = {
|
|
912
912
|
template: "",
|
|
@@ -953,7 +953,7 @@ function getVueTexts(content) {
|
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
955
|
|
|
956
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
956
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
957
957
|
function humpToLine(name) {
|
|
958
958
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
959
959
|
let result;
|
|
@@ -975,12 +975,12 @@ function humpToLine(name) {
|
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
977
|
|
|
978
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
978
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
979
979
|
function firstLower(str) {
|
|
980
980
|
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
981
981
|
}
|
|
982
982
|
|
|
983
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
983
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
|
|
984
984
|
function asyncMergeArray(arr, callback) {
|
|
985
985
|
return new Promise((resolve2, reject) => {
|
|
986
986
|
let index = 0;
|
|
@@ -1004,7 +1004,7 @@ function asyncMergeArray(arr, callback) {
|
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1007
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js
|
|
1008
1008
|
function getSuffix2(url) {
|
|
1009
1009
|
const reg = /\.([a-z|A-Z]+)$/;
|
|
1010
1010
|
const regs = reg.exec(url);
|
|
@@ -1014,7 +1014,7 @@ function getSuffix2(url) {
|
|
|
1014
1014
|
return "";
|
|
1015
1015
|
}
|
|
1016
1016
|
|
|
1017
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1017
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
|
|
1018
1018
|
function matchsStart2(key, matchs) {
|
|
1019
1019
|
if (matchs && matchs.length > 0) {
|
|
1020
1020
|
for (const value of matchs) {
|
|
@@ -1034,7 +1034,7 @@ function matchsStart2(key, matchs) {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
1037
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1037
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
|
|
1038
1038
|
function matchsEnd2(key, matchs) {
|
|
1039
1039
|
if (matchs && matchs.length > 0) {
|
|
1040
1040
|
for (const value of matchs) {
|
|
@@ -1697,7 +1697,7 @@ function parse(source, options = {}) {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
var stringify = getStringifier();
|
|
1699
1699
|
|
|
1700
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1700
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
|
|
1701
1701
|
function deComment(code) {
|
|
1702
1702
|
let output = "";
|
|
1703
1703
|
let state = "code";
|
|
@@ -1789,7 +1789,7 @@ function deComment(code) {
|
|
|
1789
1789
|
return output;
|
|
1790
1790
|
}
|
|
1791
1791
|
|
|
1792
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1792
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-DILPRD5C.js
|
|
1793
1793
|
function getImports(code, includeType = false) {
|
|
1794
1794
|
code = deComment(code);
|
|
1795
1795
|
const imports = /* @__PURE__ */ new Set();
|
|
@@ -2128,7 +2128,7 @@ function getTestArrs(arr, com, exa) {
|
|
|
2128
2128
|
"/([^/]+)\\." + defaultExtensions.join("|") + "$"
|
|
2129
2129
|
);
|
|
2130
2130
|
let ms = key.match(reg) || key.match(reg2);
|
|
2131
|
-
if (ms && ms
|
|
2131
|
+
if (ms && ms[1]) {
|
|
2132
2132
|
let value = "";
|
|
2133
2133
|
if (ms && ms.length > 1) {
|
|
2134
2134
|
value = ms[1];
|
|
@@ -3180,17 +3180,20 @@ var top_default2 = defineComponent2({
|
|
|
3180
3180
|
},
|
|
3181
3181
|
render(propss, a, props2) {
|
|
3182
3182
|
const domss = getTestTopDom(props2.value, h2);
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3183
|
+
if (domss && domss.length > 0) {
|
|
3184
|
+
return h2(
|
|
3185
|
+
"div",
|
|
3186
|
+
{
|
|
3187
|
+
class: "test-top-top"
|
|
3188
|
+
},
|
|
3189
|
+
domss
|
|
3190
|
+
);
|
|
3191
|
+
}
|
|
3192
|
+
return "";
|
|
3190
3193
|
}
|
|
3191
3194
|
});
|
|
3192
3195
|
|
|
3193
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
3196
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.33/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
|
|
3194
3197
|
var FUNCTION_REGEX = /^\s*(?:(async)\s+)?(?:function\s*(\*?)\s*(\w*)\s*\(([\s\S]*?)\)|(\*?\s*)\b(\w+)\s*\(([\s\S]*?)\)|\(([\s\S]*?)\)|([^=>,\(\)]+?))\s*(?:=>)?\s*(?:\{([\s\S]*?)\}|([\s\S]*))$/;
|
|
3195
3198
|
function getFunctionFormat(v) {
|
|
3196
3199
|
if (!v) return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),h=require("../boxurl/index.vue.cjs"),c=require("../../utils/glob.cjs"),_=require("../../utils/common.cjs"),N={class:"aside-search"},C={class:"aside-list"},E=["onClick"],B={class:"aside-li-name"},V={class:"aside-li-name-name"},x={class:"aside-li-name-aliass"},T=e.defineComponent({__name:"index",props:{value:Object},emits:["change"],setup(k,{emit:f}){const
|
|
1
|
+
"use strict";const e=require("vue"),h=require("../boxurl/index.vue.cjs"),c=require("../../utils/glob.cjs"),_=require("../../utils/common.cjs"),N={class:"aside-search"},C={class:"aside-list"},E=["onClick"],B={class:"aside-li-name"},V={class:"aside-li-name-name"},x={class:"aside-li-name-aliass"},T=e.defineComponent({__name:"index",props:{value:Object},emits:["change"],setup(k,{emit:f}){const i=k,r=e.ref(),s=e.ref([]);s.value=c.getCompoNameObj();const a=e.ref(i.value);if(!a.value||!a.value.key){let t=_.getAsideKey();t?a.value=c.getCompoNameKey(t):a.value=s.value[0]}const n=e.ref("");e.watch(()=>i.value,()=>{a.value=i.value,u()}),e.watch(()=>n.value,()=>{g()});const d=f;function v(t){return t?t.replace(/[\.|\/|\s]/g,"-"):"a"}function y(t){a.value=t,u(),d("change",t)}let m;function g(){clearTimeout(m),m=setTimeout(()=>{let t=n.value;t?s.value=c.getCompoName(t,!0):s.value=c.getCompoNameObj()},400)}function u(){let t=a.value?.key||"";_.setAsideKey(t)}return u(),d("change",a.value),e.onMounted(()=>{e.nextTick(()=>{const t=r.value.querySelector(".aside-li."+v(a.value?.key));if(t){const o=t.offsetTop,l=r.value.parentNode;l.scrollTop=o}})}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"aside",ref_key:"refAside",ref:r},[e.createElementVNode("div",N,[e.withDirectives(e.createElementVNode("input",{class:"aside-search-input","onUpdate:modelValue":o[0]||(o[0]=l=>n.value=l)},null,512),[[e.vModelText,n.value]])]),e.createElementVNode("div",C,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(l,q)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["aside-li",v(l.key)+" "+(l.key==a.value?.key?"on":"")]),onClick:p=>y(l)},[e.createVNode(h,{value:l},{default:e.withCtx(()=>[e.createElementVNode("div",B,[e.createElementVNode("div",V,e.toDisplayString(l.name),1),e.createElementVNode("span",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.aliasNames,p=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(p),1))),256))])])]),_:2},1032,["value"])],10,E))),256))])],512))}});module.exports=T;
|
|
@@ -11,16 +11,16 @@ const q = { class: "aside-search" }, F = { class: "aside-list" }, L = ["onClick"
|
|
|
11
11
|
setup(N, { emit: x }) {
|
|
12
12
|
const r = N, d = c(), l = c([]);
|
|
13
13
|
l.value = C();
|
|
14
|
-
const
|
|
15
|
-
if (!
|
|
14
|
+
const a = c(r.value);
|
|
15
|
+
if (!a.value || !a.value.key) {
|
|
16
16
|
let e = O();
|
|
17
|
-
e ?
|
|
17
|
+
e ? a.value = E(e) : a.value = l.value[0];
|
|
18
18
|
}
|
|
19
19
|
const i = c("");
|
|
20
20
|
k(
|
|
21
21
|
() => r.value,
|
|
22
22
|
() => {
|
|
23
|
-
|
|
23
|
+
a.value = r.value, v();
|
|
24
24
|
}
|
|
25
25
|
), k(
|
|
26
26
|
() => i.value,
|
|
@@ -29,31 +29,31 @@ const q = { class: "aside-search" }, F = { class: "aside-list" }, L = ["onClick"
|
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
const m = x;
|
|
32
|
-
function
|
|
32
|
+
function p(e) {
|
|
33
33
|
return e ? e.replace(/[\.|\/|\s]/g, "-") : "a";
|
|
34
34
|
}
|
|
35
35
|
function T(e) {
|
|
36
|
-
|
|
36
|
+
a.value = e, v(), m("change", e);
|
|
37
37
|
}
|
|
38
|
-
let
|
|
38
|
+
let f;
|
|
39
39
|
function K() {
|
|
40
|
-
clearTimeout(
|
|
40
|
+
clearTimeout(f), f = setTimeout(() => {
|
|
41
41
|
let e = i.value;
|
|
42
42
|
e ? l.value = M(e, !0) : l.value = C();
|
|
43
43
|
}, 400);
|
|
44
44
|
}
|
|
45
45
|
function v() {
|
|
46
|
-
let e =
|
|
46
|
+
let e = a.value?.key || "";
|
|
47
47
|
$(e);
|
|
48
48
|
}
|
|
49
|
-
return v(), m("change",
|
|
49
|
+
return v(), m("change", a.value), w(() => {
|
|
50
50
|
S(() => {
|
|
51
51
|
const e = d.value.querySelector(
|
|
52
|
-
".aside-li." +
|
|
52
|
+
".aside-li." + p(a.value?.key)
|
|
53
53
|
);
|
|
54
54
|
if (e) {
|
|
55
|
-
const u = e.offsetTop,
|
|
56
|
-
|
|
55
|
+
const u = e.offsetTop, t = d.value.parentNode;
|
|
56
|
+
t.scrollTop = u;
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
}), (e, u) => (n(), o("div", {
|
|
@@ -63,25 +63,26 @@ const q = { class: "aside-search" }, F = { class: "aside-list" }, L = ["onClick"
|
|
|
63
63
|
}, [
|
|
64
64
|
s("div", q, [
|
|
65
65
|
V(s("input", {
|
|
66
|
-
|
|
66
|
+
class: "aside-search-input",
|
|
67
|
+
"onUpdate:modelValue": u[0] || (u[0] = (t) => i.value = t)
|
|
67
68
|
}, null, 512), [
|
|
68
69
|
[b, i.value]
|
|
69
70
|
])
|
|
70
71
|
]),
|
|
71
72
|
s("div", F, [
|
|
72
|
-
(n(!0), o(y, null, h(l.value, (
|
|
73
|
+
(n(!0), o(y, null, h(l.value, (t, I) => (n(), o("div", {
|
|
73
74
|
class: j([
|
|
74
75
|
"aside-li",
|
|
75
|
-
|
|
76
|
+
p(t.key) + " " + (t.key == a.value?.key ? "on" : "")
|
|
76
77
|
]),
|
|
77
|
-
onClick: (_) => T(
|
|
78
|
+
onClick: (_) => T(t)
|
|
78
79
|
}, [
|
|
79
|
-
z(D, { value:
|
|
80
|
+
z(D, { value: t }, {
|
|
80
81
|
default: B(() => [
|
|
81
82
|
s("div", U, [
|
|
82
|
-
s("div", G, g(
|
|
83
|
+
s("div", G, g(t.name), 1),
|
|
83
84
|
s("span", H, [
|
|
84
|
-
(n(!0), o(y, null, h(
|
|
85
|
+
(n(!0), o(y, null, h(t.aliasNames, (_) => (n(), o("span", null, g(_), 1))), 256))
|
|
85
86
|
])
|
|
86
87
|
])
|
|
87
88
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";;/* empty css */require("../../../_virtual/common.cjs");const e=require("../../../node_modules/.pnpm/@highlightjs_vue-plugin@2.
|
|
1
|
+
"use strict";;/* empty css */require("../../../_virtual/common.cjs");const e=require("../../../node_modules/.pnpm/@highlightjs_vue-plugin@2.1_5dcf460b2cab0b2df1badb9cb42568f4/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs"),n=require("vue"),t=n.defineComponent({props:{language:{type:String},code:{type:String}},components:{highlightjs:e.component}});module.exports=t;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import "../../../_virtual/common.js";
|
|
3
|
-
import o from "../../../node_modules/.pnpm/@highlightjs_vue-plugin@2.
|
|
3
|
+
import o from "../../../node_modules/.pnpm/@highlightjs_vue-plugin@2.1_5dcf460b2cab0b2df1badb9cb42568f4/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js";
|
|
4
4
|
import { defineComponent as t } from "vue";
|
|
5
5
|
const m = t({
|
|
6
6
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("../boxurl/index.vue.cjs"),l={class:"compo-info"},c={class:"compo-info-name"},i={class:"compo-info-name-span"},m={key:0,class:"compo-info-name-li"},p={class:"compo-info-name-li-span"},r={class:"compo-info-name-li"},u={class:"compo-info-name-li-span"},d=e.defineComponent({__name:"info",props:{value:{type:Object}},setup(t){const o=t;return(_,n)=>(e.openBlock(),e.createElementBlock("div",l,[e.createVNode(a,{value:o.value},{default:e.withCtx(()=>[e.createElementVNode("div",c,[e.createElementVNode("
|
|
1
|
+
"use strict";const e=require("vue"),a=require("../boxurl/index.vue.cjs"),l={class:"compo-info"},c={class:"compo-info-name"},i={class:"compo-info-name-span"},m={key:0,class:"compo-info-name-li"},p={class:"compo-info-name-li-span"},r={class:"compo-info-name-li"},u={class:"compo-info-name-li-span"},d=e.defineComponent({__name:"info",props:{value:{type:Object}},setup(t){const o=t;return(_,n)=>(e.openBlock(),e.createElementBlock("div",l,[e.createVNode(a,{value:o.value},{default:e.withCtx(()=>[e.createElementVNode("div",c,[e.createElementVNode("div",i,e.toDisplayString(o.value?.name),1),o.value?.aliasNames&&o.value?.aliasNames.length?(e.openBlock(),e.createElementBlock("div",m,[n[0]||(n[0]=e.createElementVNode("span",{class:"compo-info-name-li-span"}," 别名 ",-1)),e.createElementVNode("span",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.aliasNames,s=>(e.openBlock(),e.createElementBlock("span",null,e.toDisplayString(s),1))),256))])])):e.createCommentVNode("",!0),e.createElementVNode("div",r,[n[1]||(n[1]=e.createElementVNode("span",{class:"compo-info-name-li-span"}," 文件路径 ",-1)),e.createElementVNode("span",u,e.toDisplayString(o.value?.key),1)])])]),_:1},8,["value"])]))}});module.exports=d;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as m, createElementBlock as n, openBlock as a, createVNode as c, withCtx as p, createElementVNode as e, createCommentVNode as r, toDisplayString as t, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as m, createElementBlock as n, openBlock as a, createVNode as c, withCtx as p, createElementVNode as e, createCommentVNode as r, toDisplayString as t, Fragment as d, renderList as u } from "vue";
|
|
2
|
+
import _ from "../boxurl/index.vue.js";
|
|
3
3
|
const f = { class: "compo-info" }, v = { class: "compo-info-name" }, h = { class: "compo-info-name-span" }, N = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "compo-info-name-li"
|
|
@@ -13,16 +13,16 @@ const f = { class: "compo-info" }, v = { class: "compo-info-name" }, h = { class
|
|
|
13
13
|
setup(i) {
|
|
14
14
|
const o = i;
|
|
15
15
|
return (x, s) => (a(), n("div", f, [
|
|
16
|
-
c(
|
|
16
|
+
c(_, {
|
|
17
17
|
value: o.value
|
|
18
18
|
}, {
|
|
19
19
|
default: p(() => [
|
|
20
20
|
e("div", v, [
|
|
21
|
-
e("
|
|
21
|
+
e("div", h, t(o.value?.name), 1),
|
|
22
22
|
o.value?.aliasNames && o.value?.aliasNames.length ? (a(), n("div", N, [
|
|
23
23
|
s[0] || (s[0] = e("span", { class: "compo-info-name-li-span" }, " 别名 ", -1)),
|
|
24
24
|
e("span", k, [
|
|
25
|
-
(a(!0), n(
|
|
25
|
+
(a(!0), n(d, null, u(o.value.aliasNames, (l) => (a(), n("span", null, t(l), 1))), 256))
|
|
26
26
|
])
|
|
27
27
|
])) : r("", !0),
|
|
28
28
|
e("div", y, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue");require("@fangzhongya/utils/html/htmlEscape");function v(d,e,f){let i=[],m=[],p=[];const n=t=>t,r=()=>{p.length>0&&(i.push(e("div",{class:"test-top-list"},p)),p=[])},c=()=>{i.length>0&&(m.push(e("div",{class:"test-top-division"},i)),i=[])};return d.forEach(t=>{const o=[];let a=!1;if(t.date&&(a=!0,o.push(e("div",{class:"test-top-date"},[e("span",{},"更新时间:"),e("span",{},[n(t.date.name+" "+t.date.description)])]))),t.author&&(a=!0,o.push(e("div",{class:"test-top-author"},[e("span",{},"作者:"),e("span",{},[n(t.author.name+" "+t.author.description)])]))),t.title&&(t.title.type||t.title.name||t.title.description)){r(),a&&c();let s=(t.title.type||"div").split("."),l=s[1]||"";s[0]=="html"?i.push(e("div",{class:"test-top-title "+l,innerHTML:t.title.name+" "+t.title.description})):i.push(e(s[0],{class:"test-top-title "+l},[e("span",{},[n(t.title.name+" "+t.title.description)])]))}if(a&&(p.length>0&&(r(),c()),i.push(e("div",{class:"test-top-info"},o))),t.html){let s=(t.html.type||"div").split("."),l=s[1]||"";p.push(e(s[0],{class:"test-top-html "+l,innerHTML:t.html.name+" "+t.html.description}))}["text","proposal","error"].forEach(s=>{if(t[s]){let l=(t[s].type||"div").split("."),h=l[1]||"";l[0]=="html"?p.push(e("div",{class:"test-top-"+s+" "+h,innerHTML:t[s].name+" "+t[s].description})):p.push(e(l[0],{class:"test-top-"+s+" "+h},[e("span",{},[n(t[s].name+" "+t[s].description)])]))}})}),r(),c(),m}const y=u.defineComponent({props:{value:Array},render(d,e,f){const i=v(f.value,u.h);return i&&i.length>0?u.h("div",{class:"test-top-top"},i):""}});exports.default=y;exports.getTestTopDom=v;
|
|
@@ -133,13 +133,13 @@ const H = y({
|
|
|
133
133
|
},
|
|
134
134
|
render(o, e, u) {
|
|
135
135
|
const i = v(u.value, h);
|
|
136
|
-
return h(
|
|
136
|
+
return i && i.length > 0 ? h(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
|
-
class: "test-top"
|
|
139
|
+
class: "test-top-top"
|
|
140
140
|
},
|
|
141
141
|
i
|
|
142
|
-
);
|
|
142
|
+
) : "";
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
export {
|
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
}>> & Readonly<{
|
|
21
|
-
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
}>, {
|
|
23
|
-
html: string;
|
|
24
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
|
-
export default _default;
|
|
1
|
+
import { ObjStr, ObjUnk } from '../../config';
|
|
2
|
+
import { SpecObjs, Spec } from '../../utils/index';
|
|
3
|
+
import { DataType } from './util';
|
|
4
|
+
export declare function getHmtl(propsname: string, param: {
|
|
5
|
+
[key: string]: SpecObjs[];
|
|
6
|
+
}, value: ObjUnk, slotValue?: ObjStr, propsText?: ObjStr, exposeText?: ObjUnk): Promise<string>;
|
|
7
|
+
export declare function setValStringify(v: unknown, key: string, propsText?: ObjStr): string | Promise<string>;
|
|
8
|
+
type SelectsObj = {
|
|
9
|
+
label: string;
|
|
10
|
+
prop: unknown;
|
|
11
|
+
};
|
|
12
|
+
export declare function getSpecType(val: Spec): {
|
|
13
|
+
arr: SelectsObj[];
|
|
14
|
+
type: string;
|
|
15
|
+
dataType: DataType[];
|
|
16
|
+
};
|
|
17
|
+
export declare function getDefaultValue(obj: Spec, is?: boolean): any;
|
|
18
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),p=require("../../util.cjs"),v=require("../form/index.vue.cjs"),y=require("../select/index.vue.cjs");;/* empty css */const V={class:"form-any"},h=t.defineComponent({__name:"index",props:{selects:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}},modelValue:{type:null}},emits:["change"],setup(f,{emit:d}){const o=f,r=t.ref([]),u=t.ref({}),m=d,s=t.ref(""),c=[{label:"string",prop:"string"},{label:"boolean",prop:"boolean"},{label:"number",prop:"number"},{label:"array",prop:"array"},{label:"object",prop:"object"},{label:"function",prop:"function"},{label:"其他",prop:""}];t.watch(()=>o.modelValue,()=>{_()},{immediate:!0});function i(e,l){let a=Object.assign({},o.config);l?a.type=l:a.type=e,a.dataType=r.value,u.value=a}function _(){let e=[];const l=o.config.dataType||[];l&&l.length>0?(e=l.map(n=>typeof n=="string"?{label:n,prop:n.toLowerCase()}:{label:n.label,prop:p.getDataTypeType([n])}),e.map(n=>n.prop).includes("any")&&(e=[...c])):e=[...c],r.value=e,i(e[0].prop,p.isDefaultType(o.modelValue)),s.value=o.modelValue}function b(e){i(e),s.value=""}function g(...e){m("change",...e)}return(e,l)=>(t.openBlock(),t.createElementBlock("div",V,[t.createElementVNode("div",null,[t.createVNode(y,{noValue:"",onChange:b,modelValue:u.value.type,list:r.value},null,8,["modelValue","list"])]),t.createVNode(v,{config:u.value,selects:o.selects,modelValue:s.value,onChange:g},null,8,["config","selects","modelValue"])]))}});module.exports=h;
|
|
1
|
+
"use strict";const t=require("vue"),p=require("../../util.cjs"),v=require("../form/index.vue.cjs"),y=require("../select/index.vue.cjs");;/* empty css */const V={class:"form-any"},h=t.defineComponent({__name:"index",props:{selects:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}},modelValue:{type:null}},emits:["change"],setup(f,{emit:d}){const o=f,r=t.ref([]),u=t.ref({type:""}),m=d,s=t.ref(""),c=[{label:"string",prop:"string"},{label:"boolean",prop:"boolean"},{label:"number",prop:"number"},{label:"array",prop:"array"},{label:"object",prop:"object"},{label:"function",prop:"function"},{label:"其他",prop:""}];t.watch(()=>o.modelValue,()=>{_()},{immediate:!0});function i(e,l){let a=Object.assign({},o.config);l?a.type=l:a.type=e,a.dataType=r.value,u.value=a}function _(){let e=[];const l=o.config.dataType||[];l&&l.length>0?(e=l.map(n=>typeof n=="string"?{label:n,prop:n.toLowerCase()}:{label:n.label,prop:p.getDataTypeType([n])}),e.map(n=>n.prop).includes("any")&&(e=[...c])):e=[...c],r.value=e,i(e[0].prop,p.isDefaultType(o.modelValue)),s.value=o.modelValue}function b(e){i(e),s.value=""}function g(...e){m("change",...e)}return(e,l)=>(t.openBlock(),t.createElementBlock("div",V,[t.createElementVNode("div",null,[t.createVNode(y,{noValue:"",onChange:b,modelValue:u.value.type,list:r.value},null,8,["modelValue","list"])]),t.createVNode(v,{config:u.value,selects:o.selects,modelValue:s.value,onChange:g},null,8,["config","selects","modelValue"])]))}});module.exports=h;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as V, ref as
|
|
1
|
+
import { defineComponent as V, ref as p, watch as _, createElementBlock as v, openBlock as h, createElementVNode as j, createVNode as u } from "vue";
|
|
2
2
|
import { getDataTypeType as T, isDefaultType as C } from "../../util.js";
|
|
3
3
|
import x from "../form/index.vue.js";
|
|
4
4
|
import O from "../select/index.vue.js";
|
|
@@ -30,7 +30,9 @@ const k = { class: "form-any" }, N = /* @__PURE__ */ V({
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["change"],
|
|
32
32
|
setup(m, { emit: f }) {
|
|
33
|
-
const o = m, n =
|
|
33
|
+
const o = m, n = p([]), r = p({
|
|
34
|
+
type: ""
|
|
35
|
+
}), d = f, c = p(""), s = [
|
|
34
36
|
{
|
|
35
37
|
label: "string",
|
|
36
38
|
prop: "string"
|
|
@@ -69,7 +71,7 @@ const k = { class: "form-any" }, N = /* @__PURE__ */ V({
|
|
|
69
71
|
immediate: !0
|
|
70
72
|
}
|
|
71
73
|
);
|
|
72
|
-
function
|
|
74
|
+
function i(e, l) {
|
|
73
75
|
let a = Object.assign({}, o.config);
|
|
74
76
|
l ? a.type = l : a.type = e, a.dataType = n.value, r.value = a;
|
|
75
77
|
}
|
|
@@ -82,10 +84,10 @@ const k = { class: "form-any" }, N = /* @__PURE__ */ V({
|
|
|
82
84
|
} : {
|
|
83
85
|
label: t.label,
|
|
84
86
|
prop: T([t])
|
|
85
|
-
}), e.map((t) => t.prop).includes("any") && (e = [...
|
|
87
|
+
}), e.map((t) => t.prop).includes("any") && (e = [...s])) : e = [...s], n.value = e, i(e[0].prop, C(o.modelValue)), c.value = o.modelValue;
|
|
86
88
|
}
|
|
87
89
|
function g(e) {
|
|
88
|
-
|
|
90
|
+
i(e), c.value = "";
|
|
89
91
|
}
|
|
90
92
|
function y(...e) {
|
|
91
93
|
d("change", ...e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),m=require("./any/index.vue.cjs"),y=require("./form/index.vue.cjs"),_={class:"com-retrie"},k={key:0,class:"com-retrie-label"},f=e.defineComponent({__name:"index",props:{name:String,selects:{type:Object,default(){return{}}},list:{type:Array,default(){return[]}},refresh:{type:Number,default:0},modelValue:{type:null,default(){return{}}},queryName:{type:String,default:"执行"},defaultQuery:{type:Boolean}},emits:["query"],setup(c,{emit:i}){const l=c,
|
|
1
|
+
"use strict";const e=require("vue"),m=require("./any/index.vue.cjs"),y=require("./form/index.vue.cjs"),_={class:"com-retrie"},k={key:0,class:"com-retrie-label"},f=e.defineComponent({__name:"index",props:{name:String,selects:{type:Object,default(){return{}}},list:{type:Array,default(){return[]}},refresh:{type:Number,default:0},modelValue:{type:null,default(){return{}}},queryName:{type:String,default:"执行"},defaultQuery:{type:Boolean}},emits:["query"],setup(c,{emit:i}){const l=c,d=i,n=e.ref({}),o=e.ref({});function u(r,s,t){n.value[r]=s,o.value[r]=t}function a(){d("query",n.value,o.value)}return e.watch(()=>l.modelValue,()=>{n.value={},o.value={},e.nextTick(()=>{a()})},{immediate:!0}),(r,s)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",{class:"but-div com-retrie-but",onClick:e.withModifiers(a,["stop"])},[e.createElementVNode("span",null,e.toDisplayString(c.queryName),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(t,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"com-retrie-li"},[t.label?(e.openBlock(),e.createElementBlock("div",k,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),!t.type||t.type=="any"?(e.openBlock(),e.createBlock(m,{key:1,config:t,selects:l.selects,modelValue:l.modelValue[t.prop],onChange:u},null,8,["config","selects","modelValue"])):(e.openBlock(),e.createBlock(y,{key:2,config:t,selects:l.selects,modelValue:l.modelValue[t.prop],onChange:u},null,8,["config","selects","modelValue"]))]))),128))]))}});module.exports=f;
|
|
@@ -52,17 +52,17 @@ const B = { class: "com-retrie" }, S = {
|
|
|
52
52
|
},
|
|
53
53
|
emits: ["query"],
|
|
54
54
|
setup(u, { emit: y }) {
|
|
55
|
-
const t = u, v = y,
|
|
55
|
+
const t = u, v = y, o = m({}), a = m({});
|
|
56
56
|
function c(n, i, e) {
|
|
57
|
-
|
|
57
|
+
o.value[n] = i, a.value[n] = e;
|
|
58
58
|
}
|
|
59
59
|
function s() {
|
|
60
|
-
v("query",
|
|
60
|
+
v("query", o.value, a.value);
|
|
61
61
|
}
|
|
62
62
|
return V(
|
|
63
63
|
() => t.modelValue,
|
|
64
64
|
() => {
|
|
65
|
-
|
|
65
|
+
o.value = {}, a.value = {}, g(() => {
|
|
66
66
|
s();
|
|
67
67
|
});
|
|
68
68
|
},
|
|
@@ -80,7 +80,7 @@ const B = { class: "com-retrie" }, S = {
|
|
|
80
80
|
key: _,
|
|
81
81
|
class: "com-retrie-li"
|
|
82
82
|
}, [
|
|
83
|
-
e.label ? (l(), r("
|
|
83
|
+
e.label ? (l(), r("div", S, f(e.label), 1)) : C("", !0),
|
|
84
84
|
!e.type || e.type == "any" ? (l(), p(N, {
|
|
85
85
|
key: 1,
|
|
86
86
|
config: e,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../config.cjs"),B=require("@fangzhongya/utils/html/getVueText"),c=require("./common.cjs"),F=require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");const T=require("@fangzhongya/utils/name/humpToLine"),A=require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");const W=require("@fangzhongya/utils/basic/string/firstLower"),D=require("@fangzhongya/utils/basic/array/duplicateRemoval"),M=require("@fangzhongya/utils/basic/array/asyncMergeArray");require("@fangzhongya/utils/basic/string/firstUpper");const w=require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const J=require("./index.cjs"),h={},R={},I=[],K={},j={},g={};function Q(){return q.getConfig("example")}function X(t,e,n,r){const a=F.mergeObject(e,n||{},3,!0);a.exampless=a.exampless||[],a.examplessRaw=a.examplessRaw||[];const s=[],i=a.examples;i&&Object.keys(i).forEach(o=>{s.push(o),j[o]=i[o]});const l=a.examplesRaw,u=[];if(a.urls&&a.urls.length>0?(a.exampless=a.urls,a.urls.forEach(o=>{u.push(o),l&&(g[o]=N(l,o))})):(a.exampless=s,l&&Object.keys(l).forEach(o=>{u.push(o),g[o]=N(l,o)})),a.examples=void 0,e.tests&&r){const o=e.testsNanme||"/tests/";typeof o=="string"?Object.keys(r).forEach(f=>{f.includes(o)&&(a.exampless.push(f),u.push(f),g[f]=N(r,f))}):Object.keys(r).forEach(f=>{o.test(f)&&(a.exampless.push(f),u.push(f),g[f]=N(r,f))})}a.exampless=[...new Set(a.exampless)],a.examplessRaw=[...new Set(u)],a.examplesRaw=void 0,K[t]=a}function N(t,e){return typeof t=="function"?t:t&&(t[e]||t)}const b={};function Y(t){const e=q.getConfig("resolve");if(b[t])return b[t];for(let n of e)if(t.startsWith(n.find+"/")){const a=n.replacement.replaceAll("\\","/")+t.replace(n.find+"/","/");return b[t]=a,a}}async function Z(t,e){let n="";if(e=="vue"?n=B.getVueTexts(t).script:(e=="js"||e=="ts"||e=="")&&(n=t),n){const r=await J.getTextImport(n),a=[];return r&&r.length>0&&r.forEach(s=>{if(s)if(s.startsWith("./")||s.startsWith("../"))a.push(s);else{const i=Y(s);i&&a.push(i)}}),a}}function _(t){return new Promise(e=>{t?t.raw?e(t.raw):t.getRaw?t.getRaw(t).then(n=>{const r=C(n);t.raw=r,t.getRaw=null,e(r)}):e(""):e("")})}function U(t,e){t=(t||"")+"";let n="";switch(t){case"1":n=e.tdir+"/";break;case"2":n=e.adir+"/";break;case"3":n=e.tdir+"/"+e.adir+"/";break}return n}function z(t,e,n){t=(t||"")+"",n=(n||"")+"";let r=T.humpToLine(e.name),a=[];t==="1"?e.alias&&a.push(e.alias+"-"+r):t==="3"?e.alias&&e.alias+"":t==="4"?e.aliasNames?.forEach(i=>{a.push(T.humpToLine(i))}):t=="9"&&(a.push(r),e.aliasNames?.forEach(i=>{a.push(T.humpToLine(i))})),a.length==0&&a.push(r);let s=[];return n==="1"?a.forEach(i=>{let l=A.lineToLargeHump(i);s.push(l,W.firstLower(l))}):n==="2"?a.forEach(i=>{let l=A.lineToLargeHump(i);s.push(i,l,W.firstLower(l))}):s=[...a],s=[...new Set(s)],s}function y(t,e,n,r){const a=[];return n.examplessRaw.forEach(s=>{for(let i=0;i<e.length;i++){const l=e[i];if(s==t+l+n.md+".md"){a.push({cwd:n.cwd||r.cwd,topurl:t,comkey:r.key,suffix:w.getSuffix(s),name:r.name,value:l,key:s,raw:"",getRaw:c.getRawValue(g,s)});break}}}),a}function P(t){O();const e=h[t];if(e.tests&&Object.keys(e.tests).length>0)return e.tests;{const n=K[e.dir],r=n.dir+U(n.level||0,e),a=z(n.aliaslevel||0,e,n.componentName||0);e.mds=y(r,a,n,e);const s={};return n.exampless.forEach(i=>{for(let l=0;l<a.length;l++){const u=a[l];if(i.startsWith(r+u+"/")){const o=new RegExp("/([^/]+)/index\\."+c.defaultExtensions.join("|")+"$"),f=new RegExp("/([^/]+)\\."+c.defaultExtensions.join("|")+"$");let p=i.match(o)||i.match(f);if(p&&p.length>0){let m="";p&&p.length>1&&(m=p[1]),s[i]={topurl:r,name:u,value:m,suffix:w.getSuffix(i),comname:e.name,comkey:e.key,cwd:n.cwd||e.cwd,key:i,dir:e.dir,url:i,component:j[i],raw:"",getRaw:c.getRawValue(g,i)};break}}}}),n.tests&&k(s,e,n),e.tests=s,s}}function k(t,e,n){const r=e.url.substring(0,e.url.lastIndexOf("/"+e.value+"/"))+"/"+e.value,a=n.testsNanme||"/tests/";typeof a=="string"?n.examplessRaw.forEach(s=>{if(s.startsWith(r+"/")){if(s==r+n.md+".md")e.mds=e.mds||[],e.mds.push({cwd:e.cwd,topurl:r,comkey:e.key,suffix:w.getSuffix(s),name:e.name,value:e.value,key:s,raw:"",getRaw:c.getRawValue(g,s)});else if(s.startsWith(r+a)){const i=new RegExp("/([^/]+)/index\\."+c.defaultExtensions.join("|")+"$"),l=new RegExp("/([^/]+)\\."+c.defaultExtensions.join("|")+"$");let u=s.match(i)||s.match(l);if(u&&u
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../config.cjs"),B=require("@fangzhongya/utils/html/getVueText"),c=require("./common.cjs"),F=require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");const T=require("@fangzhongya/utils/name/humpToLine"),A=require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");const W=require("@fangzhongya/utils/basic/string/firstLower"),D=require("@fangzhongya/utils/basic/array/duplicateRemoval"),M=require("@fangzhongya/utils/basic/array/asyncMergeArray");require("@fangzhongya/utils/basic/string/firstUpper");const w=require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const J=require("./index.cjs"),h={},R={},I=[],K={},j={},g={};function Q(){return q.getConfig("example")}function X(t,e,n,r){const a=F.mergeObject(e,n||{},3,!0);a.exampless=a.exampless||[],a.examplessRaw=a.examplessRaw||[];const s=[],i=a.examples;i&&Object.keys(i).forEach(o=>{s.push(o),j[o]=i[o]});const l=a.examplesRaw,u=[];if(a.urls&&a.urls.length>0?(a.exampless=a.urls,a.urls.forEach(o=>{u.push(o),l&&(g[o]=N(l,o))})):(a.exampless=s,l&&Object.keys(l).forEach(o=>{u.push(o),g[o]=N(l,o)})),a.examples=void 0,e.tests&&r){const o=e.testsNanme||"/tests/";typeof o=="string"?Object.keys(r).forEach(f=>{f.includes(o)&&(a.exampless.push(f),u.push(f),g[f]=N(r,f))}):Object.keys(r).forEach(f=>{o.test(f)&&(a.exampless.push(f),u.push(f),g[f]=N(r,f))})}a.exampless=[...new Set(a.exampless)],a.examplessRaw=[...new Set(u)],a.examplesRaw=void 0,K[t]=a}function N(t,e){return typeof t=="function"?t:t&&(t[e]||t)}const b={};function Y(t){const e=q.getConfig("resolve");if(b[t])return b[t];for(let n of e)if(t.startsWith(n.find+"/")){const a=n.replacement.replaceAll("\\","/")+t.replace(n.find+"/","/");return b[t]=a,a}}async function Z(t,e){let n="";if(e=="vue"?n=B.getVueTexts(t).script:(e=="js"||e=="ts"||e=="")&&(n=t),n){const r=await J.getTextImport(n),a=[];return r&&r.length>0&&r.forEach(s=>{if(s)if(s.startsWith("./")||s.startsWith("../"))a.push(s);else{const i=Y(s);i&&a.push(i)}}),a}}function _(t){return new Promise(e=>{t?t.raw?e(t.raw):t.getRaw?t.getRaw(t).then(n=>{const r=C(n);t.raw=r,t.getRaw=null,e(r)}):e(""):e("")})}function U(t,e){t=(t||"")+"";let n="";switch(t){case"1":n=e.tdir+"/";break;case"2":n=e.adir+"/";break;case"3":n=e.tdir+"/"+e.adir+"/";break}return n}function z(t,e,n){t=(t||"")+"",n=(n||"")+"";let r=T.humpToLine(e.name),a=[];t==="1"?e.alias&&a.push(e.alias+"-"+r):t==="3"?e.alias&&e.alias+"":t==="4"?e.aliasNames?.forEach(i=>{a.push(T.humpToLine(i))}):t=="9"&&(a.push(r),e.aliasNames?.forEach(i=>{a.push(T.humpToLine(i))})),a.length==0&&a.push(r);let s=[];return n==="1"?a.forEach(i=>{let l=A.lineToLargeHump(i);s.push(l,W.firstLower(l))}):n==="2"?a.forEach(i=>{let l=A.lineToLargeHump(i);s.push(i,l,W.firstLower(l))}):s=[...a],s=[...new Set(s)],s}function y(t,e,n,r){const a=[];return n.examplessRaw.forEach(s=>{for(let i=0;i<e.length;i++){const l=e[i];if(s==t+l+n.md+".md"){a.push({cwd:n.cwd||r.cwd,topurl:t,comkey:r.key,suffix:w.getSuffix(s),name:r.name,value:l,key:s,raw:"",getRaw:c.getRawValue(g,s)});break}}}),a}function P(t){O();const e=h[t];if(e.tests&&Object.keys(e.tests).length>0)return e.tests;{const n=K[e.dir],r=n.dir+U(n.level||0,e),a=z(n.aliaslevel||0,e,n.componentName||0);e.mds=y(r,a,n,e);const s={};return n.exampless.forEach(i=>{for(let l=0;l<a.length;l++){const u=a[l];if(i.startsWith(r+u+"/")){const o=new RegExp("/([^/]+)/index\\."+c.defaultExtensions.join("|")+"$"),f=new RegExp("/([^/]+)\\."+c.defaultExtensions.join("|")+"$");let p=i.match(o)||i.match(f);if(p&&p.length>0){let m="";p&&p.length>1&&(m=p[1]),s[i]={topurl:r,name:u,value:m,suffix:w.getSuffix(i),comname:e.name,comkey:e.key,cwd:n.cwd||e.cwd,key:i,dir:e.dir,url:i,component:j[i],raw:"",getRaw:c.getRawValue(g,i)};break}}}}),n.tests&&k(s,e,n),e.tests=s,s}}function k(t,e,n){const r=e.url.substring(0,e.url.lastIndexOf("/"+e.value+"/"))+"/"+e.value,a=n.testsNanme||"/tests/";typeof a=="string"?n.examplessRaw.forEach(s=>{if(s.startsWith(r+"/")){if(s==r+n.md+".md")e.mds=e.mds||[],e.mds.push({cwd:e.cwd,topurl:r,comkey:e.key,suffix:w.getSuffix(s),name:e.name,value:e.value,key:s,raw:"",getRaw:c.getRawValue(g,s)});else if(s.startsWith(r+a)){const i=new RegExp("/([^/]+)/index\\."+c.defaultExtensions.join("|")+"$"),l=new RegExp("/([^/]+)\\."+c.defaultExtensions.join("|")+"$");let u=s.match(i)||s.match(l);if(u&&u[1]){let o="";u&&u.length>1&&(o=u[1]),t[s]={topurl:r,name:e.value,value:o,suffix:w.getSuffix(s),comname:e.name,comkey:e.key,cwd:n.cwd||e.cwd,key:s,dir:e.dir,url:s,component:j[s],raw:"",getRaw:c.getRawValue(g,s)}}}}}):n.examplessRaw.forEach(s=>{if(s.startsWith(r+"/")){if(s==r+n.md+".md")e.mds=e.mds||[],e.mds.push({cwd:e.cwd,topurl:r,comkey:e.key,suffix:w.getSuffix(s),name:e.name,value:e.value,key:s,raw:"",getRaw:c.getRawValue(g,s)});else if(a.test(s)){const i=new RegExp("/([^/]+)/index\\."+c.defaultExtensions.join("|")+"$"),l=new RegExp("/([^/]+)\\."+c.defaultExtensions.join("|")+"$");let u=s.match(i)||s.match(l);if(u&&u.length>0){let o="";u&&u.length>1&&(o=u[1]),t[s]={cwd:n.cwd||e.cwd,topurl:r,name:e.value,value:o,suffix:w.getSuffix(s),comname:e.name,comkey:e.key,key:s,dir:e.dir,url:s,component:j[s],raw:"",getRaw:c.getRawValue(g,s)}}}}})}function ee(t){if(t){const e=P(t);return Object.values(e)}else return[]}function te(t,e,n){O();const r=P(n),a=[];if(e){let s=r[e];if(s)return a.push(s),a}return Object.values(r).forEach(s=>{s.name+"/"+s.value==t&&a.push(s)}),a}function se(t){return P(t),h[t].mds}async function V(t,e,n){let r=t.key,a=t.dir,s=t.url,i=t.comprops,l=t.curprops,u=await Z(e,n||t.suffix)||[],o=s.split("/");return u.map(f=>{if(f.startsWith("./")){let p=o.slice(0,o.length-1).join("/"),m=f.substring(2);const d=p.replace(/^\.\/|((\.\.\/)+)/,"/");let x=r.indexOf(d)+d.length;return{key:r.substring(0,x)+"/"+m,name:f,cwd:t.cwd,comprops:i,curprops:l,value:m,suffix:w.getSuffix(f),head:p,dir:a,url:p+"/"+m}}else if(f.startsWith("../")){let p=f.split("/"),m=0;for(let L=0;L<p.length;L++)if(p[L]!=".."){m=L;break}let d=p.slice(m,p.length),x=o.slice(0,o.length-m-1).join("/"),E=d.join("/");const S=x.replace(/^\.\/|((\.\.\/)+)/,"/");let G=r.indexOf(S)+S.length;return{key:r.substring(0,G)+"/"+E,name:E,cwd:t.cwd,comprops:i,curprops:l,value:E,suffix:w.getSuffix(f),head:x,dir:a,url:x+"/"+E}}else{const p=a.replace(/^\.\/|((\.\.\/)+)/,"/");let m=f.indexOf(p)+p.length,d=f.substring(m),x=a.substring(0,a.length-1);return{key:f,name:d,comprops:i,curprops:l,value:d,suffix:w.getSuffix(f),head:x,dir:a,cwd:t.cwd,url:x+"/"+d}}})}function ne(t){return new Promise(e=>{if(t&&t.length>0){let n=t.map(r=>({...r,raw:"",suffix:w.getSuffix(r.key),getRaw:c.getRawValue(g,r.key)}));M.asyncMergeArray(n,(r,a,s,i)=>{s.raw?r():s.getRaw?s.getRaw(s).then(l=>{const u=C(l);s.raw=u,s.getRaw=null,r()}):r()}).then(()=>{e(n)})}else e([])})}function re(){const t=Q();q.getConfig("components")?.forEach(n=>{const r=le(n);let a=n.dir||"";X(a,t,n.example,r)})}const $="default";function ae(t){let e=T.humpToLine(t.name),n=[...t.aliasNames];n.push(e),n.forEach(r=>{I.push({name:r,value:t.key})})}function ie(t,e){e?.forEach(n=>{h[n.key]=n,ae(n)})}function le(t){let e,n;const r=t.resolver;r&&Object.keys(r).forEach(s=>{typeof t[s]>"u"&&(t[s]=r[s])}),e=t.alias||$;let a=t?.urls||Object.keys(t.componentsRaw);return n=c.getComponentsArr(a,t,t.componentsRaw,t.components),n&&n?.props&&n.props.forEach(s=>{R[s.url]=s}),ie(e,n.components),t.componentsRaw}function oe(t){return O(),h[t]}function O(){return Object.keys(h).length==0&&re(),Object.values(h)}function ue(){return O(),R}function fe(t,e,n){O();const r=[];if(n){let s=h[n];if(s&&s.key)return[s]}let a=T.humpToLine(t);return I.forEach(s=>{e?s.name.includes(a)&&r.push(h[s.value]):s.name==a&&r.push(h[s.value])}),D.duplicateRemoval(r,"key")}async function ce(t,e){let n=t;if(t){let r=(await V(e,t)).filter(a=>c.isComprops(a.key,e.comprops)||c.isCurprops(a.key,e.curprops));n=await H(r)+n}return n}function pe(t){const e=t.url,n=t.key;return R[e]||R[e+".js"]||R[e+".ts"]||R[n]||R[n+".js"]||R[n+".ts"]}function v(t){return new Promise(e=>{if(t&&t.length>0){let n=t.map(r=>pe(r)).filter(r=>!!r);M.asyncMergeArray(n,(r,a,s,i)=>{s.raw?r():s.getRaw?s.getRaw(s).then(async l=>{const u=C(l);let o=await ce(u,t[i]);s.raw=o,s.getRaw=null,r()}):r()}).then(()=>{e(n)})}else e([])})}async function H(t){return((await v(t))?.map(r=>r.raw)||[]).join(`
|
|
2
2
|
`)}async function me(t,e){let n=t;if(t&&(e.comprops||e.curprops)){let r=(await V(e,t)).filter(s=>c.isComprops(s.key,e.comprops)||c.isCurprops(s.key,e.curprops));n=await H(r)+n}return n}function C(t){return t&&typeof t=="object"?t.default||"":(t||"")+""}function ge(t){return new Promise(e=>{if(t){O();const n=h[t];n?n.raw?e(n.raw):n.getRaw?n.getRaw(n).then(r=>{const a=C(r);me(a,n).then(s=>{n.raw=s,n.getRaw=null,e(s)})}):e(""):e("")}else e("")})}exports.defaultName=$;exports.getCompoName=fe;exports.getCompoNameKey=oe;exports.getCompoNameObj=O;exports.getComponentPropsObjs=ue;exports.getGetRawValue=C;exports.getKeyMds=se;exports.getLevelUrl=U;exports.getLocalTextArr=ne;exports.getLocalTextComponents=ge;exports.getLocalTextTests=_;exports.getPropsRaws=v;exports.getTestImportUrl=V;exports.getTestName=ee;exports.getTestNameObj=te;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangzhongya/vue-archive",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.94",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "vue 组件注释生成文档",
|
|
7
7
|
"author": "fangzhongya ",
|
|
@@ -18,39 +18,44 @@
|
|
|
18
18
|
"registry": "https://registry.npmjs.org/"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@codemirror/autocomplete": "6.
|
|
21
|
+
"@codemirror/autocomplete": "6.19.0",
|
|
22
22
|
"@codemirror/lang-css": "^6.3.1",
|
|
23
|
-
"@codemirror/lang-html": "^6.4.
|
|
23
|
+
"@codemirror/lang-html": "^6.4.11",
|
|
24
24
|
"@codemirror/lang-javascript": "^6.2.4",
|
|
25
25
|
"@codemirror/lang-json": "^6.0.2",
|
|
26
26
|
"@codemirror/state": "^6.5.2",
|
|
27
|
-
"@codemirror/view": "^6.38.
|
|
27
|
+
"@codemirror/view": "^6.38.6",
|
|
28
28
|
"@fangzhongya/create": "0.2.34",
|
|
29
|
-
"@fangzhongya/utils": "0.0.
|
|
29
|
+
"@fangzhongya/utils": "0.0.33",
|
|
30
30
|
"@fangzhongya/vue-components": "0.1.18",
|
|
31
31
|
"@highlightjs/vue-plugin": "^2.1.0",
|
|
32
|
-
"@types/node": "^24.
|
|
32
|
+
"@types/node": "^24.7.2",
|
|
33
33
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
34
|
+
"@vue/compiler-dom": "3.5.22",
|
|
35
|
+
"@vue/compiler-sfc": "3.5.22",
|
|
36
|
+
"@vue/runtime-dom": "3.5.22",
|
|
37
|
+
"@vue/server-renderer": "3.5.22",
|
|
38
|
+
"@vue/shared": "3.5.22",
|
|
34
39
|
"codemirror": "^6.0.2",
|
|
35
40
|
"fast-glob": "^3.3.3",
|
|
36
|
-
"sass": "^1.
|
|
41
|
+
"sass": "^1.93.2",
|
|
37
42
|
"ts-node": "^10.9.2",
|
|
38
43
|
"tsup": "^8.5.0",
|
|
39
|
-
"typescript": "^5.9.
|
|
40
|
-
"unplugin-vue-components": "^29.
|
|
41
|
-
"vite": "^7.1.
|
|
44
|
+
"typescript": "^5.9.3",
|
|
45
|
+
"unplugin-vue-components": "^29.1.0",
|
|
46
|
+
"vite": "^7.1.10",
|
|
42
47
|
"vite-plugin-dts": "4.5.4",
|
|
43
48
|
"vitest": "^3.2.4",
|
|
44
|
-
"vue-tsc": "^3.
|
|
49
|
+
"vue-tsc": "^3.1.1"
|
|
45
50
|
},
|
|
46
51
|
"dependencies": {
|
|
47
52
|
"comment-parser": "^1.4.1",
|
|
48
53
|
"highlight.js": "^11.11.1",
|
|
49
54
|
"markdown-it": "^14.1.0",
|
|
50
|
-
"monaco-editor": "^0.
|
|
55
|
+
"monaco-editor": "^0.54.0",
|
|
51
56
|
"prettier": "^3.6.2",
|
|
52
|
-
"vue": "^3.5.
|
|
53
|
-
"vue-router": "^4.
|
|
57
|
+
"vue": "^3.5.22",
|
|
58
|
+
"vue-router": "^4.6.0"
|
|
54
59
|
},
|
|
55
60
|
"types": "./dist/packages/index.d.ts",
|
|
56
61
|
"main": "./dist/packages/index.cjs",
|
|
File without changes
|