Commit Graph

21 Commits

Author SHA1 Message Date
4428a29306 refactor(i18n): replace hardcoded texts with i18n message keys 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