제작된 퀴즈 5단계: 검토 대기(전체공개 퀴즈 → 서버 노래 DB). 저장할 때 DB에 없는 곡과 영상·제목·가수·직접 정한 하이라이트가 DB와 다른 곡을 모아 관리자가 항목마다 DB 유지/퀴즈 값을 고르거나 새 곡을 연도·장르·난이도와 함께 추가(퀴즈 곡이 그 DB 곡에 연결). 복수정답은 DB 별칭에, 한 번 정한 값은 다시 묻지 않음. 관리자 메뉴 '검토 대기'(개수 표시), 처리한 것 기록·감사 로그

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-22 13:07:41 +09:00
parent 4a40be696b
commit b999310eb9
10 changed files with 632 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
/** 검토 대기 count for the admin side menu badge. */
import { create } from 'zustand';
import { apiCall } from '../../net/api';
export const useReviewCount = create<{ n: number; refresh: () => void }>((set) => ({
n: 0,
refresh: () => {
apiCall<{ pending: number }>('GET', '/api/admin/reviews/count')
.then((r) => set({ n: r.pending }))
.catch(() => {});
},
}));