당직근무 0.16.0 (웹 2026-12-01.1): 관리자 공지 메뉴와 앱 첫 화면 공지 띠

This commit is contained in:
블리어 committed 2026-12-01 05:50:27 +00:00
1 parent 2116ef5607
commit 5f2e2f6952
22 files changed
+265 -27

No files matched your search

+19
View File
@@ -8,6 +8,7 @@
<a class="side-brand" href="./"><img src="brand/logo" alt="" width="36" height="36"><span><b>당직근무</b><small>관리자</small></span></a>
<nav class="side-nav" aria-label="관리 메뉴">
<button data-view="overview" class="active"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 13h6V4H4zM14 20h6v-9h-6zM4 20h6v-4H4zM14 7h6V4h-6z"/></svg>현황</button>
<button data-view="notice"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 10v4h3l6 4V6L7 10zM16.5 9a4 4 0 0 1 0 6M19 6.5a7.5 7.5 0 0 1 0 11"/></svg>공지</button>
<button data-view="members"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM2 21a7 7 0 0 1 14 0M17 11a3 3 0 1 0-1-5.8M22 21a6 6 0 0 0-4-5.7"/></svg>회원</button>
<button data-view="companies"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 21V5l8-2v18M12 8l8 2v11M3 21h18M8 9v.01M8 13v.01M8 17v.01M16 13v.01M16 17v.01"/></svg>소속</button>
<button data-view="site"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 5h18v14H3zM3 9h18M7 13h6M7 16h4"/></svg>홈페이지</button>
@@ -32,6 +33,18 @@
</div>
</section>
<section id="view-notice" class="view" hidden>
<header class="view-head"><div><p class="eyebrow">공지 관리</p><h1>공지</h1></div><div class="head-actions"><a class="secondary-link" href="./" target="_blank" rel="noopener">홈페이지 열기</a><a class="secondary-link" href="board" target="_blank" rel="noopener">게시판 열기</a></div></header>
<section class="card stack"><h2>공지 띠</h2><p class="small">켜 두면 홈페이지 맨 위와 앱 첫 화면에 한 줄로 보입니다. 앱은 0.16.0부터 보이고 다음에 앱을 열 때 바뀝니다.</p>
<p class="eyebrow notice-preview-label">미리보기</p><div id="notice-preview" class="notice-preview"></div>
<form id="notice-form" class="site-form single compact"></form><button id="notice-save" form="notice-form" type="submit">공지 띠 저장</button></section>
<section class="card stack"><div class="card-head"><h2>공지사항 글</h2><button id="notice-new" type="button">새 공지 쓰기</button></div>
<p class="small">홈페이지 게시판의 공지사항에 올라갑니다. 누구나 읽을 수 있고 관리자만 씁니다. 고정한 글은 목록 맨 위에 보입니다.</p>
<div class="table-wrap"><table class="data-table"><thead><tr><th>제목</th><th>상태</th><th>쓴 때</th><th>관리</th></tr></thead><tbody id="notice-rows"></tbody></table></div>
<div class="pager"><button id="notice-prev" class="secondary">이전</button><span id="notice-page"></span><button id="notice-next" class="secondary">다음</button></div>
</section>
</section>
<section id="view-members" class="view" hidden>
<header class="view-head"><div><p class="eyebrow">회원 관리</p><h1>회원</h1></div><p id="member-total" class="count"></p></header>
<form id="member-filter" class="toolbar"><input id="member-q" type="search" maxlength="40" placeholder="아이디 또는 이름" aria-label="회원 검색"><select id="member-show" aria-label="회원 범위"><option value="all">전체</option><option value="admin">관리자</option><option value="suspended">이용 중지</option><option value="mustChange">비밀번호 변경 필요</option><option value="idle">30일 넘게 미접속</option><option value="company">소속 있음</option></select><select id="member-sort" aria-label="정렬"><option value="created">가입 최신순</option><option value="login">최근 접속순</option><option value="name">이름순</option></select><button type="submit">찾기</button></form>
@@ -112,6 +125,12 @@
</main>
</div>
<dialog id="notice-dialog" class="wide-dialog"><form id="notice-post-form"><div class="dialog-heading"><h2 id="notice-heading">새 공지</h2><button type="button" class="icon-button close" aria-label="닫기">×</button></div>
<label>제목<input id="np-title" maxlength="80" required></label>
<label>본문<textarea id="np-body" rows="10" maxlength="20000" required></textarea></label>
<label id="np-pin-label" class="check-label"><input id="np-pin" type="checkbox">공지사항 맨 위에 고정</label>
<p id="np-error" class="form-error" role="alert"></p>
<div class="dialog-actions"><button type="button" class="secondary close">취소</button><button id="np-submit" type="submit">올리기</button></div></form></dialog>
<dialog id="board-dialog"><form id="board-form"><div class="dialog-heading"><h2 id="board-heading">게시판</h2><button type="button" class="icon-button close" aria-label="닫기">×</button></div>
<label>주소 이름 (영어 소문자·숫자·-, 만든 뒤에는 바꿀 수 없음)<input id="bd-id" maxlength="20" pattern="[a-z][a-z0-9-]{1,19}" required></label>
<label>게시판 이름<input id="bd-name" maxlength="20" required></label>