@fangzhongya/vue-archive 0.0.46 → 0.0.48

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.
Files changed (40) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/node/index.cjs +166 -134
  3. package/dist/node/index.d.cts +4 -0
  4. package/dist/node/index.d.ts +4 -0
  5. package/dist/node/index.js +166 -134
  6. package/dist/packages/components/boxurl/index.vue.cjs +1 -1
  7. package/dist/packages/components/boxurl/index.vue.js +37 -27
  8. package/dist/packages/components/code/index.vue.cjs +1 -1
  9. package/dist/packages/components/code/index.vue.js +67 -57
  10. package/dist/packages/components/compo/index.vue.cjs +1 -1
  11. package/dist/packages/components/compo/index.vue.js +18 -16
  12. package/dist/packages/components/compo/info-top.vue.cjs +1 -0
  13. package/dist/packages/components/compo/info-top.vue.js +32 -0
  14. package/dist/packages/components/compo/info-top.vue2.cjs +1 -0
  15. package/dist/packages/components/compo/info-top.vue2.js +4 -0
  16. package/dist/packages/components/compo/props.vue.cjs +1 -1
  17. package/dist/packages/components/compo/props.vue.js +44 -40
  18. package/dist/packages/components/compo/top.cjs +1 -1
  19. package/dist/packages/components/compo/top.js +69 -48
  20. package/dist/packages/components/main/index.vue.cjs +1 -1
  21. package/dist/packages/components/main/index.vue.js +30 -25
  22. package/dist/packages/components/test/index.cjs +1 -1
  23. package/dist/packages/components/test/index.js +24 -22
  24. package/dist/packages/components/test/top.cjs +1 -1
  25. package/dist/packages/components/test/top.js +69 -84
  26. package/dist/packages/components/use/set-code.vue.cjs +1 -1
  27. package/dist/packages/components/use/set-code.vue.js +31 -36
  28. package/dist/packages/config.d.ts +3 -0
  29. package/dist/packages/page/develop/index.vue2.cjs +1 -1
  30. package/dist/packages/page/develop/index.vue2.js +2 -1
  31. package/dist/packages/utils/common.cjs +1 -1
  32. package/dist/packages/utils/common.d.ts +2 -0
  33. package/dist/packages/utils/common.js +13 -12
  34. package/dist/packages/utils/glob.cjs +2 -2
  35. package/dist/packages/utils/glob.d.ts +1 -1
  36. package/dist/packages/utils/glob.js +226 -235
  37. package/dist/packages/utils/util.cjs +1 -0
  38. package/dist/packages/utils/util.d.ts +4 -0
  39. package/dist/packages/utils/util.js +46 -0
  40. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@fangzhongya/utils/basic/object/mergeObject"),a=require("@fangzhongya/utils/basic/array/toggleArray"),p=require("@fangzhongya/utils/name/humpToLine"),l=require("@fangzhongya/utils/name/lineToLargeHump"),d=require("@fangzhongya/utils/basic/string/appearNum"),m=require("@fangzhongya/utils/basic/string/firstLower"),b=require("@fangzhongya/utils/basic/array/duplicateRemoval"),s=require("@fangzhongya/utils/basic/array/asyncMergeArray"),g=require("@fangzhongya/utils/basic/string/firstUpper"),f=require("@fangzhongya/utils/urls/getSuffix"),y=require("@fangzhongya/utils/basic/array/replaceAfter");function j(r,t,o="text/plain"){const c=new Blob([r],{type:o}),n=URL.createObjectURL(c),e=document.createElement("a");e.href=n,e.download=t,e.style.display="none",document.body.appendChild(e),e.click(),setTimeout(()=>{document.body.removeChild(e),URL.revokeObjectURL(n)},100)}const i=(r,t=1,o=1)=>{const n=`vscode://file/${encodeURI(r).replace(/#/g,"%23").replace(/\?/g,"%3F")}:${t}:${o}`,e=document.createElement("a");e.href=n,e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)};function O(r,t=1,o=1){fetch(`/__open-in-editor?file=${encodeURIComponent(r)}&line=${t}&column=${o}`).catch(c=>{i(r,t,o)})}Object.defineProperty(exports,"mergeObject",{enumerable:!0,get:()=>u.mergeObject});Object.defineProperty(exports,"toggleArray",{enumerable:!0,get:()=>a.toggleArray});Object.defineProperty(exports,"humpToLine",{enumerable:!0,get:()=>p.humpToLine});Object.defineProperty(exports,"lineToLargeHump",{enumerable:!0,get:()=>l.lineToLargeHump});Object.defineProperty(exports,"appearNum",{enumerable:!0,get:()=>d.appearNum});Object.defineProperty(exports,"firstLower",{enumerable:!0,get:()=>m.firstLower});Object.defineProperty(exports,"duplicateRemoval",{enumerable:!0,get:()=>b.duplicateRemoval});Object.defineProperty(exports,"asyncMergeArray",{enumerable:!0,get:()=>s.asyncMergeArray});Object.defineProperty(exports,"firstUpper",{enumerable:!0,get:()=>g.firstUpper});Object.defineProperty(exports,"getSuffix",{enumerable:!0,get:()=>f.getSuffix});Object.defineProperty(exports,"replaceAfter",{enumerable:!0,get:()=>y.replaceAfter});exports.exportStringToFile=j;exports.openInEditor=O;exports.openInVSCode=i;
@@ -10,3 +10,7 @@ import { firstUpper } from '@fangzhongya/utils/basic/string/firstUpper';
10
10
  import { getSuffix } from '@fangzhongya/utils/urls/getSuffix';
11
11
  import { replaceAfter } from '@fangzhongya/utils/basic/array/replaceAfter';
12
12
  export { mergeObject, getSuffix, toggleArray, replaceAfter, humpToLine, asyncMergeArray, duplicateRemoval, lineToLargeHump, appearNum, firstUpper, firstLower, };
13
+ export declare function exportStringToFile(content: string, filename: string, mimeType?: string): void;
14
+ export declare const openInVSCode: (relativePath: string, line?: number, column?: number) => void;
15
+ export declare function openInEditor(filePath: string, line?: number, column?: number): void;
16
+ export declare const getInVSCode: (relativePath: string, line?: number, column?: number) => string;
@@ -0,0 +1,46 @@
1
+ import { mergeObject as a } from "@fangzhongya/utils/basic/object/mergeObject";
2
+ import { toggleArray as s } from "@fangzhongya/utils/basic/array/toggleArray";
3
+ import { humpToLine as x } from "@fangzhongya/utils/name/humpToLine";
4
+ import { lineToLargeHump as b } from "@fangzhongya/utils/name/lineToLargeHump";
5
+ import { appearNum as g } from "@fangzhongya/utils/basic/string/appearNum";
6
+ import { firstLower as L } from "@fangzhongya/utils/basic/string/firstLower";
7
+ import { duplicateRemoval as v } from "@fangzhongya/utils/basic/array/duplicateRemoval";
8
+ import { asyncMergeArray as $ } from "@fangzhongya/utils/basic/array/asyncMergeArray";
9
+ import { firstUpper as I } from "@fangzhongya/utils/basic/string/firstUpper";
10
+ import { getSuffix as j } from "@fangzhongya/utils/urls/getSuffix";
11
+ import { replaceAfter as A } from "@fangzhongya/utils/basic/array/replaceAfter";
12
+ function d(o, t, r = "text/plain") {
13
+ const c = new Blob([o], { type: r }), n = URL.createObjectURL(c), e = document.createElement("a");
14
+ e.href = n, e.download = t, e.style.display = "none", document.body.appendChild(e), e.click(), setTimeout(() => {
15
+ document.body.removeChild(e), URL.revokeObjectURL(n);
16
+ }, 100);
17
+ }
18
+ const p = (o, t = 1, r = 1) => {
19
+ const n = `vscode://file/${encodeURI(o).replace(/#/g, "%23").replace(/\?/g, "%3F")}:${t}:${r}`, e = document.createElement("a");
20
+ e.href = n, e.style.display = "none", document.body.appendChild(e), e.click(), document.body.removeChild(e);
21
+ };
22
+ function m(o, t = 1, r = 1) {
23
+ fetch(
24
+ `/__open-in-editor?file=${encodeURIComponent(
25
+ o
26
+ )}&line=${t}&column=${r}`
27
+ ).catch((c) => {
28
+ p(o, t, r);
29
+ });
30
+ }
31
+ export {
32
+ g as appearNum,
33
+ $ as asyncMergeArray,
34
+ v as duplicateRemoval,
35
+ d as exportStringToFile,
36
+ L as firstLower,
37
+ I as firstUpper,
38
+ j as getSuffix,
39
+ x as humpToLine,
40
+ b as lineToLargeHump,
41
+ a as mergeObject,
42
+ m as openInEditor,
43
+ p as openInVSCode,
44
+ A as replaceAfter,
45
+ s as toggleArray
46
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.46",
4
+ "version": "0.0.48",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@fangzhongya/create": "0.2.34",
22
- "@fangzhongya/utils": "0.0.26",
22
+ "@fangzhongya/utils": "0.0.27",
23
23
  "@fangzhongya/vue-components": "0.1.9",
24
24
  "@highlightjs/vue-plugin": "^2.1.0",
25
25
  "@types/node": "^24.2.1",