cosmos-explorer/src/main.js

51 lines
933 B
JavaScript
Raw Normal View History

2021-07-21 14:07:38 +00:00
import Vue from 'vue'
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-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')