@fangzhongya/vue-archive 0.1.18 → 0.1.20

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.
@@ -87,7 +87,15 @@ function lineToLargeHump(name) {
87
87
  return arr.join("");
88
88
  }
89
89
  //#endregion
90
- //#region node_modules/.pnpm/@fangzhongya+create@0.2.52/node_modules/@fangzhongya/create/dist/common-CbVDCztd.js
90
+ //#region node_modules/.pnpm/@fangzhongya+create@0.2.53/node_modules/@fangzhongya/create/dist/common-5UaM5BI6.js
91
+ /**
92
+ * 去掉文件,获取文件目录对象
93
+ * @param str { 文件地址 }
94
+ * @returns { UrlCatalogue } 目录对象
95
+ * @returns { string } catalogue 当前目录值
96
+ * @returns { string } name 文件名称
97
+ * @returns { string } suffix 文件后缀
98
+ */
91
99
  function getUrlCatalogueObj(str) {
92
100
  const reg = /(\\|\/)([^\\|\/]+)\.([a-z|A-Z][a-z|A-Z|0-9]*)$/g;
93
101
  const ml = str.replace(reg, "");
@@ -107,6 +115,11 @@ function getUrlCatalogueObj(str) {
107
115
  apart
108
116
  };
109
117
  }
118
+ /**
119
+ * 获取当前文件的新名称
120
+ * @param {string} url 文件名称
121
+ * @returns {string} 不是文件返回空
122
+ */
110
123
  function getNewFileName(url) {
111
124
  const obj = getUrlCatalogueObj(url);
112
125
  let wb = obj.name;
@@ -281,26 +294,58 @@ function writeFileUrl(url, files, callback, isDirs, isFile, issynch) {
281
294
  });
282
295
  }
283
296
  //#endregion
284
- //#region node_modules/.pnpm/@fangzhongya+create@0.2.52/node_modules/@fangzhongya/create/dist/com-CzlVBzld.js
297
+ //#region node_modules/.pnpm/@fangzhongya+create@0.2.53/node_modules/@fangzhongya/create/dist/com-bMozKndm.js
298
+ /**
299
+ * 日志输出样式
300
+ * 颜色值 背景色 0 是白色 7是黑色 其他一样:
301
+ * 0 黑色 'black'
302
+ * 1 红色 'red'
303
+ * 2 绿色 'green'
304
+ * 3 黄色 'yellow'
305
+ * 4 蓝色 'blue'
306
+ * 5 洋红色 'magenta'
307
+ * 6 青色 'cyan'
308
+ * 7 白色 'white'
309
+ * @param {string} msg 要输出的日志字符串
310
+ * @param {StyleLogObj} obj 日志样式对象
311
+ * @param {string | number} obj.bag 背景颜色
312
+ * @param {string | number} obj.text 文字颜色
313
+ * @param {boolean } obj.bold 是否是粗体
314
+ * @param {boolean} obj.italic 是否是斜体
315
+ * @param {boolean} obj.lineThrough 中线
316
+ * @param {boolean} obj.revert 下线
317
+ * @returns {string} 带样式的日志
318
+ */
285
319
  function styleLog(msg = "", obj) {
286
320
  const arr = ["\x1B[0m"];
287
321
  if (obj?.revert) arr.push("\x1B[4m");
288
322
  if (obj?.lineThrough) arr.push("\x1B[9m");
289
323
  if (obj?.italic) arr.push("\x1B[3m");
290
324
  if (obj?.bold) arr.push("\x1B[1m");
291
- if (obj?.bag) arr.push(`\x1B[4${obj?.bag}m`);
325
+ if (obj?.bag) arr.push(`\x1b[4${obj?.bag}m`);
292
326
  else arr.push("\x1B[40m");
293
- if (obj?.text) arr.push(`\x1B[3${obj?.text}m`);
327
+ if (obj?.text) arr.push(`\x1b[3${obj?.text}m`);
294
328
  else arr.push("\x1B[30m");
295
329
  arr.push(msg);
296
330
  arr.push("\x1B[0m");
297
331
  return arr.join("");
298
332
  }
333
+ /**
334
+ * 获取文件后缀名称
335
+ * @param {string } url 文件地址
336
+ * @returns {string} 文件后缀
337
+ */
299
338
  function getSuffix$1(url) {
300
339
  const regs = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/.exec(url);
301
340
  if (regs && regs.length > 0) return regs[1];
302
341
  return "";
303
342
  }
343
+ /**
344
+ * 判断字符串是否匹配 字符串采用后匹配
345
+ * @param {string} key 当前字符串
346
+ * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
347
+ * @returns {boolean} 空数组 true
348
+ */
304
349
  function matchsEnd$1(key, matchs) {
305
350
  if (matchs && matchs.length > 0) {
306
351
  for (const value of matchs) if (typeof value == "string") {
@@ -309,6 +354,12 @@ function matchsEnd$1(key, matchs) {
309
354
  return false;
310
355
  } else return true;
311
356
  }
357
+ /**
358
+ * 判断字符串是否匹配 字符串采用前匹配
359
+ * @param {string} key 当前字符串
360
+ * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
361
+ * @returns {boolean} 空数组 true
362
+ */
312
363
  function matchsStart$1(key, matchs) {
313
364
  if (matchs && matchs.length > 0) {
314
365
  for (const value of matchs) if (typeof value == "string") {
@@ -317,6 +368,11 @@ function matchsStart$1(key, matchs) {
317
368
  return false;
318
369
  } else return true;
319
370
  }
371
+ /**
372
+ * 去掉文件,获取文件目录
373
+ * @param {string} str 地址
374
+ * @returns {string} 目录
375
+ */
320
376
  function getUrlCatalogue(str) {
321
377
  return str.replace(/((\\|\/)([^\\|\/]+)(\.[a-z|A-Z][a-z|A-Z|0-9]*))?$/g, "");
322
378
  }
@@ -583,7 +639,7 @@ var FangCom = class {
583
639
  }
584
640
  };
585
641
  //#endregion
586
- //#region node_modules/.pnpm/@fangzhongya+create@0.2.52/node_modules/@fangzhongya/create/dist/bins/md.js
642
+ //#region node_modules/.pnpm/@fangzhongya+create@0.2.53/node_modules/@fangzhongya/create/dist/bins/md.js
587
643
  const defaultConfig = Object.assign({}, defaultConfig$1, { name: "md" });
588
644
  var FangMd = class extends FangCom {
589
645
  constructor(config, callback) {
@@ -3133,7 +3189,7 @@ let getFormat = (r) => {
3133
3189
  return r;
3134
3190
  };
3135
3191
  const isp = getConfig("prettier");
3136
- if (isp) Promise.resolve().then(() => require("./prettier-BJg42VPN.cjs")).then((d) => {
3192
+ if (isp) Promise.resolve().then(() => require("./prettier-DPKt7xim.cjs")).then((d) => {
3137
3193
  getFormat = d.getFormat;
3138
3194
  });
3139
3195
  function prettierHtml(st) {
@@ -86,7 +86,15 @@ function lineToLargeHump(name) {
86
86
  return arr.join("");
87
87
  }
88
88
  //#endregion
89
- //#region node_modules/.pnpm/@fangzhongya+create@0.2.52/node_modules/@fangzhongya/create/dist/common-CbVDCztd.js
89
+ //#region node_modules/.pnpm/@fangzhongya+create@0.2.53/node_modules/@fangzhongya/create/dist/common-5UaM5BI6.js
90
+ /**
91
+ * 去掉文件,获取文件目录对象
92
+ * @param str { 文件地址 }
93
+ * @returns { UrlCatalogue } 目录对象
94
+ * @returns { string } catalogue 当前目录值
95
+ * @returns { string } name 文件名称
96
+ * @returns { string } suffix 文件后缀
97
+ */
90
98
  function getUrlCatalogueObj(str) {
91
99
  const reg = /(\\|\/)([^\\|\/]+)\.([a-z|A-Z][a-z|A-Z|0-9]*)$/g;
92
100
  const ml = str.replace(reg, "");
@@ -106,6 +114,11 @@ function getUrlCatalogueObj(str) {
106
114
  apart
107
115
  };
108
116
  }
117
+ /**
118
+ * 获取当前文件的新名称
119
+ * @param {string} url 文件名称
120
+ * @returns {string} 不是文件返回空
121
+ */
109
122
  function getNewFileName(url) {
110
123
  const obj = getUrlCatalogueObj(url);
111
124
  let wb = obj.name;
@@ -280,26 +293,58 @@ function writeFileUrl(url, files, callback, isDirs, isFile, issynch) {
280
293
  });
281
294
  }
282
295
  //#endregion
283
- //#region node_modules/.pnpm/@fangzhongya+create@0.2.52/node_modules/@fangzhongya/create/dist/com-CzlVBzld.js
296
+ //#region node_modules/.pnpm/@fangzhongya+create@0.2.53/node_modules/@fangzhongya/create/dist/com-bMozKndm.js
297
+ /**
298
+ * 日志输出样式
299
+ * 颜色值 背景色 0 是白色 7是黑色 其他一样:
300
+ * 0 黑色 'black'
301
+ * 1 红色 'red'
302
+ * 2 绿色 'green'
303
+ * 3 黄色 'yellow'
304
+ * 4 蓝色 'blue'
305
+ * 5 洋红色 'magenta'
306
+ * 6 青色 'cyan'
307
+ * 7 白色 'white'
308
+ * @param {string} msg 要输出的日志字符串
309
+ * @param {StyleLogObj} obj 日志样式对象
310
+ * @param {string | number} obj.bag 背景颜色
311
+ * @param {string | number} obj.text 文字颜色
312
+ * @param {boolean } obj.bold 是否是粗体
313
+ * @param {boolean} obj.italic 是否是斜体
314
+ * @param {boolean} obj.lineThrough 中线
315
+ * @param {boolean} obj.revert 下线
316
+ * @returns {string} 带样式的日志
317
+ */
284
318
  function styleLog(msg = "", obj) {
285
319
  const arr = ["\x1B[0m"];
286
320
  if (obj?.revert) arr.push("\x1B[4m");
287
321
  if (obj?.lineThrough) arr.push("\x1B[9m");
288
322
  if (obj?.italic) arr.push("\x1B[3m");
289
323
  if (obj?.bold) arr.push("\x1B[1m");
290
- if (obj?.bag) arr.push(`\x1B[4${obj?.bag}m`);
324
+ if (obj?.bag) arr.push(`\x1b[4${obj?.bag}m`);
291
325
  else arr.push("\x1B[40m");
292
- if (obj?.text) arr.push(`\x1B[3${obj?.text}m`);
326
+ if (obj?.text) arr.push(`\x1b[3${obj?.text}m`);
293
327
  else arr.push("\x1B[30m");
294
328
  arr.push(msg);
295
329
  arr.push("\x1B[0m");
296
330
  return arr.join("");
297
331
  }
332
+ /**
333
+ * 获取文件后缀名称
334
+ * @param {string } url 文件地址
335
+ * @returns {string} 文件后缀
336
+ */
298
337
  function getSuffix$1(url) {
299
338
  const regs = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/.exec(url);
300
339
  if (regs && regs.length > 0) return regs[1];
301
340
  return "";
302
341
  }
342
+ /**
343
+ * 判断字符串是否匹配 字符串采用后匹配
344
+ * @param {string} key 当前字符串
345
+ * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
346
+ * @returns {boolean} 空数组 true
347
+ */
303
348
  function matchsEnd$1(key, matchs) {
304
349
  if (matchs && matchs.length > 0) {
305
350
  for (const value of matchs) if (typeof value == "string") {
@@ -308,6 +353,12 @@ function matchsEnd$1(key, matchs) {
308
353
  return false;
309
354
  } else return true;
310
355
  }
356
+ /**
357
+ * 判断字符串是否匹配 字符串采用前匹配
358
+ * @param {string} key 当前字符串
359
+ * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
360
+ * @returns {boolean} 空数组 true
361
+ */
311
362
  function matchsStart$1(key, matchs) {
312
363
  if (matchs && matchs.length > 0) {
313
364
  for (const value of matchs) if (typeof value == "string") {
@@ -316,6 +367,11 @@ function matchsStart$1(key, matchs) {
316
367
  return false;
317
368
  } else return true;
318
369
  }
370
+ /**
371
+ * 去掉文件,获取文件目录
372
+ * @param {string} str 地址
373
+ * @returns {string} 目录
374
+ */
319
375
  function getUrlCatalogue(str) {
320
376
  return str.replace(/((\\|\/)([^\\|\/]+)(\.[a-z|A-Z][a-z|A-Z|0-9]*))?$/g, "");
321
377
  }
@@ -582,7 +638,7 @@ var FangCom = class {
582
638
  }
583
639
  };
584
640
  //#endregion
585
- //#region node_modules/.pnpm/@fangzhongya+create@0.2.52/node_modules/@fangzhongya/create/dist/bins/md.js
641
+ //#region node_modules/.pnpm/@fangzhongya+create@0.2.53/node_modules/@fangzhongya/create/dist/bins/md.js
586
642
  const defaultConfig = Object.assign({}, defaultConfig$1, { name: "md" });
587
643
  var FangMd = class extends FangCom {
588
644
  constructor(config, callback) {
@@ -1,15 +1,15 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_chunk = require("./chunk-D6vf50IK.cjs");
2
+ const require_rolldown_runtime = require("./rolldown-runtime-D6vf50IK.cjs");
3
3
  let monaco_editor_esm_vs_editor_editor_worker_worker = require("monaco-editor/esm/vs/editor/editor.worker?worker");
4
- monaco_editor_esm_vs_editor_editor_worker_worker = require_chunk.__toESM(monaco_editor_esm_vs_editor_editor_worker_worker, 1);
4
+ monaco_editor_esm_vs_editor_editor_worker_worker = require_rolldown_runtime.__toESM(monaco_editor_esm_vs_editor_editor_worker_worker, 1);
5
5
  let monaco_editor_esm_vs_language_json_json_worker_worker = require("monaco-editor/esm/vs/language/json/json.worker?worker");
6
- monaco_editor_esm_vs_language_json_json_worker_worker = require_chunk.__toESM(monaco_editor_esm_vs_language_json_json_worker_worker, 1);
6
+ monaco_editor_esm_vs_language_json_json_worker_worker = require_rolldown_runtime.__toESM(monaco_editor_esm_vs_language_json_json_worker_worker, 1);
7
7
  let monaco_editor_esm_vs_language_css_css_worker_worker = require("monaco-editor/esm/vs/language/css/css.worker?worker");
8
- monaco_editor_esm_vs_language_css_css_worker_worker = require_chunk.__toESM(monaco_editor_esm_vs_language_css_css_worker_worker, 1);
8
+ monaco_editor_esm_vs_language_css_css_worker_worker = require_rolldown_runtime.__toESM(monaco_editor_esm_vs_language_css_css_worker_worker, 1);
9
9
  let monaco_editor_esm_vs_language_html_html_worker_worker = require("monaco-editor/esm/vs/language/html/html.worker?worker");
10
- monaco_editor_esm_vs_language_html_html_worker_worker = require_chunk.__toESM(monaco_editor_esm_vs_language_html_html_worker_worker, 1);
10
+ monaco_editor_esm_vs_language_html_html_worker_worker = require_rolldown_runtime.__toESM(monaco_editor_esm_vs_language_html_html_worker_worker, 1);
11
11
  let monaco_editor_esm_vs_language_typescript_ts_worker_worker = require("monaco-editor/esm/vs/language/typescript/ts.worker?worker");
12
- monaco_editor_esm_vs_language_typescript_ts_worker_worker = require_chunk.__toESM(monaco_editor_esm_vs_language_typescript_ts_worker_worker, 1);
12
+ monaco_editor_esm_vs_language_typescript_ts_worker_worker = require_rolldown_runtime.__toESM(monaco_editor_esm_vs_language_typescript_ts_worker_worker, 1);
13
13
  //#region packages/node/init.ts
14
14
  function init() {
15
15
  self.MonacoEnvironment = { getWorker(_, label) {
@@ -1,15 +1,15 @@
1
- const require_chunk = require("./chunk-D6vf50IK.cjs");
1
+ const require_rolldown_runtime = require("./rolldown-runtime-D6vf50IK.cjs");
2
2
  let prettier = require("prettier");
3
3
  let prettier_plugins_html = require("prettier/plugins/html");
4
- prettier_plugins_html = require_chunk.__toESM(prettier_plugins_html, 1);
4
+ prettier_plugins_html = require_rolldown_runtime.__toESM(prettier_plugins_html, 1);
5
5
  let prettier_plugins_postcss = require("prettier/plugins/postcss");
6
- prettier_plugins_postcss = require_chunk.__toESM(prettier_plugins_postcss, 1);
6
+ prettier_plugins_postcss = require_rolldown_runtime.__toESM(prettier_plugins_postcss, 1);
7
7
  let prettier_plugins_typescript = require("prettier/plugins/typescript");
8
- prettier_plugins_typescript = require_chunk.__toESM(prettier_plugins_typescript, 1);
8
+ prettier_plugins_typescript = require_rolldown_runtime.__toESM(prettier_plugins_typescript, 1);
9
9
  let prettier_plugins_babel = require("prettier/plugins/babel");
10
- prettier_plugins_babel = require_chunk.__toESM(prettier_plugins_babel, 1);
10
+ prettier_plugins_babel = require_rolldown_runtime.__toESM(prettier_plugins_babel, 1);
11
11
  let prettier_plugins_estree = require("prettier/plugins/estree");
12
- prettier_plugins_estree = require_chunk.__toESM(prettier_plugins_estree, 1);
12
+ prettier_plugins_estree = require_rolldown_runtime.__toESM(prettier_plugins_estree, 1);
13
13
  //#region packages/components/use/prettier.ts
14
14
  const obj = {
15
15
  js: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.1.18",
4
+ "version": "0.1.20",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",
@@ -23,30 +23,30 @@
23
23
  "@codemirror/lang-html": "^6.4.11",
24
24
  "@codemirror/lang-javascript": "^6.2.5",
25
25
  "@codemirror/lang-json": "^6.0.2",
26
- "@codemirror/state": "^6.6.0",
27
- "@codemirror/view": "^6.43.1",
28
- "@fangzhongya/create": "0.2.52",
26
+ "@codemirror/state": "^6.7.0",
27
+ "@codemirror/view": "^6.43.2",
28
+ "@fangzhongya/create": "0.2.53",
29
29
  "@fangzhongya/utils": "0.0.82",
30
30
  "@fangzhongya/vue-components": "0.1.30",
31
31
  "@highlightjs/vue-plugin": "^2.1.0",
32
- "@types/node": "^25.9.2",
32
+ "@types/node": "^26.0.0",
33
33
  "@vitejs/plugin-vue": "^6.0.7",
34
- "@vue/compiler-dom": "3.5.35",
35
- "@vue/compiler-sfc": "3.5.35",
36
- "@vue/runtime-dom": "3.5.35",
37
- "@vue/server-renderer": "3.5.35",
34
+ "@vue/compiler-dom": "3.5.38",
35
+ "@vue/compiler-sfc": "3.5.38",
36
+ "@vue/runtime-dom": "3.5.38",
37
+ "@vue/server-renderer": "3.5.38",
38
38
  "@vue/tsconfig": "0.9.1",
39
39
  "codemirror": "^6.0.2",
40
40
  "fast-glob": "^3.3.3",
41
- "sass": "^1.100.0",
42
- "tsdown": "~0.22.2",
41
+ "sass": "^1.101.0",
42
+ "tsdown": "~0.22.3",
43
43
  "tsx": "4.22.4",
44
44
  "typescript": "^6.0.3",
45
45
  "unplugin-vue-components": "^32.1.0",
46
- "vite": "^8.0.16",
46
+ "vite": "^8.1.0",
47
47
  "vite-plugin-dts": "5.0.2",
48
- "vitest": "^4.1.8",
49
- "vue-tsc": "^3.3.4"
48
+ "vitest": "^4.1.9",
49
+ "vue-tsc": "^3.3.5"
50
50
  },
51
51
  "dependencies": {
52
52
  "comment-parser": "^1.4.7",
@@ -54,7 +54,7 @@
54
54
  "markdown-it": "^14.2.0",
55
55
  "monaco-editor": "^0.55.1",
56
56
  "prettier": "^3.8.4",
57
- "vue": "^3.5.35",
57
+ "vue": "^3.5.38",
58
58
  "vue-router": "^5.1.0"
59
59
  },
60
60
  "types": "./dist/packages/index.d.ts",
@@ -77,12 +77,12 @@
77
77
  },
78
78
  ".": {
79
79
  "require": {
80
- "types": "./dist/packages/index.d.cts",
80
+ "types": "./dist/index.d.cts",
81
81
  "default": "./dist/packages/index.cjs"
82
82
  },
83
83
  "import": {
84
- "types": "./dist/packages/index.d.ts",
85
- "default": "./dist/packages/index.js"
84
+ "types": "./dist/index.d.ts",
85
+ "default": "./dist/index.js"
86
86
  }
87
87
  }
88
88
  },