From 6ee56ac4cc134fe1697588dbb5506f25dd448de6 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Sat, 9 Dec 2023 17:02:23 +0100 Subject: [PATCH] Started to refactor pages --- client/app.vue | 1 + client/components/global/Navbar.vue | 2 +- .../forms/components/FormFieldsEditor.vue | 2 +- client/components/pages/welcome/AiFeature.vue | 2 +- .../components/pages/welcome/Testimonials.vue | 11 ++++--- client/layouts/default.vue | 2 +- client/nuxt.config.ts | 11 +++++++ client/pages/ai-form-builder.vue | 6 ++-- .../{create-guest.vue => create/guest.vue} | 12 +++---- client/pages/index.vue | 32 +++++++++---------- 10 files changed, 48 insertions(+), 33 deletions(-) rename client/pages/forms/{create-guest.vue => create/guest.vue} (90%) diff --git a/client/app.vue b/client/app.vue index a8b8c3a..a4c5786 100644 --- a/client/app.vue +++ b/client/app.vue @@ -23,6 +23,7 @@ + diff --git a/client/components/global/Navbar.vue b/client/components/global/Navbar.vue index 15d3047..d7941d4 100644 --- a/client/components/global/Navbar.vue +++ b/client/components/global/Navbar.vue @@ -119,7 +119,7 @@ Login - + Create a form diff --git a/client/components/open/forms/components/FormFieldsEditor.vue b/client/components/open/forms/components/FormFieldsEditor.vue index 219115d..7abef66 100644 --- a/client/components/open/forms/components/FormFieldsEditor.vue +++ b/client/components/open/forms/components/FormFieldsEditor.vue @@ -279,7 +279,7 @@ export default { ] }, init () { - if (this.$route.name === 'forms.create' || this.$route.name === 'forms.create.guest') { // Set Default fields + if (this.$route.name === 'forms.create' || this.$route.name === 'forms-create-guest') { // Set Default fields this.formFields = (this.form.properties.length > 0) ? clonedeep(this.form.properties) : this.getDefaultFields() } else { this.formFields = clonedeep(this.form.properties).map((field) => { diff --git a/client/components/pages/welcome/AiFeature.vue b/client/components/pages/welcome/AiFeature.vue index ec02268..2287324 100644 --- a/client/components/pages/welcome/AiFeature.vue +++ b/client/components/pages/welcome/AiFeature.vue @@ -64,7 +64,7 @@
- + diff --git a/client/components/pages/welcome/Testimonials.vue b/client/components/pages/welcome/Testimonials.vue index c5bddeb..e5ead78 100644 --- a/client/components/pages/welcome/Testimonials.vue +++ b/client/components/pages/welcome/Testimonials.vue @@ -1,5 +1,5 @@