From 19d0492f16b968130383965a8236b4d8447feb6f Mon Sep 17 00:00:00 2001 From: Shine Chang Date: Sun, 6 Oct 2024 19:37:38 -0700 Subject: [PATCH] (add) polygon checker --- .gitignore | 3 + packages/api-server/src/admin.html | 50 +- packages/api-server/src/client.html | 8 +- .../src/routes/v1/contest.routes.ts | 1 + .../api-server/src/routes/v1/domain.routes.ts | 13 +- .../api-server/src/routes/v1/user.routes.ts | 3 +- .../src/services/problem.services.ts | 8 +- .../src/services/submission.services.ts | 2 +- .../src/services/testcase.services.ts | 7 +- .../src/connections/minio.connections.ts | 4 + packages/judge-daemon/.gitignore | 4 +- .../src/services/compile.services.ts | 67 +- .../src/services/grading.services.ts | 77 +- .../src/services/sandbox.services.ts | 7 +- .../src/services/storage.services.ts | 34 + packages/judge-daemon/src/start.ts | 117 +- packages/judge-daemon/testlib.h | 6299 +++++++++++++++++ .../src/services/result.services.ts | 51 +- packages/result-handler/src/start.ts | 39 +- packages/types/src/types/compilation.types.ts | 22 + packages/types/src/types/grading.types.ts | 8 +- packages/types/src/types/judger.types.ts | 2 + packages/types/src/types/problem.types.ts | 2 +- .../src/routes/testcase.routes.ts | 9 +- .../src/services/polygon.services.ts | 37 +- .../src/services/testcase.services.ts | 18 +- packages/upload-server/src/start.ts | 13 +- 27 files changed, 6725 insertions(+), 180 deletions(-) create mode 100644 packages/judge-daemon/testlib.h diff --git a/.gitignore b/.gitignore index cd9275db..654d5e1a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ node_modules .env .DS_Store replica.key +deploy/dev +!deploy/dev/docker-compose.yml +set-env.sh diff --git a/packages/api-server/src/admin.html b/packages/api-server/src/admin.html index 134ed577..4a081980 100644 --- a/packages/api-server/src/admin.html +++ b/packages/api-server/src/admin.html @@ -79,14 +79,17 @@

Domains

Problems

+ (zipped package)
-
+ +
@@ -106,13 +109,15 @@

Contests




-
+ +

Contest Problems

-
+ +
@@ -121,17 +126,19 @@

Publish

Testcases

+ +