2024-01-30 01:49:44 +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-01 00:17:56 +01:00
|
|
|
import Eventindex from "./Eventindex.ce.vue";
|
2024-01-30 01:49:44 +01:00
|
|
|
import Eventform from "./Eventform.ce.vue";
|
2023-12-24 02:24:48 +01:00
|
|
|
|
2024-01-30 01:49:44 +01:00
|
|
|
import axios from "axios";
|
2023-12-31 14:20:32 +01:00
|
|
|
window.axios = axios;
|
|
|
|
|
2023-12-24 22:25:17 +01:00
|
|
|
window.hasKeys = function (object, expected) {
|
2024-01-30 01:49:44 +01:00
|
|
|
return (
|
|
|
|
typeof object === "object" &&
|
|
|
|
JSON.stringify(Object.keys(object).sort()) ===
|
|
|
|
JSON.stringify(expected.sort())
|
|
|
|
);
|
2023-12-24 22:25:17 +01:00
|
|
|
};
|
|
|
|
|
2023-12-24 17:36:34 +01:00
|
|
|
Eventform.styles = [classes, carousel, carouselStyle];
|
2024-02-01 00:17:56 +01:00
|
|
|
Eventindex.styles = [classes];
|
2023-12-24 02:24:48 +01:00
|
|
|
|
2024-01-30 01:49:44 +01:00
|
|
|
customElements.define("event-form", defineCustomElement(Eventform));
|
2024-02-01 00:17:56 +01:00
|
|
|
customElements.define("event-index", defineCustomElement(Eventindex));
|