Commit Graph

14 Commits

Author SHA1 Message Date
Paolo Arena
e755ada1ff - fix: Date problems... (it was a bad "copy" function, the object date was not valid...
- fix: error fetch on loading... (offline appeared)
2019-02-11 02:58:53 +01:00
Paolo Arena
4d5cea1c17 - Manage multiple login, in different browsers... Multi Token...
- visualization of the Connection State (Online, Offline) using fetch.
2019-02-09 18:04:49 +01:00
Paolo Arena
b65d0a2386 - creating Alternative to SyncManager
- fix: refreshing with FF now it works!
2019-02-08 17:10:25 +01:00
Paolo Arena
5ee0d8e171 - updated SendReq
- If Server Down the login msg error corrected.
2019-02-07 00:53:10 +01:00
Paolo Arena
d8e0ff0bc3 - PUSH Notification 2019-02-05 03:39:56 +01:00
Paolo Arena
a66d83cb23 - add: perimssion and Send Notification to a Service Worker... -> and finally to the App 2019-02-04 16:47:15 +01:00
Paolo Arena
fb099322d4 - fix: check if need refresh.. part 1
- keytab in todo...
2019-02-04 04:17:50 +01:00
Paolo Arena
b2e760faa9 - fix: updated from Store to Component: using Watch with 'immediate' parameters! @Watch('todos_changed', { immediate: true, deep: true })
- fix immediate only if you need to change something very quickly... otherwise it not need.
- fix: modified become FALSE when is sent, otherwise infinite loop...
- fix: created 2 separate tables for POST and PATCH request.
2019-02-04 03:09:15 +01:00
Paolo Arena
13a4a0ba90 - fix: updated from Store to Component: using Watch with 'immediate' parameters! @Watch('todos_changed', { immediate: true, deep: true })
- fix immediate only if you need to change something very quickly... otherwise it not need.
- fix: modified become FALSE when is sent, otherwise infinite loop...
2019-02-03 19:28:06 +01:00
Paolo Arena
3c6b2c7bef - Service Worker
- Indexdb
2019-02-02 20:13:06 +01:00
Paolo Arena
484439efe0 - Service Worker: Save on IndexDb and Sync to send after to the DB.
- Insert record on MongoDb, POST, GET.
2019-02-01 04:10:31 +01:00
Paolo Arena
f52eb65284 - regular expression for precache
new RegExp(/.*\/(?:css|font).*/),
2019-01-31 17:08:10 +01:00
Paolo Arena
fa7247a338 - 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');

  }
2019-01-31 13:52:52 +01:00
paolo
a2673c0502 Primo Committ 2018-10-12 16:42:54 +02:00