You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nginx-ui/app/src/main.ts

27 lines
658 B
TypeScript

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { autoAnimatePlugin } from '@formkit/auto-animate/vue'
import gettext from './gettext'
import App from './App.vue'
import router from './routes'
import { useSettingsStore } from '@/pinia'
import './style.css'
const pinia = createPinia()
const app = createApp(App)
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(gettext)
// after pinia created
const settings = useSettingsStore()
gettext.current = settings.language || 'en'
app.use(router).use(autoAnimatePlugin).mount('#app')
export default app