halo-fe 1.0.18 → 1.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. package/dist/main.js +975 -976
  2. package/esm/drivers/builders/types/ProviderTable.d.ts +6 -0
  3. package/esm/drivers/builders/types/index.d.ts +2 -0
  4. package/esm/drivers/i18ns/I18n.d.ts +41 -0
  5. package/esm/drivers/i18ns/I18nFactory.d.ts +13 -0
  6. package/esm/drivers/i18ns/II18n.d.ts +66 -0
  7. package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +13 -0
  8. package/esm/drivers/i18ns/index.d.ts +3 -0
  9. package/esm/drivers/index.d.ts +1 -0
  10. package/esm/factorying/Factories.d.ts +15 -11
  11. package/esm/factorying/index.d.ts +16 -4
  12. package/esm/helpers/JsonHelper.d.ts +5 -1
  13. package/esm/repos/IRepo.d.ts +4 -0
  14. package/esm/repos/RepoFactory.d.ts +5 -0
  15. package/esm/repos/implements/SettingRepo.d.ts +15 -0
  16. package/esm/repos/index.d.ts +1 -1
  17. package/esm/svcs/implement/I18nSvc.d.ts +1 -1
  18. package/esm/svcs/implement/index.d.ts +1 -2
  19. package/esm/svcs/index.d.ts +1 -7
  20. package/esm/types/CreateFeOptions.d.ts +6 -5
  21. package/esm/utilities/SaveUtility.d.ts +15 -0
  22. package/esm/utilities/index.d.ts +2 -1
  23. package/package.json +2 -3
  24. package/dist/assets/@intlify-BISCQg1h.js +0 -2189
  25. package/dist/assets/@vue-aVYGocXp.js +0 -93
  26. package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
  27. package/esm/coms/Code.vue.d.ts +0 -41
  28. package/esm/coms/Col.vue.d.ts +0 -11
  29. package/esm/coms/Compare.vue.d.ts +0 -40
  30. package/esm/coms/Container.vue.d.ts +0 -23
  31. package/esm/coms/RichText.vue.d.ts +0 -24
  32. package/esm/coms/Row.vue.d.ts +0 -21
  33. package/esm/coms/types/CodeEmit.d.ts +0 -23
  34. package/esm/coms/types/CodeProps.d.ts +0 -18
  35. package/esm/coms/types/RichTextOptions.d.ts +0 -14
  36. package/esm/coms/types/RichTextProps.d.ts +0 -12
  37. package/esm/coms/types/RowProps.d.ts +0 -14
  38. package/esm/drivers/IDriver.d.ts +0 -10
  39. package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -12
  40. package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -15
  41. package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -21
  42. package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -12
  43. package/esm/drivers/factories/DriverFactory.d.ts +0 -64
  44. package/esm/drivers/factories/Factory.d.ts +0 -18
  45. package/esm/drivers/factories/IFactory.d.ts +0 -18
  46. package/esm/drivers/factories/index.d.ts +0 -42
  47. package/esm/drivers/providers/implements/StorageHelper.d.ts +0 -34
  48. package/esm/helpers/ScriptHelper.d.ts +0 -19
  49. package/esm/helpers/array-helper.d.ts +0 -97
  50. package/esm/helpers/component-helper.d.ts +0 -18
  51. package/esm/helpers/cookie-helper.d.ts +0 -6
  52. package/esm/helpers/dictionary-helper.d.ts +0 -18
  53. package/esm/helpers/dom-helper.d.ts +0 -86
  54. package/esm/helpers/event-helper.d.ts +0 -30
  55. package/esm/helpers/file-helper.d.ts +0 -22
  56. package/esm/helpers/html-helper.d.ts +0 -10
  57. package/esm/helpers/i18n-helper.d.ts +0 -14
  58. package/esm/helpers/image-helper.d.ts +0 -10
  59. package/esm/helpers/json-helper.d.ts +0 -39
  60. package/esm/helpers/math-helper.d.ts +0 -46
  61. package/esm/helpers/micro-helper.d.ts +0 -10
  62. package/esm/helpers/mount-helper.d.ts +0 -14
  63. package/esm/helpers/object-helper.d.ts +0 -38
  64. package/esm/helpers/script-helper.d.ts +0 -31
  65. package/esm/helpers/scroll-helper.d.ts +0 -14
  66. package/esm/helpers/sign-helper.d.ts +0 -14
  67. package/esm/helpers/storage-helper.d.ts +0 -34
  68. package/esm/helpers/string-helper.d.ts +0 -94
  69. package/esm/helpers/task-helper.d.ts +0 -26
  70. package/esm/helpers/time-helper.d.ts +0 -66
  71. package/esm/helpers/tree-helper.d.ts +0 -54
  72. package/esm/helpers/type-helper.d.ts +0 -26
  73. package/esm/helpers/url-helper.d.ts +0 -96
  74. package/esm/plugins/HtmlTransform.d.ts +0 -6
  75. package/esm/plugins/types/IMessager.d.ts +0 -34
  76. package/esm/plugins/types/index.d.ts +0 -7
  77. package/esm/services/ConfigService.d.ts +0 -66
  78. package/esm/services/DriverService.d.ts +0 -36
  79. package/esm/services/EnvService.d.ts +0 -14
  80. package/esm/services/LogService.d.ts +0 -19
  81. package/esm/services/SettingService.d.ts +0 -42
  82. package/esm/services/SocketService.d.ts +0 -23
  83. package/esm/services/UserService.d.ts +0 -47
  84. package/esm/services/index.d.ts +0 -15
  85. package/esm/services/types/IMessage.d.ts +0 -14
  86. package/esm/services/types/IMessager.d.ts +0 -34
  87. package/esm/services/types/index.d.ts +0 -2
  88. package/esm/servs/ConfigServ.d.ts +0 -66
  89. package/esm/servs/DriverServ.d.ts +0 -36
  90. package/esm/servs/EnvServ.d.ts +0 -14
  91. package/esm/servs/IServ.d.ts +0 -6
  92. package/esm/servs/LogServ.d.ts +0 -19
  93. package/esm/servs/Serv.d.ts +0 -4
  94. package/esm/servs/ServFactory.d.ts +0 -11
  95. package/esm/servs/SettingServ.d.ts +0 -42
  96. package/esm/servs/SocketServ.d.ts +0 -38
  97. package/esm/servs/UserServ.d.ts +0 -47
  98. package/esm/servs/implement/ConfigServ.d.ts +0 -66
  99. package/esm/servs/implement/DriverServ.d.ts +0 -36
  100. package/esm/servs/implement/EnvServ.d.ts +0 -14
  101. package/esm/servs/implement/LogServ.d.ts +0 -19
  102. package/esm/servs/implement/SettingServ.d.ts +0 -42
  103. package/esm/servs/implement/SocketServ.d.ts +0 -38
  104. package/esm/servs/implement/UserServ.d.ts +0 -47
  105. package/esm/servs/index.d.ts +0 -15
  106. package/esm/stores/config.d.ts +0 -63
  107. package/esm/stores/driver.d.ts +0 -37
  108. package/esm/stores/env.d.ts +0 -12
  109. package/esm/stores/index.d.ts +0 -8
  110. package/esm/stores/log.d.ts +0 -20
  111. package/esm/stores/setting.d.ts +0 -43
  112. package/esm/stores/socket.d.ts +0 -27
  113. package/esm/stores/user.d.ts +0 -40
  114. package/esm/types/CreateOptions.d.ts +0 -18
@@ -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,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,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,63 +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
- editor: {
30
- schemas: any[];
31
- completions: {};
32
- };
33
- }, {}, {
34
- /**
35
- * 初始化配置值(不一定跟登录用户相关,这也是单独分离的好处)
36
- */
37
- init(configs: any[]): void;
38
- /**
39
- * 尝试添加架构
40
- */
41
- tryAddSchema(uri: string, fileMatch: string, schema: object): void;
42
- /**
43
- * 获取本地配置
44
- */
45
- getLocalConfig(type: string): any;
46
- /**
47
- * 设置背景
48
- */
49
- setBackground(background: string): void;
50
- /**
51
- * 加载用户配置
52
- */
53
- loadConfig(type: string, cached?: boolean): Promise<any>;
54
- /**
55
- * 全量保存用户配置
56
- */
57
- saveConfig(type: string, data: any, cached?: boolean): Promise<boolean>;
58
- /**
59
- * 部分保存用户配置
60
- */
61
- patchConfig(type: string, pairs: any): Promise<boolean>;
62
- }>;
63
- export default useConfigStore;
@@ -1,37 +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
- */
31
- loadApps(reload?: boolean): Promise<void>;
32
- /**
33
- * 加载环境选项
34
- */
35
- loadEnvs(reload?: boolean): Promise<void>;
36
- }>;
37
- 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,8 +0,0 @@
1
- import useConfigStore from "./config";
2
- import useDriverStore from "./driver";
3
- import useEnvStore from "./env";
4
- import useSettingStore from "./setting";
5
- import useLogStore from "./log";
6
- import useUserStore from "./user";
7
- import useSocketStore from "./socket";
8
- export { useConfigStore, useSettingStore, useLogStore, useUserStore, useSocketStore, useDriverStore, useEnvStore };
@@ -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,43 +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
- */
37
- init(): Promise<void>;
38
- /**
39
- * 加载设置
40
- */
41
- loadSetting(): Promise<any>;
42
- }>;
43
- 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,40 +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
- * 获取本地缓存中的用户信息;好处:即使手动更改storage数据,也可以里面获取到
13
- */
14
- getSso(): Promise<any>;
15
- /**
16
- * 登录后,获取用户信息
17
- */
18
- loadInfo(): Promise<any>;
19
- /**
20
- * 通过完整url和请求体,获取授权头
21
- */
22
- getAuth(url: string, body?: string): Promise<string>;
23
- /**
24
- * 未登录,获取匿名登录信息
25
- */
26
- getAnonymous(): void;
27
- /**
28
- * 根据路径获取路由
29
- */
30
- getMenuByUrl(url: string): any;
31
- /**
32
- * 加载服务端路由
33
- */
34
- loadMenus(): Promise<any>;
35
- /**
36
- * 退出登录
37
- */
38
- logout(): Promise<void>;
39
- }>;
40
- export default useUserStore;
@@ -1,18 +0,0 @@
1
- /**
2
- * 初始化选项
3
- */
4
- declare interface CreateOptions {
5
- /**
6
- * 前端环境变量
7
- */
8
- env: any;
9
- /**
10
- * 自定义路由
11
- */
12
- routes: any[];
13
- /**
14
- * 多语言配置
15
- */
16
- lang: any;
17
- }
18
- export default CreateOptions;