halo-fe 1.0.21 → 1.0.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +4165 -3630
- package/dist/style.css +1 -1
- package/esm/coms/Code.vue.d.ts +41 -0
- package/esm/coms/Col.vue.d.ts +11 -0
- package/esm/coms/Compare.vue.d.ts +40 -0
- package/esm/coms/Container.vue.d.ts +23 -0
- package/esm/coms/RichText.vue.d.ts +24 -0
- package/esm/coms/Row.vue.d.ts +21 -0
- package/esm/coms/index.d.ts +1 -1
- package/esm/coms/progresses/SocketProgress.vue.d.ts +10 -1
- package/esm/coms/types/CodeEmit.d.ts +23 -0
- package/esm/coms/types/CodeProps.d.ts +18 -0
- package/esm/coms/types/RichTextOptions.d.ts +14 -0
- package/esm/coms/types/RichTextProps.d.ts +12 -0
- package/esm/coms/types/RowProps.d.ts +14 -0
- package/esm/drivers/@types/IOpen.d.ts +1 -1
- package/esm/drivers/IDriver.d.ts +10 -0
- package/esm/drivers/cdns/Cdn.d.ts +1 -1
- package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
- package/esm/drivers/cdns/implements/BootCdn.d.ts +12 -0
- package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +15 -0
- package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +21 -0
- package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +12 -0
- package/esm/drivers/encoders/EncoderFactory.d.ts +1 -1
- package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
- package/esm/drivers/factories/DriverFactory.d.ts +64 -0
- package/esm/drivers/factories/Factory.d.ts +18 -0
- package/esm/drivers/factories/IFactory.d.ts +18 -0
- package/esm/drivers/factories/index.d.ts +42 -0
- package/esm/drivers/features/FeatureFactory.d.ts +1 -1
- package/esm/drivers/hashers/HasherFactory.d.ts +4 -1
- package/esm/drivers/hashers/implement/Md5Hasher.d.ts +1 -1
- package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
- package/esm/drivers/helpers/@types/JsonConfig.d.ts +10 -0
- package/esm/drivers/helpers/@types/TreeNodeProp.d.ts +9 -0
- package/esm/drivers/helpers/@types/index.d.ts +3 -0
- package/esm/drivers/helpers/Helper.d.ts +8 -0
- package/esm/drivers/helpers/HelperFactory.d.ts +32 -0
- package/esm/drivers/helpers/IHelper.d.ts +4 -0
- package/esm/drivers/helpers/implements/ArrayHelper.d.ts +124 -0
- package/esm/drivers/helpers/implements/BrowserHelper.d.ts +12 -0
- package/esm/drivers/helpers/implements/ComponentHelper.d.ts +20 -0
- package/esm/drivers/helpers/implements/DictionaryHelper.d.ts +40 -0
- package/esm/drivers/helpers/implements/DomHelper.d.ts +118 -0
- package/esm/drivers/helpers/implements/EventHelper.d.ts +32 -0
- package/esm/drivers/helpers/implements/FileHelper.d.ts +24 -0
- package/esm/drivers/helpers/implements/HtmlHelper.d.ts +16 -0
- package/esm/drivers/helpers/implements/ImageHelper.d.ts +12 -0
- package/esm/drivers/helpers/implements/JsonHelper.d.ts +49 -0
- package/esm/drivers/helpers/implements/MathHelper.d.ts +52 -0
- package/esm/drivers/helpers/implements/MicroHelper.d.ts +12 -0
- package/esm/drivers/helpers/implements/MountHelper.d.ts +16 -0
- package/esm/drivers/helpers/implements/ObjectHelper.d.ts +44 -0
- package/esm/drivers/helpers/implements/ScrollHelper.d.ts +16 -0
- package/esm/drivers/helpers/implements/SignHelper.d.ts +16 -0
- package/esm/drivers/helpers/implements/StringHelper.d.ts +104 -0
- package/esm/drivers/helpers/implements/TaskHelper.d.ts +28 -0
- package/esm/drivers/helpers/implements/TimeHelper.d.ts +68 -0
- package/esm/drivers/helpers/implements/TreeHelper.d.ts +56 -0
- package/esm/drivers/helpers/implements/TypeHelper.d.ts +28 -0
- package/esm/drivers/helpers/implements/UrlHelper.d.ts +90 -0
- package/esm/drivers/helpers/index.d.ts +24 -0
- package/esm/drivers/https/HttpFactory.d.ts +1 -1
- package/esm/drivers/https/implements/HaloHttp.d.ts +1 -4
- package/esm/drivers/https/implements/MkHttp.d.ts +1 -1
- package/esm/drivers/i18ns/I18n.d.ts +9 -5
- package/esm/drivers/i18ns/II18n.d.ts +6 -2
- package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +1 -1
- package/esm/drivers/index.d.ts +1 -0
- package/esm/drivers/providers/ProviderFactory.d.ts +1 -1
- package/esm/drivers/providers/implements/StorageHelper.d.ts +34 -0
- package/esm/drivers/signers/SignerFactory.d.ts +1 -1
- package/esm/drivers/signers/implements/DefaultSigner.d.ts +1 -1
- package/esm/drivers/ssos/SsoFactory.d.ts +1 -1
- package/esm/factorying/Factories.d.ts +11 -7
- package/esm/factorying/Factory.d.ts +10 -5
- package/esm/factorying/Helpers.d.ts +29 -0
- package/esm/factorying/IFactory.d.ts +13 -5
- package/esm/factorying/index.d.ts +3 -1
- package/esm/helpers/MathHelper.d.ts +0 -4
- package/esm/helpers/ScriptHelper.d.ts +19 -0
- package/esm/helpers/StringHelper.d.ts +26 -18
- package/esm/helpers/array-helper.d.ts +97 -0
- package/esm/helpers/component-helper.d.ts +18 -0
- package/esm/helpers/cookie-helper.d.ts +6 -0
- package/esm/helpers/dictionary-helper.d.ts +18 -0
- package/esm/helpers/dom-helper.d.ts +86 -0
- package/esm/helpers/event-helper.d.ts +30 -0
- package/esm/helpers/file-helper.d.ts +22 -0
- package/esm/helpers/html-helper.d.ts +10 -0
- package/esm/helpers/i18n-helper.d.ts +14 -0
- package/esm/helpers/image-helper.d.ts +10 -0
- package/esm/helpers/json-helper.d.ts +39 -0
- package/esm/helpers/math-helper.d.ts +46 -0
- package/esm/helpers/micro-helper.d.ts +10 -0
- package/esm/helpers/mount-helper.d.ts +14 -0
- package/esm/helpers/object-helper.d.ts +38 -0
- package/esm/helpers/script-helper.d.ts +31 -0
- package/esm/helpers/scroll-helper.d.ts +14 -0
- package/esm/helpers/sign-helper.d.ts +14 -0
- package/esm/helpers/storage-helper.d.ts +34 -0
- package/esm/helpers/string-helper.d.ts +94 -0
- package/esm/helpers/task-helper.d.ts +26 -0
- package/esm/helpers/time-helper.d.ts +66 -0
- package/esm/helpers/tree-helper.d.ts +54 -0
- package/esm/helpers/type-helper.d.ts +26 -0
- package/esm/helpers/url-helper.d.ts +96 -0
- package/esm/main.d.ts +1 -2
- package/esm/plugins/HtmlTransform.d.ts +6 -0
- package/esm/plugins/types/IMessager.d.ts +34 -0
- package/esm/plugins/types/index.d.ts +7 -0
- package/esm/services/ConfigService.d.ts +66 -0
- package/esm/services/DriverService.d.ts +36 -0
- package/esm/services/EnvService.d.ts +14 -0
- package/esm/services/LogService.d.ts +19 -0
- package/esm/services/SettingService.d.ts +42 -0
- package/esm/services/SocketService.d.ts +23 -0
- package/esm/services/UserService.d.ts +47 -0
- package/esm/services/index.d.ts +15 -0
- package/esm/services/types/IMessage.d.ts +14 -0
- package/esm/services/types/IMessager.d.ts +34 -0
- package/esm/services/types/index.d.ts +2 -0
- package/esm/servs/ConfigServ.d.ts +66 -0
- package/esm/servs/DriverServ.d.ts +36 -0
- package/esm/servs/EnvServ.d.ts +14 -0
- package/esm/servs/IServ.d.ts +6 -0
- package/esm/servs/LogServ.d.ts +19 -0
- package/esm/servs/Serv.d.ts +4 -0
- package/esm/servs/ServFactory.d.ts +11 -0
- package/esm/servs/SettingServ.d.ts +42 -0
- package/esm/servs/SocketServ.d.ts +38 -0
- package/esm/servs/UserServ.d.ts +47 -0
- package/esm/servs/implement/ConfigServ.d.ts +66 -0
- package/esm/servs/implement/DriverServ.d.ts +36 -0
- package/esm/servs/implement/EnvServ.d.ts +14 -0
- package/esm/servs/implement/LogServ.d.ts +19 -0
- package/esm/servs/implement/SettingServ.d.ts +42 -0
- package/esm/servs/implement/SocketServ.d.ts +38 -0
- package/esm/servs/implement/UserServ.d.ts +47 -0
- package/esm/servs/index.d.ts +15 -0
- package/esm/stores/config.d.ts +63 -0
- package/esm/stores/driver.d.ts +37 -0
- package/esm/stores/env.d.ts +12 -0
- package/esm/stores/index.d.ts +8 -0
- package/esm/stores/log.d.ts +20 -0
- package/esm/stores/setting.d.ts +43 -0
- package/esm/stores/socket.d.ts +27 -0
- package/esm/stores/user.d.ts +40 -0
- package/esm/svcs/implement/ConfigSvc.d.ts +6 -2
- package/esm/svcs/implement/DriverSvc.d.ts +4 -0
- package/esm/svcs/implement/I18nSvc.d.ts +1 -1
- package/esm/svcs/implement/SettingSvc.d.ts +1 -1
- package/esm/svcs/implement/UserSvc.d.ts +8 -4
- package/esm/svcs/index.d.ts +26 -30
- package/esm/types/CreateOptions.d.ts +18 -0
- package/esm/utilities/RandomUtility.d.ts +40 -0
- package/esm/utilities/index.d.ts +2 -1
- package/package.json +1 -1
- package/esm/drivers/builders/types/ProviderTable.d.ts +0 -6
- package/esm/drivers/builders/types/index.d.ts +0 -2
- package/esm/svcs/@types/Dictionary.d.ts +0 -4
@@ -0,0 +1,47 @@
|
|
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;
|
@@ -0,0 +1,15 @@
|
|
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 };
|
@@ -0,0 +1,63 @@
|
|
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;
|
@@ -0,0 +1,37 @@
|
|
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;
|
@@ -0,0 +1,8 @@
|
|
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 };
|
@@ -0,0 +1,20 @@
|
|
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;
|
@@ -0,0 +1,43 @@
|
|
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;
|
@@ -0,0 +1,27 @@
|
|
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;
|
@@ -0,0 +1,40 @@
|
|
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,5 +1,6 @@
|
|
1
1
|
import { SysConfig, UserConfig } from "../entities";
|
2
2
|
import Svc from "../Svc";
|
3
|
+
import type SettingSvc from "./SettingSvc";
|
3
4
|
/**
|
4
5
|
* 不一定跟用户相关,此时如果使用配置仓储,使用的是配置文件的配置,非接口配置
|
5
6
|
*/
|
@@ -27,11 +28,14 @@ declare class ConfigSvc extends Svc {
|
|
27
28
|
*/
|
28
29
|
completions: {};
|
29
30
|
};
|
30
|
-
|
31
|
+
/**
|
32
|
+
* 初始化绑定基础配置信息
|
33
|
+
*/
|
34
|
+
open: (svc: SettingSvc) => void;
|
31
35
|
/**
|
32
36
|
* 初始化配置值(不一定跟登录用户相关,这也是单独分离的好处)
|
33
37
|
*/
|
34
|
-
bind(configs: UserConfig[])
|
38
|
+
bind: (configs: UserConfig[]) => Promise<void>;
|
35
39
|
/**
|
36
40
|
* 尝试添加架构
|
37
41
|
*/
|
@@ -27,14 +27,14 @@ declare class UserSvc {
|
|
27
27
|
* 获取本地缓存中的用户信息;好处:即使手动更改storage数据,也可以里面获取到
|
28
28
|
*/
|
29
29
|
getSso(): Promise<SsoUser>;
|
30
|
-
/**
|
31
|
-
* 登录后,获取用户信息
|
32
|
-
*/
|
33
|
-
loadInfo(): Promise<any>;
|
34
30
|
/**
|
35
31
|
* 未登录,获取匿名登录信息
|
36
32
|
*/
|
37
33
|
getAnonymous(): Promise<void>;
|
34
|
+
/**
|
35
|
+
* 登录后,获取用户信息
|
36
|
+
*/
|
37
|
+
loadInfo(): Promise<any>;
|
38
38
|
/**
|
39
39
|
* 根据路径获取路由
|
40
40
|
*/
|
@@ -43,6 +43,10 @@ declare class UserSvc {
|
|
43
43
|
* 加载服务端路由
|
44
44
|
*/
|
45
45
|
loadMenus(): Promise<any[]>;
|
46
|
+
/**
|
47
|
+
* 加载用户选项
|
48
|
+
*/
|
49
|
+
loadUsers(form: any): Promise<any>;
|
46
50
|
/**
|
47
51
|
* 退出登录
|
48
52
|
*/
|
package/esm/svcs/index.d.ts
CHANGED
@@ -4,31 +4,6 @@ import LogSvc from "./implement/LogSvc";
|
|
4
4
|
import SocketSvc from "./implement/SocketSvc";
|
5
5
|
import UserSvc from "./implement/UserSvc";
|
6
6
|
import SvcFactory from "./SvcFactory";
|
7
|
-
import { CreateFeOptions } from "../@types";
|
8
|
-
/**
|
9
|
-
* 驱动服务实例
|
10
|
-
*/
|
11
|
-
declare let configSvc: ConfigSvc;
|
12
|
-
/**
|
13
|
-
* 包装配置服务,保证驱动服务具有响应式,并且不需.value后缀
|
14
|
-
*/
|
15
|
-
declare let driverSvc: {
|
16
|
-
type: string;
|
17
|
-
loaded: {
|
18
|
-
apps: boolean;
|
19
|
-
envs: boolean;
|
20
|
-
};
|
21
|
-
loading: {
|
22
|
-
apps: boolean;
|
23
|
-
envs: boolean;
|
24
|
-
};
|
25
|
-
apps: any[];
|
26
|
-
envs: any[];
|
27
|
-
loadApps: (reload?: boolean) => Promise<void>;
|
28
|
-
loadEnvs: (reload?: boolean) => Promise<void>;
|
29
|
-
};
|
30
|
-
declare let envSvc: EnvSvc;
|
31
|
-
declare let logSvc: LogSvc;
|
32
7
|
declare let settingSvc: {
|
33
8
|
loaded: boolean;
|
34
9
|
particles: boolean;
|
@@ -56,11 +31,32 @@ declare let settingSvc: {
|
|
56
31
|
init: () => Promise<void>;
|
57
32
|
load: () => Promise<any>;
|
58
33
|
};
|
59
|
-
declare let socketSvc: SocketSvc;
|
60
|
-
declare let userSvc: UserSvc;
|
61
34
|
/**
|
62
|
-
*
|
35
|
+
* 驱动服务实例
|
63
36
|
*/
|
64
|
-
declare let
|
37
|
+
declare let configSvc: ConfigSvc;
|
38
|
+
/**
|
39
|
+
* 包装配置服务,保证驱动服务具有响应式,并且不需.value后缀
|
40
|
+
*/
|
41
|
+
declare let driverSvc: {
|
42
|
+
type: string;
|
43
|
+
loaded: {
|
44
|
+
apps: boolean;
|
45
|
+
envs: boolean;
|
46
|
+
};
|
47
|
+
loading: {
|
48
|
+
apps: boolean;
|
49
|
+
envs: boolean;
|
50
|
+
};
|
51
|
+
apps: any[];
|
52
|
+
envs: any[];
|
53
|
+
loadApps: (reload?: boolean) => Promise<void>;
|
54
|
+
loadEnvs: (reload?: boolean) => Promise<void>;
|
55
|
+
loadDrivers: (app: string, env: string, kind: string) => Promise<any[]>;
|
56
|
+
};
|
57
|
+
declare let envSvc: EnvSvc;
|
58
|
+
declare let logSvc: LogSvc;
|
59
|
+
declare let socketSvc: SocketSvc;
|
60
|
+
declare let userSvc: UserSvc;
|
65
61
|
export * from "./implement";
|
66
|
-
export {
|
62
|
+
export { configSvc, driverSvc, envSvc, logSvc, settingSvc, socketSvc, userSvc, SvcFactory };
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* 随机数工具类
|
3
|
+
* 带状态,如随机数记录了已经使用过的随机数
|
4
|
+
*/
|
5
|
+
declare class RandomUtility {
|
6
|
+
/**
|
7
|
+
* 随机数总长度
|
8
|
+
*/
|
9
|
+
length: number;
|
10
|
+
/**
|
11
|
+
* 当前显示元素之前的数组
|
12
|
+
*/
|
13
|
+
history: number[];
|
14
|
+
/**
|
15
|
+
* 即将要显示的数组(未空表示用户还没看过,可随机生成)
|
16
|
+
*/
|
17
|
+
future: number[];
|
18
|
+
/**
|
19
|
+
* 当前元素指针,索引值,用于指示当前显示的数在所有数组中的位置
|
20
|
+
*/
|
21
|
+
current: number;
|
22
|
+
/**
|
23
|
+
* 是否有上一个数
|
24
|
+
*/
|
25
|
+
get hasPrev(): boolean;
|
26
|
+
/**
|
27
|
+
* 是否有下一个数
|
28
|
+
*/
|
29
|
+
get hasNext(): boolean;
|
30
|
+
/**
|
31
|
+
* 获取轨迹中的上一个数的索引,箭头函数可能会导致数据更新,但是UI不更新
|
32
|
+
*/
|
33
|
+
prev(): number;
|
34
|
+
/**
|
35
|
+
* 获取下一个数
|
36
|
+
* 优先从轨迹获取,轨迹没有则取随机数
|
37
|
+
*/
|
38
|
+
next(): number;
|
39
|
+
}
|
40
|
+
export default RandomUtility;
|
package/esm/utilities/index.d.ts
CHANGED
@@ -2,6 +2,7 @@ import EventUtility from "./EventUtility";
|
|
2
2
|
import KeyboardUtility from "./KeyboardUtility";
|
3
3
|
import ListDelta from "./ListDelta";
|
4
4
|
import MouseUtility from "./MouseUtility";
|
5
|
+
import RandomUtility from "./RandomUtility";
|
5
6
|
import SaveUtility from "./SaveUtility";
|
6
7
|
export * from "./@types";
|
7
|
-
export { EventUtility, KeyboardUtility, ListDelta, MouseUtility, SaveUtility };
|
8
|
+
export { EventUtility, KeyboardUtility, ListDelta, MouseUtility, RandomUtility, SaveUtility };
|
package/package.json
CHANGED