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:
13
app.py
13
app.py
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user