@@ -3,7 +3,6 @@ import VueI18n from 'vue-i18n'
|
||||
import BootstrapVue from 'bootstrap-vue'
|
||||
import VCalendar from 'v-calendar'
|
||||
|
||||
// import 'vue-awesome/icons'
|
||||
import 'vue-awesome/icons/lock'
|
||||
import 'vue-awesome/icons/plus'
|
||||
import 'vue-awesome/icons/cog'
|
||||
@@ -25,9 +24,14 @@ import VueClipboard from 'vue-clipboard2'
|
||||
|
||||
import 'v-calendar/lib/v-calendar.min.css'
|
||||
import 'bootstrap/dist/css/bootstrap.css'
|
||||
// import 'bootstrap-vue/dist/bootstrap-vue.css'
|
||||
import 'bootstrap-vue/dist/bootstrap-vue.css'
|
||||
|
||||
import { Button, Select, Tag, Option, Table, FormItem,
|
||||
Form, Tabs, TabPane, Switch, Input, Loading, TimeSelect,
|
||||
TableColumn, ColorPicker, Pagination } from 'element-ui'
|
||||
import ElementLocale from 'element-ui/lib/locale'
|
||||
|
||||
|
||||
import ElementUI from 'element-ui'
|
||||
import 'element-ui/lib/theme-chalk/index.css'
|
||||
|
||||
import itElementLocale from 'element-ui/lib/locale/lang/it'
|
||||
@@ -42,6 +46,23 @@ import './assets/main.css'
|
||||
import itLocale from '@/locale/it'
|
||||
import enLocale from '@/locale/en'
|
||||
|
||||
Vue.use(Button)
|
||||
Vue.use(Select)
|
||||
Vue.use(Tag)
|
||||
Vue.use(Input)
|
||||
Vue.use(Tabs)
|
||||
Vue.use(TabPane)
|
||||
Vue.use(Option)
|
||||
Vue.use(Switch)
|
||||
Vue.use(ColorPicker)
|
||||
Vue.use(Table)
|
||||
Vue.use(TableColumn)
|
||||
Vue.use(Pagination)
|
||||
Vue.use(FormItem)
|
||||
Vue.use(Form)
|
||||
Vue.use(TimeSelect)
|
||||
Vue.use(Loading.directive)
|
||||
|
||||
// Use v-calendar, v-date-picker & v-popover components
|
||||
Vue.use(VCalendar, {
|
||||
firstDayOfWeek: 2
|
||||
@@ -50,7 +71,6 @@ Vue.use(BootstrapVue)
|
||||
Vue.use(VueI18n)
|
||||
Vue.use(VueClipboard)
|
||||
Vue.component('v-icon', Icon)
|
||||
|
||||
const messages = {
|
||||
en: {
|
||||
...enElementLocale,
|
||||
@@ -68,13 +88,14 @@ const i18n = new VueI18n({
|
||||
messages // set locale messages
|
||||
})
|
||||
|
||||
Vue.use(ElementUI, { i18n: (key, value) => i18n.t(key, value) })
|
||||
// Vue.use(ElementUI, { i18n: (key, value) => i18n.t(key, value) })
|
||||
|
||||
Vue.config.productionTip = false
|
||||
Vue.config.lang = 'it'
|
||||
// Vue.locale('en', enLocale)
|
||||
Vue.config.devtools = true
|
||||
Vue.config.silent = false
|
||||
|
||||
ElementLocale.i18n((key, value) => i18n.t(key, value))
|
||||
new Vue({
|
||||
i18n,
|
||||
router,
|
||||
|
||||
Reference in New Issue
Block a user