diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 6da8c08..68866e8 100755 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -11,18 +11,34 @@ { "label": "prepare-go", "type": "shell", - "command": "go mod tidy", + "command": "go mod tidy" }, { "label": "swaggo-init", + "dependsOn": ["prepare-swaggo"], "type": "shell", "command": "swag init --ot json" - }, { + }, + { "label": "prepare", - "dependsOn":[ - "prepare-go", - "swaggo-init", - ] + "dependsOn": ["prepare-go", "swaggo-init"] + }, + { + "label": "prepare-node", + "type": "shell", + "command": "npm install", + "options": { + "cwd": "${workspaceFolder}/web" + } + }, + { + "label": "prepare-web", + "dependsOn": ["prepare-node"], + "type": "shell", + "command": "npm run dev", + "options": { + "cwd": "${workspaceFolder}/web" + } } ] -} \ No newline at end of file +} diff --git a/web/app.vue b/web/app.vue index 09f935b..8f62b8b 100755 --- a/web/app.vue +++ b/web/app.vue @@ -1,6 +1,3 @@ diff --git a/web/assets/css/main.css b/web/assets/css/main.css index bd6213e..7070f03 100644 --- a/web/assets/css/main.css +++ b/web/assets/css/main.css @@ -1,3 +1,9 @@ @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities; + +html, +body, +.main { + @apply w-full h-full; +} \ No newline at end of file diff --git a/web/nuxt.config.ts b/web/nuxt.config.ts index f21fb60..554a0bb 100755 --- a/web/nuxt.config.ts +++ b/web/nuxt.config.ts @@ -2,6 +2,17 @@ export default defineNuxtConfig({ compatibilityDate: "2024-11-01", devtools: { enabled: true }, + devServer: { + port: 8888, + }, + app: { + head: { + title: "Nuxt.js TypeScript TailwindCSS", + }, + rootAttrs: { + class: 'main', + } + }, css: ["@/assets/css/main.css"], postcss: { plugins: {