Commit Graph

24 Commits

Author SHA1 Message Date
941f1a74fa feat: replace dockview with flexlayout-react 2025-06-13 14:03:17 +08:00
4ca6840bbd refactor(problems): consolidate judge status toast
- Migrate status toast from shared hooks to problems feature
- Remove deprecated show-status-toast.tsx and status.ts
- Implement self-contained JudgeToast component with built-in status mapping
2025-05-14 16:09:13 +08:00
2e2e0315a8 refactor(hooks): remove theme config and simplify theme hook
- Delete src/config/monaco-theme.ts and src/types/monaco-theme.ts
- Simplify useMonacoTheme hook to directly return theme strings
- Format use-mobile.ts with consistent semicolons and quotes
2025-05-12 21:19:05 +08:00
4428a29306 refactor(i18n): replace hardcoded texts with i18n message keys
Some checks failed
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 1s
2025-04-15 18:22:21 +08:00
ad43eb9b0a refactor(status): extract status logic into separate module
- Moved color class and status map logic to `src/lib/status.ts`
- Simplified `showStatusToast` and `StatusToast` components
- Replaced `getColorClass` with `getStatusColorClass` from the new module
2025-04-11 17:41:04 +08:00
dc939085bb refactor(hooks): move show-status-toast.tsx from lib to hooks 2025-04-11 09:47:31 +08:00
f1f2a70c0e refactor(problem-store): consolidate problem data structure into ProblemWithDetails 2025-04-09 20:38:53 +08:00
750fb74653 chore(imports): update imports to use @/generated/client instead of @prisma/client 2025-04-01 11:46:25 +08:00
d859796755 refactor(theme): update Monaco theme configuration to use default light and dark themes 2025-03-28 13:08:14 +08:00
a55ef88745 feat(hook): add markers state and setter to useProblem hook 2025-03-25 13:05:22 +08:00
7a0a13aa97 feat(hook): add problem field to useProblem hook 2025-03-24 10:29:46 +08:00
f246ff1a6d feat(use-problem): integrate WebSocket into problem hook 2025-03-23 23:49:34 +08:00
becb48f4d7 feat(use-problem): add monacoLanguageClient state management 2025-03-23 16:59:22 +08:00
0e5e683ef3 refactor(use-problem): pass problemId to getPath function 2025-03-23 15:36:53 +08:00
e5ba5dd51a refactor(hooks): rename use-problem-editor.ts to use-problem.ts 2025-03-22 00:23:27 +08:00
cc76648437 refactor(useProblemEditor): update hooks to support language-specific localStorage keys 2025-03-20 15:11:23 +08:00
458bdfbf42 fix(useMonacoTheme): return theme ID instead of the full theme object 2025-03-20 14:47:16 +08:00
69dfb8cb12 refactor(useProblemEditor): refactor to use useProblemEditorStore for state management 2025-03-20 14:15:37 +08:00
a44826990c refactor(hooks): improve useProblemEditor state management and persistence 2025-03-20 13:08:00 +08:00
1c0ffb8cda feat(hooks): add useProblemEditor hook for managing problem-specific editor language 2025-03-19 15:14:11 +08:00
154b66d524 refactor(hooks): rename monacoTheme to currentTheme in useMonacoTheme 2025-03-19 14:58:11 +08:00
742a827072 feat(language-server): add configuration for C and C++ 2025-03-04 20:53:19 +08:00
d8fa37dd8a feat(theme): add MonacoTheme enum, configuration and hook 2025-03-04 20:06:33 +08:00
09ef2bf22a feat(components/ui): add Sidebar-13 component from shadcn/ui 2025-03-03 14:51:13 +08:00