From a0ebad9a5880e7ab18f2f7a0ef2bbb2020d36bb6 Mon Sep 17 00:00:00 2001 From: Shine Chang Date: Fri, 4 Oct 2024 20:33:44 -0700 Subject: [PATCH] (add) polygon upload session --- packages/api-server/src/admin.html | 52 +++++++++++++--- packages/api-server/src/client.html | 29 ++++++--- .../api-server/src/routes/v1/domain.routes.ts | 26 +++++++- .../src/services/problem.services.ts | 6 +- .../src/services/testcase.services.ts | 10 +++- .../src/connections/mongodb.connections.ts | 8 +-- packages/types/src/types/problem.types.ts | 5 +- .../src/routes/polygon.routes.ts | 60 +++++++++++++++++++ .../src/routes/testcase.routes.ts | 32 ---------- .../src/services/polygon.services.ts | 28 ++++----- .../src/services/testcase.services.ts | 25 +++++++- packages/upload-server/src/start.ts | 2 + 12 files changed, 204 insertions(+), 79 deletions(-) create mode 100644 packages/upload-server/src/routes/polygon.routes.ts diff --git a/packages/api-server/src/admin.html b/packages/api-server/src/admin.html index 7e6e5130..134ed577 100644 --- a/packages/api-server/src/admin.html +++ b/packages/api-server/src/admin.html @@ -84,6 +84,8 @@

Problems




+ (zipped package) +

@@ -129,7 +131,7 @@

Testcases