9150a17097
Implement the admin dashboard with review, user, and image management workflows. Add profile settings, password reset, pending upload defaults, community placeholder routing, Vercel SPA rewrites, refreshed header styling, and the OpenCloud color-system skill.
26 lines
600 B
TypeScript
26 lines
600 B
TypeScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import { useAuthStore } from './stores/auth'
|
|
import { enableCanvasReadbackHint } from './lib/canvas'
|
|
import './style.css'
|
|
|
|
enableCanvasReadbackHint()
|
|
|
|
const app = createApp(App)
|
|
const pinia = createPinia()
|
|
app.use(pinia)
|
|
|
|
const authStore = useAuthStore()
|
|
|
|
if (['/auth/confirm', '/auth/reset-password'].includes(window.location.pathname)) {
|
|
app.use(router)
|
|
app.mount('#app')
|
|
} else {
|
|
authStore.initialize().then(() => {
|
|
app.use(router)
|
|
app.mount('#app')
|
|
})
|
|
}
|