1단계 뼈대: joke-app에서 로그인(디스코드·게스트)·세션·권한·관리자·DB를 가져와 음악퀴즈용으로 정리, 새 디자인·아이콘, WS 연결·시계 맞추기, 테스트·e2e

- apps/server: Hono API(auth/me/config/admin), Bun WebSocket(welcome·ping/pong, 압축 끔), SQLite 마이그레이션
- 사이트 설정: 채팅 도배 방지 기본 꺼짐(관리자가 켬, 초당·순간 횟수)
- apps/web: 첫 화면·로그인·관리자(대시보드·사이트·사용자·관리자·기록), 라이트/다크, 휴대폰, noindex
- packages/shared: 닉네임 규칙, 프로토콜(zod), 시계 차이 계산
- 테스트 20개 + 브라우저 e2e 6단계 통과

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-18 19:44:47 +09:00
parent 7ae34c49c1
commit 391bbe69e5
61 changed files with 3569 additions and 3 deletions

BIN
apps/web/public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
<rect width="64" height="64" rx="15" fill="#1F6F78"/>
<circle cx="33.5" cy="34.5" r="26" fill="#174F56"/>
<circle cx="32" cy="32" r="26" fill="#1C1A1F"/>
<circle cx="32" cy="32" r="21" fill="none" stroke="#3A3740" stroke-width="1.4"/>
<circle cx="32" cy="32" r="15.5" fill="#F2B544"/>
<g transform="translate(32 32.6) scale(1.25) translate(-31 -31.5)">
<path d="M 27 28.6 C 27 25.6 29.2 24.4 31 24.4 C 33.4 24.4 35 26 35 28 C 35 30.4 33 31 32 32 C 31.3 32.7 31.1 33.4 31.1 34.6" fill="none" stroke="#1C1A1F" stroke-width="3.1" stroke-linecap="round" stroke-linejoin="round"/>
<circle cx="31.1" cy="38.6" r="2" fill="#1C1A1F"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

30
apps/web/public/logo.svg Normal file
View File

@@ -0,0 +1,30 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
<rect width="1024" height="1024" rx="232" fill="#1F6F78"/>
<!-- print-offset shadow -->
<circle cx="530" cy="566" r="330" fill="#174F56"/>
<!-- record -->
<circle cx="506" cy="540" r="330" fill="#1C1A1F"/>
<g fill="none" stroke="#34313A" stroke-width="7">
<circle cx="506" cy="540" r="292"/>
<circle cx="506" cy="540" r="254"/>
<circle cx="506" cy="540" r="216"/>
<circle cx="506" cy="540" r="178"/>
</g>
<!-- flat sheen -->
<path d="M 300 330 A 292 292 0 0 1 430 258" fill="none" stroke="#5A5662" stroke-width="16" stroke-linecap="round"/>
<path d="M 712 750 A 292 292 0 0 1 600 818" fill="none" stroke="#4A4652" stroke-width="12" stroke-linecap="round"/>
<!-- label -->
<circle cx="506" cy="540" r="138" fill="#F2B544"/>
<circle cx="506" cy="540" r="138" fill="none" stroke="#1C1A1F" stroke-width="6" opacity=".15"/>
<!-- question mark -->
<g transform="translate(506 543) scale(0.78) translate(-511 -531)">
<path d="M 452 492 C 452 440 490 418 512 418 C 548 418 572 444 572 476 C 572 512 540 522 524 538 C 512 550 510 562 510 580"
fill="none" stroke="#1C1A1F" stroke-width="40" stroke-linecap="round" stroke-linejoin="round"/>
<circle cx="510" cy="640" r="24" fill="#1C1A1F"/>
</g>
<!-- tonearm -->
<path d="M 812 222 L 770 470 L 700 548" fill="none" stroke="#F6F1E7" stroke-width="30" stroke-linecap="round" stroke-linejoin="round"/>
<rect x="658" y="530" width="74" height="48" rx="10" transform="rotate(-48 695 554)" fill="#F6F1E7"/>
<circle cx="812" cy="222" r="58" fill="#F6F1E7"/>
<circle cx="812" cy="222" r="22" fill="#1F6F78"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1,13 @@
{
"name": "음악퀴즈",
"short_name": "음악퀴즈",
"start_url": "/",
"display": "standalone",
"background_color": "#F5EFE3",
"theme_color": "#F5EFE3",
"lang": "ko",
"icons": [
{ "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" }
]
}

View File

@@ -0,0 +1,2 @@
User-agent: *
Disallow: /