2026-04-13 15:15:14 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { onMounted } from 'vue'
|
|
|
|
|
import { NSpin } from 'naive-ui'
|
|
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
|
import { useSettingsStore } from '@/stores/settings'
|
|
|
|
|
import PlatformSettings from '@/components/settings/PlatformSettings.vue'
|
|
|
|
|
|
|
|
|
|
const settingsStore = useSettingsStore()
|
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
settingsStore.fetchSettings()
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="channels-view">
|
2026-04-15 08:50:10 +08:00
|
|
|
<header class="page-header">
|
2026-04-13 15:15:14 +08:00
|
|
|
<h2 class="header-title">{{ t('sidebar.channels') }}</h2>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<div class="channels-content">
|
|
|
|
|
<NSpin :show="settingsStore.loading">
|
|
|
|
|
<PlatformSettings />
|
|
|
|
|
</NSpin>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
@use '@/styles/variables' as *;
|
|
|
|
|
|
|
|
|
|
.channels-view {
|
|
|
|
|
height: 100vh;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.channels-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|