diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-06-09 21:54:13 -0700 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-06-09 21:55:29 -0700 |
commit | 9e4fe0d2274b00106e6a46a11242dcac1c10e8a1 (patch) | |
tree | bcabec9fcc38c063fb0c8de8dfb781463b95b7e0 | |
parent | e9113b48cec284b041e4130e6afe932913f52d36 (diff) | |
download | homer-9e4fe0d2274b00106e6a46a11242dcac1c10e8a1.tar.gz homer-9e4fe0d2274b00106e6a46a11242dcac1c10e8a1.tar.zst homer-9e4fe0d2274b00106e6a46a11242dcac1c10e8a1.zip |
Customizable number of columns130585124
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | src/App.vue | 4 | ||||
-rw-r--r-- | src/assets/defaults.yml | 1 |
3 files changed, 6 insertions, 2 deletions
@@ -98,6 +98,9 @@ logo: "assets/homer.png" | |||
98 | header: true # Set to false to hide the header | 98 | header: true # Set to false to hide the header |
99 | 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. | 99 | 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. |
100 | 100 | ||
101 | columns: "3" # "auto" or number (must be a factor of 12: 1, 2, 3, 4, 6, 12) | ||
102 | connectivityCheck: true # whether you want to display a message when the apps are not accessible anymore (VPN disconnected for example) | ||
103 | |||
101 | # Optional theming | 104 | # Optional theming |
102 | theme: default # 'default' or one of the theme available in 'src/assets/themes'. | 105 | theme: default # 'default' or one of the theme available in 'src/assets/themes'. |
103 | 106 | ||
diff --git a/src/App.vue b/src/App.vue index 62156d2..17c3214 100644 --- a/src/App.vue +++ b/src/App.vue | |||
@@ -68,7 +68,7 @@ | |||
68 | v-for="item in group.items" | 68 | v-for="item in group.items" |
69 | :key="item.name" | 69 | :key="item.name" |
70 | v-bind:item="item" | 70 | v-bind:item="item" |
71 | class="column is-one-third-widescreen" | 71 | :class="['column', `is-${12 / config.columns}`]" |
72 | /> | 72 | /> |
73 | </template> | 73 | </template> |
74 | </div> | 74 | </div> |
@@ -79,7 +79,7 @@ | |||
79 | class="columns is-multiline layout-vertical" | 79 | class="columns is-multiline layout-vertical" |
80 | > | 80 | > |
81 | <div | 81 | <div |
82 | class="column is-one-third-widescreen" | 82 | :class="['column', `is-${12 / config.columns}`]" |
83 | v-for="group in services" | 83 | v-for="group in services" |
84 | :key="group.name" | 84 | :key="group.name" |
85 | > | 85 | > |
diff --git a/src/assets/defaults.yml b/src/assets/defaults.yml index b2960c9..99f5ed5 100644 --- a/src/assets/defaults.yml +++ b/src/assets/defaults.yml | |||
@@ -7,6 +7,7 @@ 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 | columns: 3 | ||
10 | connectivityCheck: true | 11 | connectivityCheck: true |
11 | 12 | ||
12 | theme: default | 13 | theme: default |