Commit Graph

7 Commits

Author SHA1 Message Date
xiezhouwei e00999b88c fix: 首页导航栏样式对齐 tokendance.space + 主题切换修复
- 首页导航字体/样式对齐 tokendance.space(text-[14px]、gap-1.5、SVG 图标)
- 全局 Navigation.jsx 和 MobileSiteNavDropdown.jsx 添加 SVG 图标
- 首页 HeroSection header 固定定位(sticky→fixed),导航链接靠右
- PageLayout 首页时隐藏全局 HeaderBar,避免导航重叠/文字不清
- 修复 HomeThemeToggle 主题切换失效(使用正确的 localStorage key 和 DOM 操作)
- 首页文字 TokenFactory→TuringToken,logo 靠左对齐
- i18n 多语言文件同步更新
2026-06-17 10:23:39 +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 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 ccd7d1f4c2 Initial commit 2026-06-03 10:01:10 +08:00