3단계 노래 DB: 곡 스키마(장르·기준별 단계·가사·후보), 노라보세·스타맵 가져오기, 유튜브 원곡 찾기(쿠키 노래 검색 + 로그인 없는 Topic 대체), 관리자 노래·수집 화면

- 노라보세: 8,572곡(멜론 ID·연도·최고순위·장르·5단계 난이도·가사), 500 나는 묶음은 반씩 나눠 재요청, 원본 캐시로 재실행 안전
- 스타맵 803곡: 같은 곡은 합치고(363) 새 곡 440, 맵 제작자 연도(올해)는 버림
- 유튜브: 제목·가수·길이 점수로 확정/후보, 퍼가기 금지 영상 제외, 검색 방식별로 시도 기록
- 관리자: 노래 검색·장르·연도·난이도·유튜브 상태·출처 필터, 편집 패널(미리듣기·후보 선택·하이라이트·별칭·숨김), 수집 기록
- 테스트 32개, e2e에 노래 편집 단계 추가

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-18 20:31:43 +09:00
parent 9b7eef1ccb
commit cec9f8bdc9
24 changed files with 1886 additions and 6 deletions

View File

@@ -210,6 +210,25 @@ textarea.input { padding: 10px 14px; min-height: 90px; resize: vertical; }
.data-table tr:last-child td { border-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
/* admin songs (docs/02 노래 관리 화면) */
.songs-layout { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.songs-layout.with-panel { grid-template-columns: minmax(0, 1fr) 400px; }
.song-panel { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 16px 18px; }
.data-table tr.sel td { background: var(--primary-soft); }
.data-table tbody tr:hover td { background: color-mix(in srgb, var(--primary-soft) 50%, transparent); }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; text-align: left; }
.filters { gap: 14px; }
.field-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 0.87rem; font-weight: 700; color: var(--text-sub); }
.input.sm { min-height: 36px; width: auto; padding: 0 8px; font-size: 0.9rem; border-radius: 9px; }
input.input.sm { width: 76px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yt-preview { aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #000; }
.yt-preview iframe { width: 100%; height: 100%; border: 0; }
.cand { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: 0.85rem; font-weight: 650; cursor: pointer; }
.cand.on { border-color: var(--ink); background: var(--primary-soft); }
.lyrics { white-space: pre-wrap; font: inherit; font-size: 0.85rem; background: var(--surface-2); padding: 10px; border-radius: 8px; max-height: 260px; overflow: auto; }
@media (max-width: 1100px) { .songs-layout.with-panel { grid-template-columns: 1fr; } .song-panel { position: static; max-height: none; } }
/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; }
.toast { background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-weight: 700; box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 50%, transparent); }