ruoyi-plus-soybean/src/typings/storage.d.ts

40 lines
982 B
TypeScript
Raw Normal View History

2023-12-14 21:45:29 +08:00
/** The storage namespace */
2023-11-17 08:45:00 +08:00
declare namespace StorageType {
interface Session {
2023-12-14 21:45:29 +08:00
/** The theme color */
themeColor: string;
2023-11-17 08:45:00 +08:00
// /**
// * the theme settings
// */
// themeSettings: App.Theme.ThemeSetting;
}
interface Local {
2023-12-14 21:45:29 +08:00
/** The i18n language */
2023-11-17 08:45:00 +08:00
lang: App.I18n.LangType;
2023-12-14 21:45:29 +08:00
/** The token */
token: string;
/** Fixed sider with mix-menu */
mixSiderFixed: CommonType.YesOrNo;
2023-12-14 21:45:29 +08:00
/** The refresh token */
refreshToken: string;
2023-12-14 21:45:29 +08:00
/** The theme color */
2023-11-17 08:45:00 +08:00
themeColor: string;
2023-12-14 21:45:29 +08:00
/** The theme settings */
2023-11-17 08:45:00 +08:00
themeSettings: App.Theme.ThemeSetting;
/**
2023-12-14 21:45:29 +08:00
* The override theme flags
*
* The value is the build time of the project
2023-11-17 08:45:00 +08:00
*/
overrideThemeFlag: string;
2023-12-14 21:45:29 +08:00
/** The global tabs */
2023-11-17 08:45:00 +08:00
globalTabs: App.Global.Tab[];
/** The backup theme setting before is mobile */
backupThemeSettingBeforeIsMobile: {
layout: UnionKey.ThemeLayoutMode;
siderCollapse: boolean;
};
}
}