From f76b46bc9fe159324e58783ff945595b5ba5e488 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 19 Jan 2024 18:02:34 +0100 Subject: [PATCH] Add event overview --- index.html | 5 +++ src/Eventoverview.ce.vue | 44 +++++++++++++++++++++++++++ src/components/icons/CalendarIcon.vue | 6 ++++ src/main.js | 6 ++-- 4 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 src/Eventoverview.ce.vue create mode 100644 src/components/icons/CalendarIcon.vue diff --git a/index.html b/index.html index 5d695e6..f4a00b6 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,11 @@ base-url="http://localhost:8000" editable > + diff --git a/src/Eventoverview.ce.vue b/src/Eventoverview.ce.vue new file mode 100644 index 0000000..0c67e3a --- /dev/null +++ b/src/Eventoverview.ce.vue @@ -0,0 +1,44 @@ + + + diff --git a/src/components/icons/CalendarIcon.vue b/src/components/icons/CalendarIcon.vue new file mode 100644 index 0000000..f82815d --- /dev/null +++ b/src/components/icons/CalendarIcon.vue @@ -0,0 +1,6 @@ + diff --git a/src/main.js b/src/main.js index c50c82a..7d79b7c 100644 --- a/src/main.js +++ b/src/main.js @@ -2,7 +2,8 @@ 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'; -import Navigation from './components/Navigation.vue'; +import Eventoverview from './Eventoverview.ce.vue'; +import Eventform from './Eventform.ce.vue'; import axios from 'axios'; window.axios = axios; @@ -11,7 +12,8 @@ window.hasKeys = function (object, expected) { return typeof object === 'object' && JSON.stringify(Object.keys(object).sort()) === JSON.stringify(expected.sort()); }; -import Eventform from './Eventform.ce.vue'; Eventform.styles = [classes, carousel, carouselStyle]; +Eventoverview.styles = [classes]; customElements.define('event-form', defineCustomElement(Eventform)); +customElements.define('event-overview', defineCustomElement(Eventoverview));