mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-24 23:20:49 +08:00
feat(ui): add theme manager and dark mode
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user