@gonsin/gview 2.0.94 → 2.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +4457 -4229
- package/dist/style.css +1 -1
- package/dist/types/components/Result/index.d.ts +3 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/constant/local.d.ts +19 -15
- package/dist/types/hooks/nanoid.d.ts +1 -1
- package/dist/types/http/index.d.ts +1 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/dist/types/stores/setting.d.ts +36 -23
- package/dist/types/stores/website.d.ts +124 -0
- package/dist/types/utils/download.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
1
|
+
export declare const PREFIX = "VENUS_WEB";
|
|
2
|
+
export declare const LOCAL_WEBSITE_SETTING_KEY: string;
|
|
3
|
+
export declare const LOCAL_LOGIN_STATUS: string;
|
|
4
|
+
export declare const LOCAL_USER: string;
|
|
5
|
+
export declare const LOCAL_EDIFICE_INFO: string;
|
|
6
|
+
export declare const LOCAL_CONFIG: string;
|
|
7
|
+
export declare const LOCAL_USER_PERMISSIONS: string;
|
|
8
|
+
export declare const LOCAL_THEME_CONFIG: string;
|
|
9
|
+
export declare const LANG_CONFIG: string;
|
|
10
|
+
export declare const LOCAL_MENU: string;
|
|
11
|
+
export declare const LOCAL_SIDE_MENU_CONFIG: string;
|
|
12
|
+
export declare const LOCAL_INIT_TAB_MENU_LIST: string;
|
|
13
|
+
export declare const LOCAL_TAB_MENU: string;
|
|
14
|
+
export declare const TOKEN_NAME: string;
|
|
15
|
+
export declare const TOKEN_EXPIRED_TIME: string;
|
|
16
|
+
export declare const LOCAL_SESSION_ID: string;
|
|
17
|
+
export declare const LOCAL_DATA_ID: string;
|
|
18
|
+
export declare const LOCAL_COLUMN_DATA: string;
|
|
19
|
+
export declare const SESSION_FORM_DATA_CACHE: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function nanoid(length: number): string;
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function loadSessionId(): string;
|
|
@@ -7,6 +7,7 @@ export declare const RequestConfig: {
|
|
|
7
7
|
export declare class RequestHttp {
|
|
8
8
|
sessionId: () => string | null;
|
|
9
9
|
service: AxiosInstance;
|
|
10
|
+
unAuthService: AxiosInstance;
|
|
10
11
|
router: Router | null;
|
|
11
12
|
constructor(config: AxiosRequestConfig);
|
|
12
13
|
get<T>(url: string, params?: object, _object?: {}): Promise<ResultData<T>>;
|
|
@@ -35,9 +35,9 @@ export declare const useSettingStore: import("pinia").StoreDefinition<"setting",
|
|
|
35
35
|
userKey: (state: SettingState) => any;
|
|
36
36
|
}, {
|
|
37
37
|
/**
|
|
38
|
-
* @description
|
|
38
|
+
* @description 全局重新加载标识
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
toggleGlobalReload(): void;
|
|
41
41
|
/**
|
|
42
42
|
* @description 切换显示侧边菜单
|
|
43
43
|
*/
|
|
@@ -48,13 +48,42 @@ export declare const useSettingStore: import("pinia").StoreDefinition<"setting",
|
|
|
48
48
|
*/
|
|
49
49
|
toggleSettingPanel(): void;
|
|
50
50
|
/**
|
|
51
|
-
* @description
|
|
51
|
+
* @description 更改主题
|
|
52
|
+
*/
|
|
53
|
+
changeTheme(themeConfig: any): void;
|
|
54
|
+
/**
|
|
55
|
+
* @description 更改颜色模式
|
|
56
|
+
*/
|
|
57
|
+
changeMode(themeConfig: any): void;
|
|
58
|
+
/**
|
|
59
|
+
* @description 更改主题颜色
|
|
60
|
+
*/
|
|
61
|
+
changeBrandTheme(themeConfig: any): void;
|
|
62
|
+
/**
|
|
63
|
+
* @description 加载主题配置
|
|
64
|
+
*/
|
|
65
|
+
loadLocalThemeConfig(): void;
|
|
66
|
+
/**
|
|
67
|
+
* @description 设置用户登录状态
|
|
68
|
+
*/
|
|
69
|
+
setUserLoginStatus(status: boolean): void;
|
|
70
|
+
/**
|
|
71
|
+
* @description: 初始化侧边栏菜单树状数据
|
|
72
|
+
* @param {SideMenu} menus
|
|
52
73
|
*/
|
|
53
|
-
toggleGlobalReload(): void;
|
|
54
74
|
setSideMenuConfig(menus: SideMenu[]): void;
|
|
55
75
|
setUserConfig(userConfig: UserConfig): void;
|
|
56
|
-
|
|
76
|
+
setUserLang(language: string): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
* @description: 设置token值
|
|
79
|
+
* @param {string} token
|
|
80
|
+
* @param {number} tokenExpiredTime
|
|
81
|
+
*/
|
|
57
82
|
setUserToken(token: string, tokenExpiredTime: number): void;
|
|
83
|
+
/**
|
|
84
|
+
* @description: 初始化用户token
|
|
85
|
+
* @param {string} token
|
|
86
|
+
*/
|
|
58
87
|
initUserToken(token: string): void;
|
|
59
88
|
/**
|
|
60
89
|
* @description: 检查token是否过期
|
|
@@ -67,28 +96,12 @@ export declare const useSettingStore: import("pinia").StoreDefinition<"setting",
|
|
|
67
96
|
*/
|
|
68
97
|
initUserConfig(userConfig: UserConfig): Promise<void>;
|
|
69
98
|
/**
|
|
70
|
-
* @description:
|
|
99
|
+
* @description: 退出登录时初始化本地存储值
|
|
71
100
|
*/
|
|
72
101
|
resetInitValue(): void;
|
|
73
102
|
/**
|
|
74
|
-
* @description
|
|
103
|
+
* @description 用户退出登录清楚存储值
|
|
75
104
|
*/
|
|
76
105
|
userLogout(): void;
|
|
77
|
-
/**
|
|
78
|
-
* @description 更改主题
|
|
79
|
-
*/
|
|
80
|
-
changeTheme(themeConfig: any): void;
|
|
81
|
-
/**
|
|
82
|
-
* @description 更改颜色模式
|
|
83
|
-
*/
|
|
84
|
-
changeMode(themeConfig: any): void;
|
|
85
|
-
/**
|
|
86
|
-
* @description 更改主题颜色
|
|
87
|
-
*/
|
|
88
|
-
changeBrandTheme(themeConfig: any): void;
|
|
89
|
-
/**
|
|
90
|
-
* @description 加载主题配置
|
|
91
|
-
*/
|
|
92
|
-
loadLocalThemeConfig(): void;
|
|
93
106
|
}>;
|
|
94
107
|
export {};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
interface IWebsiteState {
|
|
2
|
+
websiteSetting: {
|
|
3
|
+
title: string;
|
|
4
|
+
titleEn: string;
|
|
5
|
+
faviconUrl: string;
|
|
6
|
+
loginBackground: string;
|
|
7
|
+
loginBackgroundIconUrl: string;
|
|
8
|
+
logoUrl: string;
|
|
9
|
+
copyRight: string;
|
|
10
|
+
copyRightInfo: string;
|
|
11
|
+
};
|
|
12
|
+
edificeLogoUrl: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const useWebsiteStore: import("pinia").StoreDefinition<"website", IWebsiteState, {
|
|
15
|
+
title: (state: {
|
|
16
|
+
websiteSetting: {
|
|
17
|
+
title: string;
|
|
18
|
+
titleEn: string;
|
|
19
|
+
faviconUrl: string;
|
|
20
|
+
loginBackground: string;
|
|
21
|
+
loginBackgroundIconUrl: string;
|
|
22
|
+
logoUrl: string;
|
|
23
|
+
copyRight: string;
|
|
24
|
+
copyRightInfo: string;
|
|
25
|
+
};
|
|
26
|
+
edificeLogoUrl: string;
|
|
27
|
+
} & import("pinia").PiniaCustomStateProperties<IWebsiteState>) => string;
|
|
28
|
+
titleEn: (state: {
|
|
29
|
+
websiteSetting: {
|
|
30
|
+
title: string;
|
|
31
|
+
titleEn: string;
|
|
32
|
+
faviconUrl: string;
|
|
33
|
+
loginBackground: string;
|
|
34
|
+
loginBackgroundIconUrl: string;
|
|
35
|
+
logoUrl: string;
|
|
36
|
+
copyRight: string;
|
|
37
|
+
copyRightInfo: string;
|
|
38
|
+
};
|
|
39
|
+
edificeLogoUrl: string;
|
|
40
|
+
} & import("pinia").PiniaCustomStateProperties<IWebsiteState>) => string;
|
|
41
|
+
faviconUrl: (state: {
|
|
42
|
+
websiteSetting: {
|
|
43
|
+
title: string;
|
|
44
|
+
titleEn: string;
|
|
45
|
+
faviconUrl: string;
|
|
46
|
+
loginBackground: string;
|
|
47
|
+
loginBackgroundIconUrl: string;
|
|
48
|
+
logoUrl: string;
|
|
49
|
+
copyRight: string;
|
|
50
|
+
copyRightInfo: string;
|
|
51
|
+
};
|
|
52
|
+
edificeLogoUrl: string;
|
|
53
|
+
} & import("pinia").PiniaCustomStateProperties<IWebsiteState>) => string;
|
|
54
|
+
loginBackground: (state: {
|
|
55
|
+
websiteSetting: {
|
|
56
|
+
title: string;
|
|
57
|
+
titleEn: string;
|
|
58
|
+
faviconUrl: string;
|
|
59
|
+
loginBackground: string;
|
|
60
|
+
loginBackgroundIconUrl: string;
|
|
61
|
+
logoUrl: string;
|
|
62
|
+
copyRight: string;
|
|
63
|
+
copyRightInfo: string;
|
|
64
|
+
};
|
|
65
|
+
edificeLogoUrl: string;
|
|
66
|
+
} & import("pinia").PiniaCustomStateProperties<IWebsiteState>) => string;
|
|
67
|
+
loginBackgroundIconUrl: (state: {
|
|
68
|
+
websiteSetting: {
|
|
69
|
+
title: string;
|
|
70
|
+
titleEn: string;
|
|
71
|
+
faviconUrl: string;
|
|
72
|
+
loginBackground: string;
|
|
73
|
+
loginBackgroundIconUrl: string;
|
|
74
|
+
logoUrl: string;
|
|
75
|
+
copyRight: string;
|
|
76
|
+
copyRightInfo: string;
|
|
77
|
+
};
|
|
78
|
+
edificeLogoUrl: string;
|
|
79
|
+
} & import("pinia").PiniaCustomStateProperties<IWebsiteState>) => string;
|
|
80
|
+
logoUrl: (state: {
|
|
81
|
+
websiteSetting: {
|
|
82
|
+
title: string;
|
|
83
|
+
titleEn: string;
|
|
84
|
+
faviconUrl: string;
|
|
85
|
+
loginBackground: string;
|
|
86
|
+
loginBackgroundIconUrl: string;
|
|
87
|
+
logoUrl: string;
|
|
88
|
+
copyRight: string;
|
|
89
|
+
copyRightInfo: string;
|
|
90
|
+
};
|
|
91
|
+
edificeLogoUrl: string;
|
|
92
|
+
} & import("pinia").PiniaCustomStateProperties<IWebsiteState>) => string;
|
|
93
|
+
copyRight: (state: {
|
|
94
|
+
websiteSetting: {
|
|
95
|
+
title: string;
|
|
96
|
+
titleEn: string;
|
|
97
|
+
faviconUrl: string;
|
|
98
|
+
loginBackground: string;
|
|
99
|
+
loginBackgroundIconUrl: string;
|
|
100
|
+
logoUrl: string;
|
|
101
|
+
copyRight: string;
|
|
102
|
+
copyRightInfo: string;
|
|
103
|
+
};
|
|
104
|
+
edificeLogoUrl: string;
|
|
105
|
+
} & import("pinia").PiniaCustomStateProperties<IWebsiteState>) => string;
|
|
106
|
+
copyRightInfo: (state: {
|
|
107
|
+
websiteSetting: {
|
|
108
|
+
title: string;
|
|
109
|
+
titleEn: string;
|
|
110
|
+
faviconUrl: string;
|
|
111
|
+
loginBackground: string;
|
|
112
|
+
loginBackgroundIconUrl: string;
|
|
113
|
+
logoUrl: string;
|
|
114
|
+
copyRight: string;
|
|
115
|
+
copyRightInfo: string;
|
|
116
|
+
};
|
|
117
|
+
edificeLogoUrl: string;
|
|
118
|
+
} & import("pinia").PiniaCustomStateProperties<IWebsiteState>) => string;
|
|
119
|
+
}, {
|
|
120
|
+
getWebsiteSetting(): Promise<boolean>;
|
|
121
|
+
setInitWebsiteSetting(): void;
|
|
122
|
+
setEdificeLogoUrl(url: string): void;
|
|
123
|
+
}>;
|
|
124
|
+
export {};
|