Commit Graph

65 Commits

Author SHA1 Message Date
dioxide
7d5a07c106 Add new enumerate AnswerType, which differs the input data structure.
Add new key isRandom to determine whether the random system works.
Add new keys answerType, which is the type of AnswerType Array to keep record the types of input, and lengthOfArray.
Complete the first edition of random array generate.
2025-06-16 22:45:31 +08:00
dioxide
3aa0a52b9e Add random function to help create a series of test.
Add the answerType key to restrict the type of answer.
Add the lengthOfArray key to rule the length of array or matrix. While if a single number just put null.
Add new content of seed.ts like above all.
2025-06-16 14:06:49 +08:00
dioxide
7f79b901b7 Add trim function to ignore the whitespace character.
Add a trim key to mark whether the answer should be trimmed.
Add a judgement to determine whether the trim should work.
2025-06-15 17:16:39 +08:00
941f1a74fa feat: replace dockview with flexlayout-react 2025-06-13 14:03:17 +08:00
03f150214d chore(prisma): make TestcaseResult.output nullable in migration 2025-05-16 10:43:48 +08:00
23a7e2e69e fix(prisma): make TestcaseResult.output field optional 2025-05-16 10:42:20 +08:00
4cc6456151 refactor(prisma): simplify schema and remove zod-prisma-types
- Reorganized Prisma schema structure with simplified models and relations
- Removed zod-prisma-types generator as it's no longer needed
- Consolidated problem content types into a single ProblemLocalization model
- Simplified testcase and template structures
- Removed unused prisma types file
2025-05-12 19:41:28 +08:00
15b3f630d5 refactor(prisma): simplify schema and remove zod-prisma-types
- Reorganized Prisma schema structure with simplified models and relations
- Removed zod-prisma-types generator as it's no longer needed
- Consolidated problem content types into a single ProblemLocalization model
- Simplified testcase and template structures
- Removed unused prisma types file
2025-05-12 18:32:46 +08:00
25fd9b5f46 chore(prisma/migrations): add migration for multilingual problem support 2025-05-07 21:09:35 +08:00
cfbbdbf821 feat(prisma/schema): add multilingual support for problem descriptions and solutions
BREAKING CHANGE:
- Removed `description` and `solution` fields from Problem model
- Added new models `ProblemDescription` and `ProblemSolution` with language support (EN/ZH)
- Updated seed data structure to support multilingual content
- Requires database migration and data migration from old structure
2025-05-07 21:04:46 +08:00
0b3086f333 chore(seed): add seed data for problem templates 2025-04-15 23:07:47 +08:00
59ba12258c bugs: change template to support code-run feature 2025-04-15 20:50:49 +08:00
81f89f7b16 refactor(schema): rename TestcaseResult fields to camelCase 2025-04-14 11:33:19 +08:00
fd50e72518 fix(prisma): rename Submission relations to submissions for consistency 2025-04-13 11:13:18 +08:00
24f78ab811 chore(prisma): add seed data for testcase_result model 2025-04-11 15:57:24 +08:00
2de1674b22 feat(prisma): add testcase_result model and related relations 2025-04-11 15:56:24 +08:00
1c0612372b feat(prisma): add TestcaseResult model and relations to Submission and Testcase 2025-04-11 15:53:56 +08:00
5e3b75a36b feat(prisma): add submission table and related relations 2025-04-10 22:26:45 +08:00
7dbf06b99f feat(prisma): add user and problem relations to Submission model 2025-04-10 22:24:40 +08:00
82428bbd09 chore(seed): remove timeLimit and memoryLimit from DockerConfig data 2025-04-10 21:57:11 +08:00
17c6be8a65 feat(prisma): migrate timeLimit and memoryLimit to Problem model 2025-04-10 21:55:32 +08:00
feee3a2580 feat(prisma): move timeLimit and memoryLimit from DockerConfig to Problem model 2025-04-10 21:54:30 +08:00
c4e9c5b566 feat(seed): add expected output for test data 2025-04-10 10:39:24 +08:00
e2914d1e18 feat(schema): add expectedOutput field to Testcase model 2025-04-10 10:19:17 +08:00
11fac9b3d6 feat(prisma): add expectedOutput field to Testcase model 2025-04-10 10:16:05 +08:00
51b9d7fa72 feat(seed): add testcases for test data 2025-04-09 21:13:26 +08:00
1813d4ed79 chore(prisma): migrate to add Testcase and TestcaseData models 2025-04-09 19:31:51 +08:00
521a185d7c feat(prisma): add Testcase and TestcaseData models with relation to Problem 2025-04-09 19:28:00 +08:00
750fb74653 chore(imports): update imports to use @/generated/client instead of @prisma/client 2025-04-01 11:46:25 +08:00
042db54185 chore(prisma): add zod generator and update output paths in schema 2025-04-01 01:57:15 +08:00
aec5ed5b8b feat(seed): add displayId for test data 2025-03-30 18:43:47 +08:00
eafd5c4ca4 chore(prisma): migrate schema to add displayId field in Problem model 2025-03-30 18:43:00 +08:00
89ebfc0c3a feat(prisma): add unique displayId field to Problem model 2025-03-30 18:39:53 +08:00
e1ce93346a feat(seed): add videos, images, and accordion hints for test data 2025-03-27 14:10:03 +08:00
3fefee674b chore(prisma): apply migration to remove TEACHER and STUDENT roles 2025-03-21 11:18:44 +08:00
190431ece6 chore(prisma): remove TEACHER and STUDENT roles 2025-03-21 11:11:24 +08:00
10a648feb3 refactor(prisma): update language server protocol to use LanguageServerProtocol enum 2025-03-18 14:47:33 +08:00
3e4b396bfe chore(prisma): add migration for language server protocol enum 2025-03-18 11:46:11 +08:00
adc195d4bf feat(schema): add LanguageServerProtocol enum and update protocol field type in LanguageServerConfig 2025-03-18 11:43:54 +08:00
ea92ba9d67 feat(seed): update seed data to add editor language configurations 2025-03-16 19:43:21 +08:00
c32704af27 chore(prisma): run prisma migrate to add JudgeResult model 2025-03-16 19:07:55 +08:00
a4f377037b feat(prisma): add JudgeResult model to store execution results 2025-03-16 19:05:16 +08:00
eef2df3eb4 feat(prisma): add ExitCode enum to schema 2025-03-16 17:13:57 +08:00
2e7f9540fe feat(prisma): add ExitCode enum for handling problem outcomes 2025-03-16 17:11:29 +08:00
d67ddf6882 chore(prisma): run migration to add DockerConfig to EditorLanguageConfig 2025-03-16 16:45:59 +08:00
aa34320295 feat(prisma): add DockerConfig model and update EditorLanguageConfig for Docker integration 2025-03-16 16:44:55 +08:00
4d13ba2c6d feat(prisma): add LanguageServerConfig model and relationship with EditorLanguageConfig 2025-03-16 14:39:23 +08:00
eb7943ab7e feat(prisma): refactor Prisma schema to remove circular relation and simplify EditorLanguageConfig and LanguageServerConfig models 2025-03-16 14:37:25 +08:00
4dbf6d774b chore(prisma): apply migration to remove id field from EditorLanguageConfig model 2025-03-16 14:12:02 +08:00
1bfa119b52 feat(prisma): remove id field from EditorLanguageConfig model and set language as unique 2025-03-16 14:09:34 +08:00