Commit Graph

20 Commits

Author SHA1 Message Date
5f79671aa5 refactor(code-editor): dynamically fetch lspConfig from LanguageServerConfig 2025-03-05 13:29:17 +08:00
353aff9b4d refactor(header, reset-button, useCodeEditorStore): remove unnecessary value prop and refactor related components 2025-03-05 10:18:06 +08:00
0c94bb2fa3 refactor(store): restructure code editor store and update configuration 2025-03-05 00:31:57 +08:00
598ca75829 feat(editor): add default editor options configuration 2025-03-04 21:02:16 +08:00
30f12d0cd7 feat(store): add Zustand store for setting navigation persistence 2025-03-03 15:38:06 +08:00
64655d8118 refactor(code-editor-store): rename and add hydration state, update storage handling 2025-03-03 14:18:32 +08:00
8bf109679d feat(tabs-store): persist only problemTab and workspaceTab in local storage 2025-03-03 14:17:22 +08:00
466caed5bd feat(store): add zustand store for tabs state management 2025-03-03 13:55:33 +08:00
8be38cee1d fix(store): ensure localStorage access is safe in non-browser environments 2025-03-02 14:37:44 +08:00
180dc5e310 feat(editor): update result state type to JudgeResult 2025-03-02 13:40:33 +08:00
4ad9bac50b refactor(editor): update Monaco editor type imports and state to use editor from monaco-editor 2025-03-01 23:19:35 +08:00
1893faad00 feat(store): persist language setting in code editor state 2025-03-01 23:14:29 +08:00
f63275334e feat(store): add result state to code editor store 2025-03-01 21:15:52 +08:00
e00741e48c feat(code-editor): add loading state management to improve editor initialization 2025-02-26 15:57:49 +08:00
50d1f4cf8e refactor(editor): update editor configuration paths and values 2025-02-25 14:39:55 +08:00
5cabdda667 feat(store): add editor state to useCodeEditor store 2025-02-24 13:21:45 +08:00
4cd56f6fab refactor(option): Rename code-editor-options.ts to option.ts and add wordWrap option
Renamed code-editor-options.ts to option.ts and added the wordWrap: "on" option to enable word wrapping in the code editor.
2025-02-23 15:05:46 +08:00
b2b6d1e484 feat(code-editor): Merge editor options and support dynamic font and line height adjustment
- In the CodeEditor component, merged the default CODE_EDITOR_OPTIONS with dynamic options returned by useCodeEditorOption to support runtime font size and line height adjustments.

- Additionally, added the useCodeEditorOption hook to useCodeEditor.ts to manage the state of font size and line height.

- This allows users to dynamically adjust the editor's display properties.
2025-02-23 14:23:59 +08:00
62149db922 feat(useCodeEditor): Add languageClient state to support language servers
- Introduces MonacoLanguageClient state to facilitate language server integration in the code editor.
2025-02-23 13:54:09 +08:00
1bc1b638e2 feat(store): add Zustand store for managing code editor language state 2025-02-20 14:04:36 +08:00