halo-fe 1.0.9 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. package/dist/assets/@intlify-BISCQg1h.js +2189 -0
  2. package/dist/{vendor-@monaco-editor-DKC4UNw_.js → assets/@monaco-editor-BCDRi0Ti.js} +1 -1
  3. package/dist/assets/@vue-aVYGocXp.js +93 -0
  4. package/dist/assets/clone-DtpAsLoe.js +139 -0
  5. package/dist/{vendor-file-saver-DKXzEV2Q.js → assets/file-saver-Cnua3zoa.js} +1 -1
  6. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  7. package/dist/{vendor-underscore.string-vrHhfBaT.js → assets/underscore.string-oDfap0sE.js} +3 -3
  8. package/dist/{vendor-util-deprecate-BfbfwJhs.js → assets/util-deprecate-BqFawLoO.js} +1 -1
  9. package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
  10. package/dist/main.js +2383 -1579
  11. package/dist/style.css +1 -1
  12. package/esm/coms/Empty.vue.d.ts +1 -0
  13. package/esm/coms/conditions/Condition.vue.d.ts +12 -0
  14. package/esm/coms/conditions/Index.vue.d.ts +12 -0
  15. package/esm/coms/conditions/index.d.ts +3 -0
  16. package/esm/coms/conditions/types/ConditionGroupProps.d.ts +11 -0
  17. package/esm/coms/conditions/types/ConditionProps.d.ts +18 -0
  18. package/esm/coms/conditions/types/index.d.ts +3 -0
  19. package/esm/coms/{Code.vue.d.ts → controls/Code.vue.d.ts} +11 -3
  20. package/esm/coms/controls/Option.vue.d.ts +2 -0
  21. package/esm/coms/controls/Select.vue.d.ts +2 -0
  22. package/esm/coms/controls/index.d.ts +7 -0
  23. package/esm/coms/{types → controls/types}/CodeEmit.d.ts +1 -1
  24. package/esm/coms/controls/types/CodeProps.d.ts +28 -0
  25. package/esm/coms/controls/types/Range.d.ts +26 -0
  26. package/esm/coms/controls/types/index.d.ts +6 -0
  27. package/esm/coms/index.d.ts +5 -8
  28. package/esm/coms/layouts/index.d.ts +5 -0
  29. package/esm/coms/layouts/types/index.d.ts +2 -0
  30. package/esm/coms/types/index.d.ts +1 -6
  31. package/esm/drivers/bridges/IBridge.d.ts +7 -1
  32. package/esm/drivers/builders/Builder.d.ts +4 -1
  33. package/esm/drivers/builders/BuilderFactory.d.ts +1 -1
  34. package/esm/drivers/builders/IBuilder.d.ts +9 -0
  35. package/esm/drivers/builders/entities/ProviderTable.d.ts +22 -0
  36. package/esm/drivers/builders/entities/index.d.ts +2 -0
  37. package/esm/drivers/builders/implement/JsonBuilder.d.ts +3 -0
  38. package/esm/drivers/builders/implement/MongoBuilder.d.ts +6 -0
  39. package/esm/drivers/builders/implement/MySqlBuilder.d.ts +3 -0
  40. package/esm/drivers/builders/implement/SqlBuilder.d.ts +6 -0
  41. package/esm/drivers/builders/index.d.ts +3 -1
  42. package/esm/drivers/builders/types/ProviderTable.d.ts +6 -0
  43. package/esm/drivers/builders/types/index.d.ts +2 -0
  44. package/esm/drivers/cdns/Cdn.d.ts +20 -7
  45. package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
  46. package/esm/drivers/cdns/ICdn.d.ts +28 -11
  47. package/esm/drivers/cdns/implements/LocalCdn.d.ts +13 -6
  48. package/esm/drivers/cdns/implements/ThirdCdn.d.ts +34 -0
  49. package/esm/drivers/cdns/index.d.ts +2 -1
  50. package/esm/drivers/encoders/Encoder.d.ts +1 -1
  51. package/esm/drivers/encoders/EncoderFactory.d.ts +1 -1
  52. package/esm/drivers/encoders/IEncoder.d.ts +1 -1
  53. package/esm/drivers/encoders/implement/Base64Encoder.d.ts +2 -1
  54. package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
  55. package/esm/drivers/excels/implements/XlsxExcel.d.ts +1 -0
  56. package/esm/drivers/explainers/ExplainerFactory.d.ts +1 -1
  57. package/esm/drivers/features/FeatureFactory.d.ts +1 -1
  58. package/esm/drivers/hashers/Hasher.d.ts +1 -1
  59. package/esm/drivers/hashers/HasherFactory.d.ts +1 -1
  60. package/esm/drivers/hashers/IHasher.d.ts +1 -1
  61. package/esm/drivers/hashers/implement/Md5Hasher.d.ts +2 -1
  62. package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
  63. package/esm/drivers/https/Http.d.ts +2 -2
  64. package/esm/drivers/https/HttpFactory.d.ts +1 -1
  65. package/esm/drivers/https/entities/HttpMessage.d.ts +14 -3
  66. package/esm/drivers/https/entities/HttpRequest.d.ts +6 -2
  67. package/esm/drivers/https/implements/DefaultHttp.d.ts +9 -1
  68. package/esm/drivers/index.d.ts +2 -0
  69. package/esm/{plugins/types → drivers/messengers}/IMessenger.d.ts +2 -1
  70. package/esm/drivers/messengers/Messenger.d.ts +15 -0
  71. package/esm/drivers/messengers/MessengerFactory.d.ts +13 -0
  72. package/esm/drivers/messengers/implement/ConsoleMessenger.d.ts +15 -0
  73. package/esm/drivers/messengers/index.d.ts +4 -0
  74. package/esm/drivers/providers/IProvider.d.ts +6 -2
  75. package/esm/drivers/providers/Provider.d.ts +2 -0
  76. package/esm/drivers/providers/ProviderFactory.d.ts +1 -1
  77. package/esm/drivers/providers/helpers/SqlHelper.d.ts +11 -0
  78. package/esm/drivers/providers/helpers/index.d.ts +2 -0
  79. package/esm/drivers/providers/implements/CookieProvider.d.ts +2 -0
  80. package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +2 -0
  81. package/esm/drivers/providers/implements/StorageProvider.d.ts +3 -9
  82. package/esm/drivers/providers/index.d.ts +1 -0
  83. package/esm/drivers/signers/SignerFactory.d.ts +1 -1
  84. package/esm/drivers/ssos/SsoFactory.d.ts +1 -1
  85. package/esm/drivers/tasks/ITask.d.ts +5 -0
  86. package/esm/drivers/tasks/Task.d.ts +1 -0
  87. package/esm/drivers/tasks/TaskFactory.d.ts +1 -1
  88. package/esm/drivers/tasks/implement/MemoryTask.d.ts +15 -0
  89. package/esm/drivers/templates/ITemplate.d.ts +11 -0
  90. package/esm/drivers/templates/Template.d.ts +6 -0
  91. package/esm/drivers/templates/TemplateFactory.d.ts +9 -0
  92. package/esm/drivers/templates/implement/LiquidTemplate.d.ts +6 -0
  93. package/esm/drivers/templates/index.d.ts +3 -0
  94. package/esm/drivers/videos/VideoFactory.d.ts +1 -1
  95. package/esm/drivers/voices/VoiceFactory.d.ts +1 -1
  96. package/esm/factorying/Factories.d.ts +27 -13
  97. package/esm/factorying/Factory.d.ts +16 -8
  98. package/esm/factorying/IFactory.d.ts +6 -6
  99. package/esm/factorying/index.d.ts +12 -3
  100. package/esm/helpers/DictionaryHelper.d.ts +3 -1
  101. package/esm/helpers/DomHelper.d.ts +24 -3
  102. package/esm/helpers/JsonHelper.d.ts +18 -10
  103. package/esm/helpers/ObjectHelper.d.ts +7 -3
  104. package/esm/helpers/TreeHelper.d.ts +1 -1
  105. package/esm/helpers/index.d.ts +1 -2
  106. package/esm/helpers/types/JsonConfig.d.ts +10 -0
  107. package/esm/helpers/types/TreeNodeProp.d.ts +3 -0
  108. package/esm/helpers/types/index.d.ts +2 -1
  109. package/esm/main.d.ts +2 -2
  110. package/esm/plugins/index.d.ts +0 -1
  111. package/esm/svcs/ISvc.d.ts +2 -1
  112. package/esm/svcs/Svc.d.ts +1 -0
  113. package/esm/svcs/SvcFactory.d.ts +4 -1
  114. package/esm/svcs/implement/ConfigSvc.d.ts +4 -0
  115. package/esm/svcs/implement/I18nSvc.d.ts +83 -0
  116. package/esm/svcs/implement/SettingSvc.d.ts +4 -0
  117. package/esm/svcs/implement/index.d.ts +2 -0
  118. package/esm/svcs/index.d.ts +14 -1
  119. package/esm/types/CreateFeOptions.d.ts +24 -0
  120. package/esm/types/{CreateOptions.d.ts → CreatePcOptions.d.ts} +2 -5
  121. package/esm/types/index.d.ts +3 -2
  122. package/esm/utilities/EventUtility.d.ts +11 -0
  123. package/esm/utilities/types/DragOptions.d.ts +2 -2
  124. package/esm/utilities/types/Rect.d.ts +4 -0
  125. package/esm/utilities/types/index.d.ts +2 -2
  126. package/package.json +16 -12
  127. package/dist/vendor-clone-NGbTzSwJ.js +0 -159
  128. package/dist/vendor-crypto-js-DWn5nTKL.js +0 -4997
  129. package/dist/vendor-xlsx-js-style-DMPNZPOx.js +0 -11862
  130. package/esm/coms/types/CodeProps.d.ts +0 -18
  131. package/esm/drivers/IDisposable.d.ts +0 -10
  132. package/esm/drivers/IDriver.d.ts +0 -10
  133. package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -12
  134. package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -13
  135. package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -16
  136. package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -10
  137. package/esm/drivers/driver-helper.d.ts +0 -46
  138. package/esm/drivers/factories/DriverFactory.d.ts +0 -64
  139. package/esm/drivers/factories/Factories.d.ts +0 -55
  140. package/esm/drivers/factories/Factory.d.ts +0 -25
  141. package/esm/drivers/factories/IFactory.d.ts +0 -18
  142. package/esm/drivers/factories/implement/CdnFactory.d.ts +0 -13
  143. package/esm/drivers/factories/implement/EncoderFactory.d.ts +0 -17
  144. package/esm/drivers/factories/implement/ExcelFactory.d.ts +0 -13
  145. package/esm/drivers/factories/implement/ExplainerFactory.d.ts +0 -6
  146. package/esm/drivers/factories/implement/FeatureFactory.d.ts +0 -13
  147. package/esm/drivers/factories/implement/HasherFactory.d.ts +0 -11
  148. package/esm/drivers/factories/implement/HttpFactory.d.ts +0 -18
  149. package/esm/drivers/factories/implement/ProviderFactory.d.ts +0 -18
  150. package/esm/drivers/factories/implement/SignerFactory.d.ts +0 -13
  151. package/esm/drivers/factories/implement/SsoFactory.d.ts +0 -17
  152. package/esm/drivers/factories/implement/TaskFactory.d.ts +0 -9
  153. package/esm/drivers/factories/implement/VideoFactory.d.ts +0 -3
  154. package/esm/drivers/factories/implement/VoiceFactory.d.ts +0 -6
  155. package/esm/drivers/factories/implement/index.d.ts +0 -11
  156. package/esm/drivers/factories/index.d.ts +0 -21
  157. package/esm/drivers/providers/implements/StorageHelper.d.ts +0 -34
  158. package/esm/drivers/requesters/IRequester.d.ts +0 -25
  159. package/esm/drivers/requesters/Requester.d.ts +0 -13
  160. package/esm/drivers/requesters/RequesterFactory.d.ts +0 -21
  161. package/esm/drivers/requesters/entities/HttpRequest.d.ts +0 -34
  162. package/esm/drivers/requesters/entities/HttpResponse.d.ts +0 -19
  163. package/esm/drivers/requesters/implements/DefaultRequester.d.ts +0 -12
  164. package/esm/drivers/requesters/implements/LocalRequester.d.ts +0 -43
  165. package/esm/drivers/requesters/implements/MkRequester.d.ts +0 -40
  166. package/esm/drivers/requesters/index.d.ts +0 -5
  167. package/esm/factories/Factories.d.ts +0 -55
  168. package/esm/factories/Factory.d.ts +0 -38
  169. package/esm/factories/IFactory.d.ts +0 -27
  170. package/esm/factories/index.d.ts +0 -26
  171. package/esm/helpers/ScriptHelper.d.ts +0 -31
  172. package/esm/helpers/array-helper.d.ts +0 -97
  173. package/esm/helpers/component-helper.d.ts +0 -10
  174. package/esm/helpers/cookie-helper.d.ts +0 -6
  175. package/esm/helpers/dictionary-helper.d.ts +0 -18
  176. package/esm/helpers/dom-helper.d.ts +0 -86
  177. package/esm/helpers/event-helper.d.ts +0 -30
  178. package/esm/helpers/file-helper.d.ts +0 -22
  179. package/esm/helpers/html-helper.d.ts +0 -10
  180. package/esm/helpers/i18n-helper.d.ts +0 -14
  181. package/esm/helpers/image-helper.d.ts +0 -10
  182. package/esm/helpers/json-helper.d.ts +0 -31
  183. package/esm/helpers/math-helper.d.ts +0 -46
  184. package/esm/helpers/micro-helper.d.ts +0 -10
  185. package/esm/helpers/mount-helper.d.ts +0 -14
  186. package/esm/helpers/object-helper.d.ts +0 -34
  187. package/esm/helpers/script-helper.d.ts +0 -31
  188. package/esm/helpers/scroll-helper.d.ts +0 -14
  189. package/esm/helpers/sign-helper.d.ts +0 -14
  190. package/esm/helpers/storage-helper.d.ts +0 -34
  191. package/esm/helpers/string-helper.d.ts +0 -94
  192. package/esm/helpers/task-helper.d.ts +0 -26
  193. package/esm/helpers/time-helper.d.ts +0 -62
  194. package/esm/helpers/tree-helper.d.ts +0 -54
  195. package/esm/helpers/type-helper.d.ts +0 -26
  196. package/esm/helpers/url-helper.d.ts +0 -96
  197. package/esm/plugins/types/IMessager.d.ts +0 -34
  198. package/esm/plugins/types/index.d.ts +0 -10
  199. package/esm/services/SettingService.d.ts +0 -5
  200. package/esm/services/index.d.ts +0 -15
  201. package/esm/servs/IServ.d.ts +0 -6
  202. package/esm/servs/Serv.d.ts +0 -4
  203. package/esm/servs/ServFactory.d.ts +0 -11
  204. package/esm/servs/implement/ConfigServ.d.ts +0 -66
  205. package/esm/servs/implement/DriverServ.d.ts +0 -36
  206. package/esm/servs/implement/EnvServ.d.ts +0 -14
  207. package/esm/servs/implement/LogServ.d.ts +0 -19
  208. package/esm/servs/implement/SettingServ.d.ts +0 -42
  209. package/esm/servs/implement/SocketServ.d.ts +0 -38
  210. package/esm/servs/implement/UserServ.d.ts +0 -47
  211. package/esm/servs/index.d.ts +0 -15
  212. package/esm/stores/config.d.ts +0 -59
  213. package/esm/stores/driver.d.ts +0 -41
  214. package/esm/stores/env.d.ts +0 -12
  215. package/esm/stores/index.d.ts +0 -7
  216. package/esm/stores/log.d.ts +0 -20
  217. package/esm/stores/setting.d.ts +0 -47
  218. package/esm/stores/socket.d.ts +0 -27
  219. package/esm/stores/user.d.ts +0 -44
  220. package/esm/svcs/proxies/driverSvc.d.ts +0 -18
  221. package/esm/svcs/proxies/index.d.ts +0 -2
  222. package/esm/thirds/index.d.ts +0 -8
  223. package/esm/vite.config.d.ts +0 -6
  224. /package/dist/{vendor-moment-h96o7c8I.js → assets/moment-h96o7c8I.js} +0 -0
  225. /package/dist/{vendor-sprintf-js-BPTdvBYM.js → assets/sprintf-js-BPTdvBYM.js} +0 -0
  226. /package/dist/{vendor-state-local-CEworIRt.js → assets/state-local-CEworIRt.js} +0 -0
  227. /package/dist/{vendor-underscore-B0BCaBxV.js → assets/underscore-B0BCaBxV.js} +0 -0
  228. /package/esm/coms/{Compare.vue.d.ts → controls/Compare.vue.d.ts} +0 -0
  229. /package/esm/coms/{RichText.vue.d.ts → controls/RichText.vue.d.ts} +0 -0
  230. /package/esm/coms/{types → controls/types}/RichTextOptions.d.ts +0 -0
  231. /package/esm/coms/{types → controls/types}/RichTextProps.d.ts +0 -0
  232. /package/esm/coms/{Col.vue.d.ts → layouts/Col.vue.d.ts} +0 -0
  233. /package/esm/coms/{Container.vue.d.ts → layouts/Container.vue.d.ts} +0 -0
  234. /package/esm/coms/{Row.vue.d.ts → layouts/Row.vue.d.ts} +0 -0
  235. /package/esm/coms/{types → layouts/types}/RowProps.d.ts +0 -0
@@ -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,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,42 +0,0 @@
1
- /**
2
- * 获取前端配置
3
- */
4
- declare class SettingServ {
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 SettingServ;
@@ -1,38 +0,0 @@
1
- /**
2
- * Socket服务类
3
- */
4
- declare class SocketServ {
5
- /**
6
- * socket连接对象
7
- */
8
- socket: any;
9
- /**
10
- * 是否已连接(空表示不需连接)
11
- */
12
- connected: any;
13
- /**
14
- * 是否需要自动重新连接
15
- */
16
- reconnect: boolean;
17
- /**
18
- * 消息处理程序
19
- */
20
- handler: any;
21
- /**
22
- * 登录后,连接Socket
23
- */
24
- connect(): Promise<void>;
25
- /**
26
- * 订阅并替换Socket事件处理程序
27
- */
28
- subscribe(handler?: (event: MessageEvent) => void): void;
29
- /**
30
- * 取消订阅Socket事件处理程序,防止内存泄漏
31
- */
32
- unsubscribe(): void;
33
- /**
34
- * 退出时断开连接
35
- */
36
- disconnect(): void;
37
- }
38
- export default SocketServ;
@@ -1,47 +0,0 @@
1
- /**
2
- * 用户服务
3
- */
4
- declare class UserServ {
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 UserServ;
@@ -1,15 +0,0 @@
1
- import ConfigServ from "./implement/ConfigServ";
2
- import DriverServ from "./implement/DriverServ";
3
- import EnvServ from "./implement/EnvServ";
4
- import LogServ from "./implement/LogServ";
5
- import SettingServ from "./implement/SettingServ";
6
- import SocketServ from "./implement/SocketServ";
7
- import UserServ from "./implement/UserServ";
8
- declare let configServ: ConfigServ;
9
- declare let driverServ: DriverServ;
10
- declare let envServ: EnvServ;
11
- declare let logServ: LogServ;
12
- declare let settingServ: SettingServ;
13
- declare let socketServ: SocketServ;
14
- declare let userServ: UserServ;
15
- export { configServ, driverServ, envServ, logServ, settingServ, socketServ, userServ };
@@ -1,59 +0,0 @@
1
- /**
2
- * 使用配置仓储
3
- */
4
- declare let useConfigStore: import("pinia").StoreDefinition<"config", {
5
- /**
6
- * 默认背景
7
- */
8
- background: any;
9
- /**
10
- * 当前主题
11
- */
12
- theme: any;
13
- /**
14
- * 当前布局方式
15
- */
16
- layout: any;
17
- /**
18
- * 当前语言
19
- */
20
- language: any;
21
- /**
22
- * 字体
23
- */
24
- font: any;
25
- /**
26
- * 文件布局方式
27
- */
28
- fileLayout: any;
29
- /**
30
- * 请求器
31
- */
32
- requester: import("../drivers").IRequester;
33
- }, {}, {
34
- /**
35
- * 初始化配置值(不一定跟登录用户相关,这也是单独分离的好处)
36
- */
37
- init(configs: any[]): void;
38
- /**
39
- * 获取本地配置
40
- */
41
- getLocalConfig(type: string): any;
42
- /**
43
- * 设置背景
44
- */
45
- setBackground(background: string): void;
46
- /**
47
- * 加载用户配置
48
- */
49
- loadConfig(type: string, cached?: boolean): Promise<any>;
50
- /**
51
- * 全量保存用户配置
52
- */
53
- saveConfig(type: string, data: any, cached?: boolean): Promise<any>;
54
- /**
55
- * 部分保存用户配置
56
- */
57
- patchConfig(type: string, pairs: any): Promise<any>;
58
- }>;
59
- export default useConfigStore;
@@ -1,41 +0,0 @@
1
- /**
2
- * 使用驱动仓储
3
- */
4
- declare let useDriverStore: import("pinia").StoreDefinition<"driver", {
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
- requester: import("../drivers").IRequester;
31
- }, {}, {
32
- /**
33
- * 加载应用选项
34
- */
35
- loadApps(reload?: boolean): Promise<any>;
36
- /**
37
- * 加载环境选项
38
- */
39
- loadEnvs(reload?: boolean): Promise<any>;
40
- }>;
41
- export default useDriverStore;
@@ -1,12 +0,0 @@
1
- /**
2
- * 前端环境仓储
3
- */
4
- declare let useEnvStore: import("pinia").StoreDefinition<"env", {
5
- env: any;
6
- }, {}, {
7
- /**
8
- * 使用环境变量
9
- */
10
- useEnv(env: any): void;
11
- }>;
12
- export default useEnvStore;
@@ -1,7 +0,0 @@
1
- import useConfigStore from "./config";
2
- import useSettingStore from "./setting";
3
- import useLogStore from "./log";
4
- import useUserStore from "./user";
5
- import useSocketStore from "./socket";
6
- import useDriverStore from "./driver";
7
- export { useConfigStore, useSettingStore, useLogStore, useUserStore, useSocketStore, useDriverStore };
@@ -1,20 +0,0 @@
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;
@@ -1,47 +0,0 @@
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
- requester: import("../drivers").IRequester;
37
- }, {}, {
38
- /**
39
- * 系统初始化
40
- */
41
- init(): Promise<void>;
42
- /**
43
- * 加载设置
44
- */
45
- loadSetting(): Promise<any>;
46
- }>;
47
- export default useSettingStore;
@@ -1,27 +0,0 @@
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;
@@ -1,44 +0,0 @@
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
- */
13
- requester: import("../drivers").IRequester;
14
- }, {}, {
15
- /**
16
- * 获取本地缓存中的用户信息;好处:即使手动更改storage数据,也可以里面获取到
17
- */
18
- getSso(): any;
19
- /**
20
- * 登录后,获取用户信息
21
- */
22
- loadInfo(): Promise<any>;
23
- /**
24
- * 通过完整url和请求体,获取授权头
25
- */
26
- getAuthorization(url: string, data?: any): Promise<string>;
27
- /**
28
- * 未登录,获取匿名登录信息
29
- */
30
- getAnonymous(): void;
31
- /**
32
- * 根据路径获取路由
33
- */
34
- getMenuByUrl(url: string): any;
35
- /**
36
- * 加载服务端路由
37
- */
38
- loadMenus(): Promise<any>;
39
- /**
40
- * 退出登录
41
- */
42
- logout(): Promise<any>;
43
- }>;
44
- export default useUserStore;
@@ -1,18 +0,0 @@
1
- /**
2
- * 包装配置服务,保证驱动服务具有响应式,并且不需.value后缀
3
- */
4
- declare let driverSvc: {
5
- loaded: {
6
- apps: boolean;
7
- envs: boolean;
8
- };
9
- loading: {
10
- apps: boolean;
11
- envs: boolean;
12
- };
13
- apps: any[];
14
- envs: any[];
15
- loadApps: (reload?: boolean) => Promise<void>;
16
- loadEnvs: (reload?: boolean) => Promise<void>;
17
- };
18
- export default driverSvc;
@@ -1,2 +0,0 @@
1
- import driverSvc from "./driverSvc";
2
- export { driverSvc };
@@ -1,8 +0,0 @@
1
- import loader from "@monaco-editor/loader";
2
- import type * as Monaco from 'monaco-editor/esm/vs/editor/editor.api';
3
- import moment from "moment";
4
- /**
5
- * 异步加载echarts
6
- */
7
- export declare function loadEcharts(): Promise<unknown>;
8
- export { loader, Monaco, moment };
@@ -1,6 +0,0 @@
1
- import { UserConfig } from "vite";
2
- declare const _default: ({ command, mode }: {
3
- command: any;
4
- mode: any;
5
- }) => UserConfig;
6
- export default _default;
File without changes
File without changes
File without changes