2019-04-03 00:25:12 +02:00
|
|
|
import Vue from 'vue'
|
2019-07-11 22:29:18 +02:00
|
|
|
import { Button, Select, Tag, Option, Table, FormItem, Card, Row, Col, Upload, Checkbox, RadioButton, RadioGroup,
|
2019-10-20 14:22:55 +02:00
|
|
|
Form, Tabs, TabPane, Switch, Input, Loading, TimeSelect, Badge, ButtonGroup, Divider, Step, Steps, Radio, Main,
|
|
|
|
TableColumn, ColorPicker, Pagination, Popover, Tooltip, Dialog, Image, Backtop, Collapse, CollapseItem, Link,
|
2019-11-03 00:56:56 +01:00
|
|
|
Dropdown, DropdownMenu, DropdownItem, Submenu, PageHeader, Header, Icon, Alert,
|
2019-06-11 17:44:11 +02:00
|
|
|
Container, Footer, Timeline, TimelineItem, Menu, MenuItem } from 'element-ui'
|
2019-04-23 15:45:52 +02:00
|
|
|
import locale from 'element-ui/lib/locale'
|
2019-06-11 17:44:11 +02:00
|
|
|
|
|
|
|
const locales = {
|
|
|
|
it: require('element-ui/lib/locale/lang/it'),
|
2019-09-05 13:46:40 +02:00
|
|
|
en: require('element-ui/lib/locale/lang/en'),
|
2019-12-18 14:59:10 +01:00
|
|
|
es: require('element-ui/lib/locale/lang/es'),
|
2019-12-18 14:21:30 +01:00
|
|
|
ca: require('element-ui/lib/locale/lang/ca')
|
2019-06-11 17:44:11 +02:00
|
|
|
}
|
2019-04-03 00:25:12 +02:00
|
|
|
|
2019-06-25 01:05:38 +02:00
|
|
|
export default ({ app, store }) => {
|
|
|
|
locale.use(locales[store.state.locale])
|
2019-04-03 00:25:12 +02:00
|
|
|
Vue.use(Button)
|
2019-11-03 00:56:56 +01:00
|
|
|
Vue.use(Alert)
|
2019-10-22 01:02:47 +02:00
|
|
|
Vue.use(Icon)
|
2019-10-20 14:22:55 +02:00
|
|
|
Vue.use(Dropdown)
|
|
|
|
Vue.use(Header)
|
|
|
|
Vue.use(PageHeader)
|
|
|
|
Vue.use(Submenu)
|
|
|
|
Vue.use(DropdownItem)
|
|
|
|
Vue.use(DropdownMenu)
|
|
|
|
Vue.use(Main)
|
|
|
|
Vue.use(Link)
|
2019-07-11 22:29:18 +02:00
|
|
|
Vue.use(RadioButton)
|
|
|
|
Vue.use(RadioGroup)
|
|
|
|
Vue.use(Radio)
|
2019-06-18 14:45:04 +02:00
|
|
|
Vue.use(Collapse)
|
|
|
|
Vue.use(CollapseItem)
|
|
|
|
Vue.use(Backtop)
|
2019-05-30 12:04:14 +02:00
|
|
|
Vue.use(Divider)
|
2019-06-11 17:44:11 +02:00
|
|
|
Vue.use(Image)
|
2019-06-06 23:54:32 +02:00
|
|
|
Vue.use(Step)
|
|
|
|
Vue.use(Steps)
|
2019-05-30 12:04:14 +02:00
|
|
|
Vue.use(Checkbox)
|
|
|
|
Vue.use(Upload)
|
|
|
|
Vue.use(ButtonGroup)
|
|
|
|
Vue.use(Row)
|
|
|
|
Vue.use(Col)
|
|
|
|
Vue.use(Badge)
|
|
|
|
Vue.use(Dialog)
|
|
|
|
Vue.use(Menu)
|
|
|
|
Vue.use(MenuItem)
|
2019-04-29 00:27:29 +02:00
|
|
|
Vue.use(Container)
|
|
|
|
Vue.use(Timeline)
|
|
|
|
Vue.use(TimelineItem)
|
|
|
|
Vue.use(Footer)
|
|
|
|
Vue.use(Tooltip)
|
2019-04-03 00:25:12 +02:00
|
|
|
Vue.use(Popover)
|
|
|
|
Vue.use(Card)
|
|
|
|
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)
|
|
|
|
}
|