feat(sync): full code sync from release

This commit is contained in:
yangjianbo
2026-02-28 15:01:20 +08:00
parent bfc7b339f7
commit bb664d9bbf
338 changed files with 54513 additions and 2011 deletions

View File

@@ -6,7 +6,18 @@ import i18n, { initI18n } from './i18n'
import { useAppStore } from '@/stores/app'
import './style.css'
function initThemeClass() {
const savedTheme = localStorage.getItem('theme')
const shouldUseDark =
savedTheme === 'dark' ||
(!savedTheme && window.matchMedia('(prefers-color-scheme: dark)').matches)
document.documentElement.classList.toggle('dark', shouldUseDark)
}
async function bootstrap() {
// Apply theme class globally before app mount to keep all routes consistent.
initThemeClass()
const app = createApp(App)
const pinia = createPinia()
app.use(pinia)