yuang-framework-ui-common 1.0.81 → 1.0.82
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/lib/interface/framework/frameworkLog.ts +2 -0
- package/lib/interface/gateway/gatewayRoute.ts +4 -4
- package/lib/utils/aesUtils.ts +9 -0
- package/lib/utils/ssoUtils.ts +2 -0
- package/package.json +1 -1
- package/dist/favicon.ico +0 -0
- package/dist/yuang-framework-ui-common.es.js +0 -4
- package/dist/yuang-framework-ui-common.umd.js +0 -1
@@ -5,8 +5,8 @@ import type { FrameworkBase, FrameworkBaseQueryParam } from '../framework/framew
|
|
5
5
|
*/
|
6
6
|
export interface GatewayRoute extends FrameworkBase {
|
7
7
|
routeId?: string;
|
8
|
-
|
9
|
-
|
8
|
+
name?: string;
|
9
|
+
forwardTargetUrl?: string;
|
10
10
|
predicateRoutePath?: string;
|
11
11
|
status?: number;
|
12
12
|
|
@@ -16,7 +16,7 @@ export interface GatewayRoute extends FrameworkBase {
|
|
16
16
|
* 网关路由搜索条件
|
17
17
|
*/
|
18
18
|
export interface UimsApiQueryParam extends FrameworkBaseQueryParam {
|
19
|
-
|
20
|
-
|
19
|
+
identifierForLike?: string;
|
20
|
+
nameForLike?: string;
|
21
21
|
statusForEqual?: number;
|
22
22
|
}
|
package/lib/utils/aesUtils.ts
CHANGED
@@ -17,6 +17,14 @@ const getAesRandomKey = () => {
|
|
17
17
|
return randomKey
|
18
18
|
}
|
19
19
|
|
20
|
+
/**
|
21
|
+
* 获取Aec静态key
|
22
|
+
*/
|
23
|
+
const getAesStaticKey = () => {
|
24
|
+
return "yuang-framework$";
|
25
|
+
}
|
26
|
+
|
27
|
+
|
20
28
|
/**
|
21
29
|
* aes加密
|
22
30
|
* @param aesKey
|
@@ -52,6 +60,7 @@ const aesDecrypt = (aesKey:string, originalData:string) => {
|
|
52
60
|
|
53
61
|
export {
|
54
62
|
getAesRandomKey,
|
63
|
+
getAesStaticKey,
|
55
64
|
aesEncrypt,
|
56
65
|
aesDecrypt
|
57
66
|
}
|
package/lib/utils/ssoUtils.ts
CHANGED
@@ -91,6 +91,7 @@ const getSsoEncryptList = (passwordList = []) => {
|
|
91
91
|
|
92
92
|
|
93
93
|
const ssoAccessTokenCookieKey: string = 'Sso-Access-Token';
|
94
|
+
const ssoRefreshTokenCookieKey: string = 'Sso-Refresh-Token';
|
94
95
|
const ssoAccessTokenLocalKey: string = 'ssoAccessToken';
|
95
96
|
const ssoRefreshTokenLocalKey: string = 'ssoRefreshToken';
|
96
97
|
|
@@ -153,6 +154,7 @@ const setSsoCookieAccessToken = (param: any) => {
|
|
153
154
|
|
154
155
|
const clearSsoAccessToken = () => {
|
155
156
|
Cookies.remove(ssoAccessTokenCookieKey);
|
157
|
+
Cookies.remove(ssoRefreshTokenCookieKey);
|
156
158
|
|
157
159
|
removeLocalStorageItem(ssoAccessTokenLocalKey);
|
158
160
|
removeLocalStorageItem(ssoRefreshTokenLocalKey);
|
package/package.json
CHANGED
package/dist/favicon.ico
DELETED
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
(function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e["yuang-framework-ui-common"]=n())})(this,function(){"use strict";return{}});
|