mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-03 14:20:50 +08:00
29 lines
655 B
TypeScript
29 lines
655 B
TypeScript
import './index.css';
|
|
import '@/assets/css/mobile.css';
|
|
import 'animate.css';
|
|
import 'remixicon/fonts/remixicon.css';
|
|
|
|
import { createApp } from 'vue';
|
|
|
|
import i18n from '@/../i18n/renderer';
|
|
import router from '@/router';
|
|
import pinia from '@/store';
|
|
|
|
import App from './App.vue';
|
|
import directives from './directive';
|
|
import { initAppShortcuts } from './utils/appShortcuts';
|
|
|
|
const app = createApp(App);
|
|
|
|
Object.keys(directives).forEach((key: string) => {
|
|
app.directive(key, directives[key as keyof typeof directives]);
|
|
});
|
|
|
|
app.use(pinia);
|
|
app.use(router);
|
|
app.use(i18n as any);
|
|
app.mount('#app');
|
|
|
|
// 初始化应用内快捷键
|
|
initAppShortcuts();
|