diff --git a/.env.development b/.env.development index 2327087..f2a9600 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.0.54" +APP_VERSION="0.0.55" APP_NAME="FreePlanet" SERVICE_WORKER_FILE="service-worker.js" APP_ID="1" diff --git a/quasar.conf.js b/quasar.conf.js index 48a4714..f79b710 100644 --- a/quasar.conf.js +++ b/quasar.conf.js @@ -54,20 +54,15 @@ const extendHTMLToWebpack = (config) => { module.exports = function (ctx) { return { - // Quasar looks for *.js files by default - sourceFiles: { - router: 'src/router/index.ts', - store: 'src/store/index.ts' + htmlVariables: { + appName: 'FreePlanet', + appDescription: 'The first Real Social, Free, Fair and Equitable' }, // Quasar looks for *.js files by default sourceFiles: { router: 'src/router/index.ts', store: 'src/store/index.ts' }, - sourceFiles: { - router: 'src/router/index.ts', - store: 'src/store/index.ts' - }, // app plugins (/src/plugins) boot: ['vue-i18n', 'axios', 'vee-validate', 'myconfig', 'local-storage', 'error-handler', 'globalroutines', 'vue-idb', 'dragula', 'guard'], css: [ @@ -103,7 +98,7 @@ module.exports = function (ctx) { .alias .set('~', __dirname) .set('@', helpers.root('src')) - // .set('env', helpers.root('config/helpers/env.js')) + // .set('env', helpers.root('config/helpers/env.js')) config.module .rule('template-engine') .test(/\.pug$/) @@ -215,7 +210,7 @@ module.exports = function (ctx) { // swSrc: 'src/sw.js', }, manifest: { - name: 'Free Planet', + name: 'FreePlanet', version: '0.0.14', short_name: 'freeplanet', description: 'Social project in order to connecting people each others (working in progress...)', diff --git a/src-pwa/custom-service-worker.js b/src-pwa/custom-service-worker.js index b7fd3b4..b1c5a73 100644 --- a/src-pwa/custom-service-worker.js +++ b/src-pwa/custom-service-worker.js @@ -289,6 +289,10 @@ if (workbox) { workbox.strategies.networkOnly() ); + workbox.routing.registerRoute( + new RegExp('/owa/'), + workbox.strategies.networkOnly() + ); } diff --git a/src/boot/guard.ts b/src/boot/guard.ts index 45dde93..9e9e721 100644 --- a/src/boot/guard.ts +++ b/src/boot/guard.ts @@ -1,9 +1,6 @@ // import something here -// leave the export, even if you don't use it export default ({ app, router, store, Vue }) => { - // something to do - // ****************************************** // *** Per non permettere di accedere alle pagine in cui รจ necessario essere Loggati ! *** // ****************************************** @@ -15,7 +12,7 @@ export default ({ app, router, store, Vue }) => { const subsequentMiddleware = middleware[index] // If no subsequent Middleware exists, // the default `next()` callback is returned. - if (!subsequentMiddleware) return context.next + if (!subsequentMiddleware) { return context.next } return (...parameters) => { // Run the default Vue Router `next()` callback first. @@ -24,7 +21,7 @@ export default ({ app, router, store, Vue }) => { // `nextMiddleware()` callback. const nextMiddleware = nextFactory(context, middleware, index + 1) subsequentMiddleware({ ...context, next: nextMiddleware }) - }; + } } router.beforeEach((to, from, next) => { diff --git a/src/boot/myconfig.ts b/src/boot/myconfig.ts index 64d6adc..75ac404 100644 --- a/src/boot/myconfig.ts +++ b/src/boot/myconfig.ts @@ -3,7 +3,7 @@ import myconfig from '../myconfig' // leave the export, even if you don't use it export default ({ Vue }) => { - //Vue.use(myconfig); + // Vue.use(myconfig); // something to do Vue.prototype.$myconfig = myconfig } diff --git a/src/boot/track-disattivato-riutilizzare.ts b/src/boot/track-disattivato-riutilizzare.ts new file mode 100644 index 0000000..c1a9cc6 --- /dev/null +++ b/src/boot/track-disattivato-riutilizzare.ts @@ -0,0 +1,8 @@ +// import something here +import track from '../track' + +// leave the export, even if you don't use it +export default ({ app, router, store, Vue }) => { + // something to do + Vue.prototype.$track = track +} diff --git a/src/boot/vue-idb.ts b/src/boot/vue-idb.ts index 3b1f502..afa362b 100644 --- a/src/boot/vue-idb.ts +++ b/src/boot/vue-idb.ts @@ -5,16 +5,3 @@ export default ({ Vue }) => { Vue.use(VueIdb) } - - -/* - - -export default new VueIdb({ - version: 1, - database: 'test', - schemas: [ - { categories: '++_id, sub_categ_id, descr_it' } - ] -}) -*/ diff --git a/src/globalroutines/index.ts b/src/globalroutines/index.ts index 1ae91ce..782d89e 100644 --- a/src/globalroutines/index.ts +++ b/src/globalroutines/index.ts @@ -1,12 +1,12 @@ import indexdb from './indexdb' -import { GlobalStore } from "../store/Modules"; +import { GlobalStore } from '../store/Modules' export default async (context, cmd, table, data = null, id = '') => { const descr = data !== null ? data.descr : '' // console.log('globalroutines', cmd, table, descr, id) return await indexdb(context, cmd, table, data, id) .then(ris => { - setTimeout(function () { + setTimeout(() => { GlobalStore.state.connData.uploading_indexeddb = 0 GlobalStore.state.connData.downloading_indexeddb = 0 }, 1000) @@ -14,7 +14,7 @@ export default async (context, cmd, table, data = null, id = '') => { } ).catch(err => { - setTimeout(function () { + setTimeout(() => { GlobalStore.state.connData.uploading_indexeddb = (GlobalStore.state.connData.uploading_indexeddb === 1) ? -1 : GlobalStore.state.connData.uploading_indexeddb GlobalStore.state.connData.downloading_indexeddb = (GlobalStore.state.connData.downloading_indexeddb === 1) ? -1 : GlobalStore.state.connData.downloading_indexeddb }, 1000) diff --git a/src/index.template.html b/src/index.template.html index ba11dae..2dcfdeb 100644 --- a/src/index.template.html +++ b/src/index.template.html @@ -1,10 +1,10 @@
-