From 57b4ce7c953746975b6e06aab972ed60c5b5eed5 Mon Sep 17 00:00:00 2001 From: Philipp Lang Date: Tue, 26 Dec 2023 20:28:17 +0100 Subject: [PATCH] Add payload from field keys --- index.html | 12 +++++----- package.json | 37 +++++++++++++++--------------- src/Eventform.ce.vue | 37 +++++++++++------------------- src/components/fields/Checkbox.vue | 3 +-- 4 files changed, 39 insertions(+), 50 deletions(-) diff --git a/index.html b/index.html index f2a58f3..009b889 100644 --- a/index.html +++ b/index.html @@ -10,12 +10,12 @@ style="--primary: hsl(181, 75%, 26%); --secondary: hsl(181, 75%, 35%); --font: hsl(181, 84%, 78%); --circle: hsl(181, 86%, 16%)" value='{"sections": [ {"name": "Personal", "intro": "Jaöaöd", "fields": [ - {"name": "Vorname", "type": "TextField", "columns": {"mobile": 2, "tablet": 2, "desktop": 3}, "default": "", "required": true}, - {"name": "Essen", "type": "CheckboxesField", "columns": {"mobile": 2, "tablet": 2, "desktop": 3}, "default": [], "required": true, "options": ["lal", "fff", "ccc"]}, - {"name": "Datenschutz", "description": "Ich akzeptire das abfghg", "type": "CheckboxField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": false, "required": true}, - {"name": "Geschlecht", "type": "DropdownField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": null, "required": true, "options": ["A","Bb","Cc"]}, - {"name": "Essgewohnheiten", "type": "RadioField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": null, "required": true, "options": ["A","Bb","Cc"]}, - {"name": "Nachname", "type": "TextField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": "", "required": true} + {"key": "vorname", "name": "Vorname", "type": "TextField", "columns": {"mobile": 2, "tablet": 2, "desktop": 3}, "default": "", "required": true}, + {"key": "essen", "name": "Essen", "type": "CheckboxesField", "columns": {"mobile": 2, "tablet": 2, "desktop": 3}, "default": [], "required": true, "options": ["lal", "fff", "ccc"]}, + {"key": "datenschutz", "name": "Datenschutz", "description": "Ich akzeptire das abfghg", "type": "CheckboxField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": false, "required": true}, + {"key": "geschlecht", "name": "Geschlecht", "type": "DropdownField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": null, "required": true, "options": ["A","Bb","Cc"]}, + {"key": "essg", "name": "Essgewohnheiten", "type": "RadioField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": null, "required": true, "options": ["A","Bb","Cc"]}, + {"key": "nachn", "name": "Nachname", "type": "TextField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": "", "required": true} ]}, {"name": "Veranstaltung", "intro": "Jaöaöd", "fields": [ ]}, diff --git a/package.json b/package.json index f98d807..15538af 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,20 @@ { - "name": "eventform", - "private": true, - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview" - }, - "dependencies": { - "vue": "^3.3.11" - }, - "devDependencies": { - "@tailwindcss/container-queries": "^0.1.1", - "@vitejs/plugin-vue": "^4.5.2", - "change-case": "^5.3.0", - "vite": "^5.0.8", - "vue3-carousel": "^0.3.1" - } + "name": "eventform", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview" + }, + "dependencies": { + "vue": "^3.3.11" + }, + "devDependencies": { + "@tailwindcss/container-queries": "^0.1.1", + "@vitejs/plugin-vue": "^4.5.2", + "vite": "^5.0.8", + "vue3-carousel": "^0.3.1" + } } diff --git a/src/Eventform.ce.vue b/src/Eventform.ce.vue index a4944ca..1a93003 100644 --- a/src/Eventform.ce.vue +++ b/src/Eventform.ce.vue @@ -128,7 +128,6 @@ diff --git a/src/components/fields/Checkbox.vue b/src/components/fields/Checkbox.vue index 24941ed..5d190e4 100644 --- a/src/components/fields/Checkbox.vue +++ b/src/components/fields/Checkbox.vue @@ -6,10 +6,9 @@ + * - -