aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/main.ts
blob: 8fa2f8ff074188325a36c87d67afb1ce7fcf5550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* eslint-disable import/extensions */
import '@/assets/scss/global.scss';
import '@/assets/scss/scrollbar.scss';
import '@/assets/scss/transition.scss';
import 'mosha-vue-toastify/dist/style.css';
import { createPinia } from 'pinia';
import { createApp, defineAsyncComponent } from 'vue';
import VueDragscroll from 'vue-dragscroll';
import { importFaIcon } from './plugins/asyncLib';
import i18n from './plugins/i18n';
import router from './plugins/router';
import { useLdFullscreen } from './services/ui/ldFullscreen';
import { useLdKeyboard } from './services/ui/ldKeyboard';
import { useLdTitle } from './services/ui/ldTitle';
import App from './views/MainLayout.vue';

createApp(App)
  .use(createPinia())
  .use(i18n)
  .use(router)
  .use(VueDragscroll)
  .component('fa-icon', defineAsyncComponent(importFaIcon))
  .mount('#app');

useLdTitle();
useLdKeyboard();
useLdFullscreen();