# icon: "fas fa-skull-crossbones"
header: true # Set to false to hide the header
+# Optional: Different hotkey for search, defaults to "/"
+# hotkey:
+# search: "Shift"
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.
columns: "3" # "auto" or number (must be a factor of 12: 1, 2, 3, 4, 6, 12)
# Optional: Proxy / hosting option
proxy:
- # NOT All custom services implements this new option YET. Support will be extended very soon.
useCredentials: false # send cookies & authorization headers when fetching service specific data. Set to `true` if you use an authentication proxy. Can be overrided on service level.
+ # Set the default layout and color scheme
+ defaults:
+ layout: columns # Either 'columns', or 'list'
+ colorTheme: auto # One of 'auto', 'light', or 'dark'
+
# Optional theming
theme: default # 'default' or one of the themes available in 'src/assets/themes'.
:links="config.links"
@navbar-toggle="showMenu = !showMenu"
>
- <DarkMode @updated="isDark = $event" />
+ <DarkMode
+ @updated="isDark = $event"
+ :defaultValue="this.config.defaults.colorTheme"
+ />
<SettingToggle
@updated="vlayout = $event"
name="vlayout"
icon="fa-list"
iconAlt="fa-columns"
+ :defaultValue="this.config.defaults.layout == 'columns'"
/>
<SearchInput
class="navbar-item is-inline-block-mobile"
+ :hotkey="searchHotkey()"
@input="filterServices"
@search-focus="showMenu = true"
@search-open="navigateToFirstService"
v-if="config.connectivityCheck"
@network-status-update="offline = $event"
/>
+
+ <GetStarted v-if="loaded && !services" />
+
<div v-if="!offline">
<!-- Optional messages -->
<Message :item="config.message" />
const merge = require("lodash.merge");
import Navbar from "./components/Navbar.vue";
+import GetStarted from "./components/GetStarted.vue";
import ConnectivityChecker from "./components/ConnectivityChecker.vue";
import Service from "./components/Service.vue";
import Message from "./components/Message.vue";
name: "App",
components: {
Navbar,
+ GetStarted,
ConnectivityChecker,
Service,
Message,
},
data: function () {
return {
+ loaded: false,
config: null,
services: null,
offline: false,
created: async function () {
this.buildDashboard();
window.onhashchange = this.buildDashboard;
+ this.loaded = true;
},
methods: {
+ searchHotkey() {
+ if (this.config.hotkey && this.config.hotkey.search) {
+ return this.config.hotkey.search;
+ }
+ },
buildDashboard: async function () {
const defaults = jsyaml.load(defaultConfig);
let config;
}
this.config = merge(defaults, config);
this.services = this.config.services;
+
document.title =
this.config.documentTitle ||
`${this.config.title} | ${this.config.subtitle}`;
window.location.href = response.url;
return;
}
+
if (!response.ok) {
throw Error(`${response.statusText}: ${response.body}`);
}