halo-fe 1.0.17 → 1.0.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +1855 -1777
- package/esm/coms/Code.vue.d.ts +41 -0
- package/esm/coms/Col.vue.d.ts +11 -0
- package/esm/coms/Compare.vue.d.ts +40 -0
- package/esm/coms/Container.vue.d.ts +23 -0
- package/esm/coms/RichText.vue.d.ts +24 -0
- package/esm/coms/Row.vue.d.ts +21 -0
- package/esm/coms/types/CodeEmit.d.ts +23 -0
- package/esm/coms/types/CodeProps.d.ts +18 -0
- package/esm/coms/types/RichTextOptions.d.ts +14 -0
- package/esm/coms/types/RichTextProps.d.ts +12 -0
- package/esm/coms/types/RowProps.d.ts +14 -0
- package/esm/drivers/IDriver.d.ts +10 -0
- package/esm/drivers/cdns/Cdn.d.ts +2 -2
- package/esm/drivers/cdns/implements/BootCdn.d.ts +12 -0
- package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +15 -0
- package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +21 -0
- package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +12 -0
- package/esm/drivers/factories/DriverFactory.d.ts +64 -0
- package/esm/drivers/factories/Factory.d.ts +18 -0
- package/esm/drivers/factories/IFactory.d.ts +18 -0
- package/esm/drivers/factories/index.d.ts +42 -0
- package/esm/drivers/providers/implements/StorageHelper.d.ts +34 -0
- package/esm/factorying/Factories.d.ts +5 -0
- package/esm/factorying/Factory.d.ts +1 -0
- package/esm/helpers/ArrayHelper.d.ts +4 -0
- package/esm/helpers/ScriptHelper.d.ts +19 -0
- package/esm/helpers/array-helper.d.ts +97 -0
- package/esm/helpers/component-helper.d.ts +18 -0
- package/esm/helpers/cookie-helper.d.ts +6 -0
- package/esm/helpers/dictionary-helper.d.ts +18 -0
- package/esm/helpers/dom-helper.d.ts +86 -0
- package/esm/helpers/event-helper.d.ts +30 -0
- package/esm/helpers/file-helper.d.ts +22 -0
- package/esm/helpers/html-helper.d.ts +10 -0
- package/esm/helpers/i18n-helper.d.ts +14 -0
- package/esm/helpers/image-helper.d.ts +10 -0
- package/esm/helpers/json-helper.d.ts +39 -0
- package/esm/helpers/math-helper.d.ts +46 -0
- package/esm/helpers/micro-helper.d.ts +10 -0
- package/esm/helpers/mount-helper.d.ts +14 -0
- package/esm/helpers/object-helper.d.ts +38 -0
- package/esm/helpers/script-helper.d.ts +31 -0
- package/esm/helpers/scroll-helper.d.ts +14 -0
- package/esm/helpers/sign-helper.d.ts +14 -0
- package/esm/helpers/storage-helper.d.ts +34 -0
- package/esm/helpers/string-helper.d.ts +94 -0
- package/esm/helpers/task-helper.d.ts +26 -0
- package/esm/helpers/time-helper.d.ts +66 -0
- package/esm/helpers/tree-helper.d.ts +54 -0
- package/esm/helpers/type-helper.d.ts +26 -0
- package/esm/helpers/url-helper.d.ts +96 -0
- package/esm/plugins/HtmlTransform.d.ts +6 -0
- package/esm/plugins/types/IMessager.d.ts +34 -0
- package/esm/plugins/types/index.d.ts +7 -0
- package/esm/services/ConfigService.d.ts +66 -0
- package/esm/services/DriverService.d.ts +36 -0
- package/esm/services/EnvService.d.ts +14 -0
- package/esm/services/LogService.d.ts +19 -0
- package/esm/services/SettingService.d.ts +42 -0
- package/esm/services/SocketService.d.ts +23 -0
- package/esm/services/UserService.d.ts +47 -0
- package/esm/services/index.d.ts +15 -0
- package/esm/services/types/IMessage.d.ts +14 -0
- package/esm/services/types/IMessager.d.ts +34 -0
- package/esm/services/types/index.d.ts +2 -0
- package/esm/servs/ConfigServ.d.ts +66 -0
- package/esm/servs/DriverServ.d.ts +36 -0
- package/esm/servs/EnvServ.d.ts +14 -0
- package/esm/servs/IServ.d.ts +6 -0
- package/esm/servs/LogServ.d.ts +19 -0
- package/esm/servs/Serv.d.ts +4 -0
- package/esm/servs/ServFactory.d.ts +11 -0
- package/esm/servs/SettingServ.d.ts +42 -0
- package/esm/servs/SocketServ.d.ts +38 -0
- package/esm/servs/UserServ.d.ts +47 -0
- package/esm/servs/implement/ConfigServ.d.ts +66 -0
- package/esm/servs/implement/DriverServ.d.ts +36 -0
- package/esm/servs/implement/EnvServ.d.ts +14 -0
- package/esm/servs/implement/LogServ.d.ts +19 -0
- package/esm/servs/implement/SettingServ.d.ts +42 -0
- package/esm/servs/implement/SocketServ.d.ts +38 -0
- package/esm/servs/implement/UserServ.d.ts +47 -0
- package/esm/servs/index.d.ts +15 -0
- package/esm/stores/config.d.ts +63 -0
- package/esm/stores/driver.d.ts +37 -0
- package/esm/stores/env.d.ts +12 -0
- package/esm/stores/index.d.ts +8 -0
- package/esm/stores/log.d.ts +20 -0
- package/esm/stores/setting.d.ts +43 -0
- package/esm/stores/socket.d.ts +27 -0
- package/esm/stores/user.d.ts +40 -0
- package/esm/svcs/SvcFactory.d.ts +4 -3
- package/esm/svcs/entities/AppConfig.d.ts +30 -0
- package/esm/svcs/entities/SysConfig.d.ts +8 -0
- package/esm/svcs/entities/UserConfig.d.ts +7 -0
- package/esm/svcs/entities/index.d.ts +4 -0
- package/esm/svcs/implement/ConfigSvc.d.ts +17 -28
- package/esm/svcs/implement/DriverSvc.d.ts +3 -1
- package/esm/svcs/implement/I18nSvc.d.ts +1 -1
- package/esm/svcs/index.d.ts +2 -1
- package/esm/svcs/types/Dictionary.d.ts +4 -0
- package/esm/svcs/types/index.d.ts +2 -0
- package/esm/types/CreateFeOptions.d.ts +1 -1
- package/esm/types/CreateOptions.d.ts +18 -0
- package/package.json +1 -1
- package/esm/drivers/builders/types/ProviderTable.d.ts +0 -6
- package/esm/drivers/builders/types/index.d.ts +0 -2
@@ -0,0 +1,8 @@
|
|
1
|
+
import useConfigStore from "./config";
|
2
|
+
import useDriverStore from "./driver";
|
3
|
+
import useEnvStore from "./env";
|
4
|
+
import useSettingStore from "./setting";
|
5
|
+
import useLogStore from "./log";
|
6
|
+
import useUserStore from "./user";
|
7
|
+
import useSocketStore from "./socket";
|
8
|
+
export { useConfigStore, useSettingStore, useLogStore, useUserStore, useSocketStore, useDriverStore, useEnvStore };
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/**
|
2
|
+
* 使用日志仓储
|
3
|
+
*/
|
4
|
+
declare let useLogStore: import("pinia").StoreDefinition<"log", {
|
5
|
+
logs: any[];
|
6
|
+
}, {}, {
|
7
|
+
/**
|
8
|
+
* 手动添加日志
|
9
|
+
*/
|
10
|
+
add(code: string, message: string, stack: string, elapsed?: number): void;
|
11
|
+
/**
|
12
|
+
* 删除日志
|
13
|
+
*/
|
14
|
+
remove(index: number): void;
|
15
|
+
/**
|
16
|
+
* 清空日志
|
17
|
+
*/
|
18
|
+
clear(): void;
|
19
|
+
}>;
|
20
|
+
export default useLogStore;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* 使用设置仓储
|
3
|
+
*/
|
4
|
+
declare let useSettingStore: import("pinia").StoreDefinition<"setting", {
|
5
|
+
loaded: boolean;
|
6
|
+
particles: boolean;
|
7
|
+
home: string;
|
8
|
+
background: any;
|
9
|
+
font: string;
|
10
|
+
language: string;
|
11
|
+
layout: string;
|
12
|
+
theme: string;
|
13
|
+
themes: any[];
|
14
|
+
layouts: any[];
|
15
|
+
backgrounds: any[];
|
16
|
+
locales: any[];
|
17
|
+
fonts: any;
|
18
|
+
ssos: any[];
|
19
|
+
size: string;
|
20
|
+
watermark: any;
|
21
|
+
app: string;
|
22
|
+
env: string;
|
23
|
+
/**
|
24
|
+
* 中心库
|
25
|
+
*/
|
26
|
+
central: any;
|
27
|
+
/**
|
28
|
+
* 业务库
|
29
|
+
*/
|
30
|
+
business: any;
|
31
|
+
upload: any;
|
32
|
+
version: any;
|
33
|
+
}, {}, {
|
34
|
+
/**
|
35
|
+
* 系统初始化
|
36
|
+
*/
|
37
|
+
init(): Promise<void>;
|
38
|
+
/**
|
39
|
+
* 加载设置
|
40
|
+
*/
|
41
|
+
loadSetting(): Promise<any>;
|
42
|
+
}>;
|
43
|
+
export default useSettingStore;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/**
|
2
|
+
* 使用实时通信仓储
|
3
|
+
*/
|
4
|
+
declare let useSocketStore: import("pinia").StoreDefinition<"socket", {
|
5
|
+
socket: any;
|
6
|
+
connected: any;
|
7
|
+
reconnect: boolean;
|
8
|
+
handler: any;
|
9
|
+
}, {}, {
|
10
|
+
/**
|
11
|
+
* 登录后,连接Socket
|
12
|
+
*/
|
13
|
+
connect(): Promise<void>;
|
14
|
+
/**
|
15
|
+
* 订阅并替换Socket事件处理程序
|
16
|
+
*/
|
17
|
+
subscribe(handler?: (event: MessageEvent) => void): void;
|
18
|
+
/**
|
19
|
+
* 取消订阅Socket事件处理程序,防止内存泄漏
|
20
|
+
*/
|
21
|
+
unsubscribe(): void;
|
22
|
+
/**
|
23
|
+
* 退出时断开连接
|
24
|
+
*/
|
25
|
+
disconnect(): void;
|
26
|
+
}>;
|
27
|
+
export default useSocketStore;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* 使用用户仓储
|
3
|
+
*/
|
4
|
+
declare const useUserStore: import("pinia").StoreDefinition<"user", {
|
5
|
+
user: any;
|
6
|
+
menus: any;
|
7
|
+
menusFlat: any;
|
8
|
+
debugger: any;
|
9
|
+
env: any;
|
10
|
+
}, {}, {
|
11
|
+
/**
|
12
|
+
* 获取本地缓存中的用户信息;好处:即使手动更改storage数据,也可以里面获取到
|
13
|
+
*/
|
14
|
+
getSso(): Promise<any>;
|
15
|
+
/**
|
16
|
+
* 登录后,获取用户信息
|
17
|
+
*/
|
18
|
+
loadInfo(): Promise<any>;
|
19
|
+
/**
|
20
|
+
* 通过完整url和请求体,获取授权头
|
21
|
+
*/
|
22
|
+
getAuth(url: string, body?: string): Promise<string>;
|
23
|
+
/**
|
24
|
+
* 未登录,获取匿名登录信息
|
25
|
+
*/
|
26
|
+
getAnonymous(): void;
|
27
|
+
/**
|
28
|
+
* 根据路径获取路由
|
29
|
+
*/
|
30
|
+
getMenuByUrl(url: string): any;
|
31
|
+
/**
|
32
|
+
* 加载服务端路由
|
33
|
+
*/
|
34
|
+
loadMenus(): Promise<any>;
|
35
|
+
/**
|
36
|
+
* 退出登录
|
37
|
+
*/
|
38
|
+
logout(): Promise<void>;
|
39
|
+
}>;
|
40
|
+
export default useUserStore;
|
package/esm/svcs/SvcFactory.d.ts
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
import Factory from "../factorying/Factory";
|
2
2
|
import ISvc from "./ISvc";
|
3
|
+
import ConfigSvc from "./implement/ConfigSvc";
|
3
4
|
/**
|
4
5
|
* 服务工厂类
|
5
6
|
*/
|
6
7
|
declare class SvcFactory extends Factory<ISvc> {
|
7
|
-
|
8
|
+
open(): void;
|
8
9
|
static(): void;
|
9
10
|
/**
|
10
|
-
*
|
11
|
+
* 获取配置服务
|
11
12
|
*/
|
12
|
-
|
13
|
+
getConfig(): Promise<ConfigSvc>;
|
13
14
|
}
|
14
15
|
export default SvcFactory;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* 用户配置
|
3
|
+
*/
|
4
|
+
declare class AppConfig {
|
5
|
+
/**
|
6
|
+
* 默认背景
|
7
|
+
*/
|
8
|
+
background: string;
|
9
|
+
/**
|
10
|
+
* 当前主题
|
11
|
+
*/
|
12
|
+
theme: string;
|
13
|
+
/**
|
14
|
+
* 当前布局方式
|
15
|
+
*/
|
16
|
+
layout: string;
|
17
|
+
/**
|
18
|
+
* 当前语言
|
19
|
+
*/
|
20
|
+
language: string;
|
21
|
+
/**
|
22
|
+
* 字体
|
23
|
+
*/
|
24
|
+
font: string;
|
25
|
+
/**
|
26
|
+
* 默认cdn
|
27
|
+
*/
|
28
|
+
cdn: string;
|
29
|
+
}
|
30
|
+
export default AppConfig;
|
@@ -1,31 +1,15 @@
|
|
1
|
+
import { IDictionary } from "../types";
|
2
|
+
import { SysConfig, UserConfig } from "../entities";
|
3
|
+
import Svc from "../Svc";
|
1
4
|
/**
|
2
5
|
* 不一定跟用户相关,此时如果使用配置仓储,使用的是配置文件的配置,非接口配置
|
3
6
|
*/
|
4
|
-
declare class ConfigSvc {
|
7
|
+
declare class ConfigSvc extends Svc implements IDictionary {
|
8
|
+
type: string;
|
5
9
|
/**
|
6
|
-
*
|
10
|
+
* 用户系统配置
|
7
11
|
*/
|
8
|
-
|
9
|
-
/**
|
10
|
-
* 当前主题
|
11
|
-
*/
|
12
|
-
theme: string;
|
13
|
-
/**
|
14
|
-
* 当前布局方式
|
15
|
-
*/
|
16
|
-
layout: string;
|
17
|
-
/**
|
18
|
-
* 当前语言
|
19
|
-
*/
|
20
|
-
language: string;
|
21
|
-
/**
|
22
|
-
* 字体
|
23
|
-
*/
|
24
|
-
font: string;
|
25
|
-
/**
|
26
|
-
* 默认cdn
|
27
|
-
*/
|
28
|
-
cdn: string;
|
12
|
+
sys: SysConfig;
|
29
13
|
/**
|
30
14
|
* 文件布局方式
|
31
15
|
*/
|
@@ -43,10 +27,11 @@ declare class ConfigSvc {
|
|
43
27
|
*/
|
44
28
|
completions: {};
|
45
29
|
};
|
30
|
+
open(): void;
|
46
31
|
/**
|
47
32
|
* 初始化配置值(不一定跟登录用户相关,这也是单独分离的好处)
|
48
33
|
*/
|
49
|
-
|
34
|
+
bind(configs: UserConfig[]): Promise<void>;
|
50
35
|
/**
|
51
36
|
* 尝试添加架构
|
52
37
|
*/
|
@@ -54,23 +39,27 @@ declare class ConfigSvc {
|
|
54
39
|
/**
|
55
40
|
* 获取本地配置
|
56
41
|
*/
|
57
|
-
|
42
|
+
get(kind: string, type: string): Promise<any>;
|
58
43
|
/**
|
59
44
|
* 设置背景
|
60
45
|
*/
|
61
46
|
setBackground(background: string): void;
|
47
|
+
/**
|
48
|
+
* 保存用户应用配置
|
49
|
+
*/
|
50
|
+
saveApp(form: any): Promise<void>;
|
62
51
|
/**
|
63
52
|
* 加载用户配置
|
64
53
|
*/
|
65
|
-
|
54
|
+
load(kind: string, type: string, cached?: boolean): Promise<any>;
|
66
55
|
/**
|
67
56
|
* 全量保存用户配置
|
68
57
|
*/
|
69
|
-
|
58
|
+
save(kind: string, type: string, data: any, cached?: boolean): Promise<boolean>;
|
70
59
|
/**
|
71
60
|
* 部分保存用户配置
|
72
61
|
*/
|
73
|
-
|
62
|
+
patch(kind: string, type: string, pairs: any): Promise<boolean>;
|
74
63
|
/**
|
75
64
|
* 获取当前语言
|
76
65
|
*/
|
package/esm/svcs/index.d.ts
CHANGED
@@ -14,6 +14,7 @@ declare let configSvc: ConfigSvc;
|
|
14
14
|
* 包装配置服务,保证驱动服务具有响应式,并且不需.value后缀
|
15
15
|
*/
|
16
16
|
declare let driverSvc: {
|
17
|
+
type: string;
|
17
18
|
loaded: {
|
18
19
|
apps: boolean;
|
19
20
|
envs: boolean;
|
@@ -67,5 +68,5 @@ export * from "./implement";
|
|
67
68
|
/**
|
68
69
|
* 提取可导出的翻译方法,当i18nSvc实例变化后,导出的方案会跟着变化?
|
69
70
|
*/
|
70
|
-
declare let t: (key: string, params?: any
|
71
|
+
declare let t: (key: string, params?: any) => any, t_exists: (key: any) => any, t_sys: (key: string) => any, t_enum: (name: string, value: string) => any, t_field: (table: string, field: string) => any, t_field_choose_placeholder: (table: string, field: string) => any, t_field_placeholder: (table: string, field: string) => any, t_table: (table: string) => any, t_module: (type: string, key: string) => string, t_menu: (key: string) => any;
|
71
72
|
export { initSvc, configSvc, driverSvc, envSvc, i18nSvc, logSvc, settingSvc, socketSvc, userSvc, t, t_exists, t_sys, t_enum, t_field, t_field_choose_placeholder, t_field_placeholder, t_table, t_module, t_menu, SvcFactory };
|
package/package.json
CHANGED