From 164097e82164cbc08a9c7e7677afca51103bdd52 Mon Sep 17 00:00:00 2001 From: andrzej Date: Sat, 21 Sep 2024 17:23:31 +0200 Subject: [PATCH] add responsiveness --- package-lock.json | 99 ++++++++------ package.json | 2 +- prisma/dev.db | Bin 69632 -> 69632 bytes src/@/components/ui/table.tsx | 4 +- src/app/api/auth/actions.ts | 1 + src/app/layout.tsx | 17 ++- src/app/story/columns.tsx | 22 ++- src/app/story/create.tsx | 6 +- src/app/story/page.tsx | 2 +- src/app/tailwind.css | 165 +++++++++++++++++++++++ src/app/ui/genreBadges.tsx | 2 +- src/app/ui/navLinks.tsx | 16 ++- src/app/ui/tables/data-table.tsx | 5 +- src/app/ui/tables/inputs/numberInput.tsx | 2 +- src/app/ui/tables/selectColumn.tsx | 6 +- 15 files changed, 276 insertions(+), 73 deletions(-) diff --git a/package-lock.json b/package-lock.json index a69c456..fc377c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "date-fns": "^3.6.0", "jose": "^5.8.0", "lucide-react": "^0.394.0", - "next": "14.2.3", + "next": "^14.2.13", "next-themes": "^0.3.0", "react": "^18", "react-day-picker": "^8.10.1", @@ -226,17 +226,19 @@ } }, "node_modules/@next/env": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.3.tgz", - "integrity": "sha512-W7fd7IbkfmeeY2gXrzJYDx8D2lWKbVoTIj1o1ScPHNzvp30s1AuoEFSdr39bC5sjxJaxTtq3OTCZboNp0lNWHA==" + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.13.tgz", + "integrity": "sha512-s3lh6K8cbW1h5Nga7NNeXrbe0+2jIIYK9YaA9T7IufDWnZpozdFUp6Hf0d5rNWUKu4fEuSX2rCKlGjCrtylfDw==", + "license": "MIT" }, "node_modules/@next/swc-darwin-arm64": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.3.tgz", - "integrity": "sha512-3pEYo/RaGqPP0YzwnlmPN2puaF2WMLM3apt5jLW2fFdXD9+pqcoTzRk+iZsf8ta7+quAe4Q6Ms0nR0SFGFdS1A==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.13.tgz", + "integrity": "sha512-IkAmQEa2Htq+wHACBxOsslt+jMoV3msvxCn0WFSfJSkv/scy+i/EukBKNad36grRxywaXUYJc9mxEGkeIs8Bzg==", "cpu": [ "arm64" ], + "license": "MIT", "optional": true, "os": [ "darwin" @@ -246,12 +248,13 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.3.tgz", - "integrity": "sha512-6adp7waE6P1TYFSXpY366xwsOnEXM+y1kgRpjSRVI2CBDOcbRjsJ67Z6EgKIqWIue52d2q/Mx8g9MszARj8IEA==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.13.tgz", + "integrity": "sha512-Dv1RBGs2TTjkwEnFMVL5XIfJEavnLqqwYSD6LXgTPdEy/u6FlSrLBSSfe1pcfqhFEXRAgVL3Wpjibe5wXJzWog==", "cpu": [ "x64" ], + "license": "MIT", "optional": true, "os": [ "darwin" @@ -261,12 +264,13 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.3.tgz", - "integrity": "sha512-cuzCE/1G0ZSnTAHJPUT1rPgQx1w5tzSX7POXSLaS7w2nIUJUD+e25QoXD/hMfxbsT9rslEXugWypJMILBj/QsA==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.13.tgz", + "integrity": "sha512-yB1tYEFFqo4ZNWkwrJultbsw7NPAAxlPXURXioRl9SdW6aIefOLS+0TEsKrWBtbJ9moTDgU3HRILL6QBQnMevg==", "cpu": [ "arm64" ], + "license": "MIT", "optional": true, "os": [ "linux" @@ -276,12 +280,13 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.3.tgz", - "integrity": "sha512-0D4/oMM2Y9Ta3nGuCcQN8jjJjmDPYpHX9OJzqk42NZGJocU2MqhBq5tWkJrUQOQY9N+In9xOdymzapM09GeiZw==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.13.tgz", + "integrity": "sha512-v5jZ/FV/eHGoWhMKYrsAweQ7CWb8xsWGM/8m1mwwZQ/sutJjoFaXchwK4pX8NqwImILEvQmZWyb8pPTcP7htWg==", "cpu": [ "arm64" ], + "license": "MIT", "optional": true, "os": [ "linux" @@ -291,12 +296,13 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.3.tgz", - "integrity": "sha512-ENPiNnBNDInBLyUU5ii8PMQh+4XLr4pG51tOp6aJ9xqFQ2iRI6IH0Ds2yJkAzNV1CfyagcyzPfROMViS2wOZ9w==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.13.tgz", + "integrity": "sha512-aVc7m4YL7ViiRv7SOXK3RplXzOEe/qQzRA5R2vpXboHABs3w8vtFslGTz+5tKiQzWUmTmBNVW0UQdhkKRORmGA==", "cpu": [ "x64" ], + "license": "MIT", "optional": true, "os": [ "linux" @@ -306,12 +312,13 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.3.tgz", - "integrity": "sha512-BTAbq0LnCbF5MtoM7I/9UeUu/8ZBY0i8SFjUMCbPDOLv+un67e2JgyN4pmgfXBwy/I+RHu8q+k+MCkDN6P9ViQ==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.13.tgz", + "integrity": "sha512-4wWY7/OsSaJOOKvMsu1Teylku7vKyTuocvDLTZQq0TYv9OjiYYWt63PiE1nTuZnqQ4RPvME7Xai+9enoiN0Wrg==", "cpu": [ "x64" ], + "license": "MIT", "optional": true, "os": [ "linux" @@ -321,12 +328,13 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.3.tgz", - "integrity": "sha512-AEHIw/dhAMLNFJFJIJIyOFDzrzI5bAjI9J26gbO5xhAKHYTZ9Or04BesFPXiAYXDNdrwTP2dQceYA4dL1geu8A==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.13.tgz", + "integrity": "sha512-uP1XkqCqV2NVH9+g2sC7qIw+w2tRbcMiXFEbMihkQ8B1+V6m28sshBwAB0SDmOe0u44ne1vFU66+gx/28RsBVQ==", "cpu": [ "arm64" ], + "license": "MIT", "optional": true, "os": [ "win32" @@ -336,12 +344,13 @@ } }, "node_modules/@next/swc-win32-ia32-msvc": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.3.tgz", - "integrity": "sha512-vga40n1q6aYb0CLrM+eEmisfKCR45ixQYXuBXxOOmmoV8sYST9k7E3US32FsY+CkkF7NtzdcebiFT4CHuMSyZw==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.13.tgz", + "integrity": "sha512-V26ezyjPqQpDBV4lcWIh8B/QICQ4v+M5Bo9ykLN+sqeKKBxJVDpEc6biDVyluTXTC40f5IqCU0ttth7Es2ZuMw==", "cpu": [ "ia32" ], + "license": "MIT", "optional": true, "os": [ "win32" @@ -351,12 +360,13 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.3.tgz", - "integrity": "sha512-Q1/zm43RWynxrO7lW4ehciQVj+5ePBhOK+/K2P7pLFX3JaJ/IZVC69SHidrmZSOkqz7ECIOhhy7XhAFG4JYyHA==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.13.tgz", + "integrity": "sha512-WwzOEAFBGhlDHE5Z73mNU8CO8mqMNLqaG+AO9ETmzdCQlJhVtWZnOl2+rqgVQS+YHunjOWptdFmNfbpwcUuEsw==", "cpu": [ "x64" ], + "license": "MIT", "optional": true, "os": [ "win32" @@ -6557,11 +6567,12 @@ "peer": true }, "node_modules/next": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/next/-/next-14.2.3.tgz", - "integrity": "sha512-dowFkFTR8v79NPJO4QsBUtxv0g9BrS/phluVpMAt2ku7H+cbcBJlopXjkWlwxrk/xGqMemr7JkGPGemPrLLX7A==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/next/-/next-14.2.13.tgz", + "integrity": "sha512-BseY9YNw8QJSwLYD7hlZzl6QVDoSFHL/URN5K64kVEVpCsSOWeyjbIGK+dZUaRViHTaMQX8aqmnn0PHBbGZezg==", + "license": "MIT", "dependencies": { - "@next/env": "14.2.3", + "@next/env": "14.2.13", "@swc/helpers": "0.5.5", "busboy": "1.6.0", "caniuse-lite": "^1.0.30001579", @@ -6576,15 +6587,15 @@ "node": ">=18.17.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "14.2.3", - "@next/swc-darwin-x64": "14.2.3", - "@next/swc-linux-arm64-gnu": "14.2.3", - "@next/swc-linux-arm64-musl": "14.2.3", - "@next/swc-linux-x64-gnu": "14.2.3", - "@next/swc-linux-x64-musl": "14.2.3", - "@next/swc-win32-arm64-msvc": "14.2.3", - "@next/swc-win32-ia32-msvc": "14.2.3", - "@next/swc-win32-x64-msvc": "14.2.3" + "@next/swc-darwin-arm64": "14.2.13", + "@next/swc-darwin-x64": "14.2.13", + "@next/swc-linux-arm64-gnu": "14.2.13", + "@next/swc-linux-arm64-musl": "14.2.13", + "@next/swc-linux-x64-gnu": "14.2.13", + "@next/swc-linux-x64-musl": "14.2.13", + "@next/swc-win32-arm64-msvc": "14.2.13", + "@next/swc-win32-ia32-msvc": "14.2.13", + "@next/swc-win32-x64-msvc": "14.2.13" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", diff --git a/package.json b/package.json index 92133d8..fc966ac 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "date-fns": "^3.6.0", "jose": "^5.8.0", "lucide-react": "^0.394.0", - "next": "14.2.3", + "next": "^14.2.13", "next-themes": "^0.3.0", "react": "^18", "react-day-picker": "^8.10.1", diff --git a/prisma/dev.db b/prisma/dev.db index 12b04ebd9e257f067167f3e608f78407bc4ef9e6..403cac693f53040f004b7a783a90a31b0b8027f9 100644 GIT binary patch delta 686 zcmXAlPe>GD7{rkOJ%R$tD|7py+l$y){28W^@OJBPySTDMp*GD7{0LFiD2w2M@S1tDlD=+7x{ecyWdJ-qMp!u!1M=mH;I;L`~@ zF=L*h6HAw~-L>_Vx?<6DUNGSI2VRw4sl@2{A%E~zTVbQSE^S7Q#W+6VDaMUOV-1}E zR*X&5<2Sw(oYDIRud_G_m!=wNP561Li(Ux#sZL z6Voqp4ZV~Tc364UmGy%mr?c;>*B>~3uXDy744jUGku{@D3|LBOpwII>S46`ciNR%< z#v~qM74NZ$yC`BEH*g1k@dG}x_=Y!li9DX+F;?Ifwx_e#rD zO(8s0ft<*iVQ}#kS1^Ys*uV#o_Y?lq;sFYnz)h6!8qYC;v&e|37vYPr)d(~BI9Iu@ zhhDykiLcG%tB-8sI;D0x!l{hdQdVX+Z`D?NS$WDVkEIe@HcJv&7mE2hr%D_h!!Q$j zzhfiRR`-cr#}N(}cW^Gw2=5ist!Y(+w_D0=mbBU>Qy2aa3EanAFC#Ly?mH3k}9P;x8S#ON*XPYJ}3UDni-p35}jy9@pq2M&B-*QQEKY SvC5b}`!7l}%j*W+PyYi5ijwRA diff --git a/src/@/components/ui/table.tsx b/src/@/components/ui/table.tsx index 7f3502f..b4438a7 100644 --- a/src/@/components/ui/table.tsx +++ b/src/@/components/ui/table.tsx @@ -73,7 +73,7 @@ const TableHead = React.forwardRef< (({ className, ...props }, ref) => ( )) diff --git a/src/app/api/auth/actions.ts b/src/app/api/auth/actions.ts index a7bf069..8d9944e 100644 --- a/src/app/api/auth/actions.ts +++ b/src/app/api/auth/actions.ts @@ -95,6 +95,7 @@ export async function login(userLogin: LoginSchema) { if (!passwordIsValid) throw new Error("password is not valid") return { email: userLogin.email } } catch (error) { + console.error("WHOOPS", error) throw new Error('login failed') } } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index fde9763..1e5d67b 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -6,12 +6,11 @@ import "./globals.css"; import Navlinks from "./ui/navLinks"; import { ModeToggle } from "./ui/modeToggle"; import { inter } from "./ui/fonts"; -import { LogOutIcon } from "lucide-react"; -import { Button } from "@/components/ui/button"; import LogoutButton from "./ui/logoutButton"; + export const metadata: Metadata = { title: "Subman", description: "A self-hosted literary submission tracker." @@ -32,14 +31,14 @@ export default function RootLayout({ enableSystem disableTransitionOnChange > -
-
-