From 95381818651322b1e9b28832fdcead7dd38ec858 Mon Sep 17 00:00:00 2001 From: Denis Lugowski Date: Sat, 1 Mar 2025 10:14:45 +0100 Subject: [PATCH] fix(frontend): SSR of create.vue working, add .vscode launch.json, fix launch.json bug due to typescript in nuxt.config.ts --- .gitignore | 3 -- .vscode/launch.json | 28 +++++++++++ .vscode/settings.json | 3 ++ legalconsenthub/components/FormEngine.vue | 2 +- .../composables/useApplicationForm.ts | 47 ++++++++++++++----- .../composables/useApplicationFormApi.ts | 6 +-- legalconsenthub/nuxt.config.ts | 6 +-- 7 files changed, 74 insertions(+), 21 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 17afc93..78eb422 100644 --- a/.gitignore +++ b/.gitignore @@ -51,9 +51,6 @@ bin/ !**/src/main/**/bin/ !**/src/test/**/bin/ -### VS Code ### -.vscode/ - ### Kotlin ### .kotlin diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..25e60d9 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,28 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "launch", + "name": "client: chrome", + "url": "http://localhost:3000", + "webRoot": "${workspaceFolder}/legalconsenthub" + }, + { + "request": "launch", + "name": "server: nuxt", + "outputCapture": "std", + "cwd": "${workspaceFolder}/legalconsenthub", + "type": "node-terminal", + "command": "npm run dev" + } + ], + "compounds": [ + { + "name": "fullstack: nuxt", + "configurations": ["server: nuxt", "client: chrome"] + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..849f79e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.compile.nullAnalysis.mode": "automatic" +} diff --git a/legalconsenthub/components/FormEngine.vue b/legalconsenthub/components/FormEngine.vue index b455ca3..9ff2b28 100644 --- a/legalconsenthub/components/FormEngine.vue +++ b/legalconsenthub/components/FormEngine.vue @@ -1,5 +1,5 @@