- starting project list...

- ordering some functions
- fix error TS2339

quasar.extensions.json was the problem !
inside had:
{
  "@quasar/typescript": {
    "webpack": "plugin",
    "rename": true
  }
}
This commit is contained in:
Paolo Arena
2019-03-21 20:43:15 +01:00
parent 1fd56419a4
commit eda9a8514f
53 changed files with 28076 additions and 726 deletions

View File

@@ -1,18 +1,19 @@
import { Todos, UserStore } from '@store'
import _ from 'lodash'
import store, { GlobalStore } from '../store'
import { GlobalStore } from '../store/Modules'
import { idbKeyval as storage } from '../js/storage.js'
import { costanti } from '../store/Modules/costanti'
import { ICfgData } from '@src/model'
import { ICfgData, IGlobalState } from '@src/model'
function saveConfigIndexDb(context) {
const data: ICfgData = {}
data._id = costanti.CONFIG_ID_CFG
data.lang = UserStore.state.lang
data.token = UserStore.state.x_auth_token
data.userId = UserStore.state.userId
const data: ICfgData = {
_id: costanti.CONFIG_ID_CFG,
lang: UserStore.state.lang,
token: UserStore.state.x_auth_token,
userId: UserStore.state.userId
}
writeConfigIndexDb('config', data)
}
@@ -21,10 +22,6 @@ function writeConfigIndexDb(context, data) {
// console.log('writeConfigIndexDb', data)
storage.setdata('config', data)
.then((ris) => {
return true
})
}
async function readfromIndexDbToStateTodos(context, table) {