2023-06-30 13:43:20 +08:00
|
|
|
import { getConfigLayout } from "@/utils/cache/local-storage"
|
|
|
|
|
2022-04-21 18:20:39 +08:00
|
|
|
/** 布局配置 */
|
2023-06-30 13:43:20 +08:00
|
|
|
export interface LayoutSettings {
|
2022-07-01 16:25:51 +08:00
|
|
|
/** 是否显示 Settings Panel */
|
2022-04-21 18:20:39 +08:00
|
|
|
showSettings: boolean
|
2022-07-01 16:25:51 +08:00
|
|
|
/** 是否显示标签栏 */
|
2022-04-21 18:20:39 +08:00
|
|
|
showTagsView: boolean
|
2022-07-01 16:25:51 +08:00
|
|
|
/** 是否显示侧边栏 Logo */
|
2022-04-21 18:20:39 +08:00
|
|
|
showSidebarLogo: boolean
|
2022-07-01 16:25:51 +08:00
|
|
|
/** 是否固定 Header */
|
2022-04-21 18:20:39 +08:00
|
|
|
fixedHeader: boolean
|
2022-10-31 15:35:51 +08:00
|
|
|
/** 是否显示消息通知 */
|
|
|
|
showNotify: boolean
|
2022-07-01 16:25:51 +08:00
|
|
|
/** 是否显示切换主题按钮 */
|
2022-04-21 18:20:39 +08:00
|
|
|
showThemeSwitch: boolean
|
2022-07-01 16:25:51 +08:00
|
|
|
/** 是否显示全屏按钮 */
|
2022-04-21 18:20:39 +08:00
|
|
|
showScreenfull: boolean
|
2023-06-30 12:50:24 +08:00
|
|
|
/** 是否缓存标签栏 */
|
|
|
|
cacheTagsView: boolean
|
2022-12-08 18:06:01 +08:00
|
|
|
/** 是否显示灰色模式 */
|
|
|
|
showGreyMode: boolean
|
|
|
|
/** 是否显示色弱模式 */
|
|
|
|
showColorWeakness: boolean
|
2022-04-21 18:20:39 +08:00
|
|
|
}
|
|
|
|
|
2023-06-30 13:43:20 +08:00
|
|
|
export const layoutSettings: LayoutSettings = getConfigLayout() ?? {
|
2022-04-21 18:20:39 +08:00
|
|
|
showSettings: true,
|
|
|
|
showTagsView: true,
|
2022-05-12 19:07:54 +08:00
|
|
|
fixedHeader: true,
|
2022-04-21 18:20:39 +08:00
|
|
|
showSidebarLogo: true,
|
2022-10-31 15:35:51 +08:00
|
|
|
showNotify: true,
|
2022-04-21 18:20:39 +08:00
|
|
|
showThemeSwitch: true,
|
2022-12-08 18:06:01 +08:00
|
|
|
showScreenfull: true,
|
2023-06-30 12:50:24 +08:00
|
|
|
cacheTagsView: false,
|
2022-12-08 18:06:01 +08:00
|
|
|
showGreyMode: false,
|
|
|
|
showColorWeakness: false
|
2022-04-21 18:20:39 +08:00
|
|
|
}
|