Refactor code structure for improved readability and maintainability

This commit is contained in:
catlog22
2026-02-28 22:32:07 +08:00
parent 19fb4d86c7
commit 67b2129f3c
60 changed files with 3002 additions and 643 deletions

View File

@@ -1,6 +1,7 @@
<script setup lang="ts">
import DefaultTheme from 'vitepress/theme'
import { onBeforeUnmount, onMounted } from 'vue'
import { useDynamicIcon } from '../composables/useDynamicIcon'
let mediaQuery: MediaQueryList | null = null
let systemThemeChangeHandler: (() => void) | null = null
@@ -18,6 +19,9 @@ function applyColorMode() {
document.documentElement.classList.toggle('dark', isDark)
}
// Initialize dynamic favicon system
useDynamicIcon()
onMounted(() => {
applyTheme()
applyColorMode()