Files
pqs-9100_client/frontend/src/stores/interface/index.ts

70 lines
1.5 KiB
TypeScript
Raw Normal View History

import { type Activate } from '@/api/activate/interface'
2024-08-21 14:52:36 +08:00
export type LayoutType = 'vertical' | 'classic' | 'transverse' | 'columns'
2024-08-21 14:52:36 +08:00
export type AssemblySizeType = 'large' | 'default' | 'small'
export type LanguageType = 'zh' | 'en' | null
2024-08-21 14:52:36 +08:00
/* GlobalState */
export interface GlobalState {
layout: LayoutType
assemblySize: AssemblySizeType
language: LanguageType
maximize: boolean
primary: string
isDark: boolean
isGrey: boolean
isWeak: boolean
asideInverted: boolean
headerInverted: boolean
isCollapse: boolean
accordion: boolean
breadcrumb: boolean
breadcrumbIcon: boolean
tabs: boolean
tabsIcon: boolean
footer: boolean
2024-08-21 14:52:36 +08:00
}
/* UserState */
export interface UserState {
accessToken: string
refreshToken: string
isRefreshToken: boolean
exp: number
userInfo: { id: string; name: string; loginName: string }
2024-08-21 14:52:36 +08:00
}
/* tabsMenuProps */
export interface TabsMenuProps {
icon: string
title: string
path: string
name: string
close: boolean
isKeepAlive: boolean
unshift?: boolean
2024-08-21 14:52:36 +08:00
}
/* TabsState */
export interface TabsState {
tabsMenuList: TabsMenuProps[]
2024-08-21 14:52:36 +08:00
}
/* AuthState */
export interface AuthState {
routeName: string
2025-03-28 09:31:46 +08:00
authButtonList: {
[key: string]: string[]
}
authMenuList: Menu.MenuOptions[]
showMenuFlag: boolean
activateInfo: Activate.ActivationCodePlaintext
2024-08-21 14:52:36 +08:00
}
/* KeepAliveState */
export interface KeepAliveState {
keepAliveName: string[]
2024-08-21 14:52:36 +08:00
}