]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Update paths and style
authorTiger Oakes <contact@tigeroakes.com>
Fri, 23 Oct 2020 20:44:46 +0000 (13:44 -0700)
committerTiger Oakes <contact@tigeroakes.com>
Fri, 23 Oct 2020 20:44:46 +0000 (13:44 -0700)
public/assets/manifest.json
src/App.vue
vue.config.js

index 8b9686a6d7b6a62cba60cfced13729d08a0359db..1c987300de906dfee91fb1cb7c88fb53af862e31 100644 (file)
@@ -5,35 +5,35 @@
   "start_url": "../",
   "icons": [
     {
-      "src": "../assets/icons/favicon-16x16.png",
+      "src": "./icons/favicon-16x16.png",
       "sizes": "16x16",
       "type": "image/png"
     },
     {
-      "src": "../assets/icons/favicon-32x32.png",
+      "src": "./icons/favicon-32x32.png",
       "sizes": "32x32",
       "type": "image/png"
     },
     {
-      "src": "../assets/icons/icon-any.png",
+      "src": "./icons/icon-any.png",
       "sizes": "512x512",
       "type": "image/png",
       "purpose": "any"
     },
     {
-      "src": "../assets/icons/icon-any.svg",
+      "src": "./icons/icon-any.svg",
       "sizes": "any",
       "type": "image/svg+xml",
       "purpose": "any"
     },
     {
-      "src": "../assets/icons/icon-maskable.png",
+      "src": "./icons/icon-maskable.png",
       "sizes": "512x512",
       "type": "image/png",
       "purpose": "maskable"
     },
     {
-      "src": "../assets/icons/safari-pinned-tab.svg",
+      "src": "./icons/safari-pinned-tab.svg",
       "sizes": "any",
       "type": "image/svg+xml",
       "purpose": "monochrome"
index 03760fdd3190119397bec6d48532373f06466afd..eb132d09e9cdb2c0683d1dad002c114abb9d7fd6 100644 (file)
@@ -161,7 +161,7 @@ export default {
     this.services = this.config.services;
     document.title = `${this.config.title} | ${this.config.subtitle}`;
     if (this.config.stylesheet) {
-      let stylesheet = '';
+      let stylesheet = "";
       for (const file of this.config.stylesheet) {
         stylesheet += `@import "${file}";`;
       }
@@ -242,8 +242,8 @@ export default {
         },
       };
     },
-    createStylesheet: function(css) {
-      let style = document.createElement('style');
+    createStylesheet: function (css) {
+      let style = document.createElement("style");
       style.appendChild(document.createTextNode(css));
       document.head.appendChild(style);
     },
index de3136743ccf4c4704fd83440e0334d9cbbd6d4f..07d9589c2a5cf34a8dda428ca3037c10335ef6c0 100644 (file)
@@ -1,65 +1,65 @@
 module.exports = {
   chainWebpack: (config) => {
     config.module
-      .rule('yaml')
+      .rule("yaml")
       .test(/\.ya?ml$/)
-      .use('raw-loader')
-      .loader('raw-loader')
+      .use("raw-loader")
+      .loader("raw-loader")
       .end();
   },
-  publicPath: '',
+  publicPath: "",
   pwa: {
-    manifestPath: 'assets/manifest.json',
+    manifestPath: "assets/manifest.json",
     manifestOptions: {
-      start_url: '../',
+      start_url: "../",
     },
-    appleMobileWebAppStatusBarStyle: 'black',
-    appleMobileWebAppCapable: 'yes',
-    name: 'Homer Dashboard',
-    short_name: 'Homer',
-    theme_color: '#3367D6',
+    appleMobileWebAppStatusBarStyle: "black",
+    appleMobileWebAppCapable: "yes",
+    name: "Homer Dashboard",
+    short_name: "Homer",
+    theme_color: "#3367D6",
     icons: [
       {
-        src: '../assets/icons/favicon-16x16.png',
-        sizes: '16x16',
-        type: 'image/png',
+        src: "./icons/favicon-16x16.png",
+        sizes: "16x16",
+        type: "image/png",
       },
       {
-        src: '../assets/icons/favicon-32x32.png',
-        sizes: '32x32',
-        type: 'image/png',
+        src: "./icons/favicon-32x32.png",
+        sizes: "32x32",
+        type: "image/png",
       },
       {
-        src: '../assets/icons/icon-any.png',
-        sizes: '512x512',
-        type: 'image/png',
-        purpose: 'any',
+        src: "./icons/icon-any.png",
+        sizes: "512x512",
+        type: "image/png",
+        purpose: "any",
       },
       {
-        src: '../assets/icons/icon-any.svg',
-        sizes: 'any',
-        type: 'image/svg+xml',
-        purpose: 'any',
+        src: "./icons/icon-any.svg",
+        sizes: "any",
+        type: "image/svg+xml",
+        purpose: "any",
       },
       {
-        src: '../assets/icons/icon-maskable.png',
-        sizes: '512x512',
-        type: 'image/png',
-        purpose: 'maskable',
+        src: "./icons/icon-maskable.png",
+        sizes: "512x512",
+        type: "image/png",
+        purpose: "maskable",
       },
       {
-        src: '../assets/icons/safari-pinned-tab.svg',
-        sizes: 'any',
-        type: 'image/svg+xml',
-        purpose: 'monochrome',
+        src: "./icons/safari-pinned-tab.svg",
+        sizes: "any",
+        type: "image/svg+xml",
+        purpose: "monochrome",
       },
     ],
     iconPaths: {
-      favicon32: 'assets/icons/favicon-32x32.png',
-      favicon16: 'assets/icons/favicon-16x16.png',
-      appleTouchIcon: 'assets/icons/icon-maskable.png',
-      maskIcon: 'assets/icons/safari-pinned-tab.svg',
-      msTileImage: 'assets/icons/icon-any.png',
+      favicon32: "assets/icons/favicon-32x32.png",
+      favicon16: "assets/icons/favicon-16x16.png",
+      appleTouchIcon: "assets/icons/icon-maskable.png",
+      maskIcon: "assets/icons/safari-pinned-tab.svg",
+      msTileImage: "assets/icons/icon-any.png",
     },
   },
 };