|
|
|
@ -1,28 +1,35 @@
|
|
|
|
|
<template>
|
|
|
|
|
|
|
|
|
|
<div class="lost-connection" v-if="! $root.socket.connected && ! $root.socket.firstConnect">
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
Lost connection to the socket server. Reconnecting...
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lost-connection" v-if="!$root.socket.connected && !$root.socket.firstConnect">
|
|
|
|
|
<div class="container-fluid">Lost connection to the socket server. Reconnecting...</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Desktop header -->
|
|
|
|
|
<header class="d-flex flex-wrap justify-content-center py-3 mb-3 border-bottom" v-if="! $root.isMobile">
|
|
|
|
|
<router-link to="/dashboard" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none">
|
|
|
|
|
<object class="bi me-2 ms-4" width="40" height="40" data="/icon.svg"></object>
|
|
|
|
|
<header
|
|
|
|
|
class="d-flex flex-wrap justify-content-center py-3 mb-3 border-bottom"
|
|
|
|
|
v-if="!$root.isMobile"
|
|
|
|
|
>
|
|
|
|
|
<router-link
|
|
|
|
|
to="/dashboard"
|
|
|
|
|
class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-decoration-none"
|
|
|
|
|
>
|
|
|
|
|
<img class="bi me-2 ms-4" width="40" height="40" src="/icon.svg" />
|
|
|
|
|
<span class="fs-4 title">Uptime Kuma</span>
|
|
|
|
|
</router-link>
|
|
|
|
|
|
|
|
|
|
<ul class="nav nav-pills" >
|
|
|
|
|
<li class="nav-item"><router-link to="/dashboard" class="nav-link">📊 Dashboard</router-link></li>
|
|
|
|
|
<li class="nav-item"><router-link to="/settings" class="nav-link">🔧 Settings</router-link></li>
|
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<router-link to="/dashboard" class="nav-link">📊 Dashboard</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<router-link to="/settings" class="nav-link">🔧 Settings</router-link>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<!-- Mobile header -->
|
|
|
|
|
<header class="d-flex flex-wrap justify-content-center mt-3 mb-3" v-else>
|
|
|
|
|
<router-link to="/dashboard" class="d-flex align-items-center text-dark text-decoration-none">
|
|
|
|
|
<object class="bi" width="40" height="40" data="/icon.svg"></object>
|
|
|
|
|
<router-link to="/dashboard" class="d-flex align-items-center text-decoration-none">
|
|
|
|
|
<img style="height:2rem;" src="/icon.svg" />
|
|
|
|
|
<span class="fs-4 title ms-2">Uptime Kuma</span>
|
|
|
|
|
</router-link>
|
|
|
|
|
</header>
|
|
|
|
@ -30,24 +37,39 @@
|
|
|
|
|
<main>
|
|
|
|
|
<!-- Add :key to disable vue router re-use the same component -->
|
|
|
|
|
<router-view v-if="$root.loggedIn" :key="$route.fullPath" />
|
|
|
|
|
<Login v-if="! $root.loggedIn && $root.allowLoginDialog" />
|
|
|
|
|
<Login v-if="!$root.loggedIn && $root.allowLoginDialog" />
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
Uptime Kuma -
|
|
|
|
|
Version: {{ $root.info.version }} -
|
|
|
|
|
<a href="https://github.com/louislam/uptime-kuma/releases" target="_blank">Check Update On GitHub</a>
|
|
|
|
|
<a
|
|
|
|
|
href="https://github.com/louislam/uptime-kuma/releases"
|
|
|
|
|
target="_blank"
|
|
|
|
|
>Check Update On GitHub</a>
|
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
|
|
<!-- Mobile Only -->
|
|
|
|
|
<div style="width: 100%;height: 60px;" v-if="$root.isMobile"></div>
|
|
|
|
|
<nav class="bottom-nav" v-if="$root.isMobile">
|
|
|
|
|
<router-link to="/dashboard" class="nav-link" @click="$root.cancelActiveList"><div>📊</div>Dashboard</router-link>
|
|
|
|
|
<a href="#" :class=" { 'router-link-exact-active' : $root.showListMobile } " @click="$root.showListMobile = ! $root.showListMobile"><div>📃</div>List</a>
|
|
|
|
|
<router-link to="/add" class="nav-link" @click="$root.cancelActiveList"><div>➕</div>Add</router-link>
|
|
|
|
|
<router-link to="/settings" class="nav-link" @click="$root.cancelActiveList"><div>🔧</div>Settings</router-link>
|
|
|
|
|
<router-link to="/dashboard" class="nav-link" @click="$root.cancelActiveList">
|
|
|
|
|
<div>📊</div>Dashboard
|
|
|
|
|
</router-link>
|
|
|
|
|
<a
|
|
|
|
|
href="#"
|
|
|
|
|
:class="{ 'router-link-exact-active': $root.showListMobile }"
|
|
|
|
|
@click="$root.showListMobile = !$root.showListMobile"
|
|
|
|
|
>
|
|
|
|
|
<div>📃</div>List
|
|
|
|
|
</a>
|
|
|
|
|
<router-link to="/add" class="nav-link" @click="$root.cancelActiveList">
|
|
|
|
|
<div>➕</div>Add
|
|
|
|
|
</router-link>
|
|
|
|
|
<router-link to="/settings" class="nav-link" @click="$root.cancelActiveList">
|
|
|
|
|
<div>🔧</div>Settings
|
|
|
|
|
</router-link>
|
|
|
|
|
</nav>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -70,7 +92,7 @@ export default {
|
|
|
|
|
this.init();
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
$route (to, from) {
|
|
|
|
|
$route(to, from) {
|
|
|
|
|
this.init();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -95,8 +117,9 @@ export default {
|
|
|
|
|
height: 60px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
left: 0;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
box-shadow: 0 15px 47px 0 rgba(0, 0, 0, 0.05), 0 5px 14px 0 rgba(0, 0, 0, 0.05);
|
|
|
|
|
background-color: var(--background-navbar);
|
|
|
|
|
box-shadow: 0 15px 47px 0 rgba(0, 0, 0, 0.05),
|
|
|
|
|
0 5px 14px 0 rgba(0, 0, 0, 0.05);
|
|
|
|
|
text-align: center;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
padding: 0 35px;
|
|
|
|
@ -108,7 +131,7 @@ export default {
|
|
|
|
|
height: 100%;
|
|
|
|
|
padding: 8px 10px 0;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: #c1c1c1;
|
|
|
|
|
color: var(--main-font-color);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
|
@ -138,14 +161,12 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
main {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
footer {
|
|
|
|
|
color: #AAA;
|
|
|
|
|
color: #aaa;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|