mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 10:33:22 +01:00
54 lines
1.9 KiB
Vue
54 lines
1.9 KiB
Vue
<script setup lang="ts">
|
|
import storeAuth from "@/stores/auth";
|
|
import storeHeartbeat from "@/stores/heartbeat";
|
|
import ControlPanelConfig from "@/views/Settings/ControlPanel/Config/Base.vue";
|
|
import ControlPanelGeneral from "@/views/Settings/ControlPanel/General/Base.vue";
|
|
import ControlPanelUsers from "@/views/Settings/ControlPanel/Users/Base.vue";
|
|
import { ref } from "vue";
|
|
|
|
// Props
|
|
const authStore = storeAuth();
|
|
const heartbeatStore = storeHeartbeat();
|
|
const tab = ref("general");
|
|
</script>
|
|
<template>
|
|
<v-app-bar elevation="0" density="compact">
|
|
<v-tabs v-model="tab" slider-color="romm-accent-1" class="bg-primary">
|
|
<v-tab value="general" rounded="0">General</v-tab>
|
|
<v-tab value="config" rounded="0">Config</v-tab>
|
|
<v-tab
|
|
v-if="authStore.scopes.includes('users.read')"
|
|
value="users"
|
|
rounded="0"
|
|
>
|
|
Users
|
|
</v-tab>
|
|
</v-tabs>
|
|
</v-app-bar>
|
|
|
|
<v-window v-model="tab" class="pa-1">
|
|
<v-window-item value="general">
|
|
<control-panel-general />
|
|
</v-window-item>
|
|
|
|
<v-window-item value="config">
|
|
<control-panel-config />
|
|
</v-window-item>
|
|
|
|
<v-window-item value="users">
|
|
<control-panel-users />
|
|
</v-window-item>
|
|
</v-window>
|
|
|
|
<v-bottom-navigation :elevation="0" height="36" class="text-caption">
|
|
<v-row class="align-center justify-center" no-gutters>
|
|
<span class="text-romm-accent-1">RomM</span>
|
|
<span class="ml-1">{{ heartbeatStore.value.VERSION }}</span>
|
|
<v-icon>mdi-circle-small</v-icon><v-icon>mdi-github</v-icon>
|
|
<span class="ml-1"><a style="text-decoration: none; color: inherit" href="https://github.com/rommapp/romm" target="_blank">Github</a></span>
|
|
<v-icon>mdi-circle-small</v-icon>
|
|
<span class="ml-1"><a style="text-decoration: none; color: inherit" href="https://discord.com/invite/P5HtHnhUDH" target="_blank">Join to our Discord</a></span>
|
|
</v-row>
|
|
</v-bottom-navigation>
|
|
</template>
|