diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-06-09 19:24:43 -0700 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-06-09 21:55:29 -0700 |
commit | e9113b48cec284b041e4130e6afe932913f52d36 (patch) | |
tree | 41323e3ec1c515524de5c40b9939f95c9a13dca3 | |
parent | 1a42e30a1752be5ab0fba5b224fad5686f12499e (diff) | |
download | homer-e9113b48cec284b041e4130e6afe932913f52d36.tar.gz homer-e9113b48cec284b041e4130e6afe932913f52d36.tar.zst homer-e9113b48cec284b041e4130e6afe932913f52d36.zip |
Optionnal connectivity check
-rw-r--r-- | src/App.vue | 5 | ||||
-rw-r--r-- | src/assets/app.scss | 4 | ||||
-rw-r--r-- | src/assets/defaults.yml | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/src/App.vue b/src/App.vue index 440ffa0..62156d2 100644 --- a/src/App.vue +++ b/src/App.vue | |||
@@ -49,7 +49,10 @@ | |||
49 | 49 | ||
50 | <section id="main-section" class="section"> | 50 | <section id="main-section" class="section"> |
51 | <div v-cloak class="container"> | 51 | <div v-cloak class="container"> |
52 | <ConnectivityChecker @network:status-update="offline = $event" /> | 52 | <ConnectivityChecker |
53 | v-if="config.connectivityCheck" | ||
54 | @network:status-update="offline = $event" | ||
55 | /> | ||
53 | <div v-if="!offline"> | 56 | <div v-if="!offline"> |
54 | <!-- Optional messages --> | 57 | <!-- Optional messages --> |
55 | <Message :item="config.message" /> | 58 | <Message :item="config.message" /> |
diff --git a/src/assets/app.scss b/src/assets/app.scss index 001e3a4..ab067e6 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss | |||
@@ -322,11 +322,11 @@ body { | |||
322 | text-align: center; | 322 | text-align: center; |
323 | margin: 35px 0; | 323 | margin: 35px 0; |
324 | 324 | ||
325 | svg { | 325 | i { |
326 | font-size: 2rem; | 326 | font-size: 2rem; |
327 | } | 327 | } |
328 | 328 | ||
329 | svg.fa-redo-alt { | 329 | i.fa-redo-alt { |
330 | font-size: 1.3rem; | 330 | font-size: 1.3rem; |
331 | line-height: 1rem; | 331 | line-height: 1rem; |
332 | vertical-align: middle; | 332 | vertical-align: middle; |
diff --git a/src/assets/defaults.yml b/src/assets/defaults.yml index a699d28..b2960c9 100644 --- a/src/assets/defaults.yml +++ b/src/assets/defaults.yml | |||
@@ -7,6 +7,8 @@ subtitle: "Homer" | |||
7 | header: true | 7 | header: true |
8 | footer: '<p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a href="https://vuejs.org/">vuejs</a> & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i class="fab fa-github-alt"></i></a></p>' # set false if you want to hide it. | 8 | footer: '<p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a href="https://vuejs.org/">vuejs</a> & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i class="fab fa-github-alt"></i></a></p>' # set false if you want to hide it. |
9 | 9 | ||
10 | connectivityCheck: true | ||
11 | |||
10 | theme: default | 12 | theme: default |
11 | colors: | 13 | colors: |
12 | light: | 14 | light: |