This commit is contained in:
2026-07-28 10:32:21 +08:00
parent fc8c23beee
commit 389c0d172a
17 changed files with 678 additions and 157 deletions
+1 -18
View File
@@ -5,9 +5,8 @@
<div class="px-5 py-4 border-b border-gray-700">
<h1 class="text-lg font-bold text-white flex items-center gap-2">
<span class="inline-block w-2 h-2 bg-primary-500 rounded-full"></span>
Sub-Store
SubStore
</h1>
<p class="text-xs text-gray-500 mt-0.5" v-if="env">{{ env.backend }} · {{ env.version }}</p>
</div>
<nav class="flex-1 py-3 overflow-y-auto">
<router-link
@@ -23,9 +22,6 @@
<span>{{ item.label }}</span>
</router-link>
</nav>
<div class="px-5 py-3 border-t border-gray-700 text-xs text-gray-500">
<p>SQLite · Go</p>
</div>
</aside>
<!-- Main content -->
@@ -38,10 +34,6 @@
</template>
<script setup>
import { ref, onMounted } from 'vue'
import { getEnv } from '@/api'
const env = ref(null)
const menu = [
{ to: '/', icon: '📊', label: '概览' },
{ to: '/sources', icon: '📡', label: '订阅源' },
@@ -51,13 +43,4 @@ const menu = [
{ to: '/tools', icon: '🔧', label: '工具' },
{ to: '/settings', icon: '⚙️', label: '设置' },
]
onMounted(async () => {
try {
const res = await getEnv()
env.value = res.data
} catch {
// ignore
}
})
</script>