2023-12-24 02:24:48 +01:00
|
|
|
import {defineCustomElement} from 'vue';
|
|
|
|
import classes from './style.css?inline';
|
2023-12-24 03:56:43 +01:00
|
|
|
import carousel from 'vue3-carousel/dist/carousel.css?inline';
|
2023-12-24 17:36:34 +01:00
|
|
|
import carouselStyle from './carousel.css?inline';
|
2024-01-19 18:02:34 +01:00
|
|
|
import Eventoverview from './Eventoverview.ce.vue';
|
|
|
|
import Eventform from './Eventform.ce.vue';
|
2023-12-24 02:24:48 +01:00
|
|
|
|
2023-12-31 14:20:32 +01:00
|
|
|
import axios from 'axios';
|
|
|
|
window.axios = axios;
|
|
|
|
|
2023-12-24 22:25:17 +01:00
|
|
|
window.hasKeys = function (object, expected) {
|
|
|
|
return typeof object === 'object' && JSON.stringify(Object.keys(object).sort()) === JSON.stringify(expected.sort());
|
|
|
|
};
|
|
|
|
|
2023-12-24 17:36:34 +01:00
|
|
|
Eventform.styles = [classes, carousel, carouselStyle];
|
2024-01-19 18:02:34 +01:00
|
|
|
Eventoverview.styles = [classes];
|
2023-12-24 02:24:48 +01:00
|
|
|
|
|
|
|
customElements.define('event-form', defineCustomElement(Eventform));
|
2024-01-19 18:02:34 +01:00
|
|
|
customElements.define('event-overview', defineCustomElement(Eventoverview));
|