halo-fe 1.0.23 → 1.0.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. package/dist/assets/{liquidjs-C-LVcoaY.js → liquidjs-B8dqQyVv.js} +639 -632
  2. package/dist/main.js +4365 -4206
  3. package/dist/style.css +1 -1
  4. package/esm/@types/CreateFeOptions.d.ts +4 -0
  5. package/esm/coms/@types/SocketProgressProps.d.ts +23 -0
  6. package/esm/coms/@types/TabProps.d.ts +11 -0
  7. package/esm/coms/@types/TableProps.d.ts +22 -0
  8. package/esm/coms/@types/index.d.ts +4 -1
  9. package/esm/coms/Empty.vue.d.ts +11 -7
  10. package/esm/coms/Fill.vue.d.ts +11 -4
  11. package/esm/coms/Scroller.vue.d.ts +16 -15
  12. package/esm/coms/Timer.vue.d.ts +9 -4
  13. package/esm/coms/{Col.vue.d.ts → cards/Index.vue.d.ts} +8 -3
  14. package/esm/coms/cards/index.d.ts +2 -0
  15. package/esm/coms/conditions/Condition.vue.d.ts +1 -10
  16. package/esm/coms/conditions/Index.vue.d.ts +1 -10
  17. package/esm/coms/controls/Code.vue.d.ts +15 -15
  18. package/esm/coms/controls/Compare.vue.d.ts +5 -5
  19. package/esm/coms/controls/Input.vue.d.ts +2 -0
  20. package/esm/coms/controls/Option.vue.d.ts +1 -1
  21. package/esm/coms/controls/RichText.vue.d.ts +4 -15
  22. package/esm/coms/controls/Select.vue.d.ts +1 -1
  23. package/esm/coms/controls/index.d.ts +2 -1
  24. package/esm/coms/index.d.ts +1 -0
  25. package/esm/coms/layouts/Col.vue.d.ts +8 -3
  26. package/esm/coms/layouts/Container.vue.d.ts +11 -6
  27. package/esm/coms/layouts/Desc.vue.d.ts +2 -0
  28. package/esm/coms/layouts/Row.vue.d.ts +8 -13
  29. package/esm/coms/pagers/Index.vue.d.ts +2 -0
  30. package/esm/coms/pagers/index.d.ts +2 -0
  31. package/esm/coms/progresses/Index.vue.d.ts +6 -0
  32. package/esm/coms/progresses/Progress.vue.d.ts +4 -16
  33. package/esm/coms/progresses/SocketProgress.vue.d.ts +9 -13
  34. package/esm/coms/progresses/index.d.ts +1 -1
  35. package/esm/coms/tables/Index.vue.d.ts +14 -0
  36. package/esm/coms/tables/Table.vue.d.ts +1 -1
  37. package/esm/coms/tabs/Tab.vue.d.ts +2 -11
  38. package/esm/coms/tabs/TabPane.vue.d.ts +1 -1
  39. package/esm/drivers/builders/types/ProviderTable.d.ts +6 -0
  40. package/esm/drivers/builders/types/index.d.ts +2 -0
  41. package/esm/drivers/cdns/Cdn.d.ts +6 -8
  42. package/esm/drivers/cdns/ICdn.d.ts +0 -5
  43. package/esm/drivers/encoders/EncoderFactory.d.ts +1 -0
  44. package/esm/drivers/encoders/implement/UrlEncoder.d.ts +7 -0
  45. package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
  46. package/esm/drivers/helpers/implements/ArrayHelper.d.ts +1 -2
  47. package/esm/drivers/helpers/implements/DomHelper.d.ts +1 -1
  48. package/esm/drivers/https/Http.d.ts +13 -2
  49. package/esm/drivers/https/IHttp.d.ts +4 -0
  50. package/esm/drivers/https/entities/HttpModel.d.ts +12 -0
  51. package/esm/drivers/https/implements/DefaultHttp.d.ts +1 -1
  52. package/esm/drivers/https/implements/HaloHttp.d.ts +1 -9
  53. package/esm/drivers/https/implements/MkHttp.d.ts +1 -2
  54. package/esm/drivers/index.d.ts +3 -1
  55. package/esm/drivers/sockets/ISocket.d.ts +35 -0
  56. package/esm/drivers/sockets/Socket.d.ts +8 -0
  57. package/esm/drivers/sockets/SocketFactory.d.ts +13 -0
  58. package/esm/drivers/sockets/implement/DefaultSocket.d.ts +39 -0
  59. package/esm/drivers/sockets/index.d.ts +2 -0
  60. package/esm/drivers/tasks/ITask.d.ts +3 -0
  61. package/esm/drivers/util/@types/JsonConfig.d.ts +10 -0
  62. package/esm/drivers/util/@types/TreeNodeProp.d.ts +9 -0
  63. package/esm/drivers/util/@types/index.d.ts +3 -0
  64. package/esm/drivers/util/IUtil.d.ts +8 -0
  65. package/esm/drivers/util/Util.d.ts +8 -0
  66. package/esm/drivers/util/UtilFactory.d.ts +32 -0
  67. package/esm/drivers/util/implements/ArrayUtil.d.ts +123 -0
  68. package/esm/drivers/util/implements/BrowserUtil.d.ts +12 -0
  69. package/esm/drivers/util/implements/ComponentUtil.d.ts +20 -0
  70. package/esm/drivers/util/implements/DictionaryUtil.d.ts +40 -0
  71. package/esm/drivers/util/implements/DomUtil.d.ts +118 -0
  72. package/esm/drivers/util/implements/EventUtil.d.ts +32 -0
  73. package/esm/drivers/util/implements/FileUtil.d.ts +24 -0
  74. package/esm/drivers/util/implements/HtmlUtil.d.ts +16 -0
  75. package/esm/drivers/util/implements/ImageUtil.d.ts +12 -0
  76. package/esm/drivers/util/implements/JsonUtil.d.ts +53 -0
  77. package/esm/drivers/util/implements/MathUtil.d.ts +52 -0
  78. package/esm/drivers/util/implements/MicroUtil.d.ts +12 -0
  79. package/esm/drivers/util/implements/MountUtil.d.ts +16 -0
  80. package/esm/drivers/util/implements/ObjectUtil.d.ts +44 -0
  81. package/esm/drivers/util/implements/ScrollUtil.d.ts +16 -0
  82. package/esm/drivers/util/implements/SignUtil.d.ts +16 -0
  83. package/esm/drivers/util/implements/StringUtil.d.ts +104 -0
  84. package/esm/drivers/util/implements/TaskUtil.d.ts +28 -0
  85. package/esm/{helpers/time-helper.d.ts → drivers/util/implements/TimeUtil.d.ts} +30 -24
  86. package/esm/drivers/util/implements/TreeUtil.d.ts +56 -0
  87. package/esm/{helpers/type-helper.d.ts → drivers/util/implements/TypeUtil.d.ts} +9 -7
  88. package/esm/{helpers/url-helper.d.ts → drivers/util/implements/UrlUtil.d.ts} +23 -29
  89. package/esm/drivers/util/index.d.ts +24 -0
  90. package/esm/drivers/utilities/@types/DragEvent.d.ts +11 -0
  91. package/esm/drivers/utilities/@types/DragOptions.d.ts +28 -0
  92. package/esm/drivers/utilities/@types/Position.d.ts +15 -0
  93. package/esm/drivers/utilities/@types/Rect.d.ts +10 -0
  94. package/esm/drivers/utilities/@types/index.d.ts +5 -0
  95. package/esm/drivers/utilities/IUtility.d.ts +4 -0
  96. package/esm/drivers/utilities/Utility.d.ts +5 -0
  97. package/esm/drivers/utilities/UtilityFactory.d.ts +43 -0
  98. package/esm/drivers/utilities/implement/AffixUtility.d.ts +11 -0
  99. package/esm/drivers/utilities/implement/DeltaUtility.d.ts +11 -0
  100. package/esm/drivers/utilities/implement/EventUtility.d.ts +73 -0
  101. package/esm/drivers/utilities/implement/KeyboardUtility.d.ts +74 -0
  102. package/esm/drivers/utilities/implement/MouseUtility.d.ts +25 -0
  103. package/esm/drivers/utilities/implement/RandomUtility.d.ts +41 -0
  104. package/esm/drivers/utilities/implement/SaveUtility.d.ts +16 -0
  105. package/esm/drivers/utilities/index.d.ts +9 -0
  106. package/esm/factorying/Factories.d.ts +13 -5
  107. package/esm/factorying/Factory.d.ts +4 -7
  108. package/esm/factorying/{Helpers.d.ts → Helps.d.ts} +2 -2
  109. package/esm/factorying/IFactory.d.ts +6 -2
  110. package/esm/factorying/Utils.d.ts +29 -0
  111. package/esm/factorying/index.d.ts +7 -2
  112. package/esm/helpers/DictionaryHelper.d.ts +6 -0
  113. package/esm/main.d.ts +1 -1
  114. package/esm/svcs/@types/Dictionary.d.ts +4 -0
  115. package/esm/svcs/implement/ConfigSvc.d.ts +1 -1
  116. package/esm/svcs/implement/DriverSvc.d.ts +4 -0
  117. package/esm/svcs/implement/I18nSvc.d.ts +1 -1
  118. package/esm/svcs/index.d.ts +2 -3
  119. package/esm/utilities/MathUtility.d.ts +35 -0
  120. package/package.json +9 -9
  121. package/esm/coms/Code.vue.d.ts +0 -41
  122. package/esm/coms/Compare.vue.d.ts +0 -40
  123. package/esm/coms/Container.vue.d.ts +0 -23
  124. package/esm/coms/RichText.vue.d.ts +0 -24
  125. package/esm/coms/Row.vue.d.ts +0 -21
  126. package/esm/coms/types/CodeEmit.d.ts +0 -23
  127. package/esm/coms/types/CodeProps.d.ts +0 -18
  128. package/esm/coms/types/RichTextOptions.d.ts +0 -14
  129. package/esm/coms/types/RichTextProps.d.ts +0 -12
  130. package/esm/coms/types/RowProps.d.ts +0 -14
  131. package/esm/drivers/IDriver.d.ts +0 -10
  132. package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -12
  133. package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -15
  134. package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -21
  135. package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -12
  136. package/esm/drivers/factories/DriverFactory.d.ts +0 -64
  137. package/esm/drivers/factories/Factory.d.ts +0 -18
  138. package/esm/drivers/factories/IFactory.d.ts +0 -18
  139. package/esm/drivers/factories/index.d.ts +0 -42
  140. package/esm/drivers/providers/implements/StorageHelper.d.ts +0 -34
  141. package/esm/helpers/ScriptHelper.d.ts +0 -19
  142. package/esm/helpers/array-helper.d.ts +0 -97
  143. package/esm/helpers/component-helper.d.ts +0 -18
  144. package/esm/helpers/cookie-helper.d.ts +0 -6
  145. package/esm/helpers/dictionary-helper.d.ts +0 -18
  146. package/esm/helpers/dom-helper.d.ts +0 -86
  147. package/esm/helpers/event-helper.d.ts +0 -30
  148. package/esm/helpers/file-helper.d.ts +0 -22
  149. package/esm/helpers/html-helper.d.ts +0 -10
  150. package/esm/helpers/i18n-helper.d.ts +0 -14
  151. package/esm/helpers/image-helper.d.ts +0 -10
  152. package/esm/helpers/json-helper.d.ts +0 -39
  153. package/esm/helpers/math-helper.d.ts +0 -46
  154. package/esm/helpers/micro-helper.d.ts +0 -10
  155. package/esm/helpers/mount-helper.d.ts +0 -14
  156. package/esm/helpers/object-helper.d.ts +0 -38
  157. package/esm/helpers/script-helper.d.ts +0 -31
  158. package/esm/helpers/scroll-helper.d.ts +0 -14
  159. package/esm/helpers/sign-helper.d.ts +0 -14
  160. package/esm/helpers/storage-helper.d.ts +0 -34
  161. package/esm/helpers/string-helper.d.ts +0 -94
  162. package/esm/helpers/task-helper.d.ts +0 -26
  163. package/esm/helpers/tree-helper.d.ts +0 -54
  164. package/esm/plugins/HtmlTransform.d.ts +0 -6
  165. package/esm/plugins/types/IMessager.d.ts +0 -34
  166. package/esm/plugins/types/index.d.ts +0 -7
  167. package/esm/services/ConfigService.d.ts +0 -66
  168. package/esm/services/DriverService.d.ts +0 -36
  169. package/esm/services/EnvService.d.ts +0 -14
  170. package/esm/services/LogService.d.ts +0 -19
  171. package/esm/services/SettingService.d.ts +0 -42
  172. package/esm/services/SocketService.d.ts +0 -23
  173. package/esm/services/UserService.d.ts +0 -47
  174. package/esm/services/index.d.ts +0 -15
  175. package/esm/services/types/IMessage.d.ts +0 -14
  176. package/esm/services/types/IMessager.d.ts +0 -34
  177. package/esm/services/types/index.d.ts +0 -2
  178. package/esm/servs/ConfigServ.d.ts +0 -66
  179. package/esm/servs/DriverServ.d.ts +0 -36
  180. package/esm/servs/EnvServ.d.ts +0 -14
  181. package/esm/servs/IServ.d.ts +0 -6
  182. package/esm/servs/LogServ.d.ts +0 -19
  183. package/esm/servs/Serv.d.ts +0 -4
  184. package/esm/servs/ServFactory.d.ts +0 -11
  185. package/esm/servs/SettingServ.d.ts +0 -42
  186. package/esm/servs/SocketServ.d.ts +0 -38
  187. package/esm/servs/UserServ.d.ts +0 -47
  188. package/esm/servs/implement/ConfigServ.d.ts +0 -66
  189. package/esm/servs/implement/DriverServ.d.ts +0 -36
  190. package/esm/servs/implement/EnvServ.d.ts +0 -14
  191. package/esm/servs/implement/LogServ.d.ts +0 -19
  192. package/esm/servs/implement/SettingServ.d.ts +0 -42
  193. package/esm/servs/implement/SocketServ.d.ts +0 -38
  194. package/esm/servs/implement/UserServ.d.ts +0 -47
  195. package/esm/servs/index.d.ts +0 -15
  196. package/esm/stores/config.d.ts +0 -63
  197. package/esm/stores/driver.d.ts +0 -37
  198. package/esm/stores/env.d.ts +0 -12
  199. package/esm/stores/index.d.ts +0 -8
  200. package/esm/stores/log.d.ts +0 -20
  201. package/esm/stores/setting.d.ts +0 -43
  202. package/esm/stores/socket.d.ts +0 -27
  203. package/esm/stores/user.d.ts +0 -40
  204. package/esm/types/CreateOptions.d.ts +0 -18
@@ -1,31 +0,0 @@
1
- /**
2
- * 脚本帮助类
3
- */
4
- declare class ScriptHelper {
5
- /**
6
- * 异步加载脚本/样式内容,把内容处理为行内html
7
- * 这种方式,依赖的内部资源,会从当前站点加载
8
- */
9
- static loadContentAsync: (src: string | string[]) => Promise<void[]>;
10
- /**
11
- * 异步加载单个路径下的多个文件
12
- */
13
- static loadPathAsync: (path: string, files: string[]) => Promise<void>;
14
- /**
15
- * 通过注入DOM标签异步加载脚本或样式表
16
- */
17
- static loadAsync: (src: string | string[]) => Promise<void>;
18
- /**
19
- * 注意:箭头函数没有参数
20
- */
21
- static loadAll: (...args: any[]) => Promise<any[]>;
22
- /**
23
- * 根据路径获取标签(无src)
24
- */
25
- static getInnerTagByUrl: (url: string) => HTMLStyleElement | HTMLScriptElement;
26
- /**
27
- * 根据路径获取待加载的元素,同时包含Url
28
- */
29
- static getOuterTagByUrl: (url: string) => HTMLLinkElement | HTMLScriptElement;
30
- }
31
- export default ScriptHelper;
@@ -1,14 +0,0 @@
1
- /**
2
- * 滚动帮助类
3
- */
4
- declare class ScrollHelper {
5
- /**
6
- * 判断指定元素滚动条位置,是否到了页面底部
7
- */
8
- static isBottom: (selector: any) => boolean;
9
- /**
10
- * 滚动指定元素的滚动条到页面底部
11
- */
12
- static scrollToBottom: (selector: any) => void;
13
- }
14
- export default ScrollHelper;
@@ -1,14 +0,0 @@
1
- /**
2
- * 签名帮助类
3
- */
4
- declare class SignHelper {
5
- /**
6
- * 清空对象中的空值
7
- */
8
- static clean(obj: object): void;
9
- /**
10
- * 签名字典
11
- */
12
- static signDictionary(dictionary: object, encoding?: boolean): string;
13
- }
14
- export default SignHelper;
@@ -1,34 +0,0 @@
1
- /**
2
- * 存储帮助类
3
- */
4
- declare class StorageHelper {
5
- /**
6
- * 获取本地存储
7
- */
8
- static get: (key: string, value?: any) => any;
9
- /**
10
- * 设置本地存储
11
- */
12
- static set: (key: string, value: string) => void;
13
- /**
14
- * 获取本地存储
15
- */
16
- static getObject: (key: string) => any;
17
- /**
18
- * 设置本地存储
19
- */
20
- static setObject: (key: string, value: any) => void;
21
- /**
22
- * 移除存储数据
23
- */
24
- static remove: (key: string) => void;
25
- /**
26
- * 以5M为基准,获取剩余可用容量(KB)
27
- */
28
- static getLeftStorage: () => number;
29
- /**
30
- * 判断指定值是否能够存储到storage中
31
- */
32
- static canStorage: (value: object) => boolean;
33
- }
34
- export default StorageHelper;
@@ -1,94 +0,0 @@
1
- /**
2
- * 字符串帮助类
3
- */
4
- declare class StringHelper {
5
- /**
6
- * 生成唯一字符串
7
- */
8
- static getUniqueId: () => string;
9
- /**
10
- * 填充字符串到指定长度,使用pad填充
11
- */
12
- static padLeft: (value: string, length: number, pad: string) => any;
13
- /**
14
- * 去掉头部字符串
15
- */
16
- static trimStart: (value: string, trim: string) => string;
17
- /**
18
- * 去掉尾部字符串
19
- */
20
- static trimEnd: (value: string, trim: string) => string;
21
- /**
22
- * 去掉头尾字符串
23
- */
24
- static trim: (value: string, start: string, end: string) => string;
25
- /**
26
- * 获取中划线命名法
27
- */
28
- static getDashName: (value: string) => string;
29
- /**
30
- * 忽略大小写包含判断,支持从数组中搜索关键词
31
- */
32
- static containsIgnoreCase: (keywords: string, value: string | string[]) => boolean;
33
- /**
34
- * 从html中提取纯文本
35
- */
36
- static getTextFromHtml: (html: string) => string;
37
- /**
38
- * 判断是否是数字类型,这样支持0
39
- */
40
- static isNumber: (value: any) => boolean;
41
- /**
42
- * 验证是否是邮箱格式
43
- */
44
- static isEmail: (email: string) => boolean;
45
- /**
46
- * 判断是否是json
47
- */
48
- static isJson: (value: string) => boolean;
49
- /**
50
- * 判断是否是isJsonp
51
- */
52
- static isJsonp: (value: string) => boolean;
53
- /**
54
- * 判断是否是html
55
- */
56
- static isHtml: (value: string) => boolean;
57
- /**
58
- * 获取内容类型
59
- */
60
- static getContentType: (value: string) => "json" | "html" | "text";
61
- /**
62
- * 判断字符串是否为空或空串
63
- */
64
- static isNullOrEmpty: (value: string) => boolean;
65
- /**
66
- * 判断字符串是否为空或空串
67
- */
68
- static isEmpty: (value: string) => value is "";
69
- /**
70
- * 判断是否符合密码要求
71
- */
72
- static isPassword: (value: string) => boolean;
73
- /**
74
- * 获取数据值或者空
75
- */
76
- static getNumberOrNull: (value: any) => number;
77
- /**
78
- * 格式化成留指定位数的小数
79
- */
80
- static format: (value: string, digits: number) => any;
81
- /**
82
- * 获取两个字符串之间的字符串
83
- */
84
- static getBetween: (value: string, start: string, end: string) => string;
85
- /**
86
- * 根据字符串或数组,自动返回数组
87
- */
88
- static getArray(name: string | string[]): string[];
89
- /**
90
- * 忽略大小写比较
91
- */
92
- static equalsIgnoreCase(value: any, valueCompare: string): boolean;
93
- }
94
- export default StringHelper;
@@ -1,26 +0,0 @@
1
- /**
2
- * 任务执行帮助类
3
- */
4
- declare class TaskHelper {
5
- /**
6
- * 延时指定ms后执行指定任务
7
- */
8
- static delay: (fun: Function, ms: number) => number;
9
- /**
10
- * 在执行指定延时后,每隔指定ms执行指定任务
11
- */
12
- static execute: (fun: Function, ms: number, delay: number) => Promise<unknown>;
13
- /**
14
- * 清空定时器
15
- */
16
- static clearInterval: (id: number) => void;
17
- /**
18
- * 防抖(指定时间内只触发一次)
19
- */
20
- static debounce: (fun: Function, delay: number) => (e: any) => void;
21
- /**
22
- * 节流:https://segmentfault.com/a/1190000018428170
23
- */
24
- static throttle: (fun: Function, delay: number) => (e: any) => boolean;
25
- }
26
- export default TaskHelper;
@@ -1,54 +0,0 @@
1
- /**
2
- * 树帮助类
3
- */
4
- declare class TreeHelper {
5
- /**
6
- * 从树结构数据中,递归获取指定主键的对象
7
- */
8
- static getById: (id: any, idProp: string, tree: any[], childProp: string) => any;
9
- /**
10
- * 树节点
11
- */
12
- static getByIds: (ids: any[], idProp: string, tree: any[], childProp: string) => any[];
13
- /**
14
- * 找出指定层级集合中,指定对象的下一个对象
15
- */
16
- static getNextById: (id: any, idProp: string, tree: any[], childProp: string) => any;
17
- /**
18
- * 获取兄弟节点
19
- */
20
- static getSiblingsById: (id: any, idProp: string, tree: any[], childProp: string) => any;
21
- /**
22
- * 获取父节点
23
- */
24
- static getParentById: (id: any, idProp: string, tree: any[], childProp: string) => any;
25
- /**
26
- * 从树结构数据中,递归获取指定主键的父元素集合
27
- */
28
- static getParentsById: (id: any, idProp: string, tree: any[], childProp: string, hasSelf?: boolean) => any[];
29
- /**
30
- * 获取当前节点的所有孩子节点的集合
31
- */
32
- static getChildrenById: (id: any, idProp: string, tree: any[], childProp: string, hasSelf?: boolean) => any[];
33
- /**
34
- * 获取当前节点的所有孩子节点的集合
35
- */
36
- static getChildren: (element: any, childProp: string, hasSelf?: boolean) => any[];
37
- /**
38
- * 搜索指定文本的树结构
39
- */
40
- static searchTree: (keywords: string, tree: any[], childProp: string, searchProps: any) => any[];
41
- /**
42
- * 删除指定子元素
43
- */
44
- static removeById: (id: any, idProp: string, tree: any[], childProp: string) => void;
45
- /**
46
- * 获取树结构扁平化后的节点信息
47
- */
48
- static getFlat: (tree: any[], childProp: string) => any[];
49
- /**
50
- * 对树结点的数据进行重新映射,映射得到新的Tree数组
51
- */
52
- static map: (tree: any[], prevChildProp: string, childProp: string, fun: Function) => any[];
53
- }
54
- export default TreeHelper;
@@ -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 };