2024-02-03 20:41:28 +01:00
|
|
|
import {defineCustomElement} from 'vue';
|
|
|
|
import classes from './style.css?inline';
|
|
|
|
import carousel from 'vue3-carousel/dist/carousel.css?inline';
|
|
|
|
import carouselStyle from './carousel.css?inline';
|
2024-02-03 22:18:38 +01:00
|
|
|
import EventIndex from './EventIndex.ce.vue';
|
|
|
|
import EventForm from './EventForm.ce.vue';
|
2023-12-24 02:24:48 +01:00
|
|
|
|
2024-02-03 20:41:28 +01:00
|
|
|
import axios from 'axios';
|
2023-12-31 14:20:32 +01:00
|
|
|
window.axios = axios;
|
2024-02-03 20:41:28 +01:00
|
|
|
axios.defaults.baseURL = window.document.querySelector('[name="adrema_base_url"]').content;
|
2023-12-31 14:20:32 +01:00
|
|
|
|
2023-12-24 22:25:17 +01:00
|
|
|
window.hasKeys = function (object, expected) {
|
2024-02-03 20:41:28 +01:00
|
|
|
return typeof object === 'object' && JSON.stringify(Object.keys(object).sort()) === JSON.stringify(expected.sort());
|
2023-12-24 22:25:17 +01:00
|
|
|
};
|
|
|
|
|
2024-02-03 22:18:38 +01:00
|
|
|
EventForm.styles = [classes, carousel, carouselStyle];
|
|
|
|
EventIndex.styles = [classes];
|
2023-12-24 02:24:48 +01:00
|
|
|
|
2024-02-03 22:18:38 +01:00
|
|
|
customElements.define('event-form', defineCustomElement(EventForm));
|
|
|
|
customElements.define('event-index', defineCustomElement(EventIndex));
|