forked from snapshot-labs/snapshot-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.ts
33 lines (30 loc) · 885 Bytes
/
main.ts
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
28
29
30
31
32
33
import { Buffer } from 'buffer';
(window as any).global = window;
(window as any).Buffer = Buffer;
import { createApp, h, provide } from 'vue';
import { LockPlugin } from '@snapshot-labs/lock/plugins/vue3';
import options from '@/helpers/auth';
import '../snapshot-spaces/skins';
import App from '@/App.vue';
import router from '@/router';
import i18n from '@/helpers/i18n';
import '@/helpers/auth';
import '@/style.scss';
import { apolloClient } from '@/helpers/apollo';
import { DefaultApolloClient } from '@vue/apollo-composable';
import VueTippy from 'vue-tippy';
const app = createApp({
setup() {
provide(DefaultApolloClient, apolloClient);
},
render: () => h(App)
})
.use(i18n)
.use(router)
.use(LockPlugin, options)
.use(VueTippy, {
defaultProps: { delay: [400, null] },
directive: 'tippy' // => v-tippy
});
app.mount('#app');
export default app;