This commit is contained in:
liangjian
2026-01-27 16:32:15 +08:00
commit 836c61ac55
303 changed files with 34442 additions and 0 deletions

53
types/store.d.ts vendored Normal file
View File

@@ -0,0 +1,53 @@
declare interface AclModuleType {
admin: boolean
permission: string[]
role: string[]
}
declare interface BingModuleType {
backgroundList: string[]
}
declare interface ErrorLogModuleType {
errorLogs: any[]
}
declare interface RoutesModuleType {
tab: {
data: string | undefined
}
tabMenu: string | undefined
activeMenu: {
data: string | undefined
}
routes: any[]
allRoutes: any[]
breadcrumbRoutes: any[]
}
declare type DeviceType = 'mobile' | 'desktop'
declare type LanguageType = 'zh' | 'en'
declare interface SettingsModuleType {
collapse: boolean
device: DeviceType
language: LanguageType
lock: boolean
logo: string
mode: string
persistenceTab: boolean
theme: ThemeType
title: string
}
declare interface TabsModuleType {
caughtRoutes: []
visitedRoutes: any[]
}
declare interface UserModuleType {
avatar: string
token: string | boolean
username: string,
enums: object
}