Commit Graph
13 Commits
Author SHA1 Message Date
Mplan 0fdd94317e fix(auth): migrate frontend to Better Auth 2026-09-28 13:14:01 +08:00
Mplan 720ad29f06 feat: 适配新版后端 API 并接入邮箱验证 (#9)
## 概述
本分支对前端进行了大规模适配与升级,核心是对齐新版后端 API 接口,并接入邮箱验证与密码找回流程。

## 主要变更
- **API 适配**:对齐新版后端接口契约,重构 api 客户端与类型定义,移除前端臆造字段
- **认证流程**:接入邮箱验证(确认 / 重发确认)、密码找回(忘记密码 / 重置密码)全流程
- **管理后台**:前端对齐更新后的 API 契约
- **云图鉴**:展示云类型图标图片
- **UI 优化**:图片预览改为直角样式并调整关闭按钮

## 影响范围
- API 层:src/lib/api.ts、src/types/api.ts、src/types/database.ts
- 认证视图:src/views/auth/*
- 管理后台:src/views/admin/AdminView.vue
- 图鉴视图:src/views/encyclopedia/*
- 状态管理:src/stores/*

Reviewed-on: #9
2026-08-22 21:39:42 +08:00
Mplan cd70f89a28 更新ui样式,并修复已知问题 (#8)
Reviewed-on: #8
2026-07-30 22:35:51 +08:00
Mplan ccf7049ae0 统一交互组件 (#7)
Reviewed-on: #7
2026-07-28 21:31:38 +08:00
Mplan 02399ffae8 fix(security): 修复客户端认证与地图渲染漏洞 (#5)
## 安全修复

- 修复地图标记与悬浮卡片中的存储型 XSS
- 限制登录后的重定向目标为当前站点
- 提前清除邮箱确认和密码重置 URL 中的令牌
- 将 Vite 升级到 8.0.16,修复已公开的高危漏洞
- 收紧 Referrer Policy 并增加 HSTS

## 验证

- `npm audit --audit-level=low`:0 个漏洞
- `npm run build`
- 6 组正常与恶意重定向用例
- 危险 DOM API 残留检查Reviewed-on: #5
2026-07-23 02:41:43 +08:00
Mplan 16b3dd4aaa refactor(styles): 建立统一的生产级样式体系 (#4)
## 变更内容

- 将全局样式拆分为设计令牌、基础规则和语义组件层
- 集中管理 Naive UI 主题配置
- 迁移页面容器、表单、信息面板和按钮等重复样式
- 增加样式体系文档与自动契约检查

## 验证

- `npm run check:styles`
- `npm run build`Reviewed-on: #4
2026-07-23 02:41:04 +08:00
Mplan 51743645e2 后端迁移到fastapi (#3)
Reviewed-on: #3
2026-07-18 20:49:09 +08:00
Mplan 217b81c506 优化密码找回流程、管理后台批量操作和上传体验 (#2)
Reviewed-on: #2
2026-05-31 17:00:16 +08:00
Mplan e087dd46e2 #1 大幅改进页面显示效果 (#1)
Reviewed-on: #1
2026-05-30 00:39:20 +08:00
Mplan 9150a17097 feat: add admin console and account settings
Implement the admin dashboard with review, user, and image management workflows. Add profile settings, password reset, pending upload defaults, community placeholder routing, Vercel SPA rewrites, refreshed header styling, and the OpenCloud color-system skill.
2026-05-22 21:04:49 +08:00
Mplan 78b1c952e7 feat: adopt naive ui and refine shell interactions 2026-05-21 20:53:24 +08:00
Mplan d4b07fba58 feat: complete auth flow - email confirmation, login state, route guards 2026-05-21 00:21:28 +08:00
Mplan c49ac7a42e feat: scaffold infrastructure - router, pinia, tailwind, amap, auth store, page placeholders 2026-05-20 23:31:55 +08:00