mirror of
https://github.com/taigrr/homer
synced 2025-01-18 04:53:12 -08:00
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>
This commit is contained in:
parent
05bdc26801
commit
a489a0a301
12
app.js
12
app.js
@ -9,14 +9,14 @@ const app = new Vue({
|
|||||||
},
|
},
|
||||||
created: function () {
|
created: function () {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
||||||
this.isDark = 'overrideDark' in localStorage ?
|
this.isDark = 'overrideDark' in localStorage ?
|
||||||
JSON.parse(localStorage.overrideDark) : matchMedia("(prefers-color-scheme: dark)").matches;
|
JSON.parse(localStorage.overrideDark) : matchMedia("(prefers-color-scheme: dark)").matches;
|
||||||
|
|
||||||
if ('vlayout' in localStorage) {
|
if ('vlayout' in localStorage) {
|
||||||
this.vlayout = JSON.parse(localStorage.vlayout)
|
this.vlayout = JSON.parse(localStorage.vlayout)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.checkOffline();
|
this.checkOffline();
|
||||||
that.getConfig().then(function (config) {
|
that.getConfig().then(function (config) {
|
||||||
that.config = config;
|
that.config = config;
|
||||||
@ -58,8 +58,8 @@ const app = new Vue({
|
|||||||
},
|
},
|
||||||
toggleLayout: function() {
|
toggleLayout: function() {
|
||||||
this.vlayout = !this.vlayout;
|
this.vlayout = !this.vlayout;
|
||||||
localStorage.vlayout = this.vlayout;
|
localStorage.vlayout = this.vlayout;
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -95,6 +95,6 @@ Vue.component('service', {
|
|||||||
|
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
window.addEventListener('load', function () {
|
window.addEventListener('load', function () {
|
||||||
navigator.serviceWorker.register('/worker.js');
|
navigator.serviceWorker.register('worker.js');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
12
config.yml
12
config.yml
@ -31,12 +31,12 @@ services:
|
|||||||
icon: "fas fa-code-branch"
|
icon: "fas fa-code-branch"
|
||||||
items:
|
items:
|
||||||
- name: "Jenkins"
|
- name: "Jenkins"
|
||||||
logo: "/assets/tools/jenkins.png"
|
logo: "assets/tools/jenkins.png"
|
||||||
subtitle: "Continuous integration server"
|
subtitle: "Continuous integration server"
|
||||||
tag: "CI"
|
tag: "CI"
|
||||||
url: "#"
|
url: "#"
|
||||||
- name: "RabbitMQ Management"
|
- name: "RabbitMQ Management"
|
||||||
logo: "/assets/tools/rabbitmq.png"
|
logo: "assets/tools/rabbitmq.png"
|
||||||
subtitle: "Manage & monitor RabbitMQ server"
|
subtitle: "Manage & monitor RabbitMQ server"
|
||||||
tag: "haproxy"
|
tag: "haproxy"
|
||||||
# Optional tagstyle
|
# Optional tagstyle
|
||||||
@ -47,21 +47,21 @@ services:
|
|||||||
icon: "fas fa-heartbeat"
|
icon: "fas fa-heartbeat"
|
||||||
items:
|
items:
|
||||||
- name: "M/Monit"
|
- name: "M/Monit"
|
||||||
logo: "/assets/tools/monit.png"
|
logo: "assets/tools/monit.png"
|
||||||
subtitle: "Monitor & manage all monit enabled hosts"
|
subtitle: "Monitor & manage all monit enabled hosts"
|
||||||
tag: "monit"
|
tag: "monit"
|
||||||
url: "#"
|
url: "#"
|
||||||
- name: "Grafana"
|
- name: "Grafana"
|
||||||
logo: "/assets/tools/grafana.png"
|
logo: "assets/tools/grafana.png"
|
||||||
subtitle: "Metric analytics & dashboards"
|
subtitle: "Metric analytics & dashboards"
|
||||||
url: "#"
|
url: "#"
|
||||||
- name: "Kibana"
|
- name: "Kibana"
|
||||||
logo: "/assets/tools/elastic.png"
|
logo: "assets/tools/elastic.png"
|
||||||
subtitle: "Explore & visualize logs"
|
subtitle: "Explore & visualize logs"
|
||||||
tag: "elk"
|
tag: "elk"
|
||||||
url: "#"
|
url: "#"
|
||||||
- name: "Website monitoring"
|
- name: "Website monitoring"
|
||||||
logo: "/assets/tools/pingdom.png"
|
logo: "assets/tools/pingdom.png"
|
||||||
subtitle: "Pingdom public reports overview"
|
subtitle: "Pingdom public reports overview"
|
||||||
tag: "CI"
|
tag: "CI"
|
||||||
url: "#"
|
url: "#"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user