|
|
@ -29,7 +29,6 @@ export interface AppInfo { |
|
|
|
|
|
|
|
|
|
|
|
export interface StoredState { |
|
|
|
export interface StoredState { |
|
|
|
token: string | null |
|
|
|
token: string | null |
|
|
|
user: User | null |
|
|
|
|
|
|
|
lang: keyof typeof Language |
|
|
|
lang: keyof typeof Language |
|
|
|
darkMode: boolean |
|
|
|
darkMode: boolean |
|
|
|
feedbackForm: FeedbackForm |
|
|
|
feedbackForm: FeedbackForm |
|
|
@ -43,6 +42,7 @@ export interface StoredState { |
|
|
|
|
|
|
|
|
|
|
|
export type State = ToRefs<Omit<StoredState, 'token'>> & { |
|
|
|
export type State = ToRefs<Omit<StoredState, 'token'>> & { |
|
|
|
storage: Ref<StoredState> |
|
|
|
storage: Ref<StoredState> |
|
|
|
|
|
|
|
user: Ref<User | null> |
|
|
|
token: WritableComputedRef<StoredState['token']> |
|
|
|
token: WritableComputedRef<StoredState['token']> |
|
|
|
jwtPayload: ComputedRef<(JwtPayload & User) | null> |
|
|
|
jwtPayload: ComputedRef<(JwtPayload & User) | null> |
|
|
|
timestamp: Ref<number> |
|
|
|
timestamp: Ref<number> |
|
|
|