- Service Worker: Save on IndexDb and Sync to send after to the DB.

- Insert record on MongoDb, POST, GET.
This commit is contained in:
Paolo Arena
2019-02-01 04:10:31 +01:00
parent f52eb65284
commit 484439efe0
14 changed files with 494 additions and 100 deletions

View File

@@ -1,5 +1,5 @@
export interface ITodo {
id?: number,
_id?: number,
userId: string
category?: string
descr?: string,
@@ -7,6 +7,7 @@ export interface ITodo {
completed: boolean,
created_at: any,
modify_at: any,
completed_at: any,
expiring_at: any,
enableExpiring?: boolean,
id_prev?: number,
@@ -18,4 +19,6 @@ export interface ITodo {
export interface ITodosState {
visuOnlyUncompleted: boolean
networkDataReceived: boolean
todos: ITodo[]
}