Show Button, when Upgrade Version is available ! (check from the server, the version number

- for debug: added led button to see when is calling the server and the IndexedDb.
This commit is contained in:
Paolo Arena
2019-02-22 10:23:00 +01:00
parent 1623a5c35d
commit 0e98ac1eaa
41 changed files with 1411 additions and 992 deletions

View File

@@ -2,6 +2,18 @@ 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
valore: string
}
export type StateConnection = 'online' | 'offline'
export interface IGlobalState {
@@ -15,6 +27,9 @@ export interface IGlobalState {
leftDrawerOpen: boolean
category: string
stateConnection: string
networkDataReceived: boolean
cfgServer: ICfgServer[]
connData: IConnData
posts: IPost[]
listatodo: ITodoList[]
}

View File

@@ -20,7 +20,6 @@ export interface ITodo {
export interface ITodosState {
visuOnlyUncompleted: boolean
networkDataReceived: boolean
todos: ITodo[]
todos_changed: number
reload_fromServer: number

View File

@@ -28,4 +28,5 @@ export interface IUserState {
resStatus?: number
x_auth_token?: string
isLogged?: boolean
isAdmin?: boolean
}