Commit Graph

50 Commits

Author SHA1 Message Date
941f1a74fa feat: replace dockview with flexlayout-react 2025-06-13 14:03:17 +08:00
2e74ffbac3 refactor(config): migrate editor options to standalone editor config
- Rename `editor-language.ts` to `editor.ts`
- Update interface from `IEditorConstructionOptions` to `IStandaloneEditorConstructionOptions`
- Keep all existing editor options unchanged
2025-05-13 16:57:35 +08:00
0e3daefe48 feat(config): add LANGUAGES constant for language enum values 2025-05-13 16:00:52 +08:00
2efdc21419 refactor(i18n): replace language-settings with locale-switcher
- Replace react-world-flags with next/image for better optimization
- Simplify locale handling logic and remove unused getUserLocale
- Rename component to be more descriptive (language-settings -> locale-switcher)
- Update all references to use the new component
- Add proper SVG flag assets for supported locales
- Remove react-world-flags dependency from package.json
2025-05-13 00:19:01 +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
01b72209ae refactor(i18n): migrate locale configuration to generated types
- Replace hardcoded locale strings with generated Locale enum from client
- Update cookie key name to be more specific (LOCALE_COOKIE_NAME -> JUDGE4C_LOCALE_KEY)
- Rename defaultLocale to DEFAULT_LOCALE for consistency
- Add 'server-only' imports to ensure server-side usage
- Simplify locale validation using Object.values(Locale)
- Clean up accept-language header parsing logic
2025-05-12 21:07:43 +08:00
d98522d643 feat(i18n): add locale management and configuration 2025-04-14 23:15:41 +08:00
a897e00a72 chore(dockview): remove unused Dockview configuration file
- Deleted `src/config/dockview.ts` as it was no longer needed with the refactor to support dynamic panel options.
2025-04-13 11:54:07 +08:00
faf7f45425 feat(dockview): add configuration for panel layout 2025-04-12 10:40:59 +08:00
a8e243204b feat(layout): refactor problem layout to use DockView for organizing content sections 2025-04-04 18:13:14 +08:00
750fb74653 chore(imports): update imports to use @/generated/client instead of @prisma/client 2025-04-01 11:46:25 +08:00
452174a946 chore(editor): update Monaco Editor configuration for improved UX
Some checks failed
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 0s
2025-03-28 15:45:15 +08:00
f34a01e8f5 feat(judge): remove unused judge configuration file 2025-03-16 17:07:24 +08:00
ff8eff5891 chore(config, types): remove deprecated language server and editor language files 2025-03-16 15:39:07 +08:00
b0bb5b5250 feat(editor-language): simplify language configuration to a constant 2025-03-16 14:27:28 +08:00
02f4fc1c3f feat(config): add mapping for EditorLanguage to icons 2025-03-16 13:31:08 +08:00
82d85d3b31 refactor(config): remove icon property from EditorLanguageConfig 2025-03-16 13:24:06 +08:00
db4bc0dc73 chore(config): remove problem folder
Some checks failed
Build & Push Monaco Docker Image / build-and-push-monaco-docker-image (., Dockerfile, monaco-editor-lsp-next) (push) Failing after 1s
2025-03-15 22:35:15 +08:00
4f6a37df17 fix(prisma): update enum values for EditorLanguage to lowercase ('c' and 'cpp') 2025-03-08 21:03:32 +08:00
7a97e213fe refactor(config): use EditorLanguage from Prisma in language configuration 2025-03-08 20:43:46 +08:00
56507f0362 feat(monaco-theme): Add default light and dark theme configurations 2025-03-07 11:27:00 +08:00
3336a9f1d0 feat(config/problem): add TEMP_DEFAULT_EDITOR_VALUE 2025-03-05 09:36:38 +08:00
a33033b48d refactor(config/judge.ts, types/judge.ts): split judge configuration and types 2025-03-05 09:27:00 +08:00
2a47b469b0 feat(language-server): add environment variable support for configuration 2025-03-05 08:33:38 +08:00
470fa306c2 feat(editor): add language icon support 2025-03-05 08:32:33 +08:00
753422ebf4 refactor: remove unused editor and language config files 2025-03-05 08:28:52 +08:00
398928d933 style(editor): format code style for consistency 2025-03-04 21:27:53 +08:00
598ca75829 feat(editor): add default editor options configuration 2025-03-04 21:02:16 +08:00
742a827072 feat(language-server): add configuration for C and C++ 2025-03-04 20:53:19 +08:00
6d9c6701d4 feat(monaco-theme): update Monaco theme configuration with label metadata 2025-03-04 20:29:07 +08:00
ec9f3b2475 feat(editor-language): update language configurations and types for C and C++ 2025-03-04 20:28:41 +08:00
d8fa37dd8a feat(theme): add MonacoTheme enum, configuration and hook 2025-03-04 20:06:33 +08:00
dcbfe4c3d7 style(judge): align equal signs and comments for better readability 2025-03-03 12:10:16 +08:00
03f3d9682a feat(judge): update container configuration and add limits for output and memory 2025-03-03 02:16:24 +08:00
578e33d4c4 feat(config/judge): update result codes and language configurations 2025-03-03 02:12:23 +08:00
3d1ab62fe9 feat(judge): update configuration with exit codes and result type 2025-03-02 13:39:31 +08:00
9dede32073 feat(judge): add memory limit configuration to LanguageConfigs 2025-03-02 01:19:16 +08:00
f4077d2f1d feat(judge): add timeout configuration to LanguageConfigs 2025-03-02 00:52:12 +08:00
6ca75616d0 feat(config): add LanguageConfig interface and LanguageConfigs object 2025-03-01 16:29:26 +08:00
e975dde0c2 fix(editor): remove unnecessary whitespace in default editor value 2025-02-26 00:34:39 +08:00
4975d79d35 refactor(problem/description): improve clarity and formatting of problem description 2025-02-25 19:45:20 +08:00
d51c324ea9 refactor(config): reorganize language configuration and remove deprecated files 2025-02-25 14:39:41 +08:00
fa15a6628e fix(language-server): update configuration to use environment variables for WebSocket settings 2025-02-24 00:22:34 +08:00
b33edb933f fix(language-server): make language server configuration environment variable driven 2025-02-23 23:31:05 +08:00
545f094f49 feat(config): add default file paths for supported languages 2025-02-23 16:11:47 +08:00
0dafb06e86 feat(lsp): add configuration for supported language servers 2025-02-23 13:52:06 +08:00
e47f68f99e feat(problem-description): add default problem statement for "Two Sum" challenge 2025-02-21 01:44:44 +08:00
8d6e5067dc feat(config): add site configuration with GitHub repository URL 2025-02-21 00:07:34 +08:00
5d99032be9 feat(config): add default code snippets for C and C++ languages 2025-02-20 14:13:56 +08:00
bb81c4f7e1 feat(lsp): add default language configuration 2025-02-20 14:04:02 +08:00