mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
refactor: refactor app and api
This commit is contained in:
parent
5ab50b8a93
commit
287ef7527d
157 changed files with 8116 additions and 3587 deletions
|
@ -1,11 +1,11 @@
|
|||
import {createApp} from 'vue'
|
||||
import {createPinia} from 'pinia'
|
||||
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 piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
||||
import {useSettingsStore} from '@/pinia'
|
||||
import {autoAnimatePlugin} from '@formkit/auto-animate/vue'
|
||||
import { useSettingsStore } from '@/pinia'
|
||||
import './style.css'
|
||||
|
||||
const pinia = createPinia()
|
||||
|
@ -15,8 +15,10 @@ 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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue