feat(ui): add theme manager and dark mode

This commit is contained in:
Tim
2025-07-07 13:09:33 +08:00
parent 57863aadf8
commit 06af358989
4 changed files with 89 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import Toast, { POSITION } from 'vue-toastification'
import 'vue-toastification/dist/index.css'
import { useToast } from 'vue-toastification'
import { checkToken, clearToken } from './utils/auth'
import { initTheme } from './utils/theme'
// Configurable API domain and port
export const API_DOMAIN = 'http://127.0.0.1'
@@ -14,6 +15,8 @@ export const API_BASE_URL = API_PORT ? `${API_DOMAIN}:${API_PORT}` : API_DOMAIN
export const GOOGLE_CLIENT_ID = '777830451304-nt8afkkap18gui4f9entcha99unal744.apps.googleusercontent.com'
export const toast = useToast()
initTheme()
const app = createApp(App)
app.use(router)
app.use(Toast, { position: POSITION.TOP_RIGHT })