From 1792baa72f8892c645f240a51eac97a9c2d909fa Mon Sep 17 00:00:00 2001 From: ZanJereb Date: Thu, 15 Feb 2024 12:09:58 +0100 Subject: [PATCH 01/11] Created modal for Terms and conditions, privacy policy --- .../components/parts/TermsAndConditions.vue | 52 +++++++++++++++++++ frontend/components/parts/form/SighUp.vue | 22 +++++++- 2 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 frontend/components/parts/TermsAndConditions.vue diff --git a/frontend/components/parts/TermsAndConditions.vue b/frontend/components/parts/TermsAndConditions.vue new file mode 100644 index 0000000..4bd188a --- /dev/null +++ b/frontend/components/parts/TermsAndConditions.vue @@ -0,0 +1,52 @@ + + + diff --git a/frontend/components/parts/form/SighUp.vue b/frontend/components/parts/form/SighUp.vue index 5516c5c..319f981 100644 --- a/frontend/components/parts/form/SighUp.vue +++ b/frontend/components/parts/form/SighUp.vue @@ -6,11 +6,14 @@ import { ruleRequired } from '~/lib/utils/validation'; type SignupForm = { email: string | null; + termsAndConditions: boolean; token?: any; }; const router = useRouter(); +const modalTermsAndConditionsVisible = ref(false); + const message = useMessage(); const emit = defineEmits(['submitSuccess']); @@ -28,6 +31,7 @@ const { handleError } = useErrors(); const formRef = ref(null); const formData = ref({ email: null, + termsAndConditions: false, token: null as any, }); @@ -89,6 +93,14 @@ function onCaptchaVerify(token: string) { /> +
+
+ +
+ +

I have read and agree to Terms and Conditions and Privacy Policy.

+
+ Sign up + + + + From 7d146ad369479c2207e93d096fecc00c115155ea Mon Sep 17 00:00:00 2001 From: ZanJereb Date: Thu, 15 Feb 2024 12:14:37 +0100 Subject: [PATCH 02/11] Fixes --- frontend/components/parts/TermsAndConditions.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/components/parts/TermsAndConditions.vue b/frontend/components/parts/TermsAndConditions.vue index 4bd188a..e08f834 100644 --- a/frontend/components/parts/TermsAndConditions.vue +++ b/frontend/components/parts/TermsAndConditions.vue @@ -1,6 +1,6 @@ From 441cf6e837c70d3b0c2d222107835ae8bb02dd91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Urban=20Kova=C4=8D?= Date: Fri, 16 Feb 2024 08:57:58 +0100 Subject: [PATCH 11/11] FE (import type fixes) --- frontend/components/parts/Statistics.vue | 2 +- frontend/components/parts/form/Upload.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/components/parts/Statistics.vue b/frontend/components/parts/Statistics.vue index a55ed1b..0ddfb05 100644 --- a/frontend/components/parts/Statistics.vue +++ b/frontend/components/parts/Statistics.vue @@ -21,7 +21,7 @@