release: v0.4.0

This commit is contained in:
2026-05-18 05:11:57 +08:00
parent b758391861
commit da5bd01535
147 changed files with 8876 additions and 6941 deletions
@@ -2,7 +2,10 @@
<div class="admin-layout">
<aside class="admin-sidebar">
<div class="sidebar-brand">
<div class="sidebar-logo"></div>
<div class="sidebar-logo">
<img v-if="siteLogo" :src="siteLogo" :alt="siteName || 'CloudSearch'" class="sidebar-logo-img" @error="(e: any) => { (e.target as HTMLElement).style.display='none'; siteLogo='' }" />
<span v-else class="sidebar-logo-fallback"></span>
</div>
<div class="sidebar-brand-text">
<h2>{{ siteName || 'CloudSearch' }}</h2>
<p>管理控制台</p>
@@ -86,6 +89,7 @@ const router = useRouter()
const route = useRoute()
const siteName = ref('')
const siteLogo = ref('')
const appVersion = ref('')
const pageTitles: Record<string, string> = {
@@ -142,6 +146,7 @@ onMounted(async () => {
try {
const cfg = await getSiteConfig()
siteName.value = cfg.site_name || ''
siteLogo.value = cfg.site_logo || ''
} catch {}
try {
const h = await fetch('/health')
@@ -180,7 +185,14 @@ onMounted(async () => {
font-size: 28px;
line-height: 1;
flex-shrink: 0;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
}
.sidebar-logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
.sidebar-logo-fallback { font-size: 28px; }
.sidebar-brand-text h2 {
font-size: 16px;
font-weight: 700;