From 31ff7372210a8c03aab325f205ae538afffde1b4 Mon Sep 17 00:00:00 2001 From: Denis Lugowski Date: Fri, 21 Feb 2025 12:17:36 +0100 Subject: [PATCH] feat(frontend): Prettier, add openapi client generation --- .gitignore | 3 + legalconsenthub/.prettierignore | 1 + legalconsenthub/.prettierrc | 7 +- legalconsenthub/api/legalconsenthub-client.ts | 3 + legalconsenthub/app.config.ts | 10 +- legalconsenthub/app.vue | 33 +- legalconsenthub/assets/css/main.css | 4 +- legalconsenthub/components/Login.vue | 33 +- legalconsenthub/components/Register.vue | 48 +- legalconsenthub/error.vue | 18 +- legalconsenthub/eslint.config.mjs | 4 +- legalconsenthub/layouts/default.vue | 155 +- legalconsenthub/nuxt.config.ts | 8 +- legalconsenthub/openapitools.json | 7 + legalconsenthub/package.json | 2 + legalconsenthub/pages/index.vue | 32 +- legalconsenthub/pnpm-lock.yaml | 8303 ++++++++--------- legalconsenthub/server/api/auth/[...].ts | 8 +- legalconsenthub/server/utils/auth.ts | 16 +- legalconsenthub/utils/auth-client.ts | 6 +- 20 files changed, 3840 insertions(+), 4861 deletions(-) create mode 100644 legalconsenthub/api/legalconsenthub-client.ts create mode 100644 legalconsenthub/openapitools.json diff --git a/.gitignore b/.gitignore index b2d28cb..76cd643 100644 --- a/.gitignore +++ b/.gitignore @@ -56,3 +56,6 @@ bin/ ### Kotlin ### .kotlin + +### OpenAPI ### +.api-client diff --git a/legalconsenthub/.prettierignore b/legalconsenthub/.prettierignore index c2f64f0..e26b9cb 100644 --- a/legalconsenthub/.prettierignore +++ b/legalconsenthub/.prettierignore @@ -3,3 +3,4 @@ build coverage .nuxt .output +.api-client diff --git a/legalconsenthub/.prettierrc b/legalconsenthub/.prettierrc index 0967ef4..959053f 100644 --- a/legalconsenthub/.prettierrc +++ b/legalconsenthub/.prettierrc @@ -1 +1,6 @@ -{} +{ + "trailingComma": "none", + "semi": false, + "singleQuote": true, + "printWidth": 120 +} diff --git a/legalconsenthub/api/legalconsenthub-client.ts b/legalconsenthub/api/legalconsenthub-client.ts new file mode 100644 index 0000000..6e19732 --- /dev/null +++ b/legalconsenthub/api/legalconsenthub-client.ts @@ -0,0 +1,3 @@ +import { ApplicationFormApi } from '#build/.api-client' + +export const applicationFormApiClient = new ApplicationFormApi() diff --git a/legalconsenthub/app.config.ts b/legalconsenthub/app.config.ts index dba885c..aec8967 100644 --- a/legalconsenthub/app.config.ts +++ b/legalconsenthub/app.config.ts @@ -1,8 +1,8 @@ export default defineAppConfig({ ui: { colors: { - primary: "green", - neutral: "zinc", - }, - }, -}); + primary: 'green', + neutral: 'zinc' + } + } +}) diff --git a/legalconsenthub/app.vue b/legalconsenthub/app.vue index 5027646..88acd7f 100644 --- a/legalconsenthub/app.vue +++ b/legalconsenthub/app.vue @@ -9,35 +9,32 @@ diff --git a/legalconsenthub/assets/css/main.css b/legalconsenthub/assets/css/main.css index f248ab1..5ab8f0e 100644 --- a/legalconsenthub/assets/css/main.css +++ b/legalconsenthub/assets/css/main.css @@ -1,2 +1,2 @@ -@import "tailwindcss"; -@import "@nuxt/ui-pro"; +@import 'tailwindcss'; +@import '@nuxt/ui-pro'; diff --git a/legalconsenthub/components/Login.vue b/legalconsenthub/components/Login.vue index 6744642..858c5b9 100644 --- a/legalconsenthub/components/Login.vue +++ b/legalconsenthub/components/Login.vue @@ -9,12 +9,7 @@
- +
@@ -23,34 +18,34 @@