Files
freeplanet/src/model/GlobalStore.ts

68 lines
1.2 KiB
TypeScript
Raw Normal View History

import { costanti } from "@src/store/Modules/costanti"
import { UserStore } from "@store"
export interface IPost {
title: string
}
export interface IConnData {
downloading_server: number
downloading_indexeddb: number
uploading_server: number
uploading_indexeddb: number
}
export interface ICfgServer {
chiave: string
2019-03-04 17:28:29 +01:00
userId: string
valore: string
}
export interface ICfgData {
_id?: string
lang?: string
token?: string
userId?: string
}
export interface ITestp1 {
contatore: number
mioarray: ICfgServer[]
}
export type StateConnection = 'online' | 'offline'
2019-03-04 17:28:29 +01:00
export interface IConfig {
_id: string,
key?: string,
value: string
}
export interface IGlobalState {
conta: number
2019-02-13 18:48:30 +01:00
wasAlreadySubOnDb: boolean
wasAlreadySubscribed: boolean
isLoginPage: boolean
layoutNeeded: boolean
mobileMode: boolean
menuCollapse: boolean
leftDrawerOpen: boolean
category: string
stateConnection: string
networkDataReceived: boolean
cfgServer: ICfgServer[]
testp1: ITestp1
connData: IConnData
posts: IPost[]
2019-03-13 01:53:53 +01:00
menulinks: {}
listatodo: ITodoList[]
2019-03-04 17:28:29 +01:00
arrConfig: IConfig[]
}
export interface ITodoList {
namecat: string
description: string
}