- Activated Workbox precache PWA !
importScripts('https://storage.googleapis.com/workbox-cdn/releases/3.0.0/workbox-sw.js');
if (!workbox) {
workbox = new self.WorkboxSW();
}
if (workbox) {
workbox.core.setCacheNameDetails({prefix: "freeplanet"});
/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.suppressWarnings();
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
workbox.routing.registerRoute(/^http/, workbox.strategies.networkFirst(), 'GET');
}
This commit is contained in:
@@ -106,7 +106,7 @@
|
||||
// dynamic import, so loading on demand only
|
||||
import(`quasar-framework/i18n/${lang}`).then(lang => {
|
||||
this.$q.i18n.set(lang.default)
|
||||
import(`src/i18n`).then(function () {
|
||||
import(`src/statics/i18n`).then(function () {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
@@ -284,7 +284,7 @@ export default class SingleTodo extends Vue {
|
||||
}
|
||||
|
||||
updateicon() {
|
||||
console.log('updateicon')
|
||||
// console.log('updateicon')
|
||||
if (this.itemtodo.completed)
|
||||
this.iconCompleted = 'check_circle'
|
||||
else
|
||||
|
||||
@@ -6,7 +6,7 @@ import { ITodo } from '@src/model'
|
||||
|
||||
import { rescodes } from '../../../store/Modules/rescodes'
|
||||
|
||||
import { UserStore } from '@modules'
|
||||
import { UserStore } from '@store'
|
||||
|
||||
import _ from 'lodash'
|
||||
|
||||
@@ -45,7 +45,7 @@ export default class Todo extends Vue {
|
||||
}
|
||||
|
||||
@Watch('$route.params.category') changecat() {
|
||||
console.log('changecat')
|
||||
// console.log('changecat')
|
||||
this.load()
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ export default class Todo extends Vue {
|
||||
|
||||
async updateLinkedList(init: boolean, arr: ITodo[] = this.todos_arr) {
|
||||
|
||||
console.log('updateLinkedList', this.todos_arr)
|
||||
// console.log('updateLinkedList', this.todos_arr)
|
||||
|
||||
let idprev = -1
|
||||
let idnext = -1
|
||||
@@ -123,7 +123,7 @@ export default class Todo extends Vue {
|
||||
|
||||
pos++
|
||||
|
||||
this.logelem('updateLinked', elem)
|
||||
// this.logelem('updateLinked', elem)
|
||||
|
||||
})
|
||||
}
|
||||
@@ -240,7 +240,7 @@ export default class Todo extends Vue {
|
||||
arr.forEach(rec => {
|
||||
this.arrPrior.push(rec.value)
|
||||
})
|
||||
console.log('Array PRIOR:', this.arrPrior)
|
||||
// console.log('Array PRIOR:', this.arrPrior)
|
||||
}
|
||||
|
||||
|
||||
@@ -251,15 +251,17 @@ export default class Todo extends Vue {
|
||||
for (let todosKey in rescodes.Todos) {
|
||||
this.listPriorityLabel.push(rescodes.Todos[todosKey])
|
||||
}
|
||||
console.log('Priority:' + this.listPriorityLabel)
|
||||
// console.log('Priority:' + this.listPriorityLabel)
|
||||
this.setarrPriority()
|
||||
this.clearArr()
|
||||
|
||||
await this.updatetable()
|
||||
|
||||
/*
|
||||
this.todos_arr.forEach((elem, index) => {
|
||||
this.logelem('LOAD ' + index, elem)
|
||||
})
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
@@ -273,8 +275,8 @@ export default class Todo extends Vue {
|
||||
priority: rescodes.Todos.PRIORITY_NORMAL,
|
||||
completed: false,
|
||||
created_at: new Date(),
|
||||
category: '',
|
||||
modify_at: new Date(),
|
||||
category: '',
|
||||
expiring_at: mydateexp,
|
||||
enableExpiring: false,
|
||||
id_prev: 0,
|
||||
@@ -310,6 +312,12 @@ export default class Todo extends Vue {
|
||||
objtodo.pos = (lastelem !== null) ? lastelem.pos + 1 : 1
|
||||
objtodo.modified = true
|
||||
|
||||
if (objtodo.userId === undefined) {
|
||||
this.$q.notify(this.$t('todo.usernotdefined'))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
// Add to Indexdb
|
||||
await this.$db.todos.add(objtodo
|
||||
).then((id) => {
|
||||
@@ -442,7 +450,7 @@ export default class Todo extends Vue {
|
||||
}
|
||||
|
||||
async filtertodos(refresh: boolean = false) {
|
||||
console.log('filtertodos')
|
||||
// console.log('filtertodos')
|
||||
|
||||
let arrtemp = []
|
||||
|
||||
@@ -515,7 +523,7 @@ export default class Todo extends Vue {
|
||||
//
|
||||
|
||||
deselectAllRows(item, check, onlythis: boolean = false) {
|
||||
console.log('deselectAllRows : ', item)
|
||||
// console.log('deselectAllRows : ', item)
|
||||
|
||||
for (let i = 0; i < this.$refs.single.length; i++) {
|
||||
|
||||
@@ -574,7 +582,7 @@ export default class Todo extends Vue {
|
||||
if (miorec.modified) {
|
||||
miorec.modify_at = new Date()
|
||||
|
||||
this.logelem('modify', miorec)
|
||||
// this.logelem('modify', miorec)
|
||||
|
||||
await this.$db.todos.put(miorec)
|
||||
|
||||
|
||||
@@ -10,15 +10,15 @@
|
||||
<meta name="viewport"
|
||||
content="user-scalable=no, initial-scale=1, minimum-scale=1, width=device-width<% if (htmlWebpackPlugin.options.ctx.mode.cordova) { %>, viewport-fit=cover<% } %>">
|
||||
|
||||
<link rel="icon" href="statics/freeplanet-logo.png" type="image/x-icon">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="statics/icons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="statics/icons/favicon-16x16.png">
|
||||
<script defer src="statics/js/material.min.js"></script>
|
||||
<script src="statics/js/promise.js"></script>
|
||||
<script src="statics/js/fetch.js"></script>
|
||||
<script src="statics/js/idb.js"></script>
|
||||
<link rel="icon" href="/statics/freeplanet-logo.png" type="image/x-icon">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/statics/icons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/statics/icons/favicon-16x16.png">
|
||||
<script defer src="/statics/js/material.min.js"></script>
|
||||
<script src="/statics/js/promise.js"></script>
|
||||
<script src="/statics/js/fetch.js"></script>
|
||||
<script src="/statics/js/idb.js"></script>
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="statics/firebaseui.css" />
|
||||
<!--<link type="text/css" rel="stylesheet" href="statics/firebaseui.css" />-->
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
links
|
||||
|
||||
created() {
|
||||
console.log('Drawer created...')
|
||||
// console.log('Drawer created...')
|
||||
|
||||
let listatodo = []
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// src/plugins/i18n.js
|
||||
import VueI18n from 'vue-i18n';
|
||||
import messages from 'src/i18n';
|
||||
import messages from 'src/statics/i18n';
|
||||
|
||||
export default ({ app, store, Vue }) => {
|
||||
Vue.use(VueI18n);
|
||||
|
||||
@@ -19,12 +19,12 @@ export default class Home extends Vue {
|
||||
|
||||
constructor() {
|
||||
super()
|
||||
console.log('Home constructor...')
|
||||
// console.log('Home constructor...')
|
||||
this.initprompt()
|
||||
}
|
||||
|
||||
created() {
|
||||
console.log('Home created...')
|
||||
// console.log('Home created...')
|
||||
}
|
||||
|
||||
mystilecard() {
|
||||
|
||||
@@ -101,7 +101,8 @@ const messages = {
|
||||
titleprioritymenu: 'Priorità:',
|
||||
insert: 'Inserisci il Task',
|
||||
edit: 'Descrizione Task:',
|
||||
completed: 'Completati'
|
||||
completed: 'Completati',
|
||||
usernotdefined: 'Attenzione, occorre essere Loggati per poter aggiungere un Todo'
|
||||
}
|
||||
},
|
||||
enUk: {
|
||||
@@ -206,7 +207,8 @@ const messages = {
|
||||
titleprioritymenu: 'Priority:',
|
||||
insert: 'Insert Task',
|
||||
edit: 'Task Description:',
|
||||
completed: 'Completed'
|
||||
completed: 'Completed',
|
||||
usernotdefined: 'Attention, you need to be Signed In to add a new Task'
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -39,7 +39,7 @@ export default class Vreg extends Vue {
|
||||
}
|
||||
|
||||
load() {
|
||||
console.log('load')
|
||||
// console.log('load')
|
||||
let param: ILinkReg
|
||||
param = { idlink: this.$route.query.idlink.toString() }
|
||||
console.log('idlink = ', param)
|
||||
|
||||
Reference in New Issue
Block a user