diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2019-12-27 10:39:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-27 10:39:44 -0800 |
commit | db409f74e016b35421c2aaa2a5ade1e42553664e (patch) | |
tree | 8bb5434679911ad2302fedbea14d3853cd6b169b | |
parent | 7fd9dc6f10a30748cf63caf61ee71f602407d6ac (diff) | |
parent | 5738264ea00221c0ca128d5e7f74d31a8ec0490c (diff) | |
download | homer-db409f74e016b35421c2aaa2a5ade1e42553664e.tar.gz homer-db409f74e016b35421c2aaa2a5ade1e42553664e.tar.zst homer-db409f74e016b35421c2aaa2a5ade1e42553664e.zip |
Merge branch 'master' into dynamic-message
-rw-r--r-- | app.js | 10 | ||||
-rw-r--r-- | config.yml | 12 | ||||
-rw-r--r-- | worker.js | 14 |
3 files changed, 18 insertions, 18 deletions
@@ -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 | ||
116 | if ('serviceWorker' in navigator) { | 116 | if ('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 | } |
@@ -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: "#" |
@@ -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', |