From f03ae5eede167fed567002e530594eace30ad60e Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 2 Dec 2022 00:42:06 +0100 Subject: [PATCH] Add member edit layout --- resources/js/app.js | 4 + .../js/{views/member => components}/Box.vue | 6 +- resources/js/components/FSwitch.vue | 28 +- .../{views/member => components}/Heading.vue | 0 resources/js/views/member/ShowView.vue | 48 +- resources/js/views/member/VForm.vue | 424 ++++++++++-------- resources/js/views/member/VIndex.vue | 1 - resources/js/views/member/boxes/Courses.vue | 3 - .../js/views/member/boxes/Memberships.vue | 4 - resources/js/views/member/boxes/Payments.vue | 4 - 10 files changed, 297 insertions(+), 225 deletions(-) rename resources/js/{views/member => components}/Box.vue (84%) rename resources/js/{views/member => components}/Heading.vue (100%) diff --git a/resources/js/app.js b/resources/js/app.js index 7c7a51a2..3ddc3808 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -9,6 +9,8 @@ import FTextarea from './components/FTextarea.vue'; import VPages from './components/VPages.vue'; import VLabel from './components/VLabel.vue'; import VBool from './components/VBool.vue'; +import Box from './components/Box.vue'; +import Heading from './components/Heading.vue'; import AppLayout from './layouts/AppLayout.vue'; import VTooltip from 'v-tooltip'; import hasModule from './mixins/hasModule.js'; @@ -23,6 +25,8 @@ Vue.component('SvgSprite', SvgSprite); Vue.component('VPages', VPages); Vue.component('v-bool', VBool); Vue.component('v-label', VLabel); +Vue.component('box', Box); +Vue.component('heading', Heading); const el = document.getElementById('app'); diff --git a/resources/js/views/member/Box.vue b/resources/js/components/Box.vue similarity index 84% rename from resources/js/views/member/Box.vue rename to resources/js/components/Box.vue index 9344af08..00553965 100644 --- a/resources/js/views/member/Box.vue +++ b/resources/js/components/Box.vue @@ -7,7 +7,7 @@ {{ heading }} -
+
@@ -29,9 +29,5 @@ export default { }, }, }, - - components: { - heading: () => import('./Heading'), - }, }; diff --git a/resources/js/components/FSwitch.vue b/resources/js/components/FSwitch.vue index 6f3afd6b..1b967f6a 100644 --- a/resources/js/components/FSwitch.vue +++ b/resources/js/components/FSwitch.vue @@ -1,11 +1,11 @@