Commit Graph

13 Commits

Author SHA1 Message Date
xiezhouwei 1474917163 chore: remove student tabs, actions and related code from user management
- Remove '学员待审批' and '学员管理' tabs from user management page
- Remove studentView, studentRewardAmount, studentRewardLoading states and functions
- Remove assignStudent, saveStudentRewardAmount, loadStudentRewardAmount
- Remove pending approval (同意/拒绝) actions in operations column
- Remove through/reject/unset student menu items
- Clean up UsersActions to only show '添加用户' button
- Remove student_view query params from API calls
2026-06-11 17:04:15 +08:00
xiezhouwei 9bb3b9dda9 fix: properly remove student section without breaking tag balance
- Remove handleApplyStudent function and studentApplying state
- Remove student card section (学员身份申请提示 and 申请学员身份按钮)
- Ensure all div/Card tags remain properly balanced
2026-06-11 14:25:40 +08:00
xiezhouwei 9dca57d501 chore: remove student application feature from frontend
- Remove student application section (提示和按钮) from personal settings page
- Remove student status column (学员状态) from user management table
- Remove set_student action (设为学员) from user operations dropdown
- Remove unused renderStudentStatus, handleApplyStudent, studentApplying state
2026-06-11 14:22:11 +08:00
xiezhouwei 53898ad22b chore: remove $ symbol from wallet management page
- Replace $ with USD or empty in amount display
- Remove $ after Coins icon in preset amount cards
- Replace (1 $ =) with (1 USD =) in exchange rate hint
- Update renderTopUpCountInUSD to return value without $ prefix
- Keep EUR symbol unchanged
2026-06-11 11:58:41 +08:00
xiezhouwei d7fdbb4e18 feat: add supplierApply permission toggle for providing compute button
- Add supplierApply module to console area in role-menu-permission config
- Add supplierApply to DEFAULT_SIDEBAR_CONFIG in useSidebar hook
- Update HeaderLogo to check sidebar module config before showing the button
- Update MobileSiteNavDropdown to check same permission for mobile entry
- Default value is enabled (backward compatible)
2026-06-11 11:37:48 +08:00
xiezhouwei 82016579db fix(payment): resolve payment settings save logic and enable persistence
- Fix Bug 1: Always save all provider-specific fields regardless of
  currently selected provider in dropdown, preventing data loss when
  switching between Alipay/WeChat/ePay/Yipay configurations
- Fix Bug 2: Add EpayEnabled/YipayEnabled backend Go variables and
  OptionMap entries so enable/disable checkboxes persist across page
  reloads
- Fix white screen crash by wrapping orphan Col elements in proper Row
- Add EpayEnabled/YipayEnabled to PaymentSetting.jsx initial state
- Remove duplicate payment card imports for Stripe/Creem/Waffo/Alipay/Wechat
2026-06-09 14:35:37 +08:00
xiezhouwei 6fc114ec32 feat: add Alipay and WeChat Pay payment gateway support
- Add Alipay payment backend: RSA2 signing/verification, async notify, sync return
- Add WeChat Pay backend: APIv3 signing, AES-GCM decryption, H5 pay, async notify
- Add payment setting UI components for Alipay and WeChat Pay
- Register config keys (24 items) in OptionMap for both gateways
- Add API routes: /api/user/alipay/pay, /api/user/wechatpay/pay,
  /api/alipay/notify, /api/alipay/return, /api/wechatpay/notify
- Add enable_alipay_topup/enable_wechatpay_topup to /api/status endpoint
- Add i18n translations for all new UI strings (11 locales)
- Fix: data is not defined ReferenceError in topup/index.jsx useEffect
- Fix: unused imports in controller/topup_wechat.go
- Update .gitignore for build artifacts
2026-06-08 09:01:33 +08:00
xiezhouwei b63f75ade4 feat: add captcha verification for login form
- Add /api/captcha endpoint with captcha generation/verification service
- Add captcha_enabled option in system settings (model/option.go)
- Add captcha display and refresh logic in LoginForm
- Fix captcha not showing on Chrome due to Semi UI Form.Input suffix
  incompatibility; refactored to standalone flex layout
- Fix stale localStorage cache preventing captcha rendering on first visit
  by proactively fetching /api/status on LoginForm mount
- Add captcha_enabled toggle in admin SystemSetting panel
- Add i18n keys for captcha-related text (zh-CN, en)
2026-06-05 13:57:13 +08:00
xiezhouwei aa1c9559c3 feat: 操作日志功能实现及字段级diff优化
- 新增操作日志完整功能: model/service/controller/middleware + 前端页面
- 用户管理 UpdateUser/ManageUser 改为字段级 diff,仅记录实际变更字段
- 模型定价 UpdateOption 改为模型粒度 diff,仅记录变更的模型条目
- 防止中间件与 controller 重复记录操作日志
- 修复前端侧边栏操作日志模块可见性及权限配置合并
2026-06-04 15:17:59 +08:00
xiezhouwei ad2fb8b64f 删除 ~$kenFactory_Architecture_Doc_CN.docx 2026-06-03 10:16:47 +08:00
xiezhouwei f3dc0de268 Remove .codebuddy from tracking and add to .gitignore 2026-06-03 10:15:09 +08:00
xiezhouwei 4a284111e2 Add ffprobe binaries for video metadata probing 2026-06-03 10:08:47 +08:00
xiezhouwei ccd7d1f4c2 Initial commit 2026-06-03 10:01:10 +08:00