From a9883919442adc0a2a9497eb04b01c92e16f098b Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Thu, 17 Aug 2023 22:26:34 +0200 Subject: [PATCH] Fix nuxt error and working --- .vscode/settings.json | 10 +- package.json | 38 +-- src/components/Footer.vue | 28 +- src/components/content/UsesSection.vue | 6 +- src/components/header/ColorPicker.vue | 2 +- src/components/header/Header.vue | 4 +- src/layouts/default.vue | 1 + src/pages/uses.vue | 13 +- src/server/trpc/routers/index.ts | 8 +- yarn.lock | 365 +++++++++++++++++-------- 10 files changed, 306 insertions(+), 169 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 9f8ea71..d5cf6ae 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,5 +5,13 @@ "editor.quickSuggestions": { "strings": true }, - "tailwindCSS.experimental.configFile": "tailwind.config.ts" + "tailwindCSS.experimental.configFile": "tailwind.config.ts", + "tailwindCSS.experimental.classRegex": [ + ["ui:\\s*{([^)]*)\\s*}", "[\"'`]([^\"'`]*).*?[\"'`]"], + ["/\\*ui\\*/\\s*{([^;]*)}", ":\\s*[\"'`]([^\"'`]*).*?[\"'`]"] + ], + "tailwindCSS.classAttributes": [ + "class", + "ui" + ] } diff --git a/package.json b/package.json index 13ef5f0..bd4fd0f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "nuxt-app", + "name": "artdanj-website", "private": true, "scripts": { "build": "nuxt build", @@ -12,33 +12,33 @@ }, "dependencies": { "@nuxt/content": "2.7.2", - "@nuxt/image": "^0.7.1", + "@nuxt/image": "0.7.1", "@pinia/nuxt": "0.4.11", - "@prisma/client": "^5.1.1", - "@trpc/client": "10.35.0", - "@trpc/server": "^10.35.0", - "@vercel/analytics": "^1.0.1", + "@prisma/client": "5.1.1", + "@trpc/client": "10.37.1", + "@trpc/server": "10.37.1", + "@vercel/analytics": "1.0.2", "@vueuse/motion": "2.0.0", - "pinia": "^2.1.4", + "pinia": "2.1.6", "postcss-custom-properties": "13.3.0", - "sass": "^1.64.1", - "superjson": "^1.13.1", - "tailwindcss": "^3.3.3", - "trpc-nuxt": "^0.10.6", + "sass": "1.65.1", + "superjson": "1.13.1", + "tailwindcss": "3.3.3", + "trpc-nuxt": "0.10.7", "zod": "3.22.1" }, "devDependencies": { "@antfu/eslint-config": "0.39.8", "@iconify/json": "2.2.94", - "@nuxt/devtools": "0.7.1", - "@nuxthq/ui": "^2.6.0", + "@nuxt/devtools": "0.8.0", + "@nuxthq/ui": "^2.7.0", "@pinia-plugin-persistedstate/nuxt": "1.1.1", - "@types/node": "20.4.4", - "@vueuse/core": "^10.2.1", - "@vueuse/nuxt": "^10.2.1", - "eslint": "^8.45.0", - "nuxt": "^3.6.5", - "prisma": "^5.1.1", + "@types/node": "20.5.0", + "@vueuse/core": "10.3.0", + "@vueuse/nuxt": "10.3.0", + "eslint": "8.47.0", + "nuxt": "3.6.5", + "prisma": "5.1.1", "typescript": "5.1.6" } } diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 51a63f2..fc0c5a6 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -3,21 +3,23 @@ const year = computed(() => new Date().getFullYear()) diff --git a/src/components/content/UsesSection.vue b/src/components/content/UsesSection.vue index 1ac87d1..dc20277 100644 --- a/src/components/content/UsesSection.vue +++ b/src/components/content/UsesSection.vue @@ -8,15 +8,13 @@ defineProps({ const appConfig = useAppConfig() -function getColor() { - return `text-${appConfig.ui.primary}-500` -} +const getColor = computed(() => `text-${appConfig.ui.primary}-500`)