diff --git a/package.json b/package.json index 9feb38c..13ef5f0 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "@nuxt/content": "2.7.2", "@nuxt/image": "^0.7.1", "@pinia/nuxt": "0.4.11", - "@prisma/client": "^5.0.0", + "@prisma/client": "^5.1.1", "@trpc/client": "10.35.0", "@trpc/server": "^10.35.0", "@vercel/analytics": "^1.0.1", @@ -25,7 +25,7 @@ "superjson": "^1.13.1", "tailwindcss": "^3.3.3", "trpc-nuxt": "^0.10.6", - "zod": "^3.21.4" + "zod": "3.22.1" }, "devDependencies": { "@antfu/eslint-config": "0.39.8", @@ -38,7 +38,7 @@ "@vueuse/nuxt": "^10.2.1", "eslint": "^8.45.0", "nuxt": "^3.6.5", - "prisma": "^5.0.0", + "prisma": "^5.1.1", "typescript": "5.1.6" } } diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 96211cf..8c63229 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -57,5 +57,13 @@ model Post { slug String @unique createdAt DateTime @default(now()) views Int @default(0) - title String + likes Int @default(0) +} + +model Form { + id Int @id @default(autoincrement()) + name String + email String + content String + createdAt DateTime @default(now()) } diff --git a/src/app/router.options.ts b/src/app/router.options.ts index 000aa3e..e7f8456 100644 --- a/src/app/router.options.ts +++ b/src/app/router.options.ts @@ -4,7 +4,7 @@ function findHashPosition(hash: any): { el: any; behavior: ScrollBehavior; top: const el = document.querySelector(hash) // vue-router does not incorporate scroll-margin-top on its own. if (el) { - const top = parseFloat(getComputedStyle(el).scrollMarginTop) + const top = Number.parseFloat(getComputedStyle(el).scrollMarginTop) return { el: hash, diff --git a/src/components/Footer.vue b/src/components/Footer.vue index d7065a3..51a63f2 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -16,7 +16,7 @@ const year = computed(() => new Date().getFullYear())
Made with - +