Commit Graph

29 Commits

Author SHA1 Message Date
11ecdcc535 feat(shiki): add support for markdown highlighting 2025-04-04 19:43:33 +08:00
750fb74653 chore(imports): update imports to use @/generated/client instead of @prisma/client 2025-04-01 11:46:25 +08:00
f16363ae72 feat(auth): enable GitHub dangerous email account linking 2025-04-01 00:12:58 +08:00
25920fcb68 feat(utils): add difficulty color utility and update type imports 2025-03-30 20:30:58 +08:00
378d568694 fix(toast): update ExitCodeToast styling and layout 2025-03-24 13:08:21 +08:00
1796d21a09 refactor(language-server): modify connectToLanguageServer to return both client and webSocket 2025-03-23 23:51:12 +08:00
b339e407cf feat(utils): include problemId in getPath function 2025-03-23 15:34:57 +08:00
b46a603f62 feat(toast): add custom exit code toast component with icons and messages 2025-03-21 11:07:10 +08:00
8290634afd fix(utils): update function to use fileName instead of language 2025-03-19 18:18:44 +08:00
e25a97d698 feat(auth): add event to assign ADMIN role to the first user 2025-03-18 21:53:12 +08:00
acfeee5a26 refactor(language-server): replace EditorLanguageMetadata with EditorLanguageConfig and LanguageServerConfig for better type safety 2025-03-16 15:49:46 +08:00
c1999bd386 refactor(utils): update getPath function to use EditorLanguageConfig from Prisma 2025-03-16 15:36:54 +08:00
907d108714 feat(auth): implement custom credentials provider with session management 2025-03-14 14:39:26 +08:00
e6e5ea98ea feat(auth): add validation schema using Zod 2025-03-14 14:22:58 +08:00
17dd98c78c refactor(utils): remove type annotation from getPath function 2025-03-14 11:04:12 +08:00
574a98e58e chore(auth): move auth.ts to src/lib directory 2025-03-12 22:46:01 +08:00
24d94f3802 feat(prisma): add global Prisma client instance 2025-03-12 15:25:31 +08:00
d3d280e618 refactor(prisma): replace global with globalThis for cross-platform compatibility 2025-03-12 15:06:08 +08:00
6a01fed089 refactor(prisma): move prisma initialization to default export 2025-03-11 14:58:36 +08:00
862fbf1379 fix(prisma): ensure single Prisma Client instance in development
- Reference: https://www.prisma.io/docs/orm/more/help-and-troubleshooting/nextjs-help#recommended-solution
2025-03-11 12:47:28 +08:00
4f6a37df17 fix(prisma): update enum values for EditorLanguage to lowercase ('c' and 'cpp') 2025-03-08 21:03:32 +08:00
214f4fabef chore(lib): add prisma client initialization 2025-03-06 11:29:10 +08:00
0d29c56750 feat(language-server): add logging for URL creation in connectToLanguageServer 2025-03-05 19:21:55 +08:00
a920cbc4b8 refactor(utils): rename languageServerConfigs to LanguageServerConfig 2025-03-04 21:28:47 +08:00
af23dd3289 feat(editor): add language server connection via WebSocket 2025-03-04 20:58:06 +08:00
742a827072 feat(language-server): add configuration for C and C++ 2025-03-04 20:53:19 +08:00
1f417fb4e6 feat(shiki): improve Shiki highlighter initialization with dynamic theme and language support 2025-03-04 20:29:21 +08:00
2f2b172fb8 feat(shiki): add Shiki highlighter initialization for syntax highlighting 2025-02-20 00:30:32 +08:00
f7261ede2c chore: initialize shadcn/ui 2025-02-19 09:07:30 +08:00