Optionnal connectivity check

This commit is contained in:
Bastien Wirtz 2020-06-09 19:24:43 -07:00
parent 1a42e30a17
commit e9113b48ce
3 changed files with 8 additions and 3 deletions

View File

@ -49,7 +49,10 @@
<section id="main-section" class="section">
<div v-cloak class="container">
<ConnectivityChecker @network:status-update="offline = $event" />
<ConnectivityChecker
v-if="config.connectivityCheck"
@network:status-update="offline = $event"
/>
<div v-if="!offline">
<!-- Optional messages -->
<Message :item="config.message" />

View File

@ -322,11 +322,11 @@ body {
text-align: center;
margin: 35px 0;
svg {
i {
font-size: 2rem;
}
svg.fa-redo-alt {
i.fa-redo-alt {
font-size: 1.3rem;
line-height: 1rem;
vertical-align: middle;

View File

@ -7,6 +7,8 @@ subtitle: "Homer"
header: true
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.
connectivityCheck: true
theme: default
colors:
light: