From 239ef1688df3f3e1233d819a0cf809cdb0a6d379 Mon Sep 17 00:00:00 2001
From: Gabe Cook <gabe565@gmail.com>
Date: Wed, 22 Jul 2020 15:06:26 -0500
Subject: :bug: Remove fa-fw from main logo to fix Font Awesome duotone issues

---
 src/App.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index d7054a7..5f52c8f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -14,7 +14,7 @@
         <div v-cloak class="container">
           <div class="logo">
             <img v-if="config.logo" :src="config.logo" alt="dashboard logo" />
-            <i v-if="config.icon" :class="['fa-fw', config.icon]"></i>
+            <i v-if="config.icon" :class="config.icon"></i>
           </div>
           <div class="dashboard-title">
             <span class="headline">{{ config.subtitle }}</span>
-- 
cgit v1.2.3


From 6777bc347bd7992a5797b02d0a0bc0c7e43df46e Mon Sep 17 00:00:00 2001
From: Gabe Cook <gabe565@gmail.com>
Date: Wed, 22 Jul 2020 15:42:43 -0500
Subject: :sparkles: Add support for a custom stylesheet

---
 src/App.vue | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 5f52c8f..272b3f6 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -160,6 +160,9 @@ export default {
     this.config = merge(defaults, config);
     this.services = this.config.services;
     document.title = `${this.config.title} | ${this.config.subtitle}`;
+    if (this.config.stylesheet) {
+      this.createStylesheet(`@import "${this.config.stylesheet}";`);
+    }
   },
   methods: {
     getConfig: function (path = "assets/config.yml") {
@@ -235,6 +238,11 @@ export default {
         },
       };
     },
+    createStylesheet: function(css) {
+      let style = document.createElement('style');
+      style.appendChild(document.createTextNode(css));
+      document.head.appendChild(style);
+    },
   },
 };
 </script>
-- 
cgit v1.2.3


From 8e5ee54a7896ac8db720093f30cab8e7a0fddda1 Mon Sep 17 00:00:00 2001
From: Gabe Cook <gabe565@gmail.com>
Date: Sat, 29 Aug 2020 02:43:02 -0500
Subject: :wrench: Make stylesheet config be an array of files

---
 src/App.vue | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 272b3f6..03760fd 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -161,7 +161,11 @@ export default {
     this.services = this.config.services;
     document.title = `${this.config.title} | ${this.config.subtitle}`;
     if (this.config.stylesheet) {
-      this.createStylesheet(`@import "${this.config.stylesheet}";`);
+      let stylesheet = '';
+      for (const file of this.config.stylesheet) {
+        stylesheet += `@import "${file}";`;
+      }
+      this.createStylesheet(stylesheet);
     }
   },
   methods: {
-- 
cgit v1.2.3

