From 893bc88ce649aab1b2cb9d209be7b1140182fd04 Mon Sep 17 00:00:00 2001 From: thilo Date: Sun, 22 Mar 2020 20:18:18 +0100 Subject: [PATCH] added basic PWA functionality --- package.json | 4 +- public/index.html | 1 + public/manifest.json | 10 + src/App.vue | 13 + src/main.js | 2 + src/registerServiceWorker.js | 17 ++ vue.config.js | 15 +- yarn.lock | 526 +++++++++++++++++++++-------------- 8 files changed, 369 insertions(+), 219 deletions(-) create mode 100644 public/manifest.json create mode 100644 src/registerServiceWorker.js diff --git a/package.json b/package.json index 53beae5..5ecc933 100644 --- a/package.json +++ b/package.json @@ -17,14 +17,14 @@ "devDependencies": { "@vue/cli-plugin-babel": "~4.2.0", "@vue/cli-plugin-eslint": "~4.2.0", - "@vue/cli-plugin-pwa": "^4.2.3", "@vue/cli-plugin-router": "~4.2.0", "@vue/cli-plugin-vuex": "~4.2.0", "@vue/cli-service": "~4.2.0", "babel-eslint": "^10.0.3", "eslint": "^6.7.2", "eslint-plugin-vue": "^6.1.2", - "vue-template-compiler": "^2.6.11" + "vue-template-compiler": "^2.6.11", + "workbox-webpack-plugin": "^5.1.1" }, "eslintConfig": { "root": true, diff --git a/public/index.html b/public/index.html index f922f89..f7dcdcd 100644 --- a/public/index.html +++ b/public/index.html @@ -5,6 +5,7 @@ + <%= htmlWebpackPlugin.options.title %> - Der Datensparsame Verhaltenstest diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 0000000..bc7400b --- /dev/null +++ b/public/manifest.json @@ -0,0 +1,10 @@ +{ + "name": "COVIDassist", + "short_name": "COVIDassist", + "icons": [], + "start_url": "./index.html", + "display": "standalone", + "scope": "/", + "background_color": "#FCF7F8", + "theme_color": "#FCF7F8" +} diff --git a/src/App.vue b/src/App.vue index 90b8ffa..cd71b57 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,6 +9,19 @@