Refine and clean files and variables (#10)
This commit is contained in:
1 parent
0e6018e9b2
commit
6e980c7c34
45 files changed
+98
-522
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { IApplication, IUser } from '@/operators';
|
||||
import { IUser } from '@/operators';
|
||||
import { IMidjourneyState } from '../midjourney/models';
|
||||
import { IChatState } from '../chat/models';
|
||||
|
||||
@@ -14,18 +14,15 @@ export interface IToken {
|
||||
expiration?: number;
|
||||
}
|
||||
|
||||
export interface ISetting {
|
||||
stream?: boolean;
|
||||
endpoint?: string;
|
||||
}
|
||||
export interface ISetting {}
|
||||
|
||||
export interface ICommonState {
|
||||
token: IToken;
|
||||
user: IUser;
|
||||
setting: ISetting;
|
||||
setting?: ISetting;
|
||||
}
|
||||
|
||||
export interface IRootState extends ICommonState {
|
||||
midjourney?: IMidjourneyState;
|
||||
chat?: IChatState;
|
||||
midjourney: IMidjourneyState;
|
||||
chat: IChatState;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import { ENDPOINT } from '@/constants';
|
||||
import { IRootState } from './models';
|
||||
import chatState from '../chat/state';
|
||||
import midjourneyState from '../midjourney/state';
|
||||
|
||||
export default (): IRootState => {
|
||||
return {
|
||||
@@ -9,9 +10,7 @@ export default (): IRootState => {
|
||||
refresh: undefined,
|
||||
expiration: undefined
|
||||
},
|
||||
setting: {
|
||||
endpoint: ENDPOINT,
|
||||
stream: false
|
||||
}
|
||||
chat: chatState(),
|
||||
midjourney: midjourneyState()
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user