From 7591a50e0b50a5239f4a3fda57f71bf465285661 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 3 Jan 2021 23:34:13 +0100 Subject: [PATCH] Replace bundler with webpack --- assets/ico/site.webmanifest | 18 +- assets/index.html | 5 - assets/js/app.js | 2 + assets/js/router.js | 2 +- assets/js/store.js | 2 +- package-lock.json | 10512 ++++++----- package.json | 18 +- server/assets.go | 33982 +++++++++++++++------------------- server/http.go | 6 +- vue.config.js | 12 + 10 files changed, 20817 insertions(+), 23742 deletions(-) create mode 100644 vue.config.js diff --git a/assets/ico/site.webmanifest b/assets/ico/site.webmanifest index c9a28f674..cccf239ee 100644 --- a/assets/ico/site.webmanifest +++ b/assets/ico/site.webmanifest @@ -1,8 +1,20 @@ { - "start_url": "../#", + "start_url": "../", "name": "EV Charge Controller", "short_name": "EV Charge Controller", "theme_color": "#ffffff", "background_color": "#ffffff", - "display": "standalone" -} + "display": "standalone", + "icons": [ + { + "src": "android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} \ No newline at end of file diff --git a/assets/index.html b/assets/index.html index 43da3a3db..304f2f379 100644 --- a/assets/index.html +++ b/assets/index.html @@ -19,10 +19,6 @@ evcc - - - - diff --git a/assets/js/app.js b/assets/js/app.js index 49c227147..319593572 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -1,3 +1,5 @@ +import "../css/app.css"; +import "bootstrap/dist/css/bootstrap.min.css"; import "popper.js"; import "bootstrap"; import Vue from "vue"; diff --git a/assets/js/router.js b/assets/js/router.js index 6dfcd2a23..16dd6a8af 100644 --- a/assets/js/router.js +++ b/assets/js/router.js @@ -10,7 +10,7 @@ const routes = [ { path: "/config", component: Config }, ]; -module.exports = new VueRouter({ +export default new VueRouter({ routes, linkExactActiveClass: "active", // Bootstrap