From b47096f0480e43f94e0a3d8faf9f6105aab272ae Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Thu, 9 May 2024 10:54:00 +0200 Subject: [PATCH] Refactor --- prisma/schema.prisma | 10 ++++----- src/lib/components/NavBar.svelte | 4 ++-- src/lib/components/ThemePicker.svelte | 6 +----- src/lib/index.ts | 4 ++++ src/routes/+layout.svelte | 5 +---- src/routes/timer/+page.svelte | 31 ++++++++------------------- 6 files changed, 22 insertions(+), 38 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 93949e7..3f5f598 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -1,18 +1,18 @@ generator client { - provider = "prisma-client-js" + provider = "prisma-client-js" binaryTargets = ["native", "rhel-openssl-1.0.x"] } datasource db { provider = "postgresql" - url = env("DATABASE_URL") + url = env("DATABASE_URL") } model User { - id Int @id @default(autoincrement()) + id Int @id @default(autoincrement()) - username String @unique - passwordHash String + username String @unique + passwordHash String userAuthToken String @unique createdAt DateTime @default(now()) diff --git a/src/lib/components/NavBar.svelte b/src/lib/components/NavBar.svelte index e213761..be618a4 100644 --- a/src/lib/components/NavBar.svelte +++ b/src/lib/components/NavBar.svelte @@ -1,7 +1,7 @@ -