diff options
author | Felix Bartels <felix@host-consultants.de> | 2019-12-19 15:35:11 +0100 |
---|---|---|
committer | Felix Bartels <felix@host-consultants.de> | 2019-12-19 15:35:11 +0100 |
commit | a489a0a3018499282824ae3124484dd6ab40710e (patch) | |
tree | 0a986dc2debe59da6d4e1cb03594caf6204c18f5 | |
parent | 05bdc2680193564dbb8acbd85aa8d79eeec546f5 (diff) | |
download | homer-a489a0a3018499282824ae3124484dd6ab40710e.tar.gz homer-a489a0a3018499282824ae3124484dd6ab40710e.tar.zst homer-a489a0a3018499282824ae3124484dd6ab40710e.zip |
Allow running Homer in a subdirectory
When running homer in a subpath the worker cannot be loaded (404) the same accounts for the images in the default configuration.
Signed-off-by: Felix Bartels <felix@host-consultants.de>
-rw-r--r-- | app.js | 12 | ||||
-rw-r--r-- | config.yml | 12 |
2 files changed, 12 insertions, 12 deletions
@@ -9,14 +9,14 @@ const app = new Vue({ | |||
9 | }, | 9 | }, |
10 | created: function () { | 10 | created: function () { |
11 | let that = this; | 11 | let that = this; |
12 | 12 | ||
13 | this.isDark = 'overrideDark' in localStorage ? | 13 | this.isDark = 'overrideDark' in localStorage ? |
14 | JSON.parse(localStorage.overrideDark) : matchMedia("(prefers-color-scheme: dark)").matches; | 14 | JSON.parse(localStorage.overrideDark) : matchMedia("(prefers-color-scheme: dark)").matches; |
15 | 15 | ||
16 | if ('vlayout' in localStorage) { | 16 | if ('vlayout' in localStorage) { |
17 | this.vlayout = JSON.parse(localStorage.vlayout) | 17 | this.vlayout = JSON.parse(localStorage.vlayout) |
18 | } | 18 | } |
19 | 19 | ||
20 | this.checkOffline(); | 20 | this.checkOffline(); |
21 | that.getConfig().then(function (config) { | 21 | that.getConfig().then(function (config) { |
22 | that.config = config; | 22 | that.config = config; |
@@ -58,8 +58,8 @@ const app = new Vue({ | |||
58 | }, | 58 | }, |
59 | toggleLayout: function() { | 59 | toggleLayout: function() { |
60 | this.vlayout = !this.vlayout; | 60 | this.vlayout = !this.vlayout; |
61 | localStorage.vlayout = this.vlayout; | 61 | localStorage.vlayout = this.vlayout; |
62 | }, | 62 | }, |
63 | } | 63 | } |
64 | }); | 64 | }); |
65 | 65 | ||
@@ -95,6 +95,6 @@ Vue.component('service', { | |||
95 | 95 | ||
96 | if ('serviceWorker' in navigator) { | 96 | if ('serviceWorker' in navigator) { |
97 | window.addEventListener('load', function () { | 97 | window.addEventListener('load', function () { |
98 | navigator.serviceWorker.register('/worker.js'); | 98 | navigator.serviceWorker.register('worker.js'); |
99 | }); | 99 | }); |
100 | } | 100 | } |
@@ -31,12 +31,12 @@ services: | |||
31 | icon: "fas fa-code-branch" | 31 | icon: "fas fa-code-branch" |
32 | items: | 32 | items: |
33 | - name: "Jenkins" | 33 | - name: "Jenkins" |
34 | logo: "/assets/tools/jenkins.png" | 34 | logo: "assets/tools/jenkins.png" |
35 | subtitle: "Continuous integration server" | 35 | subtitle: "Continuous integration server" |
36 | tag: "CI" | 36 | tag: "CI" |
37 | url: "#" | 37 | url: "#" |
38 | - name: "RabbitMQ Management" | 38 | - name: "RabbitMQ Management" |
39 | logo: "/assets/tools/rabbitmq.png" | 39 | logo: "assets/tools/rabbitmq.png" |
40 | subtitle: "Manage & monitor RabbitMQ server" | 40 | subtitle: "Manage & monitor RabbitMQ server" |
41 | tag: "haproxy" | 41 | tag: "haproxy" |
42 | # Optional tagstyle | 42 | # Optional tagstyle |
@@ -47,21 +47,21 @@ services: | |||
47 | icon: "fas fa-heartbeat" | 47 | icon: "fas fa-heartbeat" |
48 | items: | 48 | items: |
49 | - name: "M/Monit" | 49 | - name: "M/Monit" |
50 | logo: "/assets/tools/monit.png" | 50 | logo: "assets/tools/monit.png" |
51 | subtitle: "Monitor & manage all monit enabled hosts" | 51 | subtitle: "Monitor & manage all monit enabled hosts" |
52 | tag: "monit" | 52 | tag: "monit" |
53 | url: "#" | 53 | url: "#" |
54 | - name: "Grafana" | 54 | - name: "Grafana" |
55 | logo: "/assets/tools/grafana.png" | 55 | logo: "assets/tools/grafana.png" |
56 | subtitle: "Metric analytics & dashboards" | 56 | subtitle: "Metric analytics & dashboards" |
57 | url: "#" | 57 | url: "#" |
58 | - name: "Kibana" | 58 | - name: "Kibana" |
59 | logo: "/assets/tools/elastic.png" | 59 | logo: "assets/tools/elastic.png" |
60 | subtitle: "Explore & visualize logs" | 60 | subtitle: "Explore & visualize logs" |
61 | tag: "elk" | 61 | tag: "elk" |
62 | url: "#" | 62 | url: "#" |
63 | - name: "Website monitoring" | 63 | - name: "Website monitoring" |
64 | logo: "/assets/tools/pingdom.png" | 64 | logo: "assets/tools/pingdom.png" |
65 | subtitle: "Pingdom public reports overview" | 65 | subtitle: "Pingdom public reports overview" |
66 | tag: "CI" | 66 | tag: "CI" |
67 | url: "#" | 67 | url: "#" |