mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
refactor: project directory structure
This commit is contained in:
parent
c1193a5b8c
commit
e5a5889931
367 changed files with 710 additions and 756 deletions
24
app/src/main.ts
Normal file
24
app/src/main.ts
Normal file
|
@ -0,0 +1,24 @@
|
|||
import {createApp} from 'vue'
|
||||
import {createPinia} from 'pinia'
|
||||
import gettext from './gettext'
|
||||
import App from './App.vue'
|
||||
import router from './routes'
|
||||
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
||||
import {useSettingsStore} from '@/pinia'
|
||||
import {autoAnimatePlugin} from '@formkit/auto-animate/vue'
|
||||
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue