gcx/frontend/admin-web
hailin 4feea2667c refactor(admin-web): 实现 Clean Architecture + Zustand + Redux Toolkit
按要求重构架构,从扁平的 React Context + useState 升级为大厂标准模式:

Clean Architecture 分层:
  domain/entities/          — 业务实体 (AdminUser/User/Issuer/AppVersion)
  domain/repositories/      — Repository 接口(契约层)
  infrastructure/http/      — HttpClient(替代旧 api-client.ts)
  infrastructure/repositories/ — Repository 实现(AuthRepository/UserRepository)

状态管理(大厂混合模式):
  Zustand useAuthStore      — 轻量客户端状态:登录会话 + localStorage 持久化
  Zustand useUIStore        — UI 偏好:sidebar 折叠状态持久化
  Redux uiSlice             — 全局通知队列、globalLoading
  Redux usersSlice          — 用户列表筛选/分页 client state
  React Query               — 服务端数据 fetching/缓存(保留)

更新:
  providers.tsx             — 加入 Redux Provider,移除旧 AuthProvider
  auth-context.tsx          — 向下兼容层,re-export Zustand store
  api-client.ts             — 向下兼容层,re-export httpClient
  AdminLayout.tsx           — 使用 Zustand auth/ui store

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 19:18:20 -08:00
..
nginx chore: Switch domain from admin.gogenex.com to admin.gogenex.cn 2026-02-11 05:18:22 -08:00
public fix(branding): 统一Logo色调与App主色调 #6C5CE7 2026-02-23 18:12:35 -08:00
src refactor(admin-web): 实现 Clean Architecture + Zustand + Redux Toolkit 2026-03-04 19:18:20 -08:00
.dockerignore chore: Add Next.js project config and app entry for admin-web 2026-02-11 01:35:19 -08:00
.env.development chore: Add Docker deployment config for admin-web 2026-02-11 01:22:22 -08:00
.env.production chore: Add Docker deployment config for admin-web 2026-02-11 01:22:22 -08:00
.gitignore chore: Add Next.js project config and app entry for admin-web 2026-02-11 01:35:19 -08:00
DEPLOY.md chore: Switch domain from admin.gogenex.com to admin.gogenex.cn 2026-02-11 05:18:22 -08:00
Dockerfile fix: Make Dockerfile tolerant of missing package-lock.json 2026-02-11 01:39:14 -08:00
deploy.sh chore: Switch domain from admin.gogenex.com to admin.gogenex.cn 2026-02-11 05:18:22 -08:00
docker-compose.yml chore: Add Docker deployment config for admin-web 2026-02-11 01:22:22 -08:00
next.config.ts fix(admin-web): 部署版本守卫,彻底防止 stale bundle 崩溃 2026-03-04 18:57:12 -08:00
package-lock.json feat: Wire all view components to Next.js App Router routes 2026-02-11 05:37:28 -08:00
package.json chore: Add Next.js project config and app entry for admin-web 2026-02-11 01:35:19 -08:00
tsconfig.json chore: Add Next.js project config and app entry for admin-web 2026-02-11 01:35:19 -08:00