forked from bastienwirtz/homer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
163 lines (149 loc) · 6.23 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex">
<link rel="icon" type="image/png" href="assets/favicon.png">
<title>Homer</title>
<link defer rel="stylesheet" href="vendors/font-awesone.min.css">
<link defer rel="stylesheet" href="vendors/bulma.min.css">
<link rel="stylesheet" href="app.css">
<link rel="search" type="application/opensearchdescription+xml" href="opensearch.xml" title="search">
</head>
<body>
<div id="app" v-if="config" :class="[isDark ? 'is-dark' : 'is-light', !config.footer ? 'no-footer': '']">
<div id="bighead">
<section class="first-line">
<div v-cloak class="container">
<div class="logo">
<img v-if="config.logo" :src="config.logo" />
<i v-if="config.icon" :class="config.icon"></i>
</div>
<div class="dashboard-title">
<span class="headline">{{ config.subtitle }}</span>
<h1>{{ config.title }}</h1>
</div>
</div>
</section>
<div v-cloak v-if="config.links" class="container-fluid">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
<a role="button"
class="navbar-burger" :class="{ 'is-active': showMenu }"
aria-label="menu" aria-expanded="false"
v-on:click="toggleMenu()">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div class="navbar-menu" :class="{ 'is-active': showMenu }">
<div class="navbar-start">
<a v-for="link in config.links" class="navbar-item" :href="link.url" :target="link.target">
<i v-if="link.icon" style="margin-right: 6px;" :class="link.icon"></i>
{{ link.name }}
</a>
</div>
<div class="navbar-end">
<div class="navbar-item">
<a
v-on:click="toggleTheme()"
aria-label="Toggle dark mode"
class="icon-button"
><i class="fas fa-adjust"></i>
</a>
<a v-on:click="toggleLayout()" class="icon-button"><i
:class="['fas', vlayout ? 'fa-list' : 'fa-columns']"></i></a>
<div class="search-bar">
<label for="search" class="search-label"></label>
<input type="text" id="search" ref="search" v-model="filter" />
</div>
</div>
</div>
</div>
</div>
</nav>
</div>
</div>
<section id="main-section" class="section">
<div v-cloak class="container">
<div v-if="offline" class="offline-message">
<i class="far fa-dizzy"></i>
<h1>You're offline bro. <i class="fas fa-redo-alt" v-on:click="checkOffline()"></i></h1>
</div>
<div v-else>
<!-- Optional messages -->
<article v-if="config && config.message" class="message" :class="config.message.style">
<div v-if="config.message.title" class="message-header">
<p>{{ config.message.title }}</p>
</div>
<div v-if="config.message.content" class="message-body">
{{ config.message.content }}
</div>
</article>
<h2 v-if="filter"><i class="fas fa-search"></i> Search</h2>
<!-- Horizontal layout -->
<div v-if="!vlayout || filter" class="columns is-multiline">
<template v-for="(group, index) in config.services">
<h2 v-if="!filter && group.name" class="column is-full"><i v-if="group.icon" :class="group.icon"></i><span
v-else>#</span>
{{ group.name }}</h2>
<service v-for="item in group.items" v-bind:item="item" class="column is-one-third-widescreen"
v-if="!filter || (item && (item.name.toLowerCase().includes(filter.toLowerCase()) || (item.tag && item.tag.toLowerCase().includes(filter.toLowerCase()))))">
</service>
</template>
</div>
<!-- Vertical layout -->
<div v-if="!filter && vlayout" class="columns is-multiline layout-vertical">
<div class="column is-one-third-widescreen" v-for="(group, index) in config.services">
<h2 v-if="!filter && group.name"><i v-if="group.icon" :class="group.icon"></i><span v-else>#</span>
{{ group.name }}</h2>
<service v-for="item in group.items" v-bind:item="item"
v-if="!filter || (item && (item.name.toLowerCase().includes(filter.toLowerCase()) || (item.tag && item.tag.toLowerCase().includes(filter.toLowerCase()))))">
</service>
</div>
</div>
</div>
</div>
</section>
<!-- Golinks -->
<section v-if="config.golinks.display" class="section">
<div class="container">
<h1 class="title">Go Links</h1>
<div class="table-container">
<table class="table is-striped is-fullwidth">
<thead>
<tr>
<th>Name</th>
<th>Prefix</th>
<th>URL</th>
</tr>
</thead>
<tbody>
<template v-for="golink in config.golinks.services">
<tr>
<th>{{ golink.name }}</th>
<td><code>{{ golink.prefix }}</code></td>
<td>{{ golink.url }}</td>
</tr>
</template>
</tbody>
</table>
</div>
</div>
</section>
<footer class="footer">
<div class="container">
<div class="content has-text-centered" v-if="config.footer" v-html="config.footer">
</div>
</div>
</footer>
</div>
<script src="vendors/vue.min.js"></script>
<script src="vendors/js-yaml.min.js"></script>
<script src="vendors/vue-router.min.js"></script>
<script src="app.js"></script>
</body>
</html>