Files
ezServer-MacOS/Packaging/webconsole/index.html
T

112 lines
6.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<title>ezServer · Web Console</title>
<link rel="stylesheet" href="/webconsole/material.css">
<script defer src="/webconsole/console.js"></script>
</head>
<body>
<main id="login" class="login">
<section class="login-panel" aria-labelledby="login-title">
<div class="brand"><span class="mark" aria-hidden="true">ez</span> ezServer</div>
<h1 id="login-title">Вход в Web Console</h1>
<form id="login-form">
<label>Имя пользователя<input name="username" autocomplete="username" required></label>
<label>Пароль<input name="password" type="password" autocomplete="current-password" required></label>
<p id="login-error" role="alert" hidden></p>
<button class="filled" type="submit">Войти</button>
</form>
</section>
</main>
<div id="workspace" class="workspace" hidden>
<aside class="sidebar">
<div class="brand"><span class="mark" aria-hidden="true">ez</span> ezServer</div>
<nav aria-label="Разделы консоли">
<button data-view="overview"><span aria-hidden="true">◈</span>Обзор</button>
<button data-view="storage"><span aria-hidden="true">▤</span>Хранилище</button>
<button data-view="security"><span aria-hidden="true">◉</span>Безопасность</button>
<button data-view="audit"><span aria-hidden="true">≡</span>Журнал событий</button>
</nav>
</aside>
<div class="content">
<header class="topbar">
<span>Web Console</span>
<div class="account"><span id="account"></span><button class="outlined" id="logout">Выйти</button></div>
</header>
<main class="page">
<p id="page-error" role="alert" hidden></p>
<section id="overview" aria-labelledby="overview-title">
<div class="hero">
<h1 id="overview-title" tabindex="-1">Обзор сервера</h1>
<p class="status" id="status">Проверяем соединение…</p>
</div>
<div class="cards">
<article class="card"><h2>Сервер</h2><p class="value" id="server-name">—</p></article>
<article class="card"><h2>Версия API</h2><p class="value" id="api-version">—</p></article>
<article class="card"><h2>Адрес</h2><p class="value address" id="server-address">—</p></article>
</div>
<div class="section-heading"><h2>Поддерживаемые версии</h2></div>
<div class="table-wrap">
<table><thead><tr><th scope="col">Версия</th><th scope="col">Статус</th><th scope="col">Адрес API</th></tr></thead>
<tbody id="versions"></tbody></table>
</div>
</section>
<section id="storage" aria-labelledby="storage-title" hidden>
<h1 id="storage-title" tabindex="-1">Хранилище</h1>
<article class="card detail"><h2>Папка снимков</h2><p class="path" id="storage-path">—</p>
<p class="muted">Путь можно изменить в меню ezServer, когда сервер остановлен.</p>
<div class="actions"><button class="outlined" id="copy-path" disabled>Скопировать путь</button><span id="copy-status" role="status"></span></div>
</article>
</section>
<section id="security" aria-labelledby="security-title" hidden>
<h1 id="security-title" tabindex="-1">Безопасность</h1>
<div class="detail-grid">
<article class="card detail"><h2>Политика паролей</h2><p class="muted">Требования оригинального EzServer к новым паролям</p>
<form id="policy" class="policy">
<fieldset id="policy-fields" disabled>
<label>Минимальная длина<select name="minimumLength" required></select></label>
<fieldset class="policy-toggles">
<legend>Типы символов (не менее двух)</legend>
<label><input type="checkbox" name="isUpperAlphabetsEnabled"> Прописные буквы</label>
<label><input type="checkbox" name="isLowerAlphabetsEnabled"> Строчные буквы</label>
<label><input type="checkbox" name="isNumericDigitsEnabled"> Цифры</label>
<label><input type="checkbox" name="isSpecialCharactersEnabled"> Специальные символы</label>
</fieldset>
<label class="policy-switch"><input type="checkbox" name="isExpirationEnabled"> Ограничить срок действия</label>
<div class="policy-period">
<label>Срок, дней<select name="expirationDaysAfter"></select></label>
<label>Напомнить за, дней<select name="expirationReminderDaysBefore"></select></label>
</div>
<button class="filled" type="submit">Сохранить</button>
</fieldset>
<p id="policy-feedback" role="status" hidden></p>
</form>
</article>
<article class="card detail"><h2>Защита идентификаторов</h2><dl id="privacy"></dl></article>
</div>
</section>
<section id="audit" aria-labelledby="audit-title" hidden>
<h1 id="audit-title" tabindex="-1">Журнал событий</h1>
<form class="filters" id="audit-form">
<label>С даты<input name="startDate" type="date"></label>
<label>По дату<input name="endDate" type="date"></label>
<label>Событие<select name="eventType"><option value="">Все события</option><option value="LOGIN">Вход</option><option value="LOGOUT">Выход</option></select></label>
<button class="filled" type="submit">Найти</button>
</form>
<div class="table-wrap">
<table><thead><tr><th scope="col">Время</th><th scope="col">Событие</th><th scope="col">Пользователь</th><th scope="col">Сообщение</th></tr></thead>
<tbody id="events"></tbody></table>
<p id="audit-empty" class="empty" hidden>События не найдены.</p>
</div>
<div class="pagination"><span id="audit-count" role="status"></span><button class="outlined" id="previous" disabled>Назад</button><button class="outlined" id="next" disabled>Далее</button></div>
</section>
</main>
</div>
</div>
</body>
</html>