cosmos-explorer/src/main.js

56 lines
1.1 KiB
JavaScript
Raw Normal View History

2021-07-21 14:07:38 +00:00
import Vue from 'vue'
2022-04-18 11:55:32 +00:00
import { ObserveVisibility } from 'vue-observe-visibility'
2021-07-21 14:07:38 +00:00
import { ToastPlugin, ModalPlugin } from 'bootstrap-vue'
import VueCompositionAPI from '@vue/composition-api'
2021-07-22 02:39:17 +00:00
import messages from '@/lang'
import VueI18n from 'vue-i18n'
2021-07-21 14:07:38 +00:00
2021-07-30 15:24:46 +00:00
import ChainAPI from '@/libs/fetch'
2021-07-21 14:07:38 +00:00
import router from './router'
import store from './store'
import App from './App.vue'
// Global Components
import './global-components'
// 3rd party plugins
import '@/libs/portal-vue'
import '@/libs/toastification'
2021-08-16 09:02:28 +00:00
import '@/libs/clipboard'
2021-07-21 14:07:38 +00:00
2022-04-18 11:55:32 +00:00
Vue.directive('observe-visibility', ObserveVisibility)
2021-10-15 10:52:30 +00:00
// Vue.use(VueGtag, { config: { id: 'UA-238887-1' } }, router)
2021-10-10 01:32:46 +00:00
2021-07-22 02:39:17 +00:00
Vue.use(VueI18n)
const i18n = new VueI18n({
locale: 'en',
messages,
fallbackLocale: 'en',
})
2021-07-21 14:07:38 +00:00
// BSV Plugin Registration
Vue.use(ToastPlugin)
Vue.use(ModalPlugin)
// Composition API
Vue.use(VueCompositionAPI)
// import core styles
require('@core/scss/core.scss')
// import assets styles
require('@/assets/scss/style.scss')
Vue.config.productionTip = false
2021-07-30 15:24:46 +00:00
Vue.prototype.$http = new ChainAPI()
2021-07-21 14:07:38 +00:00
new Vue({
router,
store,
i18n,
render: h => h(App),
}).$mount('#app')