liguang
b3525aee7d
refactor(usermanagement): 优化用户管理模块的类型定义和数据处理
...
- 为 adminActions、guestActions、problemActions 和 teacherActions 文件中的函数添加了明确的类型注解
- 更新了函数参数和返回值的类型,提高了代码的可读性和可维护性
- 在相关页面组件中添加了类型注解,明确了数据结构
- 移除了未使用的 Separator 组件导入
2025-06-20 20:26:28 +08:00
liguang
360399bdfb
refactor(user-management): 重构用户管理系统
...
- 移除原有的 user 和 problem API,改为使用 Prisma 直接操作数据库
- 新增 admin、teacher、guest 和 problem 的 CRUD 操作
- 优化用户表格组件,支持角色选择和难度选择
- 重构页面组件,使用 Prisma 查询数据
- 更新数据库迁移,增加 TEACHER 角色
2025-06-20 15:29:50 +08:00
liguang
42e576876e
feat(user-management): 实现用户管理和题目管理功能
...
- 新增用户管理和题目管理的 API 接口
- 实现用户管理和题目管理的后端逻辑
- 添加保护布局组件,用于权限控制
- 创建用户管理的不同角色页面
- 移除不必要的数据文件和旧的页面组件
2025-06-19 16:13:50 +08:00
liguang
6bd06929a7
feat(admin): 新增管理员管理功能
...
- 新增管理员管理页面和相关 API
- 实现管理员用户的增删改查功能
- 添加用户管理相关的 API 和页面组件
- 更新 VSCode 设置,添加数据库连接配置
2025-06-18 17:52:42 +08:00
liguang
6df1f64376
refactor(layout): 重构侧边栏和用户导航组件
...
- 更新了 AppSidebar、NavMain 和 NavUser 组件的结构和样式
- 添加了新的导航项和图标
- 调整了用户信息的展示方式
- 优化了侧边栏的布局和样式
2025-06-17 13:44:42 +08:00
0b9c338de4
refactor(run): rename trim to isTrim and simplify output comparison
...
- Change boolean parameter name from 'trim' to 'isTrim' for better clarity
- Simplify output comparison logic by inlining ternary expression
2025-06-16 16:59:48 +08:00
dioxide
7f79b901b7
Add trim function to ignore the whitespace character.
...
Add a trim key to mark whether the answer should be trimmed.
Add a judgement to determine whether the trim should work.
2025-06-15 17:16:39 +08:00
941f1a74fa
feat: replace dockview with flexlayout-react
2025-06-13 14:03:17 +08:00
9443ab6d6d
refactor(api): extract OpenAI client to shared module
2025-05-14 22:30:45 +08:00
ba1937ecbb
refactor(problems): update ProblemHeader import path to new location
2025-05-13 16:14:57 +08:00
148ae677d7
refactor(problemset): move components to separate files and improve structure
...
- Move ProblemsetHeader component from 'problemset-header' to 'header'
- Extract problemset table logic into dedicated ProblemsetTable component
- Add Suspense and skeleton loading for better UX
- Update layout and page structure
2025-05-13 16:03:46 +08:00
f0beb69b2c
fix(page): add missing return statement in RootPage component
2025-05-07 16:42:39 +08:00
b67b13d7bf
refactor(route): rename [id] to [problemId] in problems route
2025-05-07 14:59:17 +08:00
1db666a2ab
refactor(structure): reorganize page and component exports
...
- Move root page from /(app) to / directory
- Convert default exports to named exports in components
- Rename MainView component to HeroSection for better semantics
2025-05-07 14:06:31 +08:00
aed942e7e2
refactor(layouts): overhaul problem and problemset page structures
...
- Simplify ProblemLayout to use children prop and remove ProblemStoreProvider
- Replace PlaygroundHeader with dedicated ProblemHeader component
- Streamline ProblemsetLayout with new ProblemsetHeader
- Remove deprecated BackButton in favor of NavigateBackButton
- Delete unused ProblemStoreProvider and related dependencies
2025-05-06 21:22:13 +08:00
5f3eb72d00
refactor(problems): migrate description and solution to feature-based structure
...
- Remove old parallel route implementations (@Description and @Solutions)
- Add new feature-based components for problem description and solution
- Create content and panel components for both features
- Implement skeleton loading states
- Use cached data fetching
- Update MDX rendering and scroll area implementations
2025-05-06 19:38:50 +08:00
a3ef5d88e6
refactor(auth)!: remove components and rewrite sign-in page
2025-05-05 18:21:08 +08:00
64182bccc6
fix(dockview): move panel titles from options to params to prevent i18n title persistence in layout
2025-04-19 12:53:39 +08:00
f2d14d07b2
feat(home): Add PrimaryFeatures component
...
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 1s
- Add PrimaryFeatures component with MobileFriendlyCard, DockerCard, and LSPCard.
- Update HomePage to include PrimaryFeatures component between MainView and FAQs.
2025-04-17 21:42:58 +08:00
5e7ef4a99d
feat(home): replace homepage redirect with actual content
2025-04-17 16:45:49 +08:00
f39bbf76e7
feat(submissions): add login requirement for submissions page
...
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 0s
- Add SubmissionLoginButton component for unauthenticated users
- Modify submissions page to check auth session
- Filter submissions by current user when logged in
2025-04-17 09:31:04 +08:00
30ee16fbf0
style(problem): adjust problem layout styles
2025-04-17 07:44:41 +08:00
569beb0b36
feat(layout): add layout with suspense boundary for problem
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 0s
2025-04-16 18:05:55 +08:00
a7ddd80d09
perf(problemset): add prefetch to problem links for faster navigation
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 0s
2025-04-16 17:04:28 +08:00
4428a29306
refactor(i18n): replace hardcoded texts with i18n message keys
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
30922a25bb
feat(i18n): integrate next-intl and dynamic locale support in RootLayout
2025-04-14 22:43:27 +08:00
5465450143
feat(auth): update sign-in and sign-up flow with redirect support
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 0s
2025-04-14 21:27:06 +08:00
c540a04c36
feat(problemset): add status icons for problem set page, support completed and attempted states
2025-04-14 17:35:31 +08:00
0694e4dea0
feat(problemset): add completion status indicator for problems
2025-04-14 17:22:01 +08:00
69d03f89da
refactor(problem): remove TestResult tab and adjust tab positions
2025-04-14 16:25:10 +08:00
d58723bd47
delete(features): remove src/app/(app)/problems/[id]/features folder
2025-04-14 16:22:10 +08:00
207697c592
feat(submission-details): display last failed test case details and error messages
2025-04-14 15:38:02 +08:00
675c828fe2
feat(submissions): include detailed testcase data in problem submissions query
2025-04-14 15:30:59 +08:00
fbf563dfdf
refactor(details): move panel cleanup logic into useEffect
2025-04-14 10:40:08 +08:00
2d06b778e6
feat(problems): add Details panel for submission details view
...
- Add new Details component to display submission details
- Modify ProblemLayout and ProblemPage to support Details panel
- Implement Details page with submission code view and metadata
- Add navigation back to Submissions panel
2025-04-13 22:42:08 +08:00
105802a209
feat(problem): add parallel routes
2025-04-13 12:06:08 +08:00
a559c326a8
feat(problem): refactor layout and page components
...
- Refactored `ProblemLayout` to pass panel components (Description, Solutions, etc.) as props.
- Updated `ProblemPage` to dynamically render dock panels with content from props, instead of static components.
- Removed `DefaultDockviewOptions` and integrated custom panel configuration directly in `ProblemPage`.
- Enhanced `DockView` to support dynamic panel content rendering based on passed props.
2025-04-13 11:56:01 +08:00
d9d9db16fe
refactor(bot): simplify layout and improve UI rendering in Bot component
2025-04-12 13:17:48 +08:00
3b1c2fc41b
refactor(problem): replace inline dockview options with default config
2025-04-12 10:47:23 +08:00
7963d38388
feat(submissions): add submissions table component and display on problem page
...
- Added `SubmissionsTable` component to display submissions (including status, language, time, memory, and submission date).
- Updated `Submissions` page to render `SubmissionsTable` with submissions data from `ProblemStore`.
- Improved table sorting and date display logic.
2025-04-11 17:44:45 +08:00
82b0705bdb
feat(problem-store): add submissions to problem store state and provider
...
- Added `submissions` field to `ProblemState` and `ProblemStore` type
- Updated `createProblemStore` function to handle `submissions`
- Modified `ProblemStoreProvider` to pass `submissions` as a prop
- Updated `ProblemLayout` to fetch `submissions` from the database and pass to the provider
2025-04-11 17:42:52 +08:00
10c1716019
style(bot): simplify layout and optimize className order
2025-04-10 10:44:39 +08:00
2f2c8ab112
refactor(problems): improve testcase scroll layout using ScrollArea
2025-04-10 10:41:36 +08:00
3f10c08a6c
feat(testcase): add dynamic testcase card and form for problem view
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 1s
2025-04-09 21:26:06 +08:00
f1f2a70c0e
refactor(problem-store): consolidate problem data structure into ProblemWithDetails
2025-04-09 20:38:53 +08:00
a02335b255
feat(problem-store): add testcases to store state and provider
2025-04-09 19:41:55 +08:00
cb940f8608
refactor(problemset): simplify layout by removing Suspense wrapper
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 0s
2025-04-08 19:15:06 +08:00
3e5e2d2a62
feat(dockview): support dynamic Lucide icons via string in tab headers
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 0s
2025-04-07 10:32:58 +08:00
9a51c1547f
feat(problems): add inactive state to dockview panels
2025-04-06 20:38:51 +08:00
01b19eadde
feat(problem): enhance panels with icons using Lucide-react
2025-04-06 18:17:58 +08:00