mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 1.0 beta
This commit is contained in:
56
src/typings/storage.d.ts
vendored
56
src/typings/storage.d.ts
vendored
@ -1,23 +1,51 @@
|
||||
declare namespace StorageInterface {
|
||||
/** localStorage的存储数据的类型 */
|
||||
/**
|
||||
* the storage namespace
|
||||
*/
|
||||
declare namespace StorageType {
|
||||
interface Session {
|
||||
/** 主题颜色 */
|
||||
/**
|
||||
* the theme color
|
||||
*/
|
||||
themeColor: string;
|
||||
/** 主题配置 */
|
||||
themeSettings: Theme.Setting;
|
||||
// /**
|
||||
// * the theme settings
|
||||
// */
|
||||
// themeSettings: App.Theme.ThemeSetting;
|
||||
}
|
||||
|
||||
/** localStorage的存储数据的类型 */
|
||||
interface Local {
|
||||
/** 用户token */
|
||||
/**
|
||||
* the i18n language
|
||||
*/
|
||||
lang: App.I18n.LangType;
|
||||
/**
|
||||
* the token
|
||||
*/
|
||||
token: string;
|
||||
/** 用户刷新token */
|
||||
/**
|
||||
* the refresh token
|
||||
*/
|
||||
refreshToken: string;
|
||||
/** 用户信息 */
|
||||
userInfo: Auth.UserInfo;
|
||||
/** 多页签路由信息 */
|
||||
multiTabRoutes: App.GlobalTabRoute[];
|
||||
/** 本地语言缓存 */
|
||||
lang: I18nType.LangType;
|
||||
/**
|
||||
* the user info
|
||||
*/
|
||||
userInfo: Api.Auth.UserInfo;
|
||||
/**
|
||||
* the theme color
|
||||
*/
|
||||
themeColor: string;
|
||||
/**
|
||||
* the theme settings
|
||||
*/
|
||||
themeSettings: App.Theme.ThemeSetting;
|
||||
/**
|
||||
* the override theme flags
|
||||
* @description the value is the build time of the project
|
||||
*/
|
||||
overrideThemeFlag: string;
|
||||
/**
|
||||
* the global tabs
|
||||
*/
|
||||
globalTabs: App.Global.Tab[];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user