From 9bd3eb69f91b34e113cfa9d9700b3c37281044c9 Mon Sep 17 00:00:00 2001 From: ic3w0lf Date: Wed, 18 Dec 2024 22:09:08 -0700 Subject: [PATCH] Huge mess --- web/next.config.ts | 19 ++- web/src/app/_components/header.tsx | 4 +- web/src/app/_components/styles/header.scss | 6 +- web/src/app/globals.scss | 2 + web/src/app/submissions/(styles)/page.scss | 19 +++ .../app/submissions/(styles)/page/card.scss | 12 ++ .../[submissionId]/_reviewButtons.tsx | 23 ++-- .../app/submissions/[submissionId]/page.tsx | 34 +++-- web/src/app/submissions/_card.tsx | 17 +++ web/src/app/submissions/_loading.tsx | 40 ++++++ web/src/app/submissions/_window.tsx | 20 +++ web/src/app/submissions/page.tsx | 75 +++++++++++ web/src/app/submit/(styles)/page.scss | 1 - web/src/app/submit/_game.tsx | 65 ++++++++++ web/src/app/submit/page.tsx | 117 ++++++++++++++---- 15 files changed, 399 insertions(+), 55 deletions(-) create mode 100644 web/src/app/submissions/(styles)/page.scss create mode 100644 web/src/app/submissions/(styles)/page/card.scss create mode 100644 web/src/app/submissions/_card.tsx create mode 100644 web/src/app/submissions/_loading.tsx create mode 100644 web/src/app/submissions/_window.tsx create mode 100644 web/src/app/submissions/page.tsx create mode 100644 web/src/app/submit/_game.tsx diff --git a/web/next.config.ts b/web/next.config.ts index 02f5827..d1565b7 100644 --- a/web/next.config.ts +++ b/web/next.config.ts @@ -6,11 +6,24 @@ const nextConfig: NextConfig = { rewrites: async () => { return [ { - source: "/v1/submissions/:submissionid/status/:statustype", - destination: "http://submissions:8082/v1/submissions/:submissionid/status/:statustype" + source: "/api/:path*", + destination: "http://localhost:8082/v1/:path*", + // source: "/v1/submissions/:submissionid/status/:statustype", + // destination: "http://submissions:8082/v1/submissions/:submissionid/status/:statustype" } ] - } + }, + images: { + remotePatterns: [ + { + protocol: 'https', + hostname: 'api.ic3.space', + pathname: '/strafe/map-images/**', + port: '', + search: '', + }, + ], + }, }; export default nextConfig; diff --git a/web/src/app/_components/header.tsx b/web/src/app/_components/header.tsx index 9996ffd..9115b35 100644 --- a/web/src/app/_components/header.tsx +++ b/web/src/app/_components/header.tsx @@ -18,10 +18,10 @@ export default function Header() { return (