2019-08-14 09:48:44 +00:00
|
|
|
/* eslint no-plusplus: 0 */
|
|
|
|
/* eslint-env browser */
|
2020-05-31 10:46:22 +00:00
|
|
|
import AvatarUploader from './widgets/forms/AvatarUploader.vue';
|
2019-11-30 12:03:42 +00:00
|
|
|
import Bar from './widgets/chart/BarChart';
|
2021-04-07 06:13:16 +00:00
|
|
|
import Button from './ui/WootButton';
|
2019-11-30 12:03:42 +00:00
|
|
|
import Code from './Code';
|
2020-05-30 11:58:00 +00:00
|
|
|
import ColorPicker from './widgets/ColorPicker';
|
2020-05-17 15:37:45 +00:00
|
|
|
import DeleteModal from './widgets/modal/DeleteModal.vue';
|
2020-05-31 10:46:22 +00:00
|
|
|
import Input from './widgets/forms/Input.vue';
|
2020-06-25 15:34:03 +00:00
|
|
|
import Label from './widgets/Label.vue';
|
2019-11-30 12:03:42 +00:00
|
|
|
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-12-12 07:23:15 +00:00
|
|
|
import SidemenuIcon from './SidemenuIcon';
|
2020-05-17 15:37:45 +00:00
|
|
|
import Spinner from 'shared/components/Spinner';
|
2019-08-14 09:48:44 +00:00
|
|
|
import SubmitButton from './buttons/FormSubmitButton';
|
|
|
|
import Tabs from './ui/Tabs/Tabs';
|
|
|
|
import TabsItem from './ui/Tabs/TabsItem';
|
2020-05-31 10:46:22 +00:00
|
|
|
import Thumbnail from './widgets/Thumbnail.vue';
|
2019-08-14 09:48:44 +00:00
|
|
|
|
|
|
|
const WootUIKit = {
|
2020-05-31 10:46:22 +00:00
|
|
|
AvatarUploader,
|
2019-11-30 12:03:42 +00:00
|
|
|
Bar,
|
2020-08-17 05:55:13 +00:00
|
|
|
Button,
|
2019-11-30 12:03:42 +00:00
|
|
|
Code,
|
2020-05-30 11:58:00 +00:00
|
|
|
ColorPicker,
|
2020-05-17 15:37:45 +00:00
|
|
|
DeleteModal,
|
2020-05-31 10:46:22 +00:00
|
|
|
Input,
|
2019-11-30 12:03:42 +00:00
|
|
|
LoadingState,
|
2020-06-25 15:34:03 +00:00
|
|
|
Label,
|
2019-08-14 09:48:44 +00:00
|
|
|
Modal,
|
2019-11-30 12:03:42 +00:00
|
|
|
ModalHeader,
|
|
|
|
ReportStatsCard,
|
2019-12-12 07:23:15 +00:00
|
|
|
SidemenuIcon,
|
2019-08-14 09:48:44 +00:00
|
|
|
Spinner,
|
|
|
|
SubmitButton,
|
|
|
|
Tabs,
|
|
|
|
TabsItem,
|
2020-05-31 10:46:22 +00:00
|
|
|
Thumbnail,
|
2019-08-14 09:48:44 +00:00
|
|
|
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;
|