feat: admin URL 쉽게 접근 - show-urls.sh + admin 내부 링크

- show-urls.sh: localhost + LAN IP 포함 모든 URL 출력 (참가자/어드민/시상식)
- admin 페이지에 다른 페이지 URL expander 추가 (ceremony 링크 클릭 가능)
- README에 사용법 추가

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
th-kim0823
2026-04-26 18:35:15 +09:00
parent 6e517be918
commit 067e25116a
3 changed files with 60 additions and 0 deletions

13
app.py
View File

@@ -355,6 +355,19 @@ def render_admin():
st.title("🔐 진행자 콘솔")
with st.expander("🔗 다른 페이지 URL"):
st.markdown(
f"""
- 👥 **참가자 투표**: [/](/)
- 🎉 **시상식 (큰 화면)**: [/?mode=ceremony&token=...](?mode=ceremony&token={ADMIN_TOKEN})
호스트에서 LAN IP 포함 모든 URL 보기:
```bash
./show-urls.sh
```
"""
)
voting_open = is_voting_open()
cur_label = "🟢 투표 진행 중" if voting_open else "🔴 투표 마감됨"
st.markdown(f"### 투표 상태: {cur_label}")