@fangzhongya/vue-archive 0.0.86 → 0.0.88
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/packages/components/use/code.d.ts +25 -18
- package/dist/packages/components/use/retrie/input/editor/editor.d.ts +6 -15
- package/dist/packages/index.cjs +1 -1
- package/dist/packages/index.js +5 -5
- package/dist/packages/router/index.cjs +1 -1
- package/dist/packages/router/index.js +16 -16
- package/package.json +1 -1
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
name: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
};
|
|
6
|
+
html: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default(): string;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
|
+
refresh: (...args: any[]) => void;
|
|
12
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
13
|
+
name: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
html: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default(): string;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{
|
|
21
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
html: string;
|
|
24
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
|
+
export default _default;
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
format: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
};
|
|
10
|
-
options: {
|
|
11
|
-
type: {
|
|
12
|
-
(arrayLength: number): string[];
|
|
13
|
-
(...items: string[]): string[];
|
|
14
|
-
new (arrayLength: number): string[];
|
|
15
|
-
new (...items: string[]): string[];
|
|
1
|
+
import * as monaco from 'monaco-editor';
|
|
2
|
+
export declare function getJs(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
|
|
3
|
+
export declare function getHtml(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
|
|
4
|
+
export declare function getJson(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
|
|
5
|
+
export declare function getCss(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
|
|
6
|
+
...items: string[]): string[];
|
|
16
7
|
isArray(arg: any): arg is any[];
|
|
17
8
|
readonly prototype: any[];
|
|
18
9
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
package/dist/packages/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const n=require("./router/index.cjs"),t=require("./config.cjs");function
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const n=require("./router/index.cjs"),t=require("./config.cjs");function u(e){return t.userConfig(e)}const o={install:function(e,i){n.init(i),e.use(i)}};exports.default=o;exports.defineConfig=u;
|
package/dist/packages/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { init as o } from "./router/index.js";
|
|
3
3
|
import { userConfig as t } from "./config.js";
|
|
4
|
-
function
|
|
4
|
+
function m(i) {
|
|
5
5
|
return t(i);
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const s = {
|
|
8
8
|
install: function(i, n) {
|
|
9
|
-
o(n);
|
|
9
|
+
o(n), i.use(n);
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
s as default,
|
|
14
|
+
m as defineConfig
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../config.cjs"),c=require("../utils/storage.cjs");require("@fangzhongya/utils/basic/string/firstUpper");const p=require("./file.cjs"),f=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"})),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../config.cjs"),c=require("../utils/storage.cjs");require("@fangzhongya/utils/basic/string/firstUpper");const p=require("./file.cjs"),f=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"})),i=[{path:"/__document",name:"__document",component:()=>Promise.resolve().then(()=>f(require("../index/index.vue.cjs"))),redirect:{name:"__documentIndex"},meta:{title:"文档"},children:[]}];let m=0;document.addEventListener("keydown",g);function g(e){e=e||window.event,(e.ctrlKey&&e.location==82||e.location==116)&&c.setSession("-keydown-F5",2)}let o="__document";function y(e){o=u.getConfig("router")||"__document";let t="/"+o;if(i[0].path=t,i[0].name=o,i[0].redirect={name:o+"Index"},i[0].children?.unshift({path:t+"/:chapters+",redirect:{name:o+"Index"}}),p.getFileName().forEach(n=>{i[0].children?.push({path:n.value,name:o+n.name,component:n.component})}),i.forEach(n=>{e.addRoute(n)}),e.beforeEach((n,r)=>{if(r.fullPath=="/"){let l=c.getSession("-keydown-F5");document.referrer||l==2?(console.log("刷新"),m=2):(console.log("地址栏输入 或者 刷新"),m=3)}else console.log("跳转"),m=1;c.setSession("-keydown-F5",0)}),u.getConfig("redirect")){const n=e.getRoutes().filter(r=>r.path=="/")[0]||{path:"/"};n.redirect=t,n.name?e.addRoute(n.name,n):e.addRoute(n)}}const d={};function h(e){let t=e.path,a=e.params;if(a&&Object.keys(a).length)return a;{let n=d[t];return n&&Object.keys(n).length?n:m==3?{}:c.getSession("router.toPage."+t)}}function s(e,t,a="push"){let n=t.path||"";const r=t.name,l=t.params||{};e[a](t),r&&(n=e.resolve({name:r}).path),d[n]=l,c.setSession("router.toPage."+n,l)}function k(e,t){s(e,{name:o+"Single",query:{id:t?.name+"/"+t?.value},params:{key:t?.key,comkey:t?.comkey}})}function v(e,t){s(e,{name:o+"Develop",query:{id:t?.value},params:{key:t?.key}})}function _(e,t){s(e,{name:o+"Edit",query:{id:t?.value},params:{key:t?.key}})}function P(e,t){s(e,{name:o+"Tests",query:{id:t?.value},params:{key:t?.key}})}function S(e,t){s(e,{name:o+"Compon",query:{id:t?.value},params:{key:t?.key}})}exports.getPageParams=h;exports.init=y;exports.toCompon=S;exports.toDevelop=v;exports.toEdit=_;exports.toPage=s;exports.toSingle=k;exports.toTests=P;
|
|
@@ -18,17 +18,17 @@ function y(t) {
|
|
|
18
18
|
t = t || window.event, (t.ctrlKey && t.location == 82 || //ctrl+R
|
|
19
19
|
t.location == 116) && s("-keydown-F5", 2);
|
|
20
20
|
}
|
|
21
|
-
let
|
|
21
|
+
let a = "__document";
|
|
22
22
|
function _(t) {
|
|
23
|
-
|
|
24
|
-
let e = "/" +
|
|
25
|
-
if (i[0].path = e, i[0].redirect = { name:
|
|
23
|
+
a = d("router") || "__document";
|
|
24
|
+
let e = "/" + a;
|
|
25
|
+
if (i[0].path = e, i[0].name = a, i[0].redirect = { name: a + "Index" }, i[0].children?.unshift({
|
|
26
26
|
path: e + "/:chapters+",
|
|
27
|
-
redirect: { name:
|
|
27
|
+
redirect: { name: a + "Index" }
|
|
28
28
|
}), f().forEach((n) => {
|
|
29
29
|
i[0].children?.push({
|
|
30
30
|
path: n.value,
|
|
31
|
-
name:
|
|
31
|
+
name: a + n.name,
|
|
32
32
|
component: n.component
|
|
33
33
|
});
|
|
34
34
|
}), i.forEach((n) => {
|
|
@@ -49,22 +49,22 @@ function _(t) {
|
|
|
49
49
|
}
|
|
50
50
|
const u = {};
|
|
51
51
|
function P(t) {
|
|
52
|
-
let e = t.path,
|
|
53
|
-
if (
|
|
54
|
-
return
|
|
52
|
+
let e = t.path, o = t.params;
|
|
53
|
+
if (o && Object.keys(o).length)
|
|
54
|
+
return o;
|
|
55
55
|
{
|
|
56
56
|
let n = u[e];
|
|
57
57
|
return n && Object.keys(n).length ? n : l == 3 ? {} : p("router.toPage." + e);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function m(t, e,
|
|
60
|
+
function m(t, e, o = "push") {
|
|
61
61
|
let n = e.path || "";
|
|
62
62
|
const r = e.name, c = e.params || {};
|
|
63
|
-
t[
|
|
63
|
+
t[o](e), r && (n = t.resolve({ name: r }).path), u[n] = c, s("router.toPage." + n, c);
|
|
64
64
|
}
|
|
65
65
|
function w(t, e) {
|
|
66
66
|
m(t, {
|
|
67
|
-
name:
|
|
67
|
+
name: a + "Single",
|
|
68
68
|
query: {
|
|
69
69
|
id: e?.name + "/" + e?.value
|
|
70
70
|
},
|
|
@@ -73,7 +73,7 @@ function w(t, e) {
|
|
|
73
73
|
}
|
|
74
74
|
function E(t, e) {
|
|
75
75
|
m(t, {
|
|
76
|
-
name:
|
|
76
|
+
name: a + "Develop",
|
|
77
77
|
query: {
|
|
78
78
|
id: e?.value
|
|
79
79
|
},
|
|
@@ -82,7 +82,7 @@ function E(t, e) {
|
|
|
82
82
|
}
|
|
83
83
|
function q(t, e) {
|
|
84
84
|
m(t, {
|
|
85
|
-
name:
|
|
85
|
+
name: a + "Edit",
|
|
86
86
|
query: {
|
|
87
87
|
id: e?.value
|
|
88
88
|
},
|
|
@@ -91,7 +91,7 @@ function q(t, e) {
|
|
|
91
91
|
}
|
|
92
92
|
function x(t, e) {
|
|
93
93
|
m(t, {
|
|
94
|
-
name:
|
|
94
|
+
name: a + "Tests",
|
|
95
95
|
query: {
|
|
96
96
|
id: e?.value
|
|
97
97
|
},
|
|
@@ -100,7 +100,7 @@ function x(t, e) {
|
|
|
100
100
|
}
|
|
101
101
|
function F(t, e) {
|
|
102
102
|
m(t, {
|
|
103
|
-
name:
|
|
103
|
+
name: a + "Compon",
|
|
104
104
|
query: {
|
|
105
105
|
id: e?.value
|
|
106
106
|
},
|