halo-fe 1.0.18 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. package/dist/main.js +984 -980
  2. package/esm/@types/CreateFeOptions.d.ts +25 -0
  3. package/esm/@types/index.d.ts +2 -0
  4. package/esm/coms/@types/ScrollerProps.d.ts +15 -0
  5. package/esm/coms/@types/index.d.ts +2 -0
  6. package/esm/coms/Scroller.vue.d.ts +1 -1
  7. package/esm/coms/conditions/@types/ConditionGroupProps.d.ts +11 -0
  8. package/esm/coms/conditions/@types/ConditionProps.d.ts +18 -0
  9. package/esm/coms/conditions/@types/index.d.ts +3 -0
  10. package/esm/coms/conditions/Condition.vue.d.ts +1 -1
  11. package/esm/coms/conditions/Index.vue.d.ts +1 -1
  12. package/esm/coms/{types → controls/@types}/CodeEmit.d.ts +1 -1
  13. package/esm/coms/controls/@types/CodeProps.d.ts +28 -0
  14. package/esm/coms/controls/@types/Range.d.ts +26 -0
  15. package/esm/coms/controls/@types/index.d.ts +6 -0
  16. package/esm/coms/controls/Code.vue.d.ts +1 -1
  17. package/esm/coms/controls/RichText.vue.d.ts +1 -1
  18. package/esm/coms/controls/index.d.ts +1 -1
  19. package/esm/coms/index.d.ts +1 -1
  20. package/esm/coms/layouts/@types/index.d.ts +2 -0
  21. package/esm/coms/layouts/Row.vue.d.ts +1 -1
  22. package/esm/coms/layouts/index.d.ts +1 -1
  23. package/esm/coms/progresses/@types/SocketProgressProps.d.ts +23 -0
  24. package/esm/coms/progresses/@types/index.d.ts +2 -0
  25. package/esm/coms/progresses/SocketProgress.vue.d.ts +1 -1
  26. package/esm/coms/tabs/@types/TabProps.d.ts +7 -0
  27. package/esm/coms/tabs/@types/index.d.ts +2 -0
  28. package/esm/coms/tabs/Tab.vue.d.ts +1 -1
  29. package/esm/drivers/@types/IDispose.d.ts +10 -0
  30. package/esm/drivers/@types/IOpen.d.ts +10 -0
  31. package/esm/drivers/@types/index.d.ts +4 -0
  32. package/esm/drivers/bridges/IBridge.d.ts +1 -1
  33. package/esm/drivers/builders/IBuilder.d.ts +1 -1
  34. package/esm/drivers/builders/types/ProviderTable.d.ts +6 -0
  35. package/esm/drivers/builders/types/index.d.ts +2 -0
  36. package/esm/drivers/cdns/ICdn.d.ts +1 -1
  37. package/esm/drivers/excels/IExcel.d.ts +1 -1
  38. package/esm/drivers/explainers/IExplainer.d.ts +1 -1
  39. package/esm/drivers/features/IFeature.d.ts +1 -1
  40. package/esm/drivers/https/IHttp.d.ts +1 -1
  41. package/esm/drivers/i18ns/I18n.d.ts +38 -0
  42. package/esm/drivers/i18ns/I18nFactory.d.ts +13 -0
  43. package/esm/drivers/i18ns/II18n.d.ts +72 -0
  44. package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +13 -0
  45. package/esm/drivers/i18ns/index.d.ts +3 -0
  46. package/esm/drivers/index.d.ts +2 -1
  47. package/esm/drivers/messengers/IMessenger.d.ts +1 -1
  48. package/esm/drivers/providers/IProvider.d.ts +1 -1
  49. package/esm/drivers/ssos/ISso.d.ts +1 -1
  50. package/esm/drivers/tasks/ITask.d.ts +1 -1
  51. package/esm/drivers/templates/ITemplate.d.ts +1 -1
  52. package/esm/drivers/videos/IVideo.d.ts +1 -1
  53. package/esm/drivers/voices/IVoice.d.ts +1 -1
  54. package/esm/factorying/Factories.d.ts +15 -11
  55. package/esm/factorying/Factory.d.ts +1 -1
  56. package/esm/factorying/index.d.ts +17 -5
  57. package/esm/helpers/@types/JsonConfig.d.ts +10 -0
  58. package/esm/helpers/@types/TreeNodeProp.d.ts +9 -0
  59. package/esm/helpers/@types/index.d.ts +3 -0
  60. package/esm/helpers/JsonHelper.d.ts +6 -2
  61. package/esm/main.d.ts +2 -2
  62. package/esm/repos/IRepo.d.ts +4 -0
  63. package/esm/repos/RepoFactory.d.ts +5 -0
  64. package/esm/repos/implements/SettingRepo.d.ts +15 -0
  65. package/esm/repos/index.d.ts +1 -1
  66. package/esm/svcs/@types/Dictionary.d.ts +4 -0
  67. package/esm/svcs/@types/index.d.ts +2 -0
  68. package/esm/svcs/implement/ConfigSvc.d.ts +1 -1
  69. package/esm/svcs/implement/I18nSvc.d.ts +1 -1
  70. package/esm/svcs/implement/LogSvc.d.ts +3 -0
  71. package/esm/svcs/implement/index.d.ts +1 -2
  72. package/esm/svcs/index.d.ts +2 -8
  73. package/esm/types/CreateFeOptions.d.ts +6 -5
  74. package/esm/utilities/@types/DragEvent.d.ts +11 -0
  75. package/esm/utilities/@types/DragOptions.d.ts +28 -0
  76. package/esm/utilities/@types/Position.d.ts +15 -0
  77. package/esm/utilities/@types/Rect.d.ts +10 -0
  78. package/esm/utilities/@types/index.d.ts +5 -0
  79. package/esm/utilities/EventUtility.d.ts +1 -1
  80. package/esm/utilities/SaveUtility.d.ts +15 -0
  81. package/esm/utilities/index.d.ts +3 -2
  82. package/package.json +2 -3
  83. package/dist/assets/@intlify-BISCQg1h.js +0 -2189
  84. package/dist/assets/@vue-aVYGocXp.js +0 -93
  85. package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
  86. package/esm/coms/Code.vue.d.ts +0 -41
  87. package/esm/coms/Col.vue.d.ts +0 -11
  88. package/esm/coms/Compare.vue.d.ts +0 -40
  89. package/esm/coms/Container.vue.d.ts +0 -23
  90. package/esm/coms/RichText.vue.d.ts +0 -24
  91. package/esm/coms/Row.vue.d.ts +0 -21
  92. package/esm/coms/types/CodeProps.d.ts +0 -18
  93. package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -12
  94. package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -15
  95. package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -21
  96. package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -12
  97. package/esm/drivers/factories/DriverFactory.d.ts +0 -64
  98. package/esm/drivers/factories/Factory.d.ts +0 -18
  99. package/esm/drivers/factories/IFactory.d.ts +0 -18
  100. package/esm/drivers/factories/index.d.ts +0 -42
  101. package/esm/drivers/providers/implements/StorageHelper.d.ts +0 -34
  102. package/esm/helpers/ScriptHelper.d.ts +0 -19
  103. package/esm/helpers/array-helper.d.ts +0 -97
  104. package/esm/helpers/component-helper.d.ts +0 -18
  105. package/esm/helpers/cookie-helper.d.ts +0 -6
  106. package/esm/helpers/dictionary-helper.d.ts +0 -18
  107. package/esm/helpers/dom-helper.d.ts +0 -86
  108. package/esm/helpers/event-helper.d.ts +0 -30
  109. package/esm/helpers/file-helper.d.ts +0 -22
  110. package/esm/helpers/html-helper.d.ts +0 -10
  111. package/esm/helpers/i18n-helper.d.ts +0 -14
  112. package/esm/helpers/image-helper.d.ts +0 -10
  113. package/esm/helpers/json-helper.d.ts +0 -39
  114. package/esm/helpers/math-helper.d.ts +0 -46
  115. package/esm/helpers/micro-helper.d.ts +0 -10
  116. package/esm/helpers/mount-helper.d.ts +0 -14
  117. package/esm/helpers/object-helper.d.ts +0 -38
  118. package/esm/helpers/script-helper.d.ts +0 -31
  119. package/esm/helpers/scroll-helper.d.ts +0 -14
  120. package/esm/helpers/sign-helper.d.ts +0 -14
  121. package/esm/helpers/storage-helper.d.ts +0 -34
  122. package/esm/helpers/string-helper.d.ts +0 -94
  123. package/esm/helpers/task-helper.d.ts +0 -26
  124. package/esm/helpers/time-helper.d.ts +0 -66
  125. package/esm/helpers/tree-helper.d.ts +0 -54
  126. package/esm/helpers/type-helper.d.ts +0 -26
  127. package/esm/helpers/url-helper.d.ts +0 -96
  128. package/esm/plugins/HtmlTransform.d.ts +0 -6
  129. package/esm/plugins/types/IMessager.d.ts +0 -34
  130. package/esm/plugins/types/index.d.ts +0 -7
  131. package/esm/services/ConfigService.d.ts +0 -66
  132. package/esm/services/DriverService.d.ts +0 -36
  133. package/esm/services/EnvService.d.ts +0 -14
  134. package/esm/services/LogService.d.ts +0 -19
  135. package/esm/services/SettingService.d.ts +0 -42
  136. package/esm/services/SocketService.d.ts +0 -23
  137. package/esm/services/UserService.d.ts +0 -47
  138. package/esm/services/index.d.ts +0 -15
  139. package/esm/services/types/IMessage.d.ts +0 -14
  140. package/esm/services/types/IMessager.d.ts +0 -34
  141. package/esm/services/types/index.d.ts +0 -2
  142. package/esm/servs/ConfigServ.d.ts +0 -66
  143. package/esm/servs/DriverServ.d.ts +0 -36
  144. package/esm/servs/EnvServ.d.ts +0 -14
  145. package/esm/servs/IServ.d.ts +0 -6
  146. package/esm/servs/LogServ.d.ts +0 -19
  147. package/esm/servs/Serv.d.ts +0 -4
  148. package/esm/servs/ServFactory.d.ts +0 -11
  149. package/esm/servs/SettingServ.d.ts +0 -42
  150. package/esm/servs/SocketServ.d.ts +0 -38
  151. package/esm/servs/UserServ.d.ts +0 -47
  152. package/esm/servs/implement/ConfigServ.d.ts +0 -66
  153. package/esm/servs/implement/DriverServ.d.ts +0 -36
  154. package/esm/servs/implement/EnvServ.d.ts +0 -14
  155. package/esm/servs/implement/LogServ.d.ts +0 -19
  156. package/esm/servs/implement/SettingServ.d.ts +0 -42
  157. package/esm/servs/implement/SocketServ.d.ts +0 -38
  158. package/esm/servs/implement/UserServ.d.ts +0 -47
  159. package/esm/servs/index.d.ts +0 -15
  160. package/esm/stores/config.d.ts +0 -63
  161. package/esm/stores/driver.d.ts +0 -37
  162. package/esm/stores/env.d.ts +0 -12
  163. package/esm/stores/index.d.ts +0 -8
  164. package/esm/stores/log.d.ts +0 -20
  165. package/esm/stores/setting.d.ts +0 -43
  166. package/esm/stores/socket.d.ts +0 -27
  167. package/esm/stores/user.d.ts +0 -40
  168. package/esm/types/CreateOptions.d.ts +0 -18
  169. /package/esm/coms/{types → controls/@types}/RichTextOptions.d.ts +0 -0
  170. /package/esm/coms/{types → controls/@types}/RichTextProps.d.ts +0 -0
  171. /package/esm/coms/{types → layouts/@types}/RowProps.d.ts +0 -0
  172. /package/esm/drivers/{IDriver.d.ts → @types/IDriver.d.ts} +0 -0
@@ -1,26 +0,0 @@
1
- /**
2
- * 类型帮助类
3
- */
4
- declare class TypeHelper {
5
- /**
6
- * 判断输入类型是否是字符串类型 null -> false
7
- */
8
- static isString: (input: any) => boolean;
9
- /**
10
- * 判断输入类型是否是Object类型
11
- */
12
- static isObject: (input: any) => boolean;
13
- /**
14
- * 判断输入类型是否是Array类型
15
- */
16
- static isArray: (input: any) => boolean;
17
- /**
18
- * 判断输入类型是否是Number类型,null -> false
19
- */
20
- static isNumber: (input: any) => boolean;
21
- /**
22
- * 判断输入类型是否是isBoolean类型
23
- */
24
- static isBoolean: (input: any) => boolean;
25
- }
26
- export default TypeHelper;
@@ -1,96 +0,0 @@
1
- /**
2
- * Url帮助类
3
- */
4
- declare class UrlHelper {
5
- /**
6
- * 获取指定地址路由对象
7
- */
8
- static getToRoute(url: string, withReturnUrl?: boolean): any;
9
- /**
10
- * 获取要跳转的Url地址信息,自动涵盖后退地址
11
- */
12
- static getToUrl(url: string, withReturnUrl?: boolean): string;
13
- /**
14
- * 获取菜单参数
15
- */
16
- static getM(url: string): any;
17
- /**
18
- * 获取后退地址路由
19
- */
20
- static getBackRoute(): any;
21
- /**
22
- * 获取要后退的地址URL
23
- */
24
- static getBackUrl(): string;
25
- /**
26
- * 获取指定地址的路由对象,自动合并qs,并解码
27
- */
28
- static getRoute(url: string, queryObj?: object): any;
29
- /**
30
- * 处理实体,得到url query参数形式
31
- * 如:app=Tool&compare[language]=json&compare[sql]=App%3D%27Tool%27+and+[Table]+like+%27Ctl_%25%27+order+by+[Table],+Name
32
- */
33
- static getQuery(value: any): string;
34
- /**
35
- * 处理键值对的值
36
- */
37
- private static handleQueryValue;
38
- /**
39
- * 自动根据后面路径,决定是否要合并Url
40
- */
41
- static concatUrl: (url: string, path: string) => string;
42
- /**
43
- * 合并路径和查询对象(自动编码,并支持覆盖现有参数),得到完整URL地址,并会省略默认值
44
- * ? 对url参数不编码,只对 queryObj 参数编码,防止用户的参数被改成编码形式
45
- * ? 目前,对Url参数对象和目标对象都编码,因为源对象属性是经过解码的
46
- */
47
- static getUrl: (url: string, params?: any) => string;
48
- /**
49
- * 获取超链接配置对象
50
- */
51
- static getAnchor: (url: string, params?: any) => {
52
- href: any;
53
- target: any;
54
- };
55
- /**
56
- * 从Url中提取路径
57
- */
58
- static getPath(url: string): string;
59
- /**
60
- * 获取path中最后一个片段信息
61
- */
62
- static getLastSegment(url: string): string;
63
- /**
64
- * 获取地址中的查询参数
65
- */
66
- static getQueryParam(url: string, key: string): string;
67
- /**
68
- * 从Url中提取查询对象
69
- */
70
- static deserialize(url: string): object;
71
- /**
72
- * 把查询字符串转换成对象(自动解码成源数据)
73
- */
74
- static deserializeQs(qs: string, decode?: boolean): any;
75
- /**
76
- * 把对象转换成查询字符串,自动编码
77
- */
78
- static serialize(obj: object, encoding?: boolean): string;
79
- /**
80
- * URL编码
81
- */
82
- static encode(val: string): string;
83
- /**
84
- * 把指定对象转换成base64字符串
85
- */
86
- static base64(obj: object): Promise<string>;
87
- /**
88
- * 把指定base64字符串解析为原对象
89
- */
90
- static base64Decode(val: string): Promise<any>;
91
- /**
92
- * 是否是http或https开头的地址
93
- */
94
- static httpOrHttps(url: string): boolean;
95
- }
96
- export default UrlHelper;
@@ -1,6 +0,0 @@
1
- import { PluginOption } from "vite";
2
- /**
3
- * 首页VITE变量替换插件
4
- */
5
- declare let htmlTransform: (env: object) => PluginOption;
6
- export default htmlTransform;
@@ -1,34 +0,0 @@
1
- /**
2
- * 消息提示接口,下游自己定义
3
- */
4
- interface IMessager {
5
- /**
6
- * 显示全局成功消息
7
- */
8
- success(message: string): void;
9
- /**
10
- * 显示全局警告消息
11
- */
12
- warning(message: string | number): void;
13
- /**
14
- * 显示全局信息消息
15
- */
16
- info(message: string): void;
17
- /**
18
- * 显示全局错误消息
19
- */
20
- error(message: string): void;
21
- /**
22
- * 显示全局错误消息
23
- */
24
- confirm(title: string, message: string, options?: any): Promise<any>;
25
- /**
26
- * 显示警告框
27
- */
28
- alert(title: string, message: string, options?: any): void;
29
- /**
30
- * 通知
31
- */
32
- notify(title: string, message: string, type: string): void;
33
- }
34
- export default IMessager;
@@ -1,7 +0,0 @@
1
- import type IMessager from "./IMessager";
2
- declare let messager: IMessager;
3
- /**
4
- * 重新设置消息对象
5
- */
6
- declare let setMessager: (msgr: IMessager) => void;
7
- export { IMessager, messager, setMessager };
@@ -1,66 +0,0 @@
1
- /**
2
- * 不一定跟用户相关,此时如果使用配置仓储,使用的是配置文件的配置,非接口配置
3
- */
4
- declare class ConfigService {
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
- * 文件布局方式
27
- */
28
- fileLayout: string;
29
- editor: {
30
- schemas: any[];
31
- completions: {};
32
- };
33
- /**
34
- * 初始化配置值(不一定跟登录用户相关,这也是单独分离的好处)
35
- */
36
- init(configs: any[]): void;
37
- /**
38
- * 尝试添加架构
39
- */
40
- tryAddSchema(uri: string, fileMatch: string, schema: object): void;
41
- /**
42
- * 获取本地配置
43
- */
44
- getLocalConfig(type: string): Promise<any>;
45
- /**
46
- * 设置背景
47
- */
48
- setBackground(background: string): void;
49
- /**
50
- * 加载用户配置
51
- */
52
- loadConfig(type: string, cached?: boolean): Promise<any>;
53
- /**
54
- * 全量保存用户配置
55
- */
56
- saveConfig(type: string, data: any, cached?: boolean): Promise<boolean>;
57
- /**
58
- * 部分保存用户配置
59
- */
60
- patchConfig(type: string, pairs: any): Promise<boolean>;
61
- /**
62
- * 获取当前语言
63
- */
64
- getLanguage(): string;
65
- }
66
- export default ConfigService;
@@ -1,36 +0,0 @@
1
- /**
2
- * 使用驱动仓储
3
- */
4
- declare class DriverService {
5
- /**
6
- * 加载完毕状态记录
7
- */
8
- loaded: {
9
- apps: boolean;
10
- envs: boolean;
11
- };
12
- /**
13
- * 是否加载中状态,用于并发场景 防止重复拉取接口
14
- */
15
- loading: {
16
- apps: boolean;
17
- envs: boolean;
18
- };
19
- /**
20
- * 应用集合,存储到Store中,防止每一个Driver实例重复加载
21
- */
22
- apps: any[];
23
- /**
24
- * 环境集合,存储到Store中,防止每一个Driver实例重复加载
25
- */
26
- envs: any[];
27
- /**
28
- * 加载应用选项
29
- */
30
- loadApps(reload?: boolean): Promise<void>;
31
- /**
32
- * 加载环境选项
33
- */
34
- loadEnvs(reload?: boolean): Promise<void>;
35
- }
36
- export default DriverService;
@@ -1,14 +0,0 @@
1
- /**
2
- * 前端环境仓储
3
- */
4
- declare class EnvService {
5
- /**
6
- * 环境变量
7
- */
8
- env: any;
9
- /**
10
- * 使用环境变量
11
- */
12
- useEnv(env: any): void;
13
- }
14
- export default EnvService;
@@ -1,19 +0,0 @@
1
- /**
2
- * 日志服务
3
- */
4
- declare class LogService {
5
- logs: any[];
6
- /**
7
- * 手动添加日志
8
- */
9
- add(code: string, message: string, stack: string, elapsed?: number): void;
10
- /**
11
- * 删除日志
12
- */
13
- remove(index: number): void;
14
- /**
15
- * 清空日志
16
- */
17
- clear(): void;
18
- }
19
- export default LogService;
@@ -1,42 +0,0 @@
1
- /**
2
- * 获取前端配置
3
- */
4
- declare class SettingService {
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
- init(): Promise<void>;
37
- /**
38
- * 加载设置
39
- */
40
- load(): Promise<any>;
41
- }
42
- export default SettingService;
@@ -1,23 +0,0 @@
1
- declare class SocketService {
2
- socket: any;
3
- connected: any;
4
- reconnect: boolean;
5
- handler: any;
6
- /**
7
- * 登录后,连接Socket
8
- */
9
- connect(): Promise<void>;
10
- /**
11
- * 订阅并替换Socket事件处理程序
12
- */
13
- subscribe(handler?: (event: MessageEvent) => void): void;
14
- /**
15
- * 取消订阅Socket事件处理程序,防止内存泄漏
16
- */
17
- unsubscribe(): void;
18
- /**
19
- * 退出时断开连接
20
- */
21
- disconnect(): void;
22
- }
23
- export default SocketService;
@@ -1,47 +0,0 @@
1
- /**
2
- * 用户服务
3
- */
4
- declare class UserService {
5
- /**
6
- * 用户信息
7
- */
8
- user: any;
9
- /**
10
- * 接口返回的菜单信息(空:菜单未加载 空数组:匿名用户已加载菜单,但是无菜单;防止未登录状态每次跳转路由都加载菜单)
11
- */
12
- menus: any;
13
- menusFlat: any;
14
- /**
15
- * 是否调试人
16
- */
17
- debugger: any;
18
- /**
19
- * 当前访问环境
20
- */
21
- env: any;
22
- /**
23
- * 获取本地缓存中的用户信息;好处:即使手动更改storage数据,也可以里面获取到
24
- */
25
- getSso(): Promise<any>;
26
- /**
27
- * 登录后,获取用户信息
28
- */
29
- loadInfo(): Promise<any>;
30
- /**
31
- * 未登录,获取匿名登录信息
32
- */
33
- getAnonymous(): void;
34
- /**
35
- * 根据路径获取路由
36
- */
37
- getMenuByUrl(url: string): any;
38
- /**
39
- * 加载服务端路由
40
- */
41
- loadMenus(): Promise<any>;
42
- /**
43
- * 退出登录
44
- */
45
- logout(): Promise<void>;
46
- }
47
- export default UserService;
@@ -1,15 +0,0 @@
1
- import ConfigService from "./ConfigService";
2
- import DriverService from "./DriverService";
3
- import EnvService from "./EnvService";
4
- import LogService from "./LogService";
5
- import SettingService from "./SettingService";
6
- import SocketService from "./SocketService";
7
- import UserService from "./UserService";
8
- declare let configService: ConfigService;
9
- declare let driverService: DriverService;
10
- declare let envService: EnvService;
11
- declare let logService: LogService;
12
- declare let settingService: SettingService;
13
- declare let socketService: SocketService;
14
- declare let userService: UserService;
15
- export { configService, driverService, envService, logService, settingService, socketService, userService };
@@ -1,14 +0,0 @@
1
- /**
2
- * 消息提示接口,下游自己定义
3
- */
4
- interface IMessage {
5
- /**
6
- * 成功消息提示
7
- */
8
- success(message: string): void;
9
- /**
10
- * 错误消息提示
11
- */
12
- error(message: string): void;
13
- }
14
- export default IMessage;
@@ -1,34 +0,0 @@
1
- /**
2
- * 消息提示接口,下游自己定义
3
- */
4
- interface IMessager {
5
- /**
6
- * 显示全局成功消息
7
- */
8
- success(message: string): void;
9
- /**
10
- * 显示全局警告消息
11
- */
12
- warning(message: string): void;
13
- /**
14
- * 显示全局信息消息
15
- */
16
- info(message: string): void;
17
- /**
18
- * 显示全局错误消息
19
- */
20
- error(message: string): void;
21
- /**
22
- * 显示全局错误消息
23
- */
24
- confirm(title: string, message: string, options?: any): void;
25
- /**
26
- * 显示警告框
27
- */
28
- alert(title: string, message: string, options?: any): void;
29
- /**
30
- * 通知
31
- */
32
- notify(title: string, message: string, type: string): void;
33
- }
34
- export default IMessager;
@@ -1,2 +0,0 @@
1
- import type IMessager from "./IMessager";
2
- export { IMessager };
@@ -1,66 +0,0 @@
1
- /**
2
- * 不一定跟用户相关,此时如果使用配置仓储,使用的是配置文件的配置,非接口配置
3
- */
4
- declare class ConfigServ {
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
- * 文件布局方式
27
- */
28
- fileLayout: string;
29
- editor: {
30
- schemas: any[];
31
- completions: {};
32
- };
33
- /**
34
- * 初始化配置值(不一定跟登录用户相关,这也是单独分离的好处)
35
- */
36
- init(configs: any[]): void;
37
- /**
38
- * 尝试添加架构
39
- */
40
- tryAddSchema(uri: string, fileMatch: string, schema: object): void;
41
- /**
42
- * 获取本地配置
43
- */
44
- getLocalConfig(type: string): Promise<any>;
45
- /**
46
- * 设置背景
47
- */
48
- setBackground(background: string): void;
49
- /**
50
- * 加载用户配置
51
- */
52
- loadConfig(type: string, cached?: boolean): Promise<any>;
53
- /**
54
- * 全量保存用户配置
55
- */
56
- saveConfig(type: string, data: any, cached?: boolean): Promise<boolean>;
57
- /**
58
- * 部分保存用户配置
59
- */
60
- patchConfig(type: string, pairs: any): Promise<boolean>;
61
- /**
62
- * 获取当前语言
63
- */
64
- getLanguage(): string;
65
- }
66
- export default ConfigServ;
@@ -1,36 +0,0 @@
1
- /**
2
- * 使用驱动仓储
3
- */
4
- declare class DriverServ {
5
- /**
6
- * 加载完毕状态记录
7
- */
8
- loaded: {
9
- apps: boolean;
10
- envs: boolean;
11
- };
12
- /**
13
- * 是否加载中状态,用于并发场景 防止重复拉取接口
14
- */
15
- loading: {
16
- apps: boolean;
17
- envs: boolean;
18
- };
19
- /**
20
- * 应用集合,存储到Store中,防止每一个Driver实例重复加载
21
- */
22
- apps: any[];
23
- /**
24
- * 环境集合,存储到Store中,防止每一个Driver实例重复加载
25
- */
26
- envs: any[];
27
- /**
28
- * 加载应用选项
29
- */
30
- loadApps(reload?: boolean): Promise<void>;
31
- /**
32
- * 加载环境选项
33
- */
34
- loadEnvs(reload?: boolean): Promise<void>;
35
- }
36
- export default DriverServ;
@@ -1,14 +0,0 @@
1
- /**
2
- * 前端环境仓储
3
- */
4
- declare class EnvServ {
5
- /**
6
- * 环境变量
7
- */
8
- env: any;
9
- /**
10
- * 使用环境变量
11
- */
12
- useEnv(env: any): void;
13
- }
14
- export default EnvServ;
@@ -1,6 +0,0 @@
1
- /**
2
- * 服务接口
3
- */
4
- interface IServ {
5
- }
6
- export default IServ;
@@ -1,19 +0,0 @@
1
- /**
2
- * 日志服务
3
- */
4
- declare class LogServ {
5
- logs: any[];
6
- /**
7
- * 手动添加日志
8
- */
9
- add(code: string, message: string, stack: string, elapsed?: number): void;
10
- /**
11
- * 删除日志
12
- */
13
- remove(index: number): void;
14
- /**
15
- * 清空日志
16
- */
17
- clear(): void;
18
- }
19
- export default LogServ;
@@ -1,4 +0,0 @@
1
- import IServ from "./IServ";
2
- declare abstract class Serv implements IServ {
3
- }
4
- export default Serv;
@@ -1,11 +0,0 @@
1
- /**
2
- * 服务工厂类
3
- */
4
- declare class ServFactory {
5
- static(): void;
6
- /**
7
- * 获取路由服务
8
- */
9
- static getRouter(): void;
10
- }
11
- export default ServFactory;