feat(projects): 1.0 beta

This commit is contained in:
Soybean
2023-11-17 08:45:00 +08:00
parent 1ea4817f6a
commit e918a2c0f5
499 changed files with 15918 additions and 24708 deletions

View File

@ -1,37 +1,26 @@
import { createApp } from 'vue';
import App from './App.vue';
import AppLoading from './components/common/app-loading.vue';
import { setupDirectives } from './directives';
import { setupRouter } from './router';
import { setupAssets } from './plugins';
import './plugins/assets';
import { setupNProgress, setupIconifyOffline, setupDayjs } from './plugins';
import { setupStore } from './store';
import { setupRouter } from './router';
import { setupI18n } from './locales';
import App from './App.vue';
async function setupApp() {
// import assets: js、css
setupAssets();
setupNProgress();
// app loading
const appLoading = createApp(AppLoading);
setupIconifyOffline();
appLoading.mount('#appLoading');
setupDayjs();
const app = createApp(App);
// store plugin: pinia
setupStore(app);
// vue custom directives
setupDirectives(app);
// vue router
await setupRouter(app);
setupI18n(app);
appLoading.unmount();
// mount app
app.mount('#app');
}