| | |
| | | } from '/@/enums/appEnum'; |
| | | |
| | | import { CacheTypeEnum } from '/@/enums/cacheEnum'; |
| | | import type { LocaleType } from '/@/locales/types'; |
| | | import { ThemeMode } from '../build/config/themeConfig'; |
| | | |
| | | export type LocaleType = 'zh_CN' | 'en' | 'ru' | 'ja' | 'ko'; |
| | | |
| | | export interface MenuSetting { |
| | | bgColor: string; |
| | |
| | | } |
| | | |
| | | export interface MultiTabsSetting { |
| | | cache: boolean; |
| | | show: boolean; |
| | | showQuick: boolean; |
| | | canDrag: boolean; |
| | |
| | | } |
| | | |
| | | export interface LocaleSetting { |
| | | show: boolean; |
| | | showPicker: boolean; |
| | | // Current language |
| | | lang: LocaleType; |
| | | locale: LocaleType; |
| | | // default language |
| | | fallback: LocaleType; |
| | | // available Locales |
| | |
| | | } |
| | | |
| | | export interface ProjectConfig { |
| | | // Multilingual configuration |
| | | locale: LocaleSetting; |
| | | // Storage location of permission related information |
| | | permissionCacheType: CacheTypeEnum; |
| | | // Whether to show the configuration button |
| | | showSettingButton: boolean; |
| | | // Whether to show the theme switch button |
| | | showDarkModeToggle: boolean; |
| | | // Configure where the button is displayed |
| | | settingButtonPosition: SettingButtonPositionEnum; |
| | | // Permission mode |
| | |
| | | // Theme color |
| | | themeColor: string; |
| | | |
| | | themeMode: ThemeMode; |
| | | // The main interface is displayed in full screen, the menu is not displayed, and the top |
| | | fullContent: boolean; |
| | | // content width |