fix: P0 安全加固 + 前端错误边界 + ESLint 修复
后端: - 实现登出 API(清除 refresh token) - 清除 videos.py 中已被 Celery 任务取代的死代码 - 添加速率限制中间件(60次/分钟,登录10次/分钟) - 添加 SECRET_KEY/ENCRYPTION_KEY 默认值警告 - OSS STS 方法回退到 Policy 签名(不再抛异常) 前端: - 添加全局 404/error/loading 页面 - 添加三端 error.tsx + loading.tsx 错误边界 - 修复 useId 条件调用违反 Hooks 规则 - 修复未转义引号和 Image 命名冲突 - 添加 ESLint 配置 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
a8be7bbca9
commit
8eb8100cf4
@@ -9,7 +9,7 @@ import {
|
||||
CheckCircle,
|
||||
XCircle,
|
||||
FileText,
|
||||
Image,
|
||||
Image as ImageIcon,
|
||||
Send,
|
||||
AlertTriangle,
|
||||
Loader2
|
||||
@@ -422,7 +422,7 @@ export default function AppealDetailPage() {
|
||||
className="flex items-center gap-3 px-4 py-3 bg-bg-elevated rounded-xl cursor-pointer hover:bg-bg-page transition-colors"
|
||||
>
|
||||
{attachment.type === 'image' ? (
|
||||
<Image className="w-5 h-5 text-accent-indigo" />
|
||||
<ImageIcon className="w-5 h-5 text-accent-indigo" />
|
||||
) : (
|
||||
<FileText className="w-5 h-5 text-accent-indigo" />
|
||||
)}
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
Upload,
|
||||
X,
|
||||
FileText,
|
||||
Image,
|
||||
Image as ImageIcon,
|
||||
AlertTriangle,
|
||||
CheckCircle,
|
||||
Loader2
|
||||
@@ -468,7 +468,7 @@ export default function NewAppealPage() {
|
||||
className="flex items-center gap-2 px-3 py-2 bg-bg-elevated rounded-lg"
|
||||
>
|
||||
{file.type === 'image' ? (
|
||||
<Image className="w-4 h-4 text-accent-indigo" />
|
||||
<ImageIcon className="w-4 h-4 text-accent-indigo" />
|
||||
) : (
|
||||
<FileText className="w-4 h-4 text-accent-indigo" />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user