Skip to content

Commit

Permalink
Optionnal connectivity check
Browse files Browse the repository at this point in the history
  • Loading branch information
bastienwirtz committed Jun 10, 2020
1 parent 1a42e30 commit e9113b4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
4 changes: 2 additions & 2 deletions src/assets/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/assets/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e9113b4

Please sign in to comment.