feat: 카테고리 통일, 리스트 기본뷰, 관리자 전용 로그인

- 카테고리 DB를 type 기반(doc/img/vid/zip/code)으로 마이그레이션
- 사이드바·상단탭이 DB 카테고리 API를 공유해 항상 일치
- 기본 뷰를 그리드 → 리스트로 변경
- 로그인 버튼 제거, 관리자만 로그인 가능
- 관리자 패널에서 사용자 관리 메뉴 제거

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 20:49:45 +09:00
parent 3c81d9a4a1
commit 5c7a5bef1e
3 changed files with 431 additions and 115 deletions
-2
View File
@@ -755,7 +755,6 @@ const UserSection = ({ showToast }) => {
const NAV = [
{ id: 'categories', label: '카테고리 관리', icon: 'folder' },
{ id: 'files', label: '파일 관리', icon: 'file' },
{ id: 'users', label: '사용자 관리', icon: 'user' },
];
function AdminContent({ onLogout }) {
@@ -811,7 +810,6 @@ function AdminContent({ onLogout }) {
<div className="page-body">
{active === 'categories' && <CategorySection showToast={showToast} />}
{active === 'files' && <FileSection showToast={showToast} />}
{active === 'users' && <UserSection showToast={showToast} />}
</div>
</div>