halo-fe 1.0.25 → 1.0.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. package/README.md +3 -1
  2. package/dist/assets/{liquidjs-B8dqQyVv.js → liquidjs-C2HVw1Ra.js} +82 -81
  3. package/dist/main.js +3562 -3070
  4. package/dist/style.css +1 -1
  5. package/esm/coms/@types/PagerEmit.d.ts +11 -0
  6. package/esm/coms/@types/PagerProps.d.ts +18 -0
  7. package/esm/coms/@types/SocketProgressProps.d.ts +16 -0
  8. package/esm/coms/@types/TableEmit.d.ts +10 -0
  9. package/esm/coms/@types/TableProps.d.ts +14 -2
  10. package/esm/coms/@types/index.d.ts +4 -1
  11. package/esm/coms/controls/@types/CodeIntelli.d.ts +6 -0
  12. package/esm/coms/controls/@types/CodeProps.d.ts +31 -2
  13. package/esm/coms/controls/@types/Range.d.ts +1 -1
  14. package/esm/coms/controls/Code.vue.d.ts +15 -25
  15. package/esm/coms/index.d.ts +1 -0
  16. package/esm/coms/layouts/Row.vue.d.ts +7 -2
  17. package/esm/coms/pagers/Index.vue.d.ts +8 -1
  18. package/esm/coms/pagers/index.d.ts +2 -2
  19. package/esm/coms/progresses/Circle.vue.d.ts +2 -0
  20. package/esm/coms/progresses/Index.vue.d.ts +6 -3
  21. package/esm/coms/progresses/Spinner.vue.d.ts +20 -0
  22. package/esm/coms/progresses/index.d.ts +2 -1
  23. package/esm/coms/tables/Index.vue.d.ts +22 -3
  24. package/esm/coms/texts/@types/DanceProps.d.ts +14 -0
  25. package/esm/coms/texts/@types/index.d.ts +2 -0
  26. package/esm/coms/texts/Dance.vue.d.ts +5 -0
  27. package/esm/coms/texts/index.d.ts +2 -0
  28. package/esm/drivers/@types/IOpen.d.ts +1 -1
  29. package/esm/drivers/builders/BuilderFactory.d.ts +1 -1
  30. package/esm/drivers/cdns/Cdn.d.ts +1 -1
  31. package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
  32. package/esm/drivers/cdns/ICdn.d.ts +2 -6
  33. package/esm/drivers/encoders/Encoder.d.ts +1 -1
  34. package/esm/drivers/encoders/EncoderFactory.d.ts +2 -2
  35. package/esm/drivers/encoders/IEncoder.d.ts +2 -5
  36. package/esm/drivers/encoders/implement/Base64Encoder.d.ts +1 -1
  37. package/esm/drivers/excels/Excel.d.ts +1 -1
  38. package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
  39. package/esm/drivers/excels/implements/XlsxExcel.d.ts +1 -1
  40. package/esm/drivers/explainers/ExplainerFactory.d.ts +2 -2
  41. package/esm/drivers/features/FeatureFactory.d.ts +2 -2
  42. package/esm/drivers/features/IFeature.d.ts +2 -6
  43. package/esm/drivers/features/implements/ExpressionFeature.d.ts +1 -1
  44. package/esm/drivers/features/implements/I18NFeature.d.ts +1 -1
  45. package/esm/drivers/features/implements/SortFeature.d.ts +1 -1
  46. package/esm/drivers/hashers/Hasher.d.ts +1 -1
  47. package/esm/drivers/hashers/HasherFactory.d.ts +2 -2
  48. package/esm/drivers/hashers/IHasher.d.ts +2 -5
  49. package/esm/drivers/hashers/implement/Md5Hasher.d.ts +1 -1
  50. package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
  51. package/esm/drivers/https/Http.d.ts +11 -7
  52. package/esm/drivers/https/HttpFactory.d.ts +2 -7
  53. package/esm/drivers/https/IHttp.d.ts +12 -12
  54. package/esm/drivers/https/entities/HttpResponse.d.ts +5 -1
  55. package/esm/drivers/https/implements/DefaultHttp.d.ts +1 -1
  56. package/esm/drivers/https/implements/FeiShuHttp.d.ts +8 -0
  57. package/esm/drivers/https/implements/HaloHttp.d.ts +1 -1
  58. package/esm/drivers/https/implements/MkHttp.d.ts +1 -1
  59. package/esm/drivers/i18ns/I18n.d.ts +2 -2
  60. package/esm/drivers/i18ns/I18nFactory.d.ts +1 -1
  61. package/esm/drivers/i18ns/II18n.d.ts +1 -1
  62. package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +2 -2
  63. package/esm/drivers/index.d.ts +50 -0
  64. package/esm/drivers/messengers/MessengerFactory.d.ts +2 -2
  65. package/esm/drivers/providers/IProvider.d.ts +19 -15
  66. package/esm/drivers/providers/Provider.d.ts +11 -9
  67. package/esm/drivers/providers/ProviderFactory.d.ts +5 -9
  68. package/esm/drivers/providers/implements/CookieProvider.d.ts +8 -8
  69. package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +20 -10
  70. package/esm/drivers/providers/implements/StorageProvider.d.ts +8 -8
  71. package/esm/drivers/signers/ISigner.d.ts +1 -1
  72. package/esm/drivers/signers/Signer.d.ts +1 -1
  73. package/esm/drivers/signers/SignerFactory.d.ts +2 -2
  74. package/esm/drivers/signers/implements/DefaultSigner.d.ts +1 -1
  75. package/esm/drivers/sockets/@types/SubscribedWindow.d.ts +16 -0
  76. package/esm/drivers/sockets/@types/index.d.ts +2 -0
  77. package/esm/drivers/sockets/ISocket.d.ts +7 -3
  78. package/esm/drivers/sockets/Socket.d.ts +10 -1
  79. package/esm/drivers/sockets/SocketFactory.d.ts +1 -1
  80. package/esm/drivers/sockets/entities/SocketProgress.d.ts +34 -0
  81. package/esm/drivers/sockets/entities/SocketResponse.d.ts +42 -0
  82. package/esm/drivers/sockets/entities/index.d.ts +3 -0
  83. package/esm/drivers/sockets/implement/DefaultSocket.d.ts +0 -2
  84. package/esm/drivers/sockets/index.d.ts +3 -1
  85. package/esm/drivers/ssos/ISso.d.ts +1 -1
  86. package/esm/drivers/ssos/Sso.d.ts +1 -1
  87. package/esm/drivers/ssos/SsoFactory.d.ts +2 -2
  88. package/esm/drivers/ssos/implements/AnonymousSso.d.ts +1 -1
  89. package/esm/drivers/ssos/implements/BearerSso.d.ts +1 -1
  90. package/esm/drivers/ssos/implements/NioSso.d.ts +1 -1
  91. package/esm/drivers/ssos/implements/SecretSso.d.ts +1 -1
  92. package/esm/drivers/ssos/implements/WeiXinSso.d.ts +1 -1
  93. package/esm/drivers/tasks/ITask.d.ts +7 -3
  94. package/esm/drivers/tasks/Task.d.ts +2 -1
  95. package/esm/drivers/tasks/TaskFactory.d.ts +2 -2
  96. package/esm/drivers/tasks/implement/MemoryTask.d.ts +5 -3
  97. package/esm/drivers/templates/ITemplate.d.ts +1 -1
  98. package/esm/drivers/templates/Template.d.ts +1 -1
  99. package/esm/drivers/templates/TemplateFactory.d.ts +2 -2
  100. package/esm/drivers/templates/implement/LiquidTemplate.d.ts +1 -1
  101. package/esm/drivers/util/UtilFactory.d.ts +1 -1
  102. package/esm/drivers/util/implements/ArrayUtil.d.ts +5 -5
  103. package/esm/drivers/util/implements/EventUtil.d.ts +6 -6
  104. package/esm/drivers/util/implements/JsonUtil.d.ts +5 -0
  105. package/esm/drivers/util/implements/ObjectUtil.d.ts +1 -1
  106. package/esm/drivers/util/implements/SignUtil.d.ts +1 -1
  107. package/esm/drivers/util/implements/StringUtil.d.ts +1 -1
  108. package/esm/drivers/util/implements/TimeUtil.d.ts +1 -1
  109. package/esm/drivers/utilities/IUtility.d.ts +3 -0
  110. package/esm/drivers/utilities/Utility.d.ts +3 -0
  111. package/esm/drivers/utilities/UtilityFactory.d.ts +6 -6
  112. package/esm/drivers/utilities/implement/EventUtility.d.ts +3 -6
  113. package/esm/drivers/utilities/implement/SaveUtility.d.ts +48 -3
  114. package/esm/drivers/videos/VideoFactory.d.ts +2 -2
  115. package/esm/drivers/voices/VoiceFactory.d.ts +2 -2
  116. package/esm/factory/Factories.d.ts +99 -0
  117. package/esm/factory/Factory.d.ts +41 -0
  118. package/esm/factory/IFactory.d.ts +40 -0
  119. package/esm/factory/Utils.d.ts +29 -0
  120. package/esm/factory/index.d.ts +4 -0
  121. package/esm/factorying/Factory.d.ts +3 -3
  122. package/esm/factorying/IFactory.d.ts +1 -1
  123. package/esm/main.d.ts +1 -2
  124. package/esm/repos/Repo.d.ts +5 -0
  125. package/esm/repos/RepoFactory.d.ts +20 -1
  126. package/esm/repos/entities/KeyboardType.d.ts +8 -0
  127. package/esm/repos/entities/index.d.ts +2 -0
  128. package/esm/repos/implements/ModuleRepo.d.ts +36 -0
  129. package/esm/repos/implements/PageRepo.d.ts +30 -0
  130. package/esm/repos/implements/QueryRepo.d.ts +64 -0
  131. package/esm/repos/implements/SettingRepo.d.ts +1 -0
  132. package/esm/repos/index.d.ts +11 -1
  133. package/esm/svcs/SvcFactory.d.ts +1 -1
  134. package/esm/svcs/implement/ConfigSvc.d.ts +9 -9
  135. package/esm/svcs/implement/DriverSvc.d.ts +1 -35
  136. package/esm/svcs/index.d.ts +6 -15
  137. package/package.json +9 -9
@@ -0,0 +1,99 @@
1
+ import { BuilderFactory, CdnFactory, EncoderFactory, ExcelFactory, ExplainerFactory, FeatureFactory, HasherFactory, UtilFactory, I18nFactory, HttpFactory, MessengerFactory, ProviderFactory, SignerFactory, SocketFactory, SsoFactory, TaskFactory, TemplateFactory, UtilityFactory } from "../drivers";
2
+ import { RepoFactory } from "../repos";
3
+ import { SvcFactory } from "../svcs";
4
+ /**
5
+ * 驱动工厂类
6
+ */
7
+ declare class Factories {
8
+ /**
9
+ * 工厂缓存
10
+ */
11
+ static created: {
12
+ [key: string]: any;
13
+ };
14
+ /**
15
+ * Builder工厂
16
+ */
17
+ static get builder(): BuilderFactory;
18
+ /**
19
+ * CDN工厂
20
+ */
21
+ static get cdn(): CdnFactory;
22
+ /**
23
+ * 编码器工厂
24
+ */
25
+ static get encoder(): EncoderFactory;
26
+ /**
27
+ * Excel工厂
28
+ */
29
+ static get excel(): ExcelFactory;
30
+ /**
31
+ * Explainer工厂
32
+ */
33
+ static get explainer(): ExplainerFactory;
34
+ /**
35
+ * 特征工厂
36
+ */
37
+ static get feature(): FeatureFactory;
38
+ /**
39
+ * 哈希工厂
40
+ */
41
+ static get hasher(): HasherFactory;
42
+ /**
43
+ * Http请求工厂
44
+ */
45
+ static get http(): HttpFactory;
46
+ /**
47
+ * 多语言工厂
48
+ */
49
+ static get i18n(): I18nFactory;
50
+ /**
51
+ * 消息提示请求工厂
52
+ */
53
+ static get messenger(): MessengerFactory;
54
+ /**
55
+ * 提供程序工厂
56
+ */
57
+ static get provider(): ProviderFactory;
58
+ /**
59
+ * 签名工厂
60
+ */
61
+ static get signer(): SignerFactory;
62
+ /**
63
+ * 通信工厂
64
+ */
65
+ static get socket(): SocketFactory;
66
+ /**
67
+ * SSO工厂
68
+ */
69
+ static get sso(): SsoFactory;
70
+ /**
71
+ * Task工厂
72
+ */
73
+ static get task(): TaskFactory;
74
+ /**
75
+ * 模板工厂
76
+ */
77
+ static get template(): TemplateFactory;
78
+ /**
79
+ * 工具工厂
80
+ */
81
+ static get util(): UtilFactory;
82
+ /**
83
+ * 工具类工厂
84
+ */
85
+ static get utility(): UtilityFactory;
86
+ /**
87
+ * 仓储工厂
88
+ */
89
+ static get repo(): RepoFactory;
90
+ /**
91
+ * 服务工厂
92
+ */
93
+ static get svc(): SvcFactory;
94
+ /**
95
+ * 创建并缓存工厂实例
96
+ */
97
+ static create<T>(type: any): T;
98
+ }
99
+ export default Factories;
@@ -0,0 +1,41 @@
1
+ import IFactory from "./IFactory";
2
+ import { IDriver } from "../drivers";
3
+ import { Ref } from "../plugins";
4
+ /**
5
+ * 工厂基类
6
+ */
7
+ declare abstract class Factory<T extends IDriver> implements IFactory<T> {
8
+ /**
9
+ * 当前驱动所有类型,用于使用时实例化
10
+ */
11
+ types: any[];
12
+ /**
13
+ * 实例缓存集合
14
+ * 或者使用:Record<string, string>
15
+ */
16
+ private created;
17
+ open(): void;
18
+ register(type: any): void;
19
+ /**
20
+ * 根据主键创建并开启驱动,并返回加载后的驱动信息
21
+ */
22
+ createByIdAsync: (id: number, driverRef?: Ref<any>) => Promise<T>;
23
+ createWithCache(type: string, name?: string, open?: (entity: T) => void): T;
24
+ /**
25
+ * 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
26
+ */
27
+ createWithCacheAsync(type?: string, open?: (entity: T) => Promise<void>): Promise<T>;
28
+ /**
29
+ * 异步创建指定类型驱动
30
+ */
31
+ createAsync(type: string): Promise<T>;
32
+ /**
33
+ * 创建指定类型驱动
34
+ */
35
+ create(type: string): T;
36
+ /**
37
+ * 加载驱动明细
38
+ */
39
+ loadDriverAsync(id: number): Promise<any>;
40
+ }
41
+ export default Factory;
@@ -0,0 +1,40 @@
1
+ import { Ref } from "../plugins";
2
+ /**
3
+ * 工厂接口
4
+ */
5
+ interface IFactory<T> {
6
+ /**
7
+ * 当前驱动所有类型,用于使用时实例化
8
+ */
9
+ get types(): any[];
10
+ /**
11
+ * 开启工厂
12
+ */
13
+ open(): void;
14
+ /**
15
+ * 注册新类型
16
+ */
17
+ register(type: any): any;
18
+ /**
19
+ * 根据主键创建驱动,并返回加载后的驱动信息
20
+ */
21
+ createByIdAsync(id: number, driverRef?: Ref<any>): Promise<T>;
22
+ /**
23
+ * 从缓存中获取指定类型的驱动,不存在则创建,用于Helper类等简单类型
24
+ * 可以定义名称,实现同一类型,按照不同场景各自进行缓存
25
+ */
26
+ createWithCache(type: string, name?: string, open?: (entity: T) => void): T;
27
+ /**
28
+ * 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
29
+ */
30
+ createWithCacheAsync(type: string, open?: (entity: T) => Promise<void>): Promise<T>;
31
+ /**
32
+ * 异步创建指定类型驱动
33
+ */
34
+ createAsync(type: string): Promise<T>;
35
+ /**
36
+ * 创建指定类型的实例
37
+ */
38
+ create(type: string): T;
39
+ }
40
+ export default IFactory;
@@ -0,0 +1,29 @@
1
+ import { ArrayUtil, ComponentUtil, DomUtil, DictionaryUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, MathUtil, MountUtil, ObjectUtil, MicroUtil, StringUtil, TaskUtil, TypeUtil, TimeUtil, TreeUtil, ScrollUtil, JsonUtil, BrowserUtil, UrlUtil, SignUtil } from "../drivers/util";
2
+ /**
3
+ * 工具工厂(无状态)
4
+ */
5
+ declare class Utils {
6
+ static get array(): ArrayUtil;
7
+ static get browser(): BrowserUtil;
8
+ static get component(): ComponentUtil;
9
+ static get dom(): DomUtil;
10
+ static get dictionary(): DictionaryUtil;
11
+ static get event(): EventUtil;
12
+ static get file(): FileUtil;
13
+ static get html(): HtmlUtil;
14
+ static get image(): ImageUtil;
15
+ static get json(): JsonUtil;
16
+ static get math(): MathUtil;
17
+ static get mount(): MountUtil;
18
+ static get object(): ObjectUtil;
19
+ static get micro(): MicroUtil;
20
+ static get scroll(): ScrollUtil;
21
+ static get string(): StringUtil;
22
+ static get task(): TaskUtil;
23
+ static get type(): TypeUtil;
24
+ static get time(): TimeUtil;
25
+ static get tree(): TreeUtil;
26
+ static get url(): UrlUtil;
27
+ static get sign(): SignUtil;
28
+ }
29
+ export default Utils;
@@ -0,0 +1,4 @@
1
+ import Factories from "./Factories";
2
+ import Factory from "./Factory";
3
+ import Utils from "./Utils";
4
+ export { Factories, Factory, Utils };
@@ -25,9 +25,9 @@ declare abstract class Factory<T extends IDriver> implements IFactory<T> {
25
25
  open(): void;
26
26
  register(entity: T): void;
27
27
  /**
28
- * 根据主键创建驱动,并返回加载后的驱动信息
28
+ * 根据主键创建并开启驱动,并返回加载后的驱动信息
29
29
  */
30
- createById(id: number, driverRef?: Ref<any>): Promise<T>;
30
+ createByIdAsync: (id: number, driverRef?: Ref<any>) => Promise<T>;
31
31
  createCache(type: string): T;
32
32
  /**
33
33
  * 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
@@ -44,6 +44,6 @@ declare abstract class Factory<T extends IDriver> implements IFactory<T> {
44
44
  /**
45
45
  * 加载驱动明细
46
46
  */
47
- loadDriver(id: number): Promise<any>;
47
+ loadDriverAsync(id: number): Promise<any>;
48
48
  }
49
49
  export default Factory;
@@ -18,7 +18,7 @@ interface IFactory<T> {
18
18
  /**
19
19
  * 根据主键创建驱动,并返回加载后的驱动信息
20
20
  */
21
- createById(id: number, driverRef?: Ref<any>): Promise<T>;
21
+ createByIdAsync(id: number, driverRef?: Ref<any>): Promise<T>;
22
22
  /**
23
23
  * 从缓存中获取指定类型的驱动,不存在则创建,用于Helper类等简单类型
24
24
  */
package/esm/main.d.ts CHANGED
@@ -3,11 +3,10 @@ import "./styles/index.scss";
3
3
  export * from "./@types";
4
4
  export * from "./coms";
5
5
  export * from "./drivers";
6
- export * from "./factorying";
6
+ export * from "./factory";
7
7
  export * from "./plugins";
8
8
  export * from "./repos";
9
9
  export * from "./svcs";
10
- export * from "./drivers/utilities";
11
10
  /**
12
11
  * 初始化前端基础框架
13
12
  */
@@ -0,0 +1,5 @@
1
+ import IRepo from "./IRepo";
2
+ declare abstract class Repo implements IRepo {
3
+ type: string;
4
+ }
5
+ export default Repo;
@@ -1,5 +1,24 @@
1
- import Factory from "../factorying/Factory";
1
+ import Factory from "../factory/Factory";
2
2
  import IRepo from "./IRepo";
3
+ import ModuleRepo from "./implements/ModuleRepo";
4
+ import QueryRepo from "./implements/QueryRepo";
5
+ import SettingRepo from "./implements/SettingRepo";
6
+ /**
7
+ * 仓储工厂
8
+ */
3
9
  declare class RepoFactory extends Factory<IRepo> {
10
+ open(): void;
11
+ /**
12
+ * 模块仓储
13
+ */
14
+ get module(): ModuleRepo;
15
+ /**
16
+ * 查询仓储
17
+ */
18
+ get query(): QueryRepo;
19
+ /**
20
+ * 设置仓储
21
+ */
22
+ get setting(): SettingRepo;
4
23
  }
5
24
  export default RepoFactory;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 键盘事件类型
3
+ */
4
+ declare enum KeyboardType {
5
+ ctrlS = 0,
6
+ ctrlEnter = 1
7
+ }
8
+ export default KeyboardType;
@@ -0,0 +1,2 @@
1
+ import KeyboardType from "./KeyboardType";
2
+ export { KeyboardType };
@@ -0,0 +1,36 @@
1
+ import Repo from "../Repo";
2
+ import { KeyboardType } from "../entities";
3
+ /**
4
+ * 模块仓储
5
+ */
6
+ declare class ModuleRepo extends Repo {
7
+ type: string;
8
+ /**
9
+ * 获取表的默认行数据
10
+ */
11
+ getDefaultRow: (table: any) => any;
12
+ /**
13
+ * 更新提示内容
14
+ */
15
+ updateTooltipByFields(table: string, row: any, fields: any[]): void;
16
+ /**
17
+ * 展开数据和架构信息
18
+ */
19
+ expandSet: (schema: any[], set: any) => any;
20
+ /**
21
+ * 展开架构信息
22
+ */
23
+ expandSchema(schema: any[], set: {
24
+ [key: string]: any;
25
+ }): any[];
26
+ /**
27
+ * 展开所有数据表的搜索字段信息
28
+ */
29
+ expandSearch(schema: any[]): any[];
30
+ /**
31
+ * 触发键盘事件
32
+ * 统一封装,方便重构
33
+ */
34
+ triggerKeyboardHandler: (ref: any, type: KeyboardType, event: KeyboardEvent) => boolean;
35
+ }
36
+ export default ModuleRepo;
@@ -0,0 +1,30 @@
1
+ import Repo from "../Repo";
2
+ /**
3
+ * 页面仓储
4
+ */
5
+ declare class PageRepo extends Repo {
6
+ type: string;
7
+ /**
8
+ * 获取表的默认行数据
9
+ */
10
+ getDefaultRow: (table: any) => any;
11
+ /**
12
+ * 更新提示内容
13
+ */
14
+ updateTooltipByFields(table: string, row: any, fields: any[]): void;
15
+ /**
16
+ * 展开数据和架构信息
17
+ */
18
+ expandSet: (schema: any[], set: any) => any;
19
+ /**
20
+ * 展开架构信息
21
+ */
22
+ expandSchema(schema: any[], set: {
23
+ [key: string]: any;
24
+ }): any[];
25
+ /**
26
+ * 展开所有数据表的搜索字段信息
27
+ */
28
+ expandSearch(schema: any[]): any[];
29
+ }
30
+ export default PageRepo;
@@ -0,0 +1,64 @@
1
+ import { ITask } from "../../drivers";
2
+ import Repo from "../Repo";
3
+ /**
4
+ * 查询仓储
5
+ */
6
+ declare class QueryRepo extends Repo {
7
+ type: string;
8
+ /**
9
+ * 加载完毕状态记录
10
+ */
11
+ loaded: {
12
+ apps: boolean;
13
+ envs: boolean;
14
+ };
15
+ /**
16
+ * 是否加载中状态,用于并发场景 防止重复拉取接口
17
+ */
18
+ loading: {
19
+ apps: boolean;
20
+ envs: boolean;
21
+ };
22
+ /**
23
+ * 代码语言集合
24
+ */
25
+ codeLanguages: any[];
26
+ /**
27
+ * 驱动程序语言集合
28
+ */
29
+ providerLanguages: any[];
30
+ /**
31
+ * 应用集合,存储到Store中,防止每一个Driver实例重复加载
32
+ */
33
+ apps: any[];
34
+ /**
35
+ * 环境集合,存储到Store中,防止每一个Driver实例重复加载
36
+ */
37
+ envs: any[];
38
+ /**
39
+ * 并发任务管理器
40
+ */
41
+ task: ITask;
42
+ open: () => void;
43
+ /**
44
+ * 加载应用选项
45
+ */
46
+ loadAppsAsync(reload?: boolean): Promise<void>;
47
+ /**
48
+ * 加载环境选项
49
+ */
50
+ loadEnvsAsync(reload?: boolean): Promise<void>;
51
+ /**
52
+ * 加载驱动选项
53
+ */
54
+ loadDriversAsync(app: string, env: string, kind: string): Promise<any[]>;
55
+ /**
56
+ * 查询代码语言和文本语言映射关系
57
+ */
58
+ loadCodeLanguageAsync(reload?: boolean): Promise<any[]>;
59
+ /**
60
+ * 查询驱动程序和文本语言映射关系
61
+ */
62
+ loadDriverLanguageAsync(reload?: boolean): Promise<any[]>;
63
+ }
64
+ export default QueryRepo;
@@ -6,6 +6,7 @@ declare class SettingRepo {
6
6
  * 定义支持键访问
7
7
  */
8
8
  [key: string]: any;
9
+ type: string;
9
10
  constructor();
10
11
  /**
11
12
  * 获取侧边栏宽度
@@ -1,3 +1,13 @@
1
+ import RepoFactory from "./RepoFactory";
2
+ import ModuleRepo from "./implements/ModuleRepo";
3
+ import QueryRepo from "./implements/QueryRepo";
1
4
  import SettingRepo from "./implements/SettingRepo";
5
+ export * from "./entities";
6
+ declare let moduleRepo: ModuleRepo;
7
+ declare let queryRepo: QueryRepo;
2
8
  declare let settingRepo: SettingRepo;
3
- export { settingRepo };
9
+ /**
10
+ * 初始化全局仓储对象
11
+ */
12
+ declare let initRepoAsync: () => Promise<void>;
13
+ export { initRepoAsync, moduleRepo, queryRepo, settingRepo, RepoFactory, };
@@ -1,4 +1,4 @@
1
- import Factory from "../factorying/Factory";
1
+ import Factory from "../factory/Factory";
2
2
  import ISvc from "./ISvc";
3
3
  import ConfigSvc from "./implement/ConfigSvc";
4
4
  /**
@@ -24,9 +24,9 @@ declare class ConfigSvc extends Svc {
24
24
  */
25
25
  schemas: any[];
26
26
  /**
27
- * 智能提示是否注册信息,防止重复注册
27
+ * 全局默认智能提示字典,防止重复注册
28
28
  */
29
- completions: {};
29
+ intelli: {};
30
30
  };
31
31
  /**
32
32
  * 初始化绑定基础配置信息
@@ -35,7 +35,7 @@ declare class ConfigSvc extends Svc {
35
35
  /**
36
36
  * 初始化配置值(不一定跟登录用户相关,这也是单独分离的好处)
37
37
  */
38
- bind: (configs: UserConfig[]) => Promise<void>;
38
+ bindAsync: (configs: UserConfig[]) => Promise<void>;
39
39
  /**
40
40
  * 尝试添加架构
41
41
  */
@@ -43,7 +43,7 @@ declare class ConfigSvc extends Svc {
43
43
  /**
44
44
  * 获取本地配置
45
45
  */
46
- get(kind: string, type: string): Promise<any>;
46
+ getAsync(kind: string, type: string): Promise<any>;
47
47
  /**
48
48
  * 设置背景
49
49
  */
@@ -51,22 +51,22 @@ declare class ConfigSvc extends Svc {
51
51
  /**
52
52
  * 保存用户应用配置
53
53
  */
54
- saveApp(form: any): Promise<void>;
54
+ saveAppAsync(form: any): Promise<void>;
55
55
  /**
56
56
  * 加载用户配置
57
57
  */
58
- load(kind: string, type: string, cached?: boolean): Promise<any>;
58
+ loadAsync(kind: string, type: string, cached?: boolean): Promise<any>;
59
59
  /**
60
60
  * 全量保存用户配置
61
61
  */
62
- save(kind: string, type: string, data: any, cached?: boolean): Promise<boolean>;
62
+ saveAsync(kind: string, type: string, data: any, cached?: boolean): Promise<boolean>;
63
63
  /**
64
64
  * 部分保存用户配置
65
65
  */
66
- patch(kind: string, type: string, pairs: any): Promise<boolean>;
66
+ patchAsync(kind: string, type: string, body: any): Promise<boolean>;
67
67
  /**
68
68
  * 获取当前语言
69
69
  */
70
- getLanguage(): any;
70
+ getLanguage(): string;
71
71
  }
72
72
  export default ConfigSvc;
@@ -4,43 +4,9 @@ import Svc from "../Svc";
4
4
  */
5
5
  declare class DriverSvc extends Svc {
6
6
  type: string;
7
- /**
8
- * 加载完毕状态记录
9
- */
10
- loaded: {
11
- apps: boolean;
12
- envs: boolean;
13
- };
14
- /**
15
- * 是否加载中状态,用于并发场景 防止重复拉取接口
16
- */
17
- loading: {
18
- apps: boolean;
19
- envs: boolean;
20
- };
21
- /**
22
- * 应用集合,存储到Store中,防止每一个Driver实例重复加载
23
- */
24
- apps: any[];
25
- /**
26
- * 环境集合,存储到Store中,防止每一个Driver实例重复加载
27
- */
28
- envs: any[];
29
- /**
30
- * 加载应用选项
31
- */
32
- loadApps(reload?: boolean): Promise<void>;
33
- /**
34
- * 加载环境选项
35
- */
36
- loadEnvs(reload?: boolean): Promise<void>;
37
- /**
38
- * 加载驱动选项
39
- */
40
- loadDrivers(app: string, env: string, kind: string): Promise<any[]>;
41
7
  /**
42
8
  * 加载数据库架构
43
9
  */
44
- loadSchema(id: number, schema: string): Promise<any[]>;
10
+ loadSchemaAsync(id: number, schema: string): Promise<any[]>;
45
11
  }
46
12
  export default DriverSvc;
@@ -3,6 +3,10 @@ import EnvSvc from "./implement/EnvSvc";
3
3
  import LogSvc from "./implement/LogSvc";
4
4
  import UserSvc from "./implement/UserSvc";
5
5
  import SvcFactory from "./SvcFactory";
6
+ /**
7
+ * 初始化服务
8
+ */
9
+ declare let initSvcAsync: () => Promise<void>;
6
10
  declare let settingSvc: {
7
11
  loaded: boolean;
8
12
  particles: boolean;
@@ -39,23 +43,10 @@ declare let configSvc: ConfigSvc;
39
43
  */
40
44
  declare let driverSvc: {
41
45
  type: string;
42
- loaded: {
43
- apps: boolean;
44
- envs: boolean;
45
- };
46
- loading: {
47
- apps: boolean;
48
- envs: boolean;
49
- };
50
- apps: any[];
51
- envs: any[];
52
- loadApps: (reload?: boolean) => Promise<void>;
53
- loadEnvs: (reload?: boolean) => Promise<void>;
54
- loadDrivers: (app: string, env: string, kind: string) => Promise<any[]>;
55
- loadSchema: (id: number, schema: string) => Promise<any[]>;
46
+ loadSchemaAsync: (id: number, schema: string) => Promise<any[]>;
56
47
  };
57
48
  declare let envSvc: EnvSvc;
58
49
  declare let logSvc: LogSvc;
59
50
  declare let userSvc: UserSvc;
60
51
  export * from "./implement";
61
- export { configSvc, driverSvc, envSvc, logSvc, settingSvc, userSvc, SvcFactory };
52
+ export { initSvcAsync, configSvc, driverSvc, envSvc, logSvc, settingSvc, userSvc, SvcFactory };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halo-fe",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "Halo front end sdk",
5
5
  "scripts": {
6
6
  "halo-fe:tsc": "vue-tsc",
@@ -29,26 +29,26 @@
29
29
  "registry": "https://registry.npmjs.org"
30
30
  },
31
31
  "peerDependencies": {
32
- "vue": "3.5.3"
33
32
  },
34
33
  "dependencies": {
35
34
  "clone": "2.1.2",
36
35
  "file-saver": "2.0.5",
37
- "liquidjs": "10.16.7",
36
+ "liquidjs": "10.17.0",
38
37
  "moment": "2.30.1",
39
38
  "underscore": "1.13.7",
40
- "underscore.string": "3.3.6"
39
+ "underscore.string": "3.3.6",
40
+ "vue": "3.5.12"
41
41
  },
42
42
  "devDependencies": {
43
- "@types/node": "22.5.4",
44
- "@vitejs/plugin-vue": "5.1.3",
43
+ "@types/node": "22.7.5",
44
+ "@vitejs/plugin-vue": "5.1.4",
45
45
  "@vitejs/plugin-vue-jsx": "4.0.1",
46
46
  "crypto-js": "4.2.0",
47
47
  "echarts": "5.5.1",
48
- "monaco-editor": "0.51.0",
48
+ "monaco-editor": "0.52.0",
49
49
  "quill": "2.0.2",
50
- "sass": "1.78.0",
51
- "vite": "5.4.3",
50
+ "sass": "1.79.5",
51
+ "vite": "5.4.9",
52
52
  "vue-tsc": "2.1.6",
53
53
  "xlsx-js-style": "1.2.0"
54
54
  }