@kengic/vue 0.26.6-beta.2 → 0.26.6-beta.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +55231 -21247
- package/dist/src/components-next/KgVarConfig/KgVarConfig.d.ts +2 -0
- package/dist/src/components-next/KgVarConfig/index.d.ts +1 -0
- package/dist/src/components-next/index.d.ts +1 -0
- package/dist/src/config/setup/setup.d.ts +2 -2
- package/dist/src/index.d.ts +2 -0
- package/package.json +12 -11
- package/dist/src/project/src/api/index.d.ts +0 -3
- package/dist/src/project/src/api/sys/model/menuModel.d.ts +0 -15
- package/dist/src/project/src/api/sys/model/uploadModel.d.ts +0 -5
- package/dist/src/project/src/api/sys/model/userModel.d.ts +0 -46
- package/dist/src/project/src/components/Dropdown/index.d.ts +0 -1
- package/dist/src/project/src/components/Dropdown/src/typing.d.ts +0 -9
- package/dist/src/project/src/components/index.d.ts +0 -1
- package/dist/src/project/src/enums/CompTypeEnum.d.ts +0 -19
- package/dist/src/project/src/enums/DateTypeEnum.d.ts +0 -8
- package/dist/src/project/src/enums/appEnum.d.ts +0 -40
- package/dist/src/project/src/enums/breakpointEnum.d.ts +0 -18
- package/dist/src/project/src/enums/cacheEnum.d.ts +0 -18
- package/dist/src/project/src/enums/exceptionEnum.d.ts +0 -17
- package/dist/src/project/src/enums/httpEnum.d.ts +0 -38
- package/dist/src/project/src/enums/index.d.ts +0 -13
- package/dist/src/project/src/enums/jeecgEnum.d.ts +0 -16
- package/dist/src/project/src/enums/menuEnum.d.ts +0 -35
- package/dist/src/project/src/enums/pageEnum.d.ts +0 -14
- package/dist/src/project/src/enums/roleEnum.d.ts +0 -4
- package/dist/src/project/src/enums/sizeEnum.d.ts +0 -18
- package/dist/src/project/src/hooks/index.d.ts +0 -1
- package/dist/src/project/src/hooks/web/useI18n.d.ts +0 -13
- package/dist/src/project/src/index.d.ts +0 -13
- package/dist/src/project/src/locales/helper.d.ts +0 -5
- package/dist/src/project/src/locales/index.d.ts +0 -3
- package/dist/src/project/src/locales/setupI18n.d.ts +0 -4
- package/dist/src/project/src/locales/useLocale.d.ts +0 -10
- package/dist/src/project/src/settings/componentSetting.d.ts +0 -44
- package/dist/src/project/src/settings/designSetting.d.ts +0 -6
- package/dist/src/project/src/settings/encryptionSetting.d.ts +0 -6
- package/dist/src/project/src/settings/index.d.ts +0 -3
- package/dist/src/project/src/store/index.d.ts +0 -1
- package/dist/src/project/src/store/modules/index.d.ts +0 -1
- package/dist/src/project/src/store/modules/locale.d.ts +0 -38
- package/dist/src/project/src/utils/cache/index.d.ts +0 -7
- package/dist/src/project/src/utils/cache/memory.d.ts +0 -22
- package/dist/src/project/src/utils/cache/persistent.d.ts +0 -33
- package/dist/src/project/src/utils/cache/storageCache.d.ts +0 -8
- package/dist/src/project/src/utils/cipher.d.ts +0 -19
- package/dist/src/project/src/utils/env.d.ts +0 -34
@@ -1,33 +0,0 @@
|
|
1
|
-
import type { RouteLocationNormalized } from 'vue-router';
|
2
|
-
import { SysUserWarehouseDTO } from '../../../../apis/WMS/models';
|
3
|
-
import { LoginInfo, ProjectConfig, UserInfo } from '../../../types';
|
4
|
-
import { DB_DICT_DATA_KEY, LOCK_INFO_KEY, LOGIN_INFO_KEY, MULTIPLE_TABS_KEY, PROJ_CFG_KEY, ROLES_KEY, TENANT_ID, TOKEN_KEY, USER_INFO_KEY, USER_WAREHOUSE_KEY } from '../../enums';
|
5
|
-
interface BasicStore {
|
6
|
-
[TOKEN_KEY]: string | number | null | undefined;
|
7
|
-
[USER_INFO_KEY]: UserInfo;
|
8
|
-
[ROLES_KEY]: string[];
|
9
|
-
[USER_WAREHOUSE_KEY]: SysUserWarehouseDTO[];
|
10
|
-
[LOCK_INFO_KEY]: LockInfo;
|
11
|
-
[PROJ_CFG_KEY]: ProjectConfig;
|
12
|
-
[MULTIPLE_TABS_KEY]: RouteLocationNormalized[];
|
13
|
-
[DB_DICT_DATA_KEY]: string;
|
14
|
-
[TENANT_ID]: string;
|
15
|
-
[LOGIN_INFO_KEY]: LoginInfo;
|
16
|
-
}
|
17
|
-
declare type LocalStore = BasicStore;
|
18
|
-
declare type SessionStore = BasicStore;
|
19
|
-
export declare type BasicKeys = keyof BasicStore;
|
20
|
-
declare type LocalKeys = keyof LocalStore;
|
21
|
-
declare type SessionKeys = keyof SessionStore;
|
22
|
-
export declare class Persistent {
|
23
|
-
static getLocal<T>(key: LocalKeys): Nullable<T>;
|
24
|
-
static setLocal(key: LocalKeys, value: LocalStore[LocalKeys], immediate?: boolean): void;
|
25
|
-
static removeLocal(key: LocalKeys, immediate?: boolean): void;
|
26
|
-
static clearLocal(immediate?: boolean): void;
|
27
|
-
static getSession<T>(key: SessionKeys): Nullable<T>;
|
28
|
-
static setSession(key: SessionKeys, value: SessionStore[SessionKeys], immediate?: boolean): void;
|
29
|
-
static removeSession(key: SessionKeys, immediate?: boolean): void;
|
30
|
-
static clearSession(immediate?: boolean): void;
|
31
|
-
static clearAll(immediate?: boolean): void;
|
32
|
-
}
|
33
|
-
export {};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
export interface EncryptionParams {
|
2
|
-
key: string;
|
3
|
-
iv: string;
|
4
|
-
}
|
5
|
-
export declare class AesEncryption {
|
6
|
-
private key;
|
7
|
-
private iv;
|
8
|
-
constructor(opt?: Partial<EncryptionParams>);
|
9
|
-
get getOptions(): {
|
10
|
-
mode: any;
|
11
|
-
padding: any;
|
12
|
-
iv: any;
|
13
|
-
};
|
14
|
-
encryptByAES(cipherText: string): string;
|
15
|
-
decryptByAES(cipherText: string): string;
|
16
|
-
}
|
17
|
-
export declare function encryptByBase64(cipherText: string): string;
|
18
|
-
export declare function decodeByBase64(cipherText: string): string;
|
19
|
-
export declare function encryptByMd5(password: string): string;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
export declare function getCommonStoragePrefix(): string;
|
2
|
-
export declare function getStorageShortName(): string;
|
3
|
-
export declare function getAppEnvConfig(): {
|
4
|
-
VITE_GLOB_APP_TITLE: string;
|
5
|
-
VITE_GLOB_API_URL: string;
|
6
|
-
VITE_USE_MOCK: string;
|
7
|
-
VITE_GLOB_APP_SHORT_NAME: string;
|
8
|
-
VITE_GLOB_API_URL_PREFIX: string | undefined;
|
9
|
-
VITE_GLOB_APP_OPEN_SSO: string;
|
10
|
-
VITE_GLOB_APP_OPEN_QIANKUN: string;
|
11
|
-
VITE_GLOB_APP_CAS_BASE_URL: string;
|
12
|
-
VITE_GLOB_DOMAIN_URL: string;
|
13
|
-
VITE_GLOB_ONLINE_VIEW_URL: string | undefined;
|
14
|
-
};
|
15
|
-
/**
|
16
|
-
* @description: Development mode
|
17
|
-
*/
|
18
|
-
export declare const devMode = "development";
|
19
|
-
/**
|
20
|
-
* @description: Production mode
|
21
|
-
*/
|
22
|
-
export declare const prodMode = "production";
|
23
|
-
/**
|
24
|
-
* @description: Is it a development mode
|
25
|
-
* @returns:
|
26
|
-
* @example:
|
27
|
-
*/
|
28
|
-
export declare function isDevMode(): boolean;
|
29
|
-
/**
|
30
|
-
* @description: Is it a production mode
|
31
|
-
* @returns:
|
32
|
-
* @example:
|
33
|
-
*/
|
34
|
-
export declare function isProdMode(): boolean;
|