|
|
@ -8,21 +8,25 @@
|
|
|
|
<div class="shadow-box">
|
|
|
|
<div class="shadow-box">
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="settings-menu">
|
|
|
|
<div class="settings-menu">
|
|
|
|
<div v-for="(item, key) in subMenus"
|
|
|
|
<router-link
|
|
|
|
:key="key"
|
|
|
|
v-for="(item, key) in subMenus"
|
|
|
|
class="menu-item"
|
|
|
|
:key="key"
|
|
|
|
:class="{ active: currentSubMenu == key }"
|
|
|
|
:to="`/settings/${item.path}`"
|
|
|
|
@click="currentSubMenu = key"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{{ item.title }}
|
|
|
|
<div
|
|
|
|
</div>
|
|
|
|
class="menu-item"
|
|
|
|
|
|
|
|
:class="{ active: $route.name == `settings-${key}` }"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.title }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</router-link>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="settings-content">
|
|
|
|
<div class="settings-content">
|
|
|
|
<div class="settings-content-header">
|
|
|
|
<div class="settings-content-header">
|
|
|
|
{{ subMenus[currentSubMenu].title }}
|
|
|
|
{{ subMenus[$route.name.split("-")[1]].title }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mx-3">
|
|
|
|
<div class="mx-3">
|
|
|
|
<component :is="subMenus[currentSubMenu].component" />
|
|
|
|
<router-view />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -32,16 +36,6 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { markRaw } from "vue";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import Appearance from "../components/settings/Appearance.vue";
|
|
|
|
|
|
|
|
import General from "../components/settings/General.vue";
|
|
|
|
|
|
|
|
import Notifications from "../components/settings/Notifications.vue";
|
|
|
|
|
|
|
|
import MonitorHistory from "../components/settings/MonitorHistory.vue";
|
|
|
|
|
|
|
|
import Security from "../components/settings/Security.vue";
|
|
|
|
|
|
|
|
import Backup from "../components/settings/Backup.vue";
|
|
|
|
|
|
|
|
import About from "../components/settings/About.vue";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
|
|
|
|
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
@ -55,34 +49,33 @@ export default {
|
|
|
|
subMenus: {
|
|
|
|
subMenus: {
|
|
|
|
general: {
|
|
|
|
general: {
|
|
|
|
title: this.$t("General"),
|
|
|
|
title: this.$t("General"),
|
|
|
|
component: markRaw(General),
|
|
|
|
path: "general",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
appearance: {
|
|
|
|
appearance: {
|
|
|
|
title: this.$t("Appearance"),
|
|
|
|
title: this.$t("Appearance"),
|
|
|
|
component: markRaw(Appearance),
|
|
|
|
path: "appearance",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
notifications: {
|
|
|
|
notifications: {
|
|
|
|
title: this.$t("Notifications"),
|
|
|
|
title: this.$t("Notifications"),
|
|
|
|
component: markRaw(Notifications),
|
|
|
|
path: "notifications",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
monitorHistory: {
|
|
|
|
monitorHistory: {
|
|
|
|
title: this.$t("Monitor History"),
|
|
|
|
title: this.$t("Monitor History"),
|
|
|
|
component: markRaw(MonitorHistory),
|
|
|
|
path: "monitor-history",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
security: {
|
|
|
|
security: {
|
|
|
|
title: this.$t("Security"),
|
|
|
|
title: this.$t("Security"),
|
|
|
|
component: markRaw(Security),
|
|
|
|
path: "security",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
backup: {
|
|
|
|
backup: {
|
|
|
|
title: this.$t("Backup"),
|
|
|
|
title: this.$t("Backup"),
|
|
|
|
component: markRaw(Backup),
|
|
|
|
path: "backup",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
about: {
|
|
|
|
about: {
|
|
|
|
title: this.$t("About"),
|
|
|
|
title: this.$t("About"),
|
|
|
|
component: markRaw(About),
|
|
|
|
path: "about",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
currentSubMenu: "general",
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -142,6 +135,10 @@ footer {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
width: 300px;
|
|
|
|
width: 300px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
|
|
|
text-decoration: none !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.menu-item {
|
|
|
|
.menu-item {
|
|
|
|
border-radius: 10px;
|
|
|
|
border-radius: 10px;
|
|
|
|
margin: 0.5em;
|
|
|
|
margin: 0.5em;
|
|
|
|