feat: bootstrap admin auth, DB schema, and encrypted API keys

- Add Prisma schema for AdminUser, Source, Article, SearchRule, SearchRun,
  and encrypted ApiKey storage.
- Implement JWT session middleware and admin login/logout.
- Add AES-256-GCM encryption helpers for API keys.
- Seed default news sources and admin credentials.
- Create admin shell layout and login page.
This commit is contained in:
hermes
2026-06-17 04:30:56 +00:00
parent b77d0c73cd
commit e086141620
18 changed files with 1785 additions and 8 deletions

5
src/app/admin/layout.tsx Normal file
View File

@@ -0,0 +1,5 @@
import AdminLayout from '@/components/admin/AdminLayout';
export default function Layout({ children }: { children: React.ReactNode }) {
return <AdminLayout>{children}</AdminLayout>;
}