@fangzhongya/vue-archive 0.0.47 → 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.
@@ -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.47",
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",