Add support for collapse navigator and global config (#33)

This commit is contained in:
AceDataCloud committed 2024-01-07 19:05:16 +08:00
1 parent 9a18b417f6
commit 439be1797d
20 files changed
+305 -50

No files matched your search

+3 -1
View File
@@ -15,7 +15,9 @@ export interface IToken {
expiration?: number;
}
export interface ISetting {}
export interface ISetting {
navigationCollapsed?: boolean;
}
export interface ICommonState {
token: IToken;
+4
View File
@@ -10,6 +10,10 @@ export default (): IRootState => {
refresh: undefined,
expiration: undefined
},
setting: {
// if PC, set default to true, else false
navigationCollapsed: window.innerWidth < 768
},
chat: chatState(),
midjourney: midjourneyState()
};