@fangzhongya/vue-archive 0.1.11 → 0.1.13
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 +163 -74
- package/dist/node/index.js +163 -74
- package/dist/packages/components/aside/index.vue.js +4 -4
- package/dist/packages/components/boxurl/index.vue.js +5 -5
- package/dist/packages/components/choice/choice.vue.js +4 -4
- package/dist/packages/components/choice/index.vue.js +1 -1
- package/dist/packages/components/code/highlight.vue.js +3 -3
- package/dist/packages/components/code/index.vue.js +3 -3
- package/dist/packages/components/compo/code.vue.js +2 -2
- package/dist/packages/components/compo/ftable.vue.js +6 -6
- package/dist/packages/components/compo/index.vue.js +1 -1
- package/dist/packages/components/compo/info-top.vue.js +2 -2
- package/dist/packages/components/compo/info.vue.js +5 -5
- package/dist/packages/components/compo/props.vue.js +1 -1
- package/dist/packages/components/header/index.vue.js +2 -2
- package/dist/packages/components/main/index.vue.js +3 -3
- package/dist/packages/components/md/index.vue.js +7 -7
- package/dist/packages/components/test/index.vue.js +4 -4
- package/dist/packages/components/use/code.d.ts +18 -25
- package/dist/packages/components/use/code.vue.js +4 -4
- package/dist/packages/components/use/effect.vue.js +2 -2
- package/dist/packages/components/use/retrie/any/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/array/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/boolean/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/choice/index.vue.js +5 -5
- package/dist/packages/components/use/retrie/expose/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/form/index.vue.js +1 -1
- package/dist/packages/components/use/retrie/function/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/index.vue.js +1 -1
- package/dist/packages/components/use/retrie/input/editor/editor.d.ts +0 -49
- package/dist/packages/components/use/retrie/input/editor/editor.vue.js +2 -2
- package/dist/packages/components/use/retrie/input/index.vue.js +1 -1
- package/dist/packages/components/use/retrie/input/text.vue.js +2 -2
- package/dist/packages/components/use/retrie/number/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/object/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/other/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/select/index.vue.js +5 -5
- package/dist/packages/components/use/retrie/slot/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/string/index.vue.js +2 -2
- package/dist/packages/components/use/set-code.vue.js +2 -2
- package/dist/packages/components/use/set-emit.vue.js +4 -4
- package/dist/packages/components/use/set-expose.vue.js +6 -6
- package/dist/packages/components/use/set-props.vue.js +2 -2
- package/dist/packages/components/use/set-slot.vue.js +7 -7
- package/dist/packages/index/index.vue2.js +2 -2
- package/dist/packages/page/compon/index.vue2.js +2 -2
- package/dist/packages/page/comprops/index.vue2.js +3 -3
- package/dist/packages/page/develop/index.vue2.js +2 -2
- package/dist/packages/page/edit/index.vue2.js +2 -2
- package/dist/packages/page/index/index.vue2.js +1 -1
- package/dist/packages/page/single/index.vue2.js +2 -2
- package/dist/packages/page/tests/index.vue2.js +6 -6
- package/dist/packages/utils/glob.cjs +1 -1
- package/dist/packages/utils/glob.js +1 -1
- package/package.json +11 -11
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.80/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.80/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.80/node_modules/@fangzhongya/utils/dist/chunk-KDOS4NFR.js
|
|
83
83
|
function getImportUrl(url, imp) {
|
|
84
84
|
const arr = getStartSames(url, imp);
|
|
85
85
|
const ts2 = arr[0];
|
|
@@ -103,12 +103,12 @@ function getImportUrl(url, imp) {
|
|
|
103
103
|
return ds.join("") + arr[2].replace(/\\/g, "/");
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
106
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
107
107
|
function firstUpper(str) {
|
|
108
108
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
111
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
112
112
|
function lineToLargeHump(name) {
|
|
113
113
|
let arr = name.split("-");
|
|
114
114
|
arr = arr.map((vs) => {
|
|
@@ -828,7 +828,7 @@ function runDev(config2, configCallback) {
|
|
|
828
828
|
return new FangMd(config2, configCallback);
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
831
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
|
|
832
832
|
var zObj = {
|
|
833
833
|
"<": "<",
|
|
834
834
|
">": ">",
|
|
@@ -849,7 +849,7 @@ function htmlEscape(str) {
|
|
|
849
849
|
// packages/node/index.ts
|
|
850
850
|
import { join as join4 } from "path";
|
|
851
851
|
|
|
852
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
852
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
|
|
853
853
|
function mergeObject(a, b, j = 0, i) {
|
|
854
854
|
if (a instanceof Array) {
|
|
855
855
|
if (j > 0 && i) {
|
|
@@ -903,54 +903,139 @@ function getConfig(key) {
|
|
|
903
903
|
return config[key];
|
|
904
904
|
}
|
|
905
905
|
|
|
906
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
907
|
-
function
|
|
908
|
-
const result =
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
const customBlockRegex = /<([a-z][a-z0-9-]*)([\s\S]*?)>([\s\S]*?)<\/\1>/g;
|
|
934
|
-
let customMatch;
|
|
935
|
-
while ((customMatch = customBlockRegex.exec(content)) !== null) {
|
|
936
|
-
if (!["template", "script", "style"].includes(customMatch[1])) {
|
|
937
|
-
result.customBlocks.push({
|
|
938
|
-
type: customMatch[1],
|
|
939
|
-
content: customMatch[3]
|
|
940
|
-
});
|
|
906
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-H3AJ6I4R.js
|
|
907
|
+
function getBlocks(content) {
|
|
908
|
+
const result = [];
|
|
909
|
+
function findMatchingEndTag(content2, startIndex, tagName) {
|
|
910
|
+
const endTag = `</${tagName}>`;
|
|
911
|
+
let i2 = startIndex;
|
|
912
|
+
let depth = 1;
|
|
913
|
+
while (i2 < content2.length) {
|
|
914
|
+
const nextOpen = content2.indexOf("<", i2);
|
|
915
|
+
if (nextOpen === -1) return -1;
|
|
916
|
+
if (content2[nextOpen + 1] === "/") {
|
|
917
|
+
if (content2.substring(nextOpen, nextOpen + endTag.length) === endTag) {
|
|
918
|
+
depth--;
|
|
919
|
+
if (depth === 0) {
|
|
920
|
+
return nextOpen;
|
|
921
|
+
}
|
|
922
|
+
i2 = nextOpen + endTag.length;
|
|
923
|
+
} else {
|
|
924
|
+
i2 = nextOpen + 1;
|
|
925
|
+
}
|
|
926
|
+
} else {
|
|
927
|
+
const nextTagMatch = content2.substring(nextOpen).match(/^<([a-zA-Z][a-zA-Z0-9\-]*)/);
|
|
928
|
+
if (nextTagMatch && nextTagMatch[1].toLowerCase() === tagName.toLowerCase()) {
|
|
929
|
+
depth++;
|
|
930
|
+
}
|
|
931
|
+
i2 = nextOpen + 1;
|
|
932
|
+
}
|
|
941
933
|
}
|
|
934
|
+
return -1;
|
|
935
|
+
}
|
|
936
|
+
let i = 0;
|
|
937
|
+
while (i < content.length) {
|
|
938
|
+
const openTagIndex = content.indexOf("<", i);
|
|
939
|
+
if (openTagIndex === -1) break;
|
|
940
|
+
if (content[openTagIndex + 1] === "/") {
|
|
941
|
+
i = openTagIndex + 1;
|
|
942
|
+
continue;
|
|
943
|
+
}
|
|
944
|
+
const tagMatch = content.substring(openTagIndex).match(/^<([a-zA-Z][a-zA-Z0-9\-]*)/);
|
|
945
|
+
if (!tagMatch) {
|
|
946
|
+
i = openTagIndex + 1;
|
|
947
|
+
continue;
|
|
948
|
+
}
|
|
949
|
+
const tagName = tagMatch[1].toLowerCase();
|
|
950
|
+
let startTagEnd = openTagIndex + tagMatch[0].length;
|
|
951
|
+
let inQuotes = false;
|
|
952
|
+
let quoteChar = "";
|
|
953
|
+
while (startTagEnd < content.length) {
|
|
954
|
+
const char = content[startTagEnd];
|
|
955
|
+
if (!inQuotes) {
|
|
956
|
+
if (char === ">") {
|
|
957
|
+
startTagEnd++;
|
|
958
|
+
break;
|
|
959
|
+
} else if (char === '"' || char === "'") {
|
|
960
|
+
inQuotes = true;
|
|
961
|
+
quoteChar = char;
|
|
962
|
+
}
|
|
963
|
+
} else {
|
|
964
|
+
if (char === quoteChar && content[startTagEnd - 1] !== "\\") {
|
|
965
|
+
inQuotes = false;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
startTagEnd++;
|
|
969
|
+
}
|
|
970
|
+
if (startTagEnd >= content.length) {
|
|
971
|
+
i = openTagIndex + 1;
|
|
972
|
+
continue;
|
|
973
|
+
}
|
|
974
|
+
const endTagIndex = findMatchingEndTag(content, startTagEnd, tagName);
|
|
975
|
+
if (endTagIndex === -1) {
|
|
976
|
+
if (content.substring(startTagEnd - 2, startTagEnd) === "/>") {
|
|
977
|
+
const selfClosingBlock = content.substring(
|
|
978
|
+
openTagIndex,
|
|
979
|
+
startTagEnd
|
|
980
|
+
);
|
|
981
|
+
result.push({
|
|
982
|
+
type: tagName,
|
|
983
|
+
content: "",
|
|
984
|
+
block: selfClosingBlock
|
|
985
|
+
});
|
|
986
|
+
i = startTagEnd;
|
|
987
|
+
} else {
|
|
988
|
+
i = startTagEnd;
|
|
989
|
+
}
|
|
990
|
+
continue;
|
|
991
|
+
}
|
|
992
|
+
const endTagLength = `</${tagName}>`.length;
|
|
993
|
+
const tagContent = content.substring(startTagEnd, endTagIndex).trim();
|
|
994
|
+
const wholeBlock = content.substring(
|
|
995
|
+
openTagIndex,
|
|
996
|
+
endTagIndex + endTagLength
|
|
997
|
+
);
|
|
998
|
+
result.push({
|
|
999
|
+
type: tagName,
|
|
1000
|
+
content: tagContent,
|
|
1001
|
+
block: wholeBlock
|
|
1002
|
+
});
|
|
1003
|
+
i = endTagIndex + endTagLength;
|
|
942
1004
|
}
|
|
943
1005
|
return result;
|
|
944
1006
|
}
|
|
1007
|
+
function filterBlocksByType(blocks, type) {
|
|
1008
|
+
return blocks.filter((block) => block.type === type);
|
|
1009
|
+
}
|
|
1010
|
+
function getVueComponents(content) {
|
|
1011
|
+
const blocks = getBlocks(content);
|
|
1012
|
+
return {
|
|
1013
|
+
templates: filterBlocksByType(blocks, "template"),
|
|
1014
|
+
scripts: filterBlocksByType(blocks, "script"),
|
|
1015
|
+
styles: filterBlocksByType(blocks, "style"),
|
|
1016
|
+
customBlocks: blocks.filter(
|
|
1017
|
+
(block) => !["template", "script", "style"].includes(block.type)
|
|
1018
|
+
)
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
945
1021
|
function getVueTexts(content) {
|
|
946
|
-
const obj2 =
|
|
1022
|
+
const obj2 = getVueComponents(content);
|
|
1023
|
+
return {
|
|
1024
|
+
templates: obj2.templates,
|
|
1025
|
+
scripts: obj2.scripts,
|
|
1026
|
+
styles: obj2.styles
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
function getVueText(content) {
|
|
1030
|
+
const obj2 = getVueTexts(content);
|
|
947
1031
|
return {
|
|
948
|
-
|
|
949
|
-
|
|
1032
|
+
template: obj2.templates.map((o) => o.content).join("\n"),
|
|
1033
|
+
script: obj2.scripts.map((o) => o.content).join("\n"),
|
|
1034
|
+
style: obj2.styles.map((o) => o.content).join("\n")
|
|
950
1035
|
};
|
|
951
1036
|
}
|
|
952
1037
|
|
|
953
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1038
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
954
1039
|
function humpToLine(name) {
|
|
955
1040
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
956
1041
|
let result;
|
|
@@ -972,12 +1057,12 @@ function humpToLine(name) {
|
|
|
972
1057
|
}
|
|
973
1058
|
}
|
|
974
1059
|
|
|
975
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1060
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
976
1061
|
function firstLower(str) {
|
|
977
1062
|
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
978
1063
|
}
|
|
979
1064
|
|
|
980
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1065
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
|
|
981
1066
|
function asyncMergeArray(arr, callback) {
|
|
982
1067
|
return new Promise((resolve2, reject) => {
|
|
983
1068
|
let index = 0;
|
|
@@ -1001,7 +1086,7 @@ function asyncMergeArray(arr, callback) {
|
|
|
1001
1086
|
});
|
|
1002
1087
|
}
|
|
1003
1088
|
|
|
1004
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1089
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
|
|
1005
1090
|
function getSuffix2(url) {
|
|
1006
1091
|
const reg = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/;
|
|
1007
1092
|
const regs = reg.exec(url);
|
|
@@ -1011,7 +1096,7 @@ function getSuffix2(url) {
|
|
|
1011
1096
|
return "";
|
|
1012
1097
|
}
|
|
1013
1098
|
|
|
1014
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1099
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
|
|
1015
1100
|
function matchsStart2(key, matchs) {
|
|
1016
1101
|
if (matchs && matchs.length > 0) {
|
|
1017
1102
|
for (const value of matchs) {
|
|
@@ -1031,7 +1116,7 @@ function matchsStart2(key, matchs) {
|
|
|
1031
1116
|
}
|
|
1032
1117
|
}
|
|
1033
1118
|
|
|
1034
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1119
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
|
|
1035
1120
|
function matchsEnd2(key, matchs) {
|
|
1036
1121
|
if (matchs && matchs.length > 0) {
|
|
1037
1122
|
for (const value of matchs) {
|
|
@@ -1323,7 +1408,7 @@ function getRawValue(comRaw, key) {
|
|
|
1323
1408
|
}
|
|
1324
1409
|
}
|
|
1325
1410
|
|
|
1326
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1411
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
|
|
1327
1412
|
function deComment(code) {
|
|
1328
1413
|
let output = "";
|
|
1329
1414
|
let state = "code";
|
|
@@ -1415,7 +1500,7 @@ function deComment(code) {
|
|
|
1415
1500
|
return output;
|
|
1416
1501
|
}
|
|
1417
1502
|
|
|
1418
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
1503
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-N5Y3XGHX.js
|
|
1419
1504
|
function getImports(code, includeType = false) {
|
|
1420
1505
|
code = deComment(code);
|
|
1421
1506
|
const imports = /* @__PURE__ */ new Set();
|
|
@@ -1562,7 +1647,7 @@ function getURLalias(value) {
|
|
|
1562
1647
|
async function getImport(text, type) {
|
|
1563
1648
|
let jstext = "";
|
|
1564
1649
|
if (type == "vue") {
|
|
1565
|
-
jstext =
|
|
1650
|
+
jstext = getVueText(text).script;
|
|
1566
1651
|
} else if (type == "js" || type == "ts" || type == "") {
|
|
1567
1652
|
jstext = text;
|
|
1568
1653
|
}
|
|
@@ -2319,7 +2404,7 @@ function getSlotValue(arr) {
|
|
|
2319
2404
|
});
|
|
2320
2405
|
}
|
|
2321
2406
|
|
|
2322
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2407
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/primitives.js
|
|
2323
2408
|
var Markers;
|
|
2324
2409
|
(function(Markers2) {
|
|
2325
2410
|
Markers2["start"] = "/**";
|
|
@@ -2328,7 +2413,7 @@ var Markers;
|
|
|
2328
2413
|
Markers2["end"] = "*/";
|
|
2329
2414
|
})(Markers || (Markers = {}));
|
|
2330
2415
|
|
|
2331
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2416
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/util.js
|
|
2332
2417
|
function isSpace(source) {
|
|
2333
2418
|
return /^\s+$/.test(source);
|
|
2334
2419
|
}
|
|
@@ -2350,7 +2435,7 @@ function seedTokens(tokens = {}) {
|
|
|
2350
2435
|
return Object.assign({ start: "", delimiter: "", postDelimiter: "", tag: "", postTag: "", name: "", postName: "", type: "", postType: "", description: "", end: "", lineEnd: "" }, tokens);
|
|
2351
2436
|
}
|
|
2352
2437
|
|
|
2353
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2438
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/parser/block-parser.js
|
|
2354
2439
|
var reTag = /^@[^\s/]+(?=\s|$)/;
|
|
2355
2440
|
function getParser({ fence = "```" } = {}) {
|
|
2356
2441
|
const fencer = getFencer(fence);
|
|
@@ -2375,7 +2460,7 @@ function getFencer(fence) {
|
|
|
2375
2460
|
return fence;
|
|
2376
2461
|
}
|
|
2377
2462
|
|
|
2378
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2463
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/parser/source-parser.js
|
|
2379
2464
|
function getParser2({ startLine = 0, markers = Markers } = {}) {
|
|
2380
2465
|
let block = null;
|
|
2381
2466
|
let num = startLine;
|
|
@@ -2417,7 +2502,7 @@ function getParser2({ startLine = 0, markers = Markers } = {}) {
|
|
|
2417
2502
|
};
|
|
2418
2503
|
}
|
|
2419
2504
|
|
|
2420
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2505
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/parser/spec-parser.js
|
|
2421
2506
|
function getParser3({ tokenizers }) {
|
|
2422
2507
|
return function parseSpec(source) {
|
|
2423
2508
|
var _a;
|
|
@@ -2431,7 +2516,7 @@ function getParser3({ tokenizers }) {
|
|
|
2431
2516
|
};
|
|
2432
2517
|
}
|
|
2433
2518
|
|
|
2434
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2519
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/parser/tokenizers/tag.js
|
|
2435
2520
|
function tagTokenizer() {
|
|
2436
2521
|
return (spec) => {
|
|
2437
2522
|
const { tokens } = spec.source[0];
|
|
@@ -2456,7 +2541,7 @@ function tagTokenizer() {
|
|
|
2456
2541
|
};
|
|
2457
2542
|
}
|
|
2458
2543
|
|
|
2459
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2544
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/parser/tokenizers/type.js
|
|
2460
2545
|
function typeTokenizer(spacing = "compact") {
|
|
2461
2546
|
const join5 = getJoiner(spacing);
|
|
2462
2547
|
return (spec) => {
|
|
@@ -2526,20 +2611,24 @@ function getJoiner(spacing) {
|
|
|
2526
2611
|
return spacing;
|
|
2527
2612
|
}
|
|
2528
2613
|
|
|
2529
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2614
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/parser/tokenizers/name.js
|
|
2530
2615
|
var isQuoted = (s) => s && s.startsWith('"') && s.endsWith('"');
|
|
2531
2616
|
function nameTokenizer() {
|
|
2532
2617
|
const typeEnd = (num, { tokens }, i) => tokens.type === "" ? num : i;
|
|
2533
2618
|
return (spec) => {
|
|
2534
2619
|
let finalTypeLine = spec.source.reduce(typeEnd, 0);
|
|
2535
2620
|
let tokens;
|
|
2536
|
-
|
|
2621
|
+
if (spec.type) {
|
|
2622
|
+
do {
|
|
2623
|
+
({ tokens } = spec.source[finalTypeLine]);
|
|
2624
|
+
if (tokens.description.trim()) {
|
|
2625
|
+
break;
|
|
2626
|
+
}
|
|
2627
|
+
finalTypeLine++;
|
|
2628
|
+
} while (spec.source[finalTypeLine]);
|
|
2629
|
+
} else {
|
|
2537
2630
|
({ tokens } = spec.source[finalTypeLine]);
|
|
2538
|
-
|
|
2539
|
-
break;
|
|
2540
|
-
}
|
|
2541
|
-
finalTypeLine++;
|
|
2542
|
-
} while (spec.source[finalTypeLine]);
|
|
2631
|
+
}
|
|
2543
2632
|
const source = tokens.description.trimStart();
|
|
2544
2633
|
const quotedGroups = source.split('"');
|
|
2545
2634
|
if (quotedGroups.length > 1 && quotedGroups[0] === "" && quotedGroups.length % 2 === 1) {
|
|
@@ -2616,7 +2705,7 @@ function nameTokenizer() {
|
|
|
2616
2705
|
};
|
|
2617
2706
|
}
|
|
2618
2707
|
|
|
2619
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2708
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/parser/tokenizers/description.js
|
|
2620
2709
|
function descriptionTokenizer(spacing = "compact", markers = Markers) {
|
|
2621
2710
|
const join5 = getJoiner2(spacing);
|
|
2622
2711
|
return (spec) => {
|
|
@@ -2648,7 +2737,7 @@ function preserveJoiner(lines, markers = Markers) {
|
|
|
2648
2737
|
return lines.map(getDescription).join("\n");
|
|
2649
2738
|
}
|
|
2650
2739
|
|
|
2651
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2740
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/parser/index.js
|
|
2652
2741
|
function getParser4({ startLine = 0, fence = "```", spacing = "compact", markers = Markers, tokenizers = [
|
|
2653
2742
|
tagTokenizer(),
|
|
2654
2743
|
typeTokenizer(spacing),
|
|
@@ -2680,7 +2769,7 @@ function getParser4({ startLine = 0, fence = "```", spacing = "compact", markers
|
|
|
2680
2769
|
};
|
|
2681
2770
|
}
|
|
2682
2771
|
|
|
2683
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2772
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/stringifier/index.js
|
|
2684
2773
|
function join3(tokens) {
|
|
2685
2774
|
return tokens.start + tokens.delimiter + tokens.postDelimiter + tokens.tag + tokens.postTag + tokens.type + tokens.postType + tokens.name + tokens.postName + tokens.description + tokens.end + tokens.lineEnd;
|
|
2686
2775
|
}
|
|
@@ -2688,7 +2777,7 @@ function getStringifier() {
|
|
|
2688
2777
|
return (block) => block.source.map(({ tokens }) => join3(tokens)).join("\n");
|
|
2689
2778
|
}
|
|
2690
2779
|
|
|
2691
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2780
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/stringifier/inspect.js
|
|
2692
2781
|
var zeroWidth = {
|
|
2693
2782
|
line: 0,
|
|
2694
2783
|
start: 0,
|
|
@@ -2706,7 +2795,7 @@ var zeroWidth = {
|
|
|
2706
2795
|
};
|
|
2707
2796
|
var fields = Object.keys(zeroWidth);
|
|
2708
2797
|
|
|
2709
|
-
// node_modules/.pnpm/comment-parser@1.4.
|
|
2798
|
+
// node_modules/.pnpm/comment-parser@1.4.5/node_modules/comment-parser/es6/index.js
|
|
2710
2799
|
function parse(source, options = {}) {
|
|
2711
2800
|
return getParser4(options)(source);
|
|
2712
2801
|
}
|
|
@@ -3743,7 +3832,7 @@ var top_default2 = defineComponent2({
|
|
|
3743
3832
|
}
|
|
3744
3833
|
});
|
|
3745
3834
|
|
|
3746
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.
|
|
3835
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-Q6BNW3MO.js
|
|
3747
3836
|
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]*))$/;
|
|
3748
3837
|
function getFunctionFormat(v) {
|
|
3749
3838
|
if (!v) return;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, ref as c, watch as k, onMounted as w, nextTick as S,
|
|
1
|
+
import { defineComponent as A, ref as c, watch as k, onMounted as w, nextTick as S, openBlock as o, createElementBlock as n, createElementVNode as s, withDirectives as V, vModelText as b, Fragment as y, renderList as h, normalizeClass as j, createVNode as z, withCtx as B, toDisplayString as g } from "vue";
|
|
2
2
|
import D from "../boxurl/index.vue.js";
|
|
3
3
|
import { getCompoNameObj as C, getCompoNameKey as E, getCompoName as M } from "../../utils/glob.js";
|
|
4
4
|
import { getAsideKey as O, setAsideKey as $ } from "../../utils/common.js";
|
|
@@ -56,7 +56,7 @@ const q = { class: "aside-search" }, F = { class: "aside-list" }, L = ["onClick"
|
|
|
56
56
|
t.scrollTop = u;
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
}), (e, u) => (
|
|
59
|
+
}), (e, u) => (o(), n("div", {
|
|
60
60
|
class: "aside",
|
|
61
61
|
ref_key: "refAside",
|
|
62
62
|
ref: d
|
|
@@ -70,7 +70,7 @@ const q = { class: "aside-search" }, F = { class: "aside-list" }, L = ["onClick"
|
|
|
70
70
|
])
|
|
71
71
|
]),
|
|
72
72
|
s("div", F, [
|
|
73
|
-
(
|
|
73
|
+
(o(!0), n(y, null, h(l.value, (t, I) => (o(), n("div", {
|
|
74
74
|
class: j([
|
|
75
75
|
"aside-li",
|
|
76
76
|
p(t.key) + " " + (t.key == a.value?.key ? "on" : "")
|
|
@@ -82,7 +82,7 @@ const q = { class: "aside-search" }, F = { class: "aside-list" }, L = ["onClick"
|
|
|
82
82
|
s("div", U, [
|
|
83
83
|
s("div", G, g(t.name), 1),
|
|
84
84
|
s("span", H, [
|
|
85
|
-
(
|
|
85
|
+
(o(!0), n(y, null, h(t.aliasNames, (_) => (o(), n("span", null, g(_), 1))), 256))
|
|
86
86
|
])
|
|
87
87
|
])
|
|
88
88
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, ref as v, onMounted as f,
|
|
1
|
+
import { defineComponent as p, ref as v, onMounted as f, openBlock as l, createElementBlock as i, createElementVNode as s, renderSlot as y, normalizeStyle as g, toDisplayString as a, Fragment as k, renderList as _, createCommentVNode as h } from "vue";
|
|
2
2
|
import { openInEditor as N } from "../../utils/util.js";
|
|
3
3
|
import { getConfig as C } from "../../config.js";
|
|
4
4
|
import { getReplaceUrls as w } from "@fangzhongya/utils/urls/getReplaceUrls";
|
|
@@ -21,7 +21,7 @@ const E = { class: "box-url-span" }, S = { class: "box-url-box-div" }, B = { cla
|
|
|
21
21
|
let t, d;
|
|
22
22
|
e.x || e.y ? (t = e.x, d = e.y) : (e.pageX || e.pageY) && (t = e.pageX - 1, d = e.pageY - 1), u.value = t + "px", x.value = d + "px";
|
|
23
23
|
};
|
|
24
|
-
}), (n, e) => (
|
|
24
|
+
}), (n, e) => (l(), i("div", {
|
|
25
25
|
ref_key: "boxurl",
|
|
26
26
|
ref: c,
|
|
27
27
|
class: "box-url"
|
|
@@ -38,12 +38,12 @@ const E = { class: "box-url-span" }, S = { class: "box-url-box-div" }, B = { cla
|
|
|
38
38
|
s("div", V, a(o.value?.name), 1),
|
|
39
39
|
s("div", X, a(o.value?.value), 1)
|
|
40
40
|
]),
|
|
41
|
-
o.value?.aliasNames && o.value?.aliasNames.length ? (
|
|
41
|
+
o.value?.aliasNames && o.value?.aliasNames.length ? (l(), i("div", Y, [
|
|
42
42
|
e[0] || (e[0] = s("div", { class: "box-div-li-span" }, "别名", -1)),
|
|
43
43
|
s("div", j, [
|
|
44
|
-
(
|
|
44
|
+
(l(!0), i(k, null, _(o.value?.aliasNames, (t) => (l(), i("span", null, a(t), 1))), 256))
|
|
45
45
|
])
|
|
46
|
-
])) :
|
|
46
|
+
])) : h("", !0),
|
|
47
47
|
s("div", z, [
|
|
48
48
|
e[1] || (e[1] = s("div", { class: "box-div-li-span" }, "文件路径", -1)),
|
|
49
49
|
s("div", D, a(o.value?.key), 1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p,
|
|
1
|
+
import { defineComponent as p, openBlock as s, createElementBlock as a, Fragment as l, renderList as r, normalizeClass as h, createVNode as v, withCtx as k, createElementVNode as n, toDisplayString as t } from "vue";
|
|
2
2
|
import f from "../boxurl/index.vue.js";
|
|
3
3
|
const y = { class: "choice aside" }, C = ["onClick"], g = { class: "aside-li-name" }, x = { class: "aside-li-name-name" }, N = { class: "aside-li-name-aliass" }, B = { class: "aside-li-name-aliass" }, j = /* @__PURE__ */ p({
|
|
4
4
|
__name: "choice",
|
|
@@ -16,8 +16,8 @@ const y = { class: "choice aside" }, C = ["onClick"], g = { class: "aside-li-nam
|
|
|
16
16
|
function m(c) {
|
|
17
17
|
u("change", c);
|
|
18
18
|
}
|
|
19
|
-
return (c, E) => (
|
|
20
|
-
(
|
|
19
|
+
return (c, E) => (s(), a("div", y, [
|
|
20
|
+
(s(!0), a(l, null, r(i.value, (e, V) => (s(), a("div", {
|
|
21
21
|
class: h(["aside-li", {
|
|
22
22
|
on: e.key == i.choice?.key
|
|
23
23
|
}]),
|
|
@@ -28,7 +28,7 @@ const y = { class: "choice aside" }, C = ["onClick"], g = { class: "aside-li-nam
|
|
|
28
28
|
n("div", g, [
|
|
29
29
|
n("div", x, t(e.name), 1),
|
|
30
30
|
n("div", N, [
|
|
31
|
-
(
|
|
31
|
+
(s(!0), a(l, null, r(e.aliasNames, (o) => (s(), a("span", null, t(o), 1))), 256))
|
|
32
32
|
]),
|
|
33
33
|
n("div", B, [
|
|
34
34
|
n("span", null, t(e.key), 1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, ref as v, watch as q, createElementBlock as i,
|
|
1
|
+
import { defineComponent as N, ref as v, watch as q, openBlock as a, createElementBlock as i, createBlock as b, createCommentVNode as p, createElementVNode as f, toDisplayString as _, normalizeClass as x, renderSlot as B, unref as K } from "vue";
|
|
2
2
|
import { humpToLine as g } from "@fangzhongya/utils/name/humpToLine";
|
|
3
3
|
import $ from "./choice.vue.js";
|
|
4
4
|
import { getCompoName as D } from "../../utils/glob.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import t from "./highlight.vue2.js";
|
|
2
|
-
import { resolveComponent as n,
|
|
2
|
+
import { resolveComponent as n, openBlock as r, createBlock as c, createCommentVNode as a } from "vue";
|
|
3
3
|
import s from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
function g(e, i, l, h, p, m) {
|
|
5
5
|
const o = n("highlightjs");
|
|
6
|
-
return e.code ? (
|
|
6
|
+
return e.code ? (r(), c(o, {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "highlightjs",
|
|
9
9
|
language: e.language,
|
|
10
10
|
code: e.code
|
|
11
|
-
}, null, 8, ["language", "code"])) :
|
|
11
|
+
}, null, 8, ["language", "code"])) : a("", !0);
|
|
12
12
|
}
|
|
13
13
|
const _ = /* @__PURE__ */ s(t, [["render", g]]);
|
|
14
14
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as j, watch as B, ref as s,
|
|
1
|
+
import { defineComponent as j, watch as B, ref as s, openBlock as u, createElementBlock as d, createElementVNode as l, toDisplayString as f, createVNode as m, withCtx as p, withModifiers as _, normalizeClass as k, Fragment as $, renderList as E, createBlock as F, withDirectives as L, vShow as N } from "vue";
|
|
2
2
|
import h from "../boxurl/index.vue.js";
|
|
3
3
|
import { toSingle as O } from "../../router/index.js";
|
|
4
4
|
import U from "./highlight.vue.js";
|
|
@@ -85,7 +85,7 @@ const H = { class: "code" }, I = { class: "code-top" }, M = { class: "code-top-b
|
|
|
85
85
|
]),
|
|
86
86
|
_: 1
|
|
87
87
|
}, 8, ["value"]),
|
|
88
|
-
(u(!0), d(
|
|
88
|
+
(u(!0), d($, null, E(c.value, (a, J) => (u(), F(h, { value: a }, {
|
|
89
89
|
default: p(() => [
|
|
90
90
|
l("div", {
|
|
91
91
|
class: k(["but-div", {
|
|
@@ -99,7 +99,7 @@ const H = { class: "code" }, I = { class: "code-top" }, M = { class: "code-top-b
|
|
|
99
99
|
])
|
|
100
100
|
])
|
|
101
101
|
]),
|
|
102
|
-
|
|
102
|
+
L(l("div", G, [
|
|
103
103
|
m(U, {
|
|
104
104
|
language: "html",
|
|
105
105
|
code: t.value?.raw || e.text
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, openBlock as c, createElementBlock as n, createVNode as r, unref as a } from "vue";
|
|
2
2
|
import p from "../use/edit.js";
|
|
3
3
|
const l = { class: "compo-code" }, _ = /* @__PURE__ */ t({
|
|
4
4
|
__name: "code",
|
|
@@ -9,7 +9,7 @@ const l = { class: "compo-code" }, _ = /* @__PURE__ */ t({
|
|
|
9
9
|
},
|
|
10
10
|
setup(e) {
|
|
11
11
|
const o = e;
|
|
12
|
-
return (s, u) => (
|
|
12
|
+
return (s, u) => (c(), n("div", l, [
|
|
13
13
|
r(a(p), {
|
|
14
14
|
value: o.value
|
|
15
15
|
}, null, 8, ["value"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m,
|
|
1
|
+
import { defineComponent as m, openBlock as e, createElementBlock as l, createElementVNode as n, Fragment as u, renderList as c, toDisplayString as p } from "vue";
|
|
2
2
|
const b = { class: "compo-talbe" }, y = { class: "compo-talbe-body" }, h = { class: "compo-talbe-top" }, v = { class: "compo-talbe-li" }, k = {
|
|
3
3
|
key: 1,
|
|
4
4
|
class: "compo-talbe-zw"
|
|
@@ -34,17 +34,17 @@ const b = { class: "compo-talbe" }, y = { class: "compo-talbe-body" }, h = { cla
|
|
|
34
34
|
if (t.prop)
|
|
35
35
|
return a[t.prop];
|
|
36
36
|
}
|
|
37
|
-
return (a, t) => (
|
|
37
|
+
return (a, t) => (e(), l("div", b, [
|
|
38
38
|
n("table", y, [
|
|
39
39
|
n("thead", null, [
|
|
40
40
|
n("tr", h, [
|
|
41
|
-
(
|
|
41
|
+
(e(!0), l(u, null, c(r.list, (o, s) => (e(), l("th", null, p(o?.label), 1))), 256))
|
|
42
42
|
])
|
|
43
43
|
]),
|
|
44
44
|
n("tbody", null, [
|
|
45
|
-
r.value && r.value.length > 0 ? (
|
|
46
|
-
(
|
|
47
|
-
]))), 256)) : (
|
|
45
|
+
r.value && r.value.length > 0 ? (e(!0), l(u, { key: 0 }, c(r.value, (o, s) => (e(), l("tr", v, [
|
|
46
|
+
(e(!0), l(u, null, c(r.list, (_, f) => (e(), l("td", null, p(i(o, _, s, f)), 1))), 256))
|
|
47
|
+
]))), 256)) : (e(), l("tr", k, [...t[0] || (t[0] = [
|
|
48
48
|
n("td", { colspan: "7" }, "暂无", -1)
|
|
49
49
|
])]))
|
|
50
50
|
])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, ref as l, reactive as h, watch as y,
|
|
1
|
+
import { defineComponent as g, ref as l, reactive as h, watch as y, openBlock as t, createElementBlock as o, createElementVNode as C, Fragment as x, renderList as B, createBlock as N, createCommentVNode as m, createVNode as v, unref as d } from "vue";
|
|
2
2
|
import V from "../use/index.js";
|
|
3
3
|
import $ from "./props.vue.js";
|
|
4
4
|
import { getConfig as E } from "../../config.js";
|