2019-08-14 09:48:44 +00:00
|
|
|
/* eslint no-plusplus: 0 */
|
|
|
|
/* eslint-env browser */
|
|
|
|
|
2019-11-30 12:03:42 +00:00
|
|
|
import Bar from './widgets/chart/BarChart';
|
|
|
|
import Code from './Code';
|
|
|
|
import LoadingState from './widgets/LoadingState';
|
2019-08-14 09:48:44 +00:00
|
|
|
import Modal from './Modal';
|
2019-11-30 12:03:42 +00:00
|
|
|
import ModalHeader from './ModalHeader';
|
|
|
|
import ReportStatsCard from './widgets/ReportStatsCard';
|
2019-08-14 09:48:44 +00:00
|
|
|
import Spinner from './Spinner';
|
|
|
|
import SubmitButton from './buttons/FormSubmitButton';
|
|
|
|
import Tabs from './ui/Tabs/Tabs';
|
|
|
|
import TabsItem from './ui/Tabs/TabsItem';
|
|
|
|
|
|
|
|
const WootUIKit = {
|
2019-11-30 12:03:42 +00:00
|
|
|
Bar,
|
|
|
|
Code,
|
|
|
|
LoadingState,
|
2019-08-14 09:48:44 +00:00
|
|
|
Modal,
|
2019-11-30 12:03:42 +00:00
|
|
|
ModalHeader,
|
|
|
|
ReportStatsCard,
|
2019-08-14 09:48:44 +00:00
|
|
|
Spinner,
|
|
|
|
SubmitButton,
|
|
|
|
Tabs,
|
|
|
|
TabsItem,
|
|
|
|
install(Vue) {
|
|
|
|
const keys = Object.keys(this);
|
|
|
|
keys.pop(); // remove 'install' from keys
|
|
|
|
let i = keys.length;
|
|
|
|
while (i--) {
|
|
|
|
Vue.component(`woot${keys[i]}`, this[keys[i]]);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
|
|
window.Vue.use(WootUIKit);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default WootUIKit;
|