mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-20 16:59:17 +08:00
33 lines
1.0 KiB
Go
33 lines
1.0 KiB
Go
import { createApp } from 'vue';
|
|
import App from './App.vue';
|
|
import '@/styles/reset.scss';
|
|
import '@/styles/common.scss';
|
|
import '@/assets/iconfont/iconfont.css';
|
|
import '@/assets/iconfont/iconfont.js';
|
|
import ElementPlus from 'element-plus';
|
|
import Fit2CloudPlus from 'fit2cloud-ui-plus';
|
|
import * as Icons from '@element-plus/icons-vue';
|
|
import '@/styles/element-dark.scss';
|
|
import '@/styles/element.scss';
|
|
import 'element-plus/dist/index.css';
|
|
import 'element-plus/theme-chalk/dark/css-vars.css';
|
|
import 'fit2cloud-ui-plus/src/styles/index.scss';
|
|
import directives from '@/directives/index';
|
|
import router from '@/routers/index';
|
|
import I18n from '@/lang/index';
|
|
import pinia from '@/store/index';
|
|
import SvgIcon from './components/svg-icon/svg-icon.vue';
|
|
const app = createApp(App);
|
|
app.component('SvgIcon', SvgIcon);
|
|
app.use(ElementPlus);
|
|
app.use(Fit2CloudPlus);
|
|
Object.keys(Icons).forEach((key) => {
|
|
app.component(key, Icons[key as keyof typeof Icons]);
|
|
});
|
|
|
|
app.use(router);
|
|
app.use(I18n);
|
|
app.use(pinia);
|
|
app.use(directives);
|
|
app.mount('#app');
|