x-essential-lib 0.9.29 → 0.9.31
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.d.ts +357 -7
- package/dist/index.js +5 -5
- package/dist/{vendor.fdumcx9j.js → vendor.muy2hy8m.js} +11 -11
- package/package.json +19 -15
- package/dist/components/confirmDlg/index.vue.d.ts +0 -3
- package/dist/components/index.d.ts +0 -2
- package/dist/components/loading/index.vue.d.ts +0 -7
- package/dist/components/message/index.vue.d.ts +0 -3
- package/dist/components/message/item.vue.d.ts +0 -14
- package/dist/components/message/types.d.ts +0 -2
- package/dist/components/numberDlg/index.vue.d.ts +0 -3
- package/dist/components/promptDlg/index.vue.d.ts +0 -3
- package/dist/components/waitDlg/index.vue.d.ts +0 -3
- package/dist/composables/color.d.ts +0 -39
- package/dist/composables/index.d.ts +0 -5
- package/dist/composables/microApp.d.ts +0 -3
- package/dist/composables/permission.d.ts +0 -4
- package/dist/composables/system.d.ts +0 -8
- package/dist/composables/viewStack.d.ts +0 -3
- package/dist/i18n/index.d.ts +0 -1
- package/dist/utils/axios.d.ts +0 -8
- package/dist/utils/dialog.d.ts +0 -37
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/message.d.ts +0 -4
- package/dist/utils/misc.d.ts +0 -9
- package/dist/utils/permission.d.ts +0 -139
- package/dist/utils/provideInject.d.ts +0 -14
- package/dist/utils/router.d.ts +0 -14
- package/dist/utils/type.d.ts +0 -4
- package/dist/utils/viewMgr.d.ts +0 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,357 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
|
+
import { Emitter } from 'mitt';
|
|
5
|
+
import { EventType } from 'mitt';
|
|
6
|
+
import { Ref } from 'vue';
|
|
7
|
+
import { RouteLocationNormalized } from 'vue-router';
|
|
8
|
+
import { WritableComputedRef } from 'vue';
|
|
9
|
+
|
|
10
|
+
export declare function addView(views: Ref<string[]>, name: string): void;
|
|
11
|
+
|
|
12
|
+
export declare function appAppear(name: string, forward: boolean): void;
|
|
13
|
+
|
|
14
|
+
declare interface ButtonOptions {
|
|
15
|
+
color?: string;
|
|
16
|
+
text?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export declare function clearViews(views: Ref<string[]>): void;
|
|
20
|
+
|
|
21
|
+
export declare function closeWaitDlg(): void;
|
|
22
|
+
|
|
23
|
+
declare interface ConfirmParams {
|
|
24
|
+
title: string;
|
|
25
|
+
subtitle?: string;
|
|
26
|
+
text: string;
|
|
27
|
+
cancel?: ButtonOptions;
|
|
28
|
+
confirm?: ButtonOptions;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export declare function createAxios(options: Options): AxiosInstance;
|
|
32
|
+
|
|
33
|
+
declare const _default: {
|
|
34
|
+
install: (app: App) => void;
|
|
35
|
+
};
|
|
36
|
+
export default _default;
|
|
37
|
+
|
|
38
|
+
export declare function delView(views: Ref<string[]>, name: string): void;
|
|
39
|
+
|
|
40
|
+
export declare const eventBus: Emitter<Record<EventType, unknown>>;
|
|
41
|
+
|
|
42
|
+
export declare function getTypeColor(type: Type): string;
|
|
43
|
+
|
|
44
|
+
export declare function getTypeDefault(type: Type): any;
|
|
45
|
+
|
|
46
|
+
export declare const globalObjects: {
|
|
47
|
+
router: any;
|
|
48
|
+
i18n: any;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export declare function hasView(views: Ref<string[]>, name: string): boolean;
|
|
52
|
+
|
|
53
|
+
export declare function injectDark(): Ref<boolean>;
|
|
54
|
+
|
|
55
|
+
export declare function injectLastAppPath(): Ref<string>;
|
|
56
|
+
|
|
57
|
+
export declare function injectLocale(): Ref<string>;
|
|
58
|
+
|
|
59
|
+
export declare function injectPermissionChecksum(): Ref<string>;
|
|
60
|
+
|
|
61
|
+
export declare function injectPermissionObjects(): Ref<PermissionObjects>;
|
|
62
|
+
|
|
63
|
+
export declare function injectViews(): Ref<string[]>;
|
|
64
|
+
|
|
65
|
+
declare type InstanceTree = {
|
|
66
|
+
[key: string]: InstanceTree;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export declare function isEmpty(views: Ref<string[]>): boolean;
|
|
70
|
+
|
|
71
|
+
export declare function isExist(instanceTree: InstanceTree | undefined, instance: string): boolean;
|
|
72
|
+
|
|
73
|
+
export declare function lastView(views: Ref<string[]>): string | undefined;
|
|
74
|
+
|
|
75
|
+
export declare function loadLocaleMessageEssential(locale: string): Promise<object>;
|
|
76
|
+
|
|
77
|
+
export declare function matchRouteMeta(path: string): RouteMeta | undefined;
|
|
78
|
+
|
|
79
|
+
export declare function messageError(text: string, timeout?: number): void;
|
|
80
|
+
|
|
81
|
+
export declare function messageInfo(text: string, timeout?: number): void;
|
|
82
|
+
|
|
83
|
+
export declare function messageSuccess(text: string, timeout?: number): void;
|
|
84
|
+
|
|
85
|
+
export declare function messageWarning(text: string, timeout?: number): void;
|
|
86
|
+
|
|
87
|
+
declare interface NumberParams {
|
|
88
|
+
title: string;
|
|
89
|
+
subtitle?: string;
|
|
90
|
+
value: number;
|
|
91
|
+
precision?: number;
|
|
92
|
+
min?: number;
|
|
93
|
+
max?: number;
|
|
94
|
+
step?: number;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export declare function onBeforeEach(to: RouteLocationNormalized, from: RouteLocationNormalized, lastAppPath: string): {
|
|
98
|
+
path: string;
|
|
99
|
+
} | undefined;
|
|
100
|
+
|
|
101
|
+
declare type OnError = (error: unknown) => void;
|
|
102
|
+
|
|
103
|
+
export declare function openConfirmDlg(params: ConfirmParams): Promise<boolean | undefined>;
|
|
104
|
+
|
|
105
|
+
export declare function openNumberDlg(params: NumberParams): Promise<number | undefined>;
|
|
106
|
+
|
|
107
|
+
export declare function openPromptDlg(params: PromptParams): Promise<string | undefined>;
|
|
108
|
+
|
|
109
|
+
export declare function openWaitDlg(text?: string): void;
|
|
110
|
+
|
|
111
|
+
declare interface Options {
|
|
112
|
+
baseUrl: string;
|
|
113
|
+
onError: OnError;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export declare enum Permission {
|
|
117
|
+
list_app_group = "list_app_group",
|
|
118
|
+
create_app_group = "create_app_group",
|
|
119
|
+
delete_app_group = "delete_app_group",
|
|
120
|
+
update_app_group = "update_app_group",
|
|
121
|
+
arrange_app_group = "arrange_app_group",
|
|
122
|
+
list_app = "list_app",
|
|
123
|
+
get_app = "get_app",
|
|
124
|
+
create_app = "create_app",
|
|
125
|
+
delete_app = "delete_app",
|
|
126
|
+
update_app = "update_app",
|
|
127
|
+
list_app_release = "list_app_release",
|
|
128
|
+
get_app_release = "get_app_release",
|
|
129
|
+
create_app_release = "create_app_release",
|
|
130
|
+
delete_app_release = "delete_app_release",
|
|
131
|
+
deploy_app_release = "deploy_app_release",
|
|
132
|
+
open_app_layer = "open_app_layer",
|
|
133
|
+
open_app = "open_app",
|
|
134
|
+
list_compute_space = "list_compute_space",
|
|
135
|
+
get_compute_space = "get_compute_space",
|
|
136
|
+
create_compute_space = "create_compute_space",
|
|
137
|
+
delete_compute_space = "delete_compute_space",
|
|
138
|
+
update_compute_space = "update_compute_space",
|
|
139
|
+
arrange_compute_space = "arrange_compute_space",
|
|
140
|
+
list_func_group = "list_func_group",
|
|
141
|
+
create_func_group = "create_func_group",
|
|
142
|
+
delete_func_group = "delete_func_group",
|
|
143
|
+
update_func_group = "update_func_group",
|
|
144
|
+
arrange_func_group = "arrange_func_group",
|
|
145
|
+
list_func = "list_func",
|
|
146
|
+
get_func = "get_func",
|
|
147
|
+
create_func = "create_func",
|
|
148
|
+
delete_func = "delete_func",
|
|
149
|
+
update_func = "update_func",
|
|
150
|
+
debug_func = "debug_func",
|
|
151
|
+
call_func = "call_func",
|
|
152
|
+
list_func_release = "list_func_release",
|
|
153
|
+
get_func_release = "get_func_release",
|
|
154
|
+
create_func_release = "create_func_release",
|
|
155
|
+
delete_func_release = "delete_func_release",
|
|
156
|
+
deploy_func_release = "deploy_func_release",
|
|
157
|
+
list_flow_group = "list_flow_group",
|
|
158
|
+
create_flow_group = "create_flow_group",
|
|
159
|
+
delete_flow_group = "delete_flow_group",
|
|
160
|
+
update_flow_group = "update_flow_group",
|
|
161
|
+
arrange_flow_group = "arrange_flow_group",
|
|
162
|
+
list_flow = "list_flow",
|
|
163
|
+
get_flow = "get_flow",
|
|
164
|
+
create_flow = "create_flow",
|
|
165
|
+
delete_flow = "delete_flow",
|
|
166
|
+
update_flow = "update_flow",
|
|
167
|
+
debug_flow = "debug_flow",
|
|
168
|
+
call_flow = "call_flow",
|
|
169
|
+
list_flow_release = "list_flow_release",
|
|
170
|
+
get_flow_release = "get_flow_release",
|
|
171
|
+
create_flow_release = "create_flow_release",
|
|
172
|
+
delete_flow_release = "delete_flow_release",
|
|
173
|
+
deploy_flow_release = "deploy_flow_release",
|
|
174
|
+
list_task = "list_task",
|
|
175
|
+
get_task = "get_task",
|
|
176
|
+
create_task = "create_task",
|
|
177
|
+
delete_task = "delete_task",
|
|
178
|
+
update_task = "update_task",
|
|
179
|
+
call_task = "call_task",
|
|
180
|
+
open_compute_layer = "open_compute_layer",
|
|
181
|
+
list_data_space = "list_data_space",
|
|
182
|
+
get_data_space = "get_data_space",
|
|
183
|
+
create_data_space = "create_data_space",
|
|
184
|
+
delete_data_space = "delete_data_space",
|
|
185
|
+
update_data_space = "update_data_space",
|
|
186
|
+
arrange_data_space = "arrange_data_space",
|
|
187
|
+
list_table_group = "list_table_group",
|
|
188
|
+
create_table_group = "create_table_group",
|
|
189
|
+
delete_table_group = "delete_table_group",
|
|
190
|
+
update_table_group = "update_table_group",
|
|
191
|
+
arrange_table_group = "arrange_table_group",
|
|
192
|
+
list_table = "list_table",
|
|
193
|
+
get_table = "get_table",
|
|
194
|
+
create_table = "create_table",
|
|
195
|
+
delete_table = "delete_table",
|
|
196
|
+
update_table = "update_table",
|
|
197
|
+
get_data = "get_data",
|
|
198
|
+
create_data = "create_data",
|
|
199
|
+
delete_data = "delete_data",
|
|
200
|
+
update_data = "update_data",
|
|
201
|
+
get_relation_graph = "get_relation_graph",
|
|
202
|
+
update_relation_graph = "update_relation_graph",
|
|
203
|
+
list_change = "list_change",
|
|
204
|
+
apply_change = "apply_change",
|
|
205
|
+
open_data_layer = "open_data_layer",
|
|
206
|
+
list_resource_space = "list_resource_space",
|
|
207
|
+
get_resource_space = "get_resource_space",
|
|
208
|
+
create_resource_space = "create_resource_space",
|
|
209
|
+
delete_resource_space = "delete_resource_space",
|
|
210
|
+
update_resource_space = "update_resource_space",
|
|
211
|
+
arrange_resource_space = "arrange_resource_space",
|
|
212
|
+
list_dir = "list_dir",
|
|
213
|
+
create_dir = "create_dir",
|
|
214
|
+
delete_dir = "delete_dir",
|
|
215
|
+
update_dir = "update_dir",
|
|
216
|
+
move_dir = "move_dir",
|
|
217
|
+
list_resource = "list_resource",
|
|
218
|
+
get_resource = "get_resource",
|
|
219
|
+
create_resource = "create_resource",
|
|
220
|
+
delete_resource = "delete_resource",
|
|
221
|
+
update_resource = "update_resource",
|
|
222
|
+
move_resource = "move_resource",
|
|
223
|
+
open_resource_layer = "open_resource_layer",
|
|
224
|
+
list_org_member = "list_org_member",
|
|
225
|
+
add_org_member = "add_org_member",
|
|
226
|
+
remove_org_member = "remove_org_member",
|
|
227
|
+
update_org_member = "update_org_member",
|
|
228
|
+
list_org_role_group = "list_org_role_group",
|
|
229
|
+
create_org_role_group = "create_org_role_group",
|
|
230
|
+
delete_org_role_group = "delete_org_role_group",
|
|
231
|
+
update_org_role_group = "update_org_role_group",
|
|
232
|
+
arrange_org_role_group = "arrange_org_role_group",
|
|
233
|
+
list_org_role = "list_org_role",
|
|
234
|
+
get_org_role = "get_org_role",
|
|
235
|
+
create_org_role = "create_org_role",
|
|
236
|
+
delete_org_role = "delete_org_role",
|
|
237
|
+
update_org_role = "update_org_role",
|
|
238
|
+
get_org_structure = "get_org_structure",
|
|
239
|
+
update_org_structure = "update_org_structure",
|
|
240
|
+
filter_table = "filter_table"
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare type PermissionObject = {
|
|
244
|
+
includes: InstanceTree;
|
|
245
|
+
excludes: InstanceTree;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export declare type PermissionObjects = {
|
|
249
|
+
[key: string]: PermissionObject;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
export declare function popView(views: Ref<string[]>): void;
|
|
253
|
+
|
|
254
|
+
declare interface PromptParams {
|
|
255
|
+
title: string;
|
|
256
|
+
subtitle?: string;
|
|
257
|
+
text?: string;
|
|
258
|
+
label?: string;
|
|
259
|
+
placeholder?: string;
|
|
260
|
+
rules?: ((val: string) => string | boolean)[];
|
|
261
|
+
value?: string;
|
|
262
|
+
cancel?: ButtonOptions;
|
|
263
|
+
confirm?: ButtonOptions;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export declare function provideDark(dark: Ref<boolean>): void;
|
|
267
|
+
|
|
268
|
+
export declare function provideLastAppPath(lastAppPath: Ref<string>): void;
|
|
269
|
+
|
|
270
|
+
export declare function provideLocale(locale: Ref<string>): void;
|
|
271
|
+
|
|
272
|
+
export declare function providePermissionChecksum(permissionChecksum: Ref<string>): void;
|
|
273
|
+
|
|
274
|
+
export declare function providePermissionObjects(permissionObjects: Ref<PermissionObjects>): void;
|
|
275
|
+
|
|
276
|
+
export declare function provideViews(views: Ref<string[]>): void;
|
|
277
|
+
|
|
278
|
+
declare interface RouteMeta {
|
|
279
|
+
app: 'x-app-mf' | 'x-compute-mf' | 'x-data-mf' | 'x-main-mf' | 'x-mine-mf' | 'x-org-mf' | 'x-passport-mf' | 'x-resource-mf';
|
|
280
|
+
path: string;
|
|
281
|
+
level: number;
|
|
282
|
+
requiredState?: 'auth' | 'org';
|
|
283
|
+
mainActive?: 1 | 2 | 3 | 4;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export declare const routeTransName: Ref<string, string>;
|
|
287
|
+
|
|
288
|
+
export declare type Type = (typeof types)[number];
|
|
289
|
+
|
|
290
|
+
export declare const types: readonly ["string", "number", "boolean", "array", "object", "any"];
|
|
291
|
+
|
|
292
|
+
export declare function useColor(): {
|
|
293
|
+
primaryColor: ComputedRef<string | number | {
|
|
294
|
+
readonly h: number;
|
|
295
|
+
readonly s: number;
|
|
296
|
+
readonly v: number;
|
|
297
|
+
readonly a?: number | undefined;
|
|
298
|
+
} | {
|
|
299
|
+
readonly r: number;
|
|
300
|
+
readonly g: number;
|
|
301
|
+
readonly b: number;
|
|
302
|
+
readonly a?: number | undefined;
|
|
303
|
+
} | {
|
|
304
|
+
readonly h: number;
|
|
305
|
+
readonly s: number;
|
|
306
|
+
readonly l: number;
|
|
307
|
+
readonly a?: number | undefined;
|
|
308
|
+
}>;
|
|
309
|
+
secondaryColor: ComputedRef<string | number | {
|
|
310
|
+
readonly h: number;
|
|
311
|
+
readonly s: number;
|
|
312
|
+
readonly v: number;
|
|
313
|
+
readonly a?: number | undefined;
|
|
314
|
+
} | {
|
|
315
|
+
readonly r: number;
|
|
316
|
+
readonly g: number;
|
|
317
|
+
readonly b: number;
|
|
318
|
+
readonly a?: number | undefined;
|
|
319
|
+
} | {
|
|
320
|
+
readonly h: number;
|
|
321
|
+
readonly s: number;
|
|
322
|
+
readonly l: number;
|
|
323
|
+
readonly a?: number | undefined;
|
|
324
|
+
}>;
|
|
325
|
+
backgroundColor0: ComputedRef<"#2e2e2e" | "#bdbdbd">;
|
|
326
|
+
backgroundColor1: ComputedRef<"#272727" | "#eeeeee">;
|
|
327
|
+
backgroundColor2: ComputedRef<"#1e1e1e" | "#ffffff">;
|
|
328
|
+
highlightColor: ComputedRef<"#303030" | "#f6f6f6">;
|
|
329
|
+
borderColor: ComputedRef<"#ffffff1f" | "#0000001f">;
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
export declare function useMicroApp(dark: Ref<boolean | undefined>, locale: Ref<string>, permissionObjects: Ref<PermissionObjects>, permissionChecksum: Ref<string>, lastAppPath: Ref<string>, views: Ref<string[]>): void;
|
|
333
|
+
|
|
334
|
+
export declare function usePermission(): {
|
|
335
|
+
verifyPermission: (permission: Permission, instance?: string) => boolean;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
export declare function useSystem(): {
|
|
339
|
+
sysBarAvail: ComputedRef<boolean>;
|
|
340
|
+
compactWidth: ComputedRef<string>;
|
|
341
|
+
isCurvedScreen: ComputedRef<boolean>;
|
|
342
|
+
isMobile: () => boolean;
|
|
343
|
+
nameList: (entries: string[], instances?: string[]) => string;
|
|
344
|
+
sentenceOfAsk: (verb: string, object: string, name: string) => string;
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
export declare function useViewStack(name: string, hook?: (params: unknown) => void): {
|
|
348
|
+
open: WritableComputedRef<boolean, boolean>;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
export declare function verifyPermission(permissionObjects: PermissionObjects, permission: Permission, instance: string): boolean;
|
|
352
|
+
|
|
353
|
+
export declare function waitMs(ms: number): Promise<void>;
|
|
354
|
+
|
|
355
|
+
export declare function waitUtil(conditionFunc: () => boolean, timeout?: number, interval?: number): Promise<boolean>;
|
|
356
|
+
|
|
357
|
+
export { }
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.id=`x-essential-lib`,e.appendChild(document.createTextNode(`.fade-leave-active[data-v-
|
|
2
|
-
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { i as e, n as t, r as n, t as r } from "./vendor.
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.id=`x-essential-lib`,e.appendChild(document.createTextNode(`.fade-leave-active[data-v-6874f27f]{transition:opacity .5s}.fade-leave-to[data-v-6874f27f]{opacity:0}.x-cont[data-v-6874f27f]{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.lds-spinner[data-v-6874f27f]{color:official;width:40px;height:40px;display:inline-block;position:relative}.lds-spinner div[data-v-6874f27f]{transform-origin:20px 20px;animation:1.2s linear infinite lds-spinner-6874f27f}.lds-spinner div[data-v-6874f27f]:after{content:" ";background:#9e9e9e;border-radius:5%;width:2px;height:6px;display:block;position:absolute;top:3px;left:18px}.lds-spinner div[data-v-6874f27f]:first-child{animation-delay:-1.1s;transform:rotate(0)}.lds-spinner div[data-v-6874f27f]:nth-child(2){animation-delay:-1s;transform:rotate(30deg)}.lds-spinner div[data-v-6874f27f]:nth-child(3){animation-delay:-.9s;transform:rotate(60deg)}.lds-spinner div[data-v-6874f27f]:nth-child(4){animation-delay:-.8s;transform:rotate(90deg)}.lds-spinner div[data-v-6874f27f]:nth-child(5){animation-delay:-.7s;transform:rotate(120deg)}.lds-spinner div[data-v-6874f27f]:nth-child(6){animation-delay:-.6s;transform:rotate(150deg)}.lds-spinner div[data-v-6874f27f]:nth-child(7){animation-delay:-.5s;transform:rotate(180deg)}.lds-spinner div[data-v-6874f27f]:nth-child(8){animation-delay:-.4s;transform:rotate(210deg)}.lds-spinner div[data-v-6874f27f]:nth-child(9){animation-delay:-.3s;transform:rotate(240deg)}.lds-spinner div[data-v-6874f27f]:nth-child(10){animation-delay:-.2s;transform:rotate(270deg)}.lds-spinner div[data-v-6874f27f]:nth-child(11){animation-delay:-.1s;transform:rotate(300deg)}.lds-spinner div[data-v-6874f27f]:nth-child(12){animation-delay:0s;transform:rotate(330deg)}@keyframes lds-spinner-6874f27f{0%{opacity:1}to{opacity:0}}.x-item[data-v-96fcf38e]{width:600px}@media (width<=600px){.x-item[data-v-96fcf38e]{width:calc(100vw - 16px)}}.x-cont[data-v-3d0e9ceb]{z-index:9999;position:fixed;bottom:20px;left:50%;transform:translate(-50%)}
|
|
2
|
+
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { i as e, n as t, r as n, t as r } from "./vendor.muy2hy8m.js";
|
|
3
3
|
import { Fragment as i, Transition as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, isRef as h, normalizeStyle as g, onBeforeMount as _, onBeforeUnmount as v, onMounted as y, openBlock as b, provide as x, ref as S, renderList as C, resolveComponent as w, toDisplayString as T, unref as E, useTemplateRef as D, watch as O, watchEffect as k, withCtx as A, withKeys as j, withModifiers as M } from "vue";
|
|
4
4
|
import { useI18n as N } from "vue-i18n";
|
|
5
5
|
import { useDisplay as ee, useTheme as P } from "vuetify";
|
|
@@ -638,7 +638,7 @@ var $e = /* @__PURE__ */ p({
|
|
|
638
638
|
let n = e.__vccOpts || e;
|
|
639
639
|
for (let [e, r] of t) n[e] = r;
|
|
640
640
|
return n;
|
|
641
|
-
}, tt = /* @__PURE__ */ $(et, [["__scopeId", "data-v-
|
|
641
|
+
}, tt = /* @__PURE__ */ $(et, [["__scopeId", "data-v-6874f27f"]]), nt = /* @__PURE__ */ $(/* @__PURE__ */ p({
|
|
642
642
|
__name: "item",
|
|
643
643
|
props: {
|
|
644
644
|
id: {},
|
|
@@ -690,7 +690,7 @@ var $e = /* @__PURE__ */ p({
|
|
|
690
690
|
}, 8, ["color"]);
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
}), [["__scopeId", "data-v-
|
|
693
|
+
}), [["__scopeId", "data-v-96fcf38e"]]), rt = /* @__PURE__ */ $(/* @__PURE__ */ p({
|
|
694
694
|
__name: "index",
|
|
695
695
|
setup(e) {
|
|
696
696
|
let t = S([]);
|
|
@@ -733,7 +733,7 @@ var $e = /* @__PURE__ */ p({
|
|
|
733
733
|
"type"
|
|
734
734
|
]))), 128))]));
|
|
735
735
|
}
|
|
736
|
-
}), [["__scopeId", "data-v-
|
|
736
|
+
}), [["__scopeId", "data-v-3d0e9ceb"]]), it = /* @__PURE__ */ p({
|
|
737
737
|
__name: "index",
|
|
738
738
|
setup(e) {
|
|
739
739
|
let { t } = N(), n = S(""), r = S(""), i = S(0), a = S(), o = S(-Infinity), c = S(Infinity), l = S(1), u = 0, p = !1, m = D("target"), { open: g } = Q("numberDlg", async (e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as e, getCurrentInstance as t, getCurrentScope as n, hasInjectionContext as r, inject as i, onMounted as a, shallowRef as o, toValue as s, unref as c, watch as l, watchEffect as u } from "vue";
|
|
2
|
-
//#region node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.
|
|
2
|
+
//#region node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
3
|
var d = /* @__PURE__ */ new WeakMap(), f = (...e) => {
|
|
4
4
|
let a = e[0], o = t()?.proxy ?? n();
|
|
5
5
|
if (o == null && !r()) throw Error("injectLocal must be called in setup");
|
|
@@ -20,7 +20,7 @@ function v(e, t, n) {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.
|
|
23
|
+
//#region node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
|
|
24
24
|
var y = p ? window : void 0;
|
|
25
25
|
p && window.document, p && window.navigator, p && window.location;
|
|
26
26
|
function b(e) {
|
|
@@ -160,7 +160,7 @@ function j(e) {
|
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
//#endregion
|
|
163
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
163
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
164
164
|
var M = typeof global == "object" && global && global.Object === Object && global, N = typeof self == "object" && self && self.Object === Object && self, P = (M || N || Function("return this")()).Symbol, F = Object.prototype, I = F.hasOwnProperty, L = F.toString, R = P ? P.toStringTag : void 0;
|
|
165
165
|
function z(e) {
|
|
166
166
|
var t = I.call(e, R), n = e[R];
|
|
@@ -172,36 +172,36 @@ function z(e) {
|
|
|
172
172
|
return r && (t ? e[R] = n : delete e[R]), i;
|
|
173
173
|
}
|
|
174
174
|
//#endregion
|
|
175
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
175
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
176
176
|
var te = Object.prototype.toString;
|
|
177
177
|
function B(e) {
|
|
178
178
|
return te.call(e);
|
|
179
179
|
}
|
|
180
180
|
//#endregion
|
|
181
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
181
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
182
182
|
var V = "[object Null]", H = "[object Undefined]", U = P ? P.toStringTag : void 0;
|
|
183
183
|
function W(e) {
|
|
184
184
|
return e == null ? e === void 0 ? H : V : U && U in Object(e) ? z(e) : B(e);
|
|
185
185
|
}
|
|
186
186
|
//#endregion
|
|
187
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
187
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
188
188
|
function G(e) {
|
|
189
189
|
return typeof e == "object" && !!e;
|
|
190
190
|
}
|
|
191
191
|
//#endregion
|
|
192
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
192
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
193
193
|
var K = "[object Symbol]";
|
|
194
194
|
function q(e) {
|
|
195
195
|
return typeof e == "symbol" || G(e) && W(e) == K;
|
|
196
196
|
}
|
|
197
197
|
//#endregion
|
|
198
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
198
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
199
199
|
function J(e, t) {
|
|
200
200
|
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
|
|
201
201
|
return i;
|
|
202
202
|
}
|
|
203
203
|
//#endregion
|
|
204
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
204
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
205
205
|
var Y = Array.isArray, X = Infinity, Z = P ? P.prototype : void 0, Q = Z ? Z.toString : void 0;
|
|
206
206
|
function $(e) {
|
|
207
207
|
if (typeof e == "string") return e;
|
|
@@ -211,12 +211,12 @@ function $(e) {
|
|
|
211
211
|
return t == "0" && 1 / e == -X ? "-0" : t;
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
214
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
215
215
|
function ne(e) {
|
|
216
216
|
return e == null ? "" : $(e);
|
|
217
217
|
}
|
|
218
218
|
//#endregion
|
|
219
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
219
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toLower.js
|
|
220
220
|
function re(e) {
|
|
221
221
|
return ne(e).toLowerCase();
|
|
222
222
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-essential-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.31",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -23,36 +23,40 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@vueuse/core": "^14.2.1",
|
|
26
|
-
"axios": "^1.
|
|
26
|
+
"axios": "^1.15.0",
|
|
27
27
|
"js-cookie": "^3.0.5",
|
|
28
|
-
"lodash-es": "^4.
|
|
28
|
+
"lodash-es": "^4.18.1",
|
|
29
29
|
"mitt": "^3.0.1",
|
|
30
|
-
"vue": "^3.5.
|
|
31
|
-
"vue-i18n": "^11.3.
|
|
32
|
-
"vue-router": "^5.0.
|
|
33
|
-
"vuetify": "^4.0.
|
|
30
|
+
"vue": "^3.5.32",
|
|
31
|
+
"vue-i18n": "^11.3.2",
|
|
32
|
+
"vue-router": "^5.0.4",
|
|
33
|
+
"vuetify": "^4.0.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@eslint/js": "^10.0.1",
|
|
37
|
+
"@tsconfig/node24": "^24.0.4",
|
|
37
38
|
"@types/js-cookie": "^3.0.6",
|
|
38
39
|
"@types/lodash-es": "^4.17.12",
|
|
39
|
-
"@types/node": "^25.
|
|
40
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
41
|
-
"
|
|
40
|
+
"@types/node": "^25.5.2",
|
|
41
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
42
|
+
"@vue/tsconfig": "^0.9.1",
|
|
43
|
+
"eslint": "^10.2.0",
|
|
42
44
|
"eslint-config-prettier": "^10.1.8",
|
|
43
45
|
"eslint-plugin-prettier": "^5.5.5",
|
|
46
|
+
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
44
47
|
"eslint-plugin-vue": "^10.8.0",
|
|
45
48
|
"globals": "^17.4.0",
|
|
46
49
|
"husky": "^9.1.7",
|
|
47
|
-
"lint-staged": "^16.
|
|
50
|
+
"lint-staged": "^16.4.0",
|
|
48
51
|
"prettier": "3.8.1",
|
|
49
|
-
"sass": "^1.
|
|
52
|
+
"sass": "^1.99.0",
|
|
50
53
|
"typescript": "^5.9.3",
|
|
51
|
-
"typescript-eslint": "^8.
|
|
52
|
-
"vite": "^8.0.
|
|
54
|
+
"typescript-eslint": "^8.58.1",
|
|
55
|
+
"vite": "^8.0.7",
|
|
53
56
|
"vite-plugin-css-injected-by-js": "^4.0.1",
|
|
57
|
+
"vite-plugin-dts": "^4.5.4",
|
|
54
58
|
"vite-plugin-vuetify": "^2.1.3",
|
|
55
59
|
"vue-eslint-parser": "^10.4.0",
|
|
56
|
-
"vue-tsc": "^3.2.
|
|
60
|
+
"vue-tsc": "^3.2.6"
|
|
57
61
|
}
|
|
58
62
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
open?: boolean;
|
|
3
|
-
zIndex?: number;
|
|
4
|
-
};
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
-
declare const _default: typeof __VLS_export;
|
|
7
|
-
export default _default;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Type } from './types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
id: number;
|
|
4
|
-
type: Type;
|
|
5
|
-
text: string;
|
|
6
|
-
timeout?: number;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
timeout: (...args: any[]) => void;
|
|
10
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
onTimeout?: ((...args: any[]) => any) | undefined;
|
|
12
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const _default: typeof __VLS_export;
|
|
14
|
-
export default _default;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
3
|
-
export default _default;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare function useColor(): {
|
|
2
|
-
primaryColor: import("vue").ComputedRef<string | number | {
|
|
3
|
-
readonly h: number;
|
|
4
|
-
readonly s: number;
|
|
5
|
-
readonly v: number;
|
|
6
|
-
readonly a?: number | undefined;
|
|
7
|
-
} | {
|
|
8
|
-
readonly r: number;
|
|
9
|
-
readonly g: number;
|
|
10
|
-
readonly b: number;
|
|
11
|
-
readonly a?: number | undefined;
|
|
12
|
-
} | {
|
|
13
|
-
readonly h: number;
|
|
14
|
-
readonly s: number;
|
|
15
|
-
readonly l: number;
|
|
16
|
-
readonly a?: number | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
secondaryColor: import("vue").ComputedRef<string | number | {
|
|
19
|
-
readonly h: number;
|
|
20
|
-
readonly s: number;
|
|
21
|
-
readonly v: number;
|
|
22
|
-
readonly a?: number | undefined;
|
|
23
|
-
} | {
|
|
24
|
-
readonly r: number;
|
|
25
|
-
readonly g: number;
|
|
26
|
-
readonly b: number;
|
|
27
|
-
readonly a?: number | undefined;
|
|
28
|
-
} | {
|
|
29
|
-
readonly h: number;
|
|
30
|
-
readonly s: number;
|
|
31
|
-
readonly l: number;
|
|
32
|
-
readonly a?: number | undefined;
|
|
33
|
-
}>;
|
|
34
|
-
backgroundColor0: import("vue").ComputedRef<"#2e2e2e" | "#bdbdbd">;
|
|
35
|
-
backgroundColor1: import("vue").ComputedRef<"#272727" | "#eeeeee">;
|
|
36
|
-
backgroundColor2: import("vue").ComputedRef<"#1e1e1e" | "#ffffff">;
|
|
37
|
-
highlightColor: import("vue").ComputedRef<"#303030" | "#f6f6f6">;
|
|
38
|
-
borderColor: import("vue").ComputedRef<"#ffffff1f" | "#0000001f">;
|
|
39
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { PermissionObjects } from '@/utils';
|
|
3
|
-
export declare function useMicroApp(dark: Ref<boolean | undefined>, locale: Ref<string>, permissionObjects: Ref<PermissionObjects>, permissionChecksum: Ref<string>, lastAppPath: Ref<string>, views: Ref<string[]>): void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare function useSystem(): {
|
|
2
|
-
sysBarAvail: import("vue").ComputedRef<boolean>;
|
|
3
|
-
compactWidth: import("vue").ComputedRef<string>;
|
|
4
|
-
isCurvedScreen: import("vue").ComputedRef<boolean>;
|
|
5
|
-
isMobile: () => boolean;
|
|
6
|
-
nameList: (entries: string[], instances?: string[]) => string;
|
|
7
|
-
sentenceOfAsk: (verb: string, object: string, name: string) => string;
|
|
8
|
-
};
|
package/dist/i18n/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function loadLocaleMessageEssential(locale: string): Promise<object>;
|
package/dist/utils/axios.d.ts
DELETED
package/dist/utils/dialog.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
interface ButtonOptions {
|
|
2
|
-
color?: string;
|
|
3
|
-
text?: string;
|
|
4
|
-
}
|
|
5
|
-
interface ConfirmParams {
|
|
6
|
-
title: string;
|
|
7
|
-
subtitle?: string;
|
|
8
|
-
text: string;
|
|
9
|
-
cancel?: ButtonOptions;
|
|
10
|
-
confirm?: ButtonOptions;
|
|
11
|
-
}
|
|
12
|
-
export declare function openConfirmDlg(params: ConfirmParams): Promise<boolean | undefined>;
|
|
13
|
-
interface NumberParams {
|
|
14
|
-
title: string;
|
|
15
|
-
subtitle?: string;
|
|
16
|
-
value: number;
|
|
17
|
-
precision?: number;
|
|
18
|
-
min?: number;
|
|
19
|
-
max?: number;
|
|
20
|
-
step?: number;
|
|
21
|
-
}
|
|
22
|
-
export declare function openNumberDlg(params: NumberParams): Promise<number | undefined>;
|
|
23
|
-
interface PromptParams {
|
|
24
|
-
title: string;
|
|
25
|
-
subtitle?: string;
|
|
26
|
-
text?: string;
|
|
27
|
-
label?: string;
|
|
28
|
-
placeholder?: string;
|
|
29
|
-
rules?: ((val: string) => string | boolean)[];
|
|
30
|
-
value?: string;
|
|
31
|
-
cancel?: ButtonOptions;
|
|
32
|
-
confirm?: ButtonOptions;
|
|
33
|
-
}
|
|
34
|
-
export declare function openPromptDlg(params: PromptParams): Promise<string | undefined>;
|
|
35
|
-
export declare function openWaitDlg(text?: string): void;
|
|
36
|
-
export declare function closeWaitDlg(): void;
|
|
37
|
-
export {};
|
package/dist/utils/index.d.ts
DELETED
package/dist/utils/message.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function messageError(text: string, timeout?: number): void;
|
|
2
|
-
export declare function messageInfo(text: string, timeout?: number): void;
|
|
3
|
-
export declare function messageSuccess(text: string, timeout?: number): void;
|
|
4
|
-
export declare function messageWarning(text: string, timeout?: number): void;
|
package/dist/utils/misc.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Emitter, EventType } from 'mitt';
|
|
2
|
-
export declare const globalObjects: {
|
|
3
|
-
router: any;
|
|
4
|
-
i18n: any;
|
|
5
|
-
};
|
|
6
|
-
export declare const eventBus: Emitter<Record<EventType, unknown>>;
|
|
7
|
-
export declare function waitMs(ms: number): Promise<void>;
|
|
8
|
-
export declare function waitUtil(conditionFunc: () => boolean, timeout?: number, interval?: number): Promise<boolean>;
|
|
9
|
-
export declare function appAppear(name: string, forward: boolean): void;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
export declare enum Permission {
|
|
2
|
-
list_app_group = "list_app_group",
|
|
3
|
-
create_app_group = "create_app_group",
|
|
4
|
-
delete_app_group = "delete_app_group",
|
|
5
|
-
update_app_group = "update_app_group",
|
|
6
|
-
arrange_app_group = "arrange_app_group",
|
|
7
|
-
list_app = "list_app",
|
|
8
|
-
get_app = "get_app",
|
|
9
|
-
create_app = "create_app",
|
|
10
|
-
delete_app = "delete_app",
|
|
11
|
-
update_app = "update_app",
|
|
12
|
-
list_app_release = "list_app_release",
|
|
13
|
-
get_app_release = "get_app_release",
|
|
14
|
-
create_app_release = "create_app_release",
|
|
15
|
-
delete_app_release = "delete_app_release",
|
|
16
|
-
deploy_app_release = "deploy_app_release",
|
|
17
|
-
open_app_layer = "open_app_layer",
|
|
18
|
-
open_app = "open_app",
|
|
19
|
-
list_compute_space = "list_compute_space",
|
|
20
|
-
get_compute_space = "get_compute_space",
|
|
21
|
-
create_compute_space = "create_compute_space",
|
|
22
|
-
delete_compute_space = "delete_compute_space",
|
|
23
|
-
update_compute_space = "update_compute_space",
|
|
24
|
-
arrange_compute_space = "arrange_compute_space",
|
|
25
|
-
list_func_group = "list_func_group",
|
|
26
|
-
create_func_group = "create_func_group",
|
|
27
|
-
delete_func_group = "delete_func_group",
|
|
28
|
-
update_func_group = "update_func_group",
|
|
29
|
-
arrange_func_group = "arrange_func_group",
|
|
30
|
-
list_func = "list_func",
|
|
31
|
-
get_func = "get_func",
|
|
32
|
-
create_func = "create_func",
|
|
33
|
-
delete_func = "delete_func",
|
|
34
|
-
update_func = "update_func",
|
|
35
|
-
debug_func = "debug_func",
|
|
36
|
-
call_func = "call_func",
|
|
37
|
-
list_func_release = "list_func_release",
|
|
38
|
-
get_func_release = "get_func_release",
|
|
39
|
-
create_func_release = "create_func_release",
|
|
40
|
-
delete_func_release = "delete_func_release",
|
|
41
|
-
deploy_func_release = "deploy_func_release",
|
|
42
|
-
list_flow_group = "list_flow_group",
|
|
43
|
-
create_flow_group = "create_flow_group",
|
|
44
|
-
delete_flow_group = "delete_flow_group",
|
|
45
|
-
update_flow_group = "update_flow_group",
|
|
46
|
-
arrange_flow_group = "arrange_flow_group",
|
|
47
|
-
list_flow = "list_flow",
|
|
48
|
-
get_flow = "get_flow",
|
|
49
|
-
create_flow = "create_flow",
|
|
50
|
-
delete_flow = "delete_flow",
|
|
51
|
-
update_flow = "update_flow",
|
|
52
|
-
debug_flow = "debug_flow",
|
|
53
|
-
call_flow = "call_flow",
|
|
54
|
-
list_flow_release = "list_flow_release",
|
|
55
|
-
get_flow_release = "get_flow_release",
|
|
56
|
-
create_flow_release = "create_flow_release",
|
|
57
|
-
delete_flow_release = "delete_flow_release",
|
|
58
|
-
deploy_flow_release = "deploy_flow_release",
|
|
59
|
-
list_task = "list_task",
|
|
60
|
-
get_task = "get_task",
|
|
61
|
-
create_task = "create_task",
|
|
62
|
-
delete_task = "delete_task",
|
|
63
|
-
update_task = "update_task",
|
|
64
|
-
call_task = "call_task",
|
|
65
|
-
open_compute_layer = "open_compute_layer",
|
|
66
|
-
list_data_space = "list_data_space",
|
|
67
|
-
get_data_space = "get_data_space",
|
|
68
|
-
create_data_space = "create_data_space",
|
|
69
|
-
delete_data_space = "delete_data_space",
|
|
70
|
-
update_data_space = "update_data_space",
|
|
71
|
-
arrange_data_space = "arrange_data_space",
|
|
72
|
-
list_table_group = "list_table_group",
|
|
73
|
-
create_table_group = "create_table_group",
|
|
74
|
-
delete_table_group = "delete_table_group",
|
|
75
|
-
update_table_group = "update_table_group",
|
|
76
|
-
arrange_table_group = "arrange_table_group",
|
|
77
|
-
list_table = "list_table",
|
|
78
|
-
get_table = "get_table",
|
|
79
|
-
create_table = "create_table",
|
|
80
|
-
delete_table = "delete_table",
|
|
81
|
-
update_table = "update_table",
|
|
82
|
-
get_data = "get_data",
|
|
83
|
-
create_data = "create_data",
|
|
84
|
-
delete_data = "delete_data",
|
|
85
|
-
update_data = "update_data",
|
|
86
|
-
get_relation_graph = "get_relation_graph",
|
|
87
|
-
update_relation_graph = "update_relation_graph",
|
|
88
|
-
list_change = "list_change",
|
|
89
|
-
apply_change = "apply_change",
|
|
90
|
-
open_data_layer = "open_data_layer",
|
|
91
|
-
list_resource_space = "list_resource_space",
|
|
92
|
-
get_resource_space = "get_resource_space",
|
|
93
|
-
create_resource_space = "create_resource_space",
|
|
94
|
-
delete_resource_space = "delete_resource_space",
|
|
95
|
-
update_resource_space = "update_resource_space",
|
|
96
|
-
arrange_resource_space = "arrange_resource_space",
|
|
97
|
-
list_dir = "list_dir",
|
|
98
|
-
create_dir = "create_dir",
|
|
99
|
-
delete_dir = "delete_dir",
|
|
100
|
-
update_dir = "update_dir",
|
|
101
|
-
move_dir = "move_dir",
|
|
102
|
-
list_resource = "list_resource",
|
|
103
|
-
get_resource = "get_resource",
|
|
104
|
-
create_resource = "create_resource",
|
|
105
|
-
delete_resource = "delete_resource",
|
|
106
|
-
update_resource = "update_resource",
|
|
107
|
-
move_resource = "move_resource",
|
|
108
|
-
open_resource_layer = "open_resource_layer",
|
|
109
|
-
list_org_member = "list_org_member",
|
|
110
|
-
add_org_member = "add_org_member",
|
|
111
|
-
remove_org_member = "remove_org_member",
|
|
112
|
-
update_org_member = "update_org_member",
|
|
113
|
-
list_org_role_group = "list_org_role_group",
|
|
114
|
-
create_org_role_group = "create_org_role_group",
|
|
115
|
-
delete_org_role_group = "delete_org_role_group",
|
|
116
|
-
update_org_role_group = "update_org_role_group",
|
|
117
|
-
arrange_org_role_group = "arrange_org_role_group",
|
|
118
|
-
list_org_role = "list_org_role",
|
|
119
|
-
get_org_role = "get_org_role",
|
|
120
|
-
create_org_role = "create_org_role",
|
|
121
|
-
delete_org_role = "delete_org_role",
|
|
122
|
-
update_org_role = "update_org_role",
|
|
123
|
-
get_org_structure = "get_org_structure",
|
|
124
|
-
update_org_structure = "update_org_structure",
|
|
125
|
-
filter_table = "filter_table"
|
|
126
|
-
}
|
|
127
|
-
type InstanceTree = {
|
|
128
|
-
[key: string]: InstanceTree;
|
|
129
|
-
};
|
|
130
|
-
type PermissionObject = {
|
|
131
|
-
includes: InstanceTree;
|
|
132
|
-
excludes: InstanceTree;
|
|
133
|
-
};
|
|
134
|
-
export type PermissionObjects = {
|
|
135
|
-
[key: string]: PermissionObject;
|
|
136
|
-
};
|
|
137
|
-
export declare function isExist(instanceTree: InstanceTree | undefined, instance: string): boolean;
|
|
138
|
-
export declare function verifyPermission(permissionObjects: PermissionObjects, permission: Permission, instance: string): boolean;
|
|
139
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { PermissionObjects } from './permission';
|
|
3
|
-
export declare function provideDark(dark: Ref<boolean>): void;
|
|
4
|
-
export declare function injectDark(): Ref<boolean>;
|
|
5
|
-
export declare function provideLocale(locale: Ref<string>): void;
|
|
6
|
-
export declare function injectLocale(): Ref<string>;
|
|
7
|
-
export declare function providePermissionObjects(permissionObjects: Ref<PermissionObjects>): void;
|
|
8
|
-
export declare function injectPermissionObjects(): Ref<PermissionObjects>;
|
|
9
|
-
export declare function providePermissionChecksum(permissionChecksum: Ref<string>): void;
|
|
10
|
-
export declare function injectPermissionChecksum(): Ref<string>;
|
|
11
|
-
export declare function provideLastAppPath(lastAppPath: Ref<string>): void;
|
|
12
|
-
export declare function injectLastAppPath(): Ref<string>;
|
|
13
|
-
export declare function provideViews(views: Ref<string[]>): void;
|
|
14
|
-
export declare function injectViews(): Ref<string[]>;
|
package/dist/utils/router.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RouteLocationNormalized } from 'vue-router';
|
|
2
|
-
interface RouteMeta {
|
|
3
|
-
app: 'x-app-mf' | 'x-compute-mf' | 'x-data-mf' | 'x-main-mf' | 'x-mine-mf' | 'x-org-mf' | 'x-passport-mf' | 'x-resource-mf';
|
|
4
|
-
path: string;
|
|
5
|
-
level: number;
|
|
6
|
-
requiredState?: 'auth' | 'org';
|
|
7
|
-
mainActive?: 1 | 2 | 3 | 4;
|
|
8
|
-
}
|
|
9
|
-
export declare function matchRouteMeta(path: string): RouteMeta | undefined;
|
|
10
|
-
export declare const routeTransName: import("vue").Ref<string, string>;
|
|
11
|
-
export declare function onBeforeEach(to: RouteLocationNormalized, from: RouteLocationNormalized, lastAppPath: string): {
|
|
12
|
-
path: string;
|
|
13
|
-
} | undefined;
|
|
14
|
-
export {};
|
package/dist/utils/type.d.ts
DELETED
package/dist/utils/viewMgr.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
export declare function isEmpty(views: Ref<string[]>): boolean;
|
|
3
|
-
export declare function lastView(views: Ref<string[]>): string | undefined;
|
|
4
|
-
export declare function hasView(views: Ref<string[]>, name: string): boolean;
|
|
5
|
-
export declare function addView(views: Ref<string[]>, name: string): void;
|
|
6
|
-
export declare function delView(views: Ref<string[]>, name: string): void;
|
|
7
|
-
export declare function popView(views: Ref<string[]>): void;
|
|
8
|
-
export declare function clearViews(views: Ref<string[]>): void;
|