aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app.js10
-rw-r--r--config.yml12
-rw-r--r--worker.js14
3 files changed, 18 insertions, 18 deletions
diff --git a/app.js b/app.js
index 93902d8..6c2ba90 100644
--- a/app.js
+++ b/app.js
@@ -10,13 +10,13 @@ const app = new Vue({
10 created: async function () { 10 created: async 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 try { 21 try {
22 this.config = await this.getConfig(); 22 this.config = await this.getConfig();
@@ -78,8 +78,8 @@ const app = new Vue({
78 }, 78 },
79 toggleLayout: function() { 79 toggleLayout: function() {
80 this.vlayout = !this.vlayout; 80 this.vlayout = !this.vlayout;
81 localStorage.vlayout = this.vlayout; 81 localStorage.vlayout = this.vlayout;
82 }, 82 },
83 } 83 }
84}); 84});
85 85
@@ -115,6 +115,6 @@ Vue.component('service', {
115 115
116if ('serviceWorker' in navigator) { 116if ('serviceWorker' in navigator) {
117 window.addEventListener('load', function () { 117 window.addEventListener('load', function () {
118 navigator.serviceWorker.register('/worker.js'); 118 navigator.serviceWorker.register('worker.js');
119 }); 119 });
120} 120}
diff --git a/config.yml b/config.yml
index 80833f5..7288da6 100644
--- a/config.yml
+++ b/config.yml
@@ -32,12 +32,12 @@ services:
32 icon: "fas fa-code-branch" 32 icon: "fas fa-code-branch"
33 items: 33 items:
34 - name: "Jenkins" 34 - name: "Jenkins"
35 logo: "/assets/tools/jenkins.png" 35 logo: "assets/tools/jenkins.png"
36 subtitle: "Continuous integration server" 36 subtitle: "Continuous integration server"
37 tag: "CI" 37 tag: "CI"
38 url: "#" 38 url: "#"
39 - name: "RabbitMQ Management" 39 - name: "RabbitMQ Management"
40 logo: "/assets/tools/rabbitmq.png" 40 logo: "assets/tools/rabbitmq.png"
41 subtitle: "Manage & monitor RabbitMQ server" 41 subtitle: "Manage & monitor RabbitMQ server"
42 tag: "haproxy" 42 tag: "haproxy"
43 # Optional tagstyle 43 # Optional tagstyle
@@ -48,21 +48,21 @@ services:
48 icon: "fas fa-heartbeat" 48 icon: "fas fa-heartbeat"
49 items: 49 items:
50 - name: "M/Monit" 50 - name: "M/Monit"
51 logo: "/assets/tools/monit.png" 51 logo: "assets/tools/monit.png"
52 subtitle: "Monitor & manage all monit enabled hosts" 52 subtitle: "Monitor & manage all monit enabled hosts"
53 tag: "monit" 53 tag: "monit"
54 url: "#" 54 url: "#"
55 - name: "Grafana" 55 - name: "Grafana"
56 logo: "/assets/tools/grafana.png" 56 logo: "assets/tools/grafana.png"
57 subtitle: "Metric analytics & dashboards" 57 subtitle: "Metric analytics & dashboards"
58 url: "#" 58 url: "#"
59 - name: "Kibana" 59 - name: "Kibana"
60 logo: "/assets/tools/elastic.png" 60 logo: "assets/tools/elastic.png"
61 subtitle: "Explore & visualize logs" 61 subtitle: "Explore & visualize logs"
62 tag: "elk" 62 tag: "elk"
63 url: "#" 63 url: "#"
64 - name: "Website monitoring" 64 - name: "Website monitoring"
65 logo: "/assets/tools/pingdom.png" 65 logo: "assets/tools/pingdom.png"
66 subtitle: "Pingdom public reports overview" 66 subtitle: "Pingdom public reports overview"
67 tag: "CI" 67 tag: "CI"
68 url: "#" 68 url: "#"
diff --git a/worker.js b/worker.js
index 32aca25..a887a0a 100644
--- a/worker.js
+++ b/worker.js
@@ -4,13 +4,13 @@ self.addEventListener('install', event => {
4 .open('homer') 4 .open('homer')
5 .then(cache => 5 .then(cache =>
6 cache.addAll([ 6 cache.addAll([
7 '/', 7 '.',
8 '/index.html', 8 'index.html',
9 '/config.yml', 9 'config.yml',
10 '/app.css', 10 'app.css',
11 '/app.js', 11 'app.js',
12 '/vendors/js-yaml.min.js', 12 'vendors/js-yaml.min.js',
13 '/assets/logo.png', 13 'assets/logo.png',
14 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css', 14 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css',
15 'https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css', 15 'https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css',
16 'https://fonts.googleapis.com/css?family=Lato|Raleway&display=swap', 16 'https://fonts.googleapis.com/css?family=Lato|Raleway&display=swap',