feat(project): 수신함 [성공하기] 별도 창(dbx.html) + 모두 확인/읽음 아이콘 버튼 + PC 알림 프로그램 설치
- GET /project/dbx: 모듈 폴더 dbx.html 을 그대로(로그인·project 권한), 수신함 제목 옆 버튼 → 닫기만 있는 팝업 창 - 태그 모두 확인·알림 모두 읽음은 아이콘만(title 말풍선), [PC 알림] → [PC 알림 프로그램 설치] - project.css 버전 20261015a, 도움말·PROJECT_MODULE.md 6-21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2949,6 +2949,22 @@ def help_page(request: Request) -> HTMLResponse:
|
||||
)
|
||||
|
||||
|
||||
_DBX_PAGE = Path(__file__).resolve().parent / "dbx.html"
|
||||
|
||||
|
||||
@router.get("/dbx", response_class=HTMLResponse)
|
||||
def dbx_page(request: Request) -> HTMLResponse:
|
||||
"""수신함 [성공하기] — 모듈 폴더의 dbx.html 을 그대로(별도 창, 닫기 버튼만). DB 없이 열린다."""
|
||||
user = _page_user(request)
|
||||
if not isinstance(user, dict):
|
||||
return user
|
||||
try:
|
||||
html = _DBX_PAGE.read_text(encoding="utf-8")
|
||||
except OSError:
|
||||
raise HTTPException(status_code=404, detail="페이지를 찾을 수 없습니다.")
|
||||
return HTMLResponse(html, headers={"Cache-Control": "no-cache"})
|
||||
|
||||
|
||||
@router.get("/inbox", response_class=HTMLResponse)
|
||||
def inbox_page(request: Request) -> HTMLResponse:
|
||||
from app.main import build_erp_nav, render_template # noqa: WPS433
|
||||
|
||||
Reference in New Issue
Block a user