- Update the way to use the data records on Vuex with Getters!

- Fix: mongodb call passing array todos and categiroes already splitted
This commit is contained in:
Paolo Arena
2019-02-27 02:58:41 +01:00
parent 0e98ac1eaa
commit fa17de24f0
60 changed files with 3133 additions and 1839 deletions

View File

@@ -1,28 +1,48 @@
export interface ITodo {
_id?: any,
userId: string
userId?: string
category?: string
descr?: string,
priority: number,
completed: boolean,
created_at: Date,
modify_at: Date,
completed_at: Date,
expiring_at: Date,
priority?: number,
completed?: boolean,
created_at?: Date,
modify_at?: Date,
completed_at?: Date,
expiring_at?: Date,
enableExpiring?: boolean,
id_prev?: string,
id_next?: string,
modified?: boolean,
pos?: number,
order?: number,
progress?: number
}
export interface IParamTodo {
categorySel?: string
checkPending?: boolean
id?: string
objtodo?: ITodo
atfirst?: boolean
}
export interface IDrag {
field?: string
idelemtochange?: string
prioritychosen?: number
oldIndex?: number
newIndex?: number
category: string
atfirst?: boolean
}
export interface ITodosState {
visuOnlyUncompleted: boolean
todos: ITodo[]
todos_changed: number
todos: [ ITodo[] ]
categories: string[]
// todos_changed: number
reload_fromServer: number
testpao: String
insidePending: boolean
visuLastCompleted: number
}