后端: - 实现登出 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>
24 lines
765 B
TypeScript
24 lines
765 B
TypeScript
import Link from 'next/link'
|
|
|
|
export default function NotFound() {
|
|
return (
|
|
<div className="min-h-screen bg-bg-page flex items-center justify-center">
|
|
<div className="text-center">
|
|
<h1 className="text-8xl font-bold text-accent-indigo mb-4">404</h1>
|
|
<h2 className="text-2xl font-semibold text-text-primary mb-2">
|
|
页面未找到
|
|
</h2>
|
|
<p className="text-text-secondary mb-8">
|
|
您访问的页面不存在或已被移除
|
|
</p>
|
|
<Link
|
|
href="/"
|
|
className="inline-flex items-center gap-2 px-6 py-3 bg-accent-indigo text-white rounded-xl font-medium hover:bg-accent-indigo/90 transition-colors"
|
|
>
|
|
返回首页
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|