From c2e73afb352ae94517ea6915dd013191d82f18bf Mon Sep 17 00:00:00 2001 From: jedi Date: Thu, 28 Dec 2023 22:49:55 +0100 Subject: [PATCH] add admin panel for boxes --- web/src/App.vue | 8 +++--- web/src/components/AddBoxModal.vue | 36 +++++++++++++++++++++++++++ web/src/components/AddTicketModal.vue | 2 +- web/src/components/Table.vue | 6 +++-- web/src/router.js | 1 + web/src/store/index.js | 14 +++++++++++ web/src/views/admin/Admin.vue | 3 +++ web/src/views/admin/Boxes.vue | 30 ++++++++++++++-------- 8 files changed, 84 insertions(+), 16 deletions(-) create mode 100644 web/src/components/AddBoxModal.vue diff --git a/web/src/App.vue b/web/src/App.vue index d741a99..1025e1e 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -2,6 +2,7 @@
+
({ @@ -35,7 +37,7 @@ export default { socket_toast: null, }), methods: { - ...mapMutations(['removeToast', 'createToast']), + ...mapMutations(['removeToast', 'createToast', 'closeAddBoxModal', 'openAddBoxModal']), ...mapActions(['loadEventItems', 'loadTickets']), openAddItemModal() { this.addItemModalOpen = true; diff --git a/web/src/components/AddBoxModal.vue b/web/src/components/AddBoxModal.vue new file mode 100644 index 0000000..228f117 --- /dev/null +++ b/web/src/components/AddBoxModal.vue @@ -0,0 +1,36 @@ + + + + + \ No newline at end of file diff --git a/web/src/components/AddTicketModal.vue b/web/src/components/AddTicketModal.vue index b7a29fe..99913d7 100644 --- a/web/src/components/AddTicketModal.vue +++ b/web/src/components/AddTicketModal.vue @@ -1,6 +1,6 @@