forked from mtusi2026/mtusi2026lab5
173 lines
25 KiB
HTML
173 lines
25 KiB
HTML
<!doctype html>
|
||
<html lang="ru">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<meta name="theme-color" content="#262626">
|
||
<meta name="description" content="n1k0der · Мессенджер">
|
||
<title>n1k0der · Мессенджер</title>
|
||
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='12' fill='%23262626'/%3E%3Cpath d='M11 14h18M11 20h13M11 26h8' stroke='%23FFE135' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E">
|
||
<link rel="stylesheet" href="/app.css">
|
||
<link rel="stylesheet" href="/polish.css">
|
||
<link rel="stylesheet" href="/attachments.css">
|
||
<link rel="stylesheet" href="/showcase.css">
|
||
<script type="module" src="/app.js"></script>
|
||
<link rel="stylesheet" href="/operations.css">
|
||
<link rel="stylesheet" href="/design.css">
|
||
</head>
|
||
<body>
|
||
<svg class="svg-sprite" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
||
<symbol id="i-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
|
||
<symbol id="i-send" viewBox="0 0 24 24"><path d="m21 3-6.5 18-4-7.5L3 9.5 21 3ZM10.5 13.5 21 3"/></symbol>
|
||
<symbol id="i-chat" viewBox="0 0 24 24"><path d="M7 4h10a4 4 0 0 1 4 4v6a4 4 0 0 1-4 4H9l-6 3V8a4 4 0 0 1 4-4Z"/><path d="M8 9h8M8 13h5"/></symbol>
|
||
<symbol id="i-arrow" viewBox="0 0 24 24"><path d="m10 5-7 7 7 7M3 12h18"/></symbol>
|
||
<symbol id="i-arrow-up-right" viewBox="0 0 24 24"><path d="M6 18 18 6M6 6h12v12"/></symbol>
|
||
<symbol id="i-search" viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="6.5"/><path d="m16 16 4.5 4.5"/></symbol>
|
||
<symbol id="i-refresh" viewBox="0 0 24 24"><path d="M20 5v5h-5M4 19v-5h5M5.5 8a7 7 0 0 1 11.7-3L20 8M4 16l2.8 3a7 7 0 0 0 11.7-3"/></symbol>
|
||
<symbol id="i-exit" viewBox="0 0 24 24"><path d="M9 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4M10 12h11m-4-4 4 4-4 4"/></symbol>
|
||
<symbol id="i-copy" viewBox="0 0 24 24"><rect x="8" y="8" width="12" height="12" rx="3"/><path d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"/></symbol>
|
||
<symbol id="i-close" viewBox="0 0 24 24"><path d="m6 6 12 12M18 6 6 18"/></symbol>
|
||
<symbol id="i-users" viewBox="0 0 24 24"><circle cx="9" cy="8" r="3"/><path d="M3 20v-2a6 6 0 0 1 12 0v2M16 5a3 3 0 0 1 0 6M18 15a5 5 0 0 1 3 5"/></symbol>
|
||
<symbol id="i-eye" viewBox="0 0 24 24"><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></symbol>
|
||
<symbol id="i-eye-off" viewBox="0 0 24 24"><path d="m3 3 18 18M9.5 5.3A12 12 0 0 1 12 5c6.5 0 10 7 10 7a18 18 0 0 1-3.2 4.1M6.4 6.4A20 20 0 0 0 2 12s3.5 7 10 7a12 12 0 0 0 5.1-1.2M10 10a3 3 0 0 0 4 4"/></symbol>
|
||
<symbol id="i-code" viewBox="0 0 24 24"><path d="m7 7-5 5 5 5m10-10 5 5-5 5M14 4l-4 16"/></symbol>
|
||
</svg>
|
||
|
||
<section id="auth-screen" class="auth-layout">
|
||
<div class="intro">
|
||
<a class="brand" href="/" aria-label="n1k0der, главная"><span class="brand-mark"><i></i><i></i><i></i></span>n1k0der<span class="brand-dot">.</span></a>
|
||
<div class="intro-copy"><h1>Мессенджер</h1></div>
|
||
<div id="mascot-stage" class="mascot-stage" aria-hidden="true" data-mood="idle">
|
||
<div class="mascot-conversation"><div class="mascot-bubble mascot-bubble-filled"><span></span><span></span><span></span></div><div class="mascot-bubble mascot-bubble-outline"><i></i><i></i></div></div>
|
||
<svg class="spirit-svg" viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" stroke="none" stroke-linecap="round" stroke-linejoin="round">
|
||
<defs>
|
||
<linearGradient id="kolo-skin" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#b2b17a"/><stop offset="1" stop-color="#7b814a"/></linearGradient>
|
||
<linearGradient id="kolo-cloth" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#916c46"/><stop offset="1" stop-color="#614a34"/></linearGradient>
|
||
</defs>
|
||
<ellipse cx="149" cy="281" rx="91" ry="9" fill="#131710" opacity=".5"/>
|
||
<g class="spirit-motion"><g class="spirit-lean">
|
||
<path d="M112 209Q89 216 83 253L77 274Q106 288 149 283Q190 290 223 274L214 252Q209 218 186 209" fill="url(#kolo-cloth)" stroke="#4d432e" stroke-width="3"/>
|
||
<path d="M106 221Q91 243 99 266L121 255L135 279L153 264L171 280L188 257L205 271L201 233" fill="#a08050" opacity=".45"/>
|
||
<path d="M111 200Q95 207 96 233Q150 257 203 232Q200 208 185 200" fill="url(#kolo-skin)" stroke="#5d653c" stroke-width="3"/>
|
||
<path d="M109 217L190 253" stroke="#59452f" stroke-width="12"/><path d="M109 215L190 251" stroke="#aa8557" stroke-width="4"/>
|
||
<path d="M179 252Q169 257 177 278Q188 286 202 277L204 258Q191 249 179 252" fill="#83613e" stroke="#57442f" stroke-width="3"/>
|
||
<path d="M90 253Q144 267 211 253" fill="none" stroke="#bc965e" stroke-width="5" stroke-linecap="round"/>
|
||
<g class="kolo-head">
|
||
<g class="kolo-ear kolo-ear-left">
|
||
<path d="M108 112Q77 84 27 91L45 109L52 101L57 119Q73 156 111 157" fill="#91965b" stroke="#555d37" stroke-width="3.5"/>
|
||
<path d="M91 123L50 106Q66 137 97 143" fill="#686f43"/><path d="M83 121L63 113" stroke="#b7b47c" stroke-width="4"/>
|
||
<path d="M62 139C40 137 40 167 59 165C69 164 73 156 70 150" fill="none" stroke="#b48c47" stroke-width="7"/>
|
||
<path d="M55 141Q44 147 49 157" fill="none" stroke="#e4c275" stroke-width="2.5"/>
|
||
</g>
|
||
<g class="kolo-ear kolo-ear-right">
|
||
<path d="M195 112Q224 89 275 93Q279 114 263 121Q267 110 258 109L245 135Q226 158 194 155" fill="#91965b" stroke="#555d37" stroke-width="3.5"/>
|
||
<path d="M209 124L259 102Q249 132 211 142" fill="#686f43"/><path d="M220 121L246 109" stroke="#b7b47c" stroke-width="4"/>
|
||
</g>
|
||
<path d="M96 120Q89 87 116 77Q151 57 188 79Q215 93 209 131L204 169Q197 209 152 216Q107 212 96 174Z" fill="url(#kolo-skin)" stroke="#555d37" stroke-width="3.5"/>
|
||
<path d="M101 104L94 92L111 93L109 80L123 85L135 72L145 78L163 68L174 79L190 76L191 88L205 89L201 101" fill="#707c43"/>
|
||
<path d="M112 86L116 78M129 81L134 73M179 81L180 72M193 90L201 83" stroke="#b0b57a" stroke-width="4"/>
|
||
<g class="kolo-mushrooms" stroke="#68513a" stroke-width="3" stroke-linejoin="round">
|
||
<path d="M121 83L112 56M152 76L155 38M181 85L193 61" fill="none" stroke="#b6a375" stroke-width="8"/>
|
||
<path d="M98 56Q111 34 125 55Q113 61 98 56Z" fill="#bd8b51"/>
|
||
<path d="M137 38Q154 10 174 38Q155 47 137 38Z" fill="#c49457"/>
|
||
<path d="M179 61Q194 37 208 61Q193 66 179 61Z" fill="#b48048"/>
|
||
<g fill="#edd2a0" stroke="none" opacity=".7"><ellipse cx="151" cy="33" rx="2.5" ry="1.8"/><circle cx="164" cy="35" r="1.7"/><circle cx="117" cy="52" r="1.5"/><ellipse cx="198" cy="57" rx="2" ry="1.5"/></g>
|
||
<path d="M146 34Q152 26 160 29M106 52L111 47M190 56L195 51" fill="none" stroke="#e2bd7e" stroke-width="3"/>
|
||
</g>
|
||
<path d="M110 114Q122 99 137 109M165 109Q184 98 196 113" fill="none" stroke="#6b743f" stroke-width="10" stroke-linecap="round"/>
|
||
<path d="M114 109Q126 102 137 107M166 107Q181 101 192 108" fill="none" stroke="#bec18a" stroke-width="3" stroke-linecap="round"/>
|
||
<g class="spirit-face">
|
||
<ellipse cx="116" cy="164" rx="10" ry="5" fill="#c9a277" opacity=".32"/>
|
||
<ellipse cx="188" cy="164" rx="9" ry="5" fill="#c9a277" opacity=".32"/>
|
||
<g class="spirit-eye spirit-eye-left"><path d="M107 131Q120 116 138 129Q133 150 119 147Q108 145 107 131" fill="#e6dab3" stroke="#687044" stroke-width="2"/><g class="spirit-pupil"><ellipse cx="125" cy="133" rx="8" ry="10" fill="#885d30"/><ellipse cx="127" cy="134" rx="4.7" ry="7" fill="#292b20"/><circle cx="129" cy="129" r="2.3" fill="#fff7df"/></g></g>
|
||
<g class="spirit-eye spirit-eye-right"><path d="M165 129Q182 116 195 131Q194 147 181 148Q167 148 165 129" fill="#e6dab3" stroke="#687044" stroke-width="2"/><g class="spirit-pupil"><ellipse cx="179" cy="133" rx="8" ry="10" fill="#885d30"/><ellipse cx="181" cy="134" rx="4.7" ry="7" fill="#292b20"/><circle cx="183" cy="129" r="2.3" fill="#fff7df"/></g></g>
|
||
<path d="M146 133Q141 149 138 154Q151 168 166 154L159 139" fill="#a38d52" stroke="#7f7944" stroke-width="2"/>
|
||
<path d="M144 151Q152 146 159 152" fill="none" stroke="#d1b57b" stroke-width="4" stroke-linecap="round"/>
|
||
<path d="M107 155Q115 162 128 158M178 160Q189 163 197 155" fill="none" stroke="#6e7843" stroke-width="2" stroke-linecap="round"/>
|
||
<path class="spirit-smile" d="M122 179Q149 192 180 174Q168 197 144 193Q128 190 122 179" fill="#4f5935"/>
|
||
<path class="kolo-tooth" d="M167 181L174 178L172 185L167 185Z" fill="#ede2b9"/>
|
||
<path d="M135 201Q148 205 161 200" fill="none" stroke="#bcc18a" stroke-width="3" stroke-linecap="round"/>
|
||
<ellipse class="spirit-gasp" cx="151" cy="183" rx="6" ry="8" fill="#4f5935"/>
|
||
</g>
|
||
<circle cx="111" cy="93" r="3" fill="#c0bf82"/><circle cx="188" cy="100" r="3" fill="#b1b77b"/>
|
||
</g>
|
||
<g class="spirit-hand spirit-hand-left" stroke="#5d653c" stroke-width="2.5" stroke-linejoin="round">
|
||
<path d="M111 218Q89 231 77 211L70 194Q67 187 72 185Q76 183 80 193L84 199L80 179Q79 173 84 173Q89 172 91 181L94 196L95 179Q96 172 101 175L104 199Q108 192 113 194Q118 197 110 207Z" fill="#9ca56a"/>
|
||
<path d="M79 205Q89 211 99 204" fill="none" stroke="#bfc68b" stroke-width="3"/>
|
||
</g>
|
||
<g class="spirit-hand spirit-hand-right" stroke="#5d653c" stroke-width="2.5" stroke-linejoin="round">
|
||
<path d="M191 218Q213 231 225 211L232 194Q235 187 230 185Q226 183 222 193L218 199L222 179Q223 173 218 173Q213 172 211 181L208 196L207 179Q206 172 201 175L198 199Q194 192 189 194Q184 197 192 207Z" fill="#9ca56a"/>
|
||
<path d="M203 214L220 220L215 233L198 227Z" fill="#d5c5a2" stroke="#a99b7e" stroke-width="2"/>
|
||
<path d="M202 218L217 225M200 223L215 230" stroke="#f0dfba" stroke-width="2"/>
|
||
</g>
|
||
</g></g>
|
||
</svg>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="auth-side">
|
||
<div class="auth-card">
|
||
<div class="auth-switch" aria-label="Выберите действие"><button id="tab-login" class="active" type="button" aria-pressed="true">Вход</button><button id="tab-register" type="button" aria-pressed="false">Регистрация</button></div>
|
||
<div id="login-panel"><h2>С возвращением.</h2>
|
||
<form id="login-form"><label>Имя пользователя<input id="login-username" name="username" autocomplete="username" placeholder="например, n1k0der" pattern="[a-z0-9_]{3,32}" required autocapitalize="none" spellcheck="false"></label><label>Пароль<span class="password-field"><input id="login-password" aria-label="Пароль" name="password" type="password" autocomplete="current-password" placeholder="Пароль" required><button class="password-toggle" type="button" data-password-toggle="login-password" aria-label="Показать пароль" aria-pressed="false"><svg><use href="#i-eye"/></svg></button></span></label><button class="button primary wide" type="submit">Войти <svg class="action-arrow" aria-hidden="true"><use href="#i-arrow-up-right"/></svg></button></form>
|
||
</div>
|
||
<div id="register-panel" hidden><h2>Создайте аккаунт.</h2><p class="muted">Присоединяйтесь к разговору.</p>
|
||
<form id="register-form"><label>Имя<input id="register-name" name="display_name" autocomplete="nickname" placeholder="Никита" required></label><label>Имя пользователя<input id="register-username" name="username" autocomplete="username" placeholder="n1k0der" pattern="[a-z0-9_]{3,32}" required autocapitalize="none" spellcheck="false"><span class="field-note">3-32 символа: a-z, цифры и _</span></label><label>Пароль<span class="password-field"><input id="register-password" aria-label="Пароль" name="password" type="password" autocomplete="new-password" placeholder="Придумайте пароль" required><button class="password-toggle" type="button" data-password-toggle="register-password" aria-label="Показать пароль" aria-pressed="false"><svg><use href="#i-eye"/></svg></button></span><span class="field-note">12-128 символов</span></label><button class="button primary wide" type="submit">Создать аккаунт <svg class="action-arrow" aria-hidden="true"><use href="#i-arrow-up-right"/></svg></button></form>
|
||
</div>
|
||
<img id="auth-error-art" class="auth-error-art" src="/assets/kolovertysh-reconnect-320.webp" width="320" height="320" alt="" loading="lazy" decoding="async" hidden>
|
||
<p id="auth-notice" class="form-notice" role="status" aria-live="polite" hidden></p>
|
||
</div>
|
||
<div class="auth-bottom">n1k0der<button class="diagnostics-toggle" type="button" data-diagnostics-toggle aria-controls="diagnostics-panel" aria-expanded="false"><svg><use href="#i-code"/></svg>Запросы API</button></div>
|
||
</div>
|
||
</section>
|
||
|
||
<section id="app-screen" class="app-shell" hidden>
|
||
<aside class="sidebar">
|
||
<div class="sidebar-top"><a class="brand" href="/" aria-label="n1k0der"><span class="brand-mark"><i></i><i></i><i></i></span>n1k0der<span class="brand-dot">.</span></a><button class="icon-button" id="refresh-chats" title="Обновить чаты" aria-label="Обновить чаты"><svg><use href="#i-refresh"/></svg></button></div>
|
||
<div class="sidebar-heading"><div><span class="eyebrow">На связи</span><h2>Ваши чаты<span id="chat-count" class="count"></span></h2></div><button id="new-chat" class="icon-button filled" aria-label="Создать чат" title="Создать чат"><svg><use href="#i-plus"/></svg></button></div>
|
||
<label class="search-field"><span class="visually-hidden">Поиск среди загруженных чатов</span><svg aria-hidden="true"><use href="#i-search"/></svg><input id="chat-search" placeholder="Найти разговор" type="search" autocomplete="off"></label>
|
||
<div id="chat-list" class="chat-list" aria-label="Список чатов"></div><button id="more-chats" class="text-button" hidden>Ещё чаты</button>
|
||
<button id="open-operations" class="diagnostics-toggle sidebar-diagnostics" type="button" hidden><svg viewBox="0 0 48 48" aria-hidden="true"><use href="/assets/system-icons.svg#overview"/></svg>Система</button>
|
||
<button class="diagnostics-toggle sidebar-diagnostics" type="button" data-diagnostics-toggle aria-controls="diagnostics-panel" aria-expanded="false"><svg><use href="#i-code"/></svg>Запросы API</button>
|
||
<div class="profile"><button id="open-profile" class="profile-main" title="Открыть профиль"><span id="profile-avatar" class="avatar"></span><span class="profile-text"><strong id="profile-name"></strong><span id="profile-username"></span></span></button><button id="logout" class="icon-button" aria-label="Выйти" title="Выйти"><svg><use href="#i-exit"/></svg></button></div>
|
||
</aside>
|
||
<main class="workspace">
|
||
<div id="welcome" class="welcome"><img class="welcome-illustration" src="/assets/kolovertysh-message-320.webp" srcset="/assets/kolovertysh-message-320.webp 320w, /assets/kolovertysh-message-640.webp 640w" sizes="(max-width: 720px) 200px, 260px" width="640" height="480" alt="" decoding="async"><h1>Ваши чаты</h1><p>Выберите чат или создайте новый.</p><button id="welcome-new-chat" class="button primary"><svg><use href="#i-plus"/></svg>Создать чат</button></div>
|
||
<div id="workspace-error" class="state-error welcome" hidden><img src="/assets/kolovertysh-reconnect-320.webp" width="320" height="320" alt="" loading="lazy" decoding="async"><h2>Чаты пока не загрузились</h2><p>Проверьте соединение и попробуйте ещё раз.</p><button id="retry-chats" class="button primary" type="button">Повторить</button></div>
|
||
<section id="conversation" class="conversation" hidden>
|
||
<header class="chat-header"><button id="back-to-chats" class="icon-button mobile-only" aria-label="К списку чатов"><svg><use href="#i-arrow"/></svg></button><span id="current-avatar" class="avatar chat-avatar"></span><div class="chat-heading"><h2 id="current-title"></h2><span id="current-members"></span></div><button id="refresh-messages" class="icon-button" aria-label="Обновить сообщения" title="Обновить сообщения"><svg><use href="#i-refresh"/></svg></button><button id="show-members" class="icon-button" aria-label="Участники чата" title="Участники чата"><svg><use href="#i-users"/></svg></button><button class="icon-button mobile-only" type="button" data-diagnostics-toggle aria-label="Запросы API" title="Запросы API" aria-controls="diagnostics-panel" aria-expanded="false"><svg><use href="#i-code"/></svg></button></header>
|
||
<div class="message-region"><div id="message-scroll" class="message-scroll"><div class="history-control"><button id="older-messages" class="text-button" hidden>Ранее в разговоре ↑</button></div><div id="messages-loading" class="messages-loading" aria-hidden="true" hidden><i></i><i></i><i></i></div><div id="message-list" class="message-list" aria-label="Сообщения"></div><div id="empty-conversation" class="empty-conversation" hidden><img src="/assets/kolovertysh-message-320.webp" width="320" height="320" alt="" loading="lazy" decoding="async"><p>Нет сообщений</p><span>Напишите первое сообщение.</span></div><div id="conversation-error" class="state-error" hidden><img src="/assets/kolovertysh-reconnect-320.webp" width="320" height="320" alt="" loading="lazy" decoding="async"><h3>Не удалось загрузить сообщения</h3><p>Попробуйте обновить разговор.</p><button id="retry-messages" class="button secondary" type="button">Повторить</button></div></div><button id="jump-latest" class="jump-latest" type="button" hidden>К последним ↓</button></div>
|
||
<form id="message-form" class="composer"><label class="visually-hidden" for="message-input">Сообщение</label><input id="image-file" type="file" accept="image/png,image/jpeg" hidden><button id="pick-file" class="icon-button" type="button" aria-label="Добавить изображение" title="Добавить изображение"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m8 13 6-6a3 3 0 0 1 4 4l-8 8a5 5 0 0 1-7-7l9-9"/></svg></button><textarea id="message-input" rows="1" placeholder="Сообщение…" enterkeyhint="send"></textarea><button id="send-message" class="send-button" aria-label="Отправить сообщение" title="Отправить сообщение" disabled><svg><use href="#i-send"/></svg></button><div id="attached-files" class="attached-files"></div><div class="composer-note"><span>Enter - отправить · Shift + Enter - новая строка</span><span id="message-count">0 / 4000</span></div></form>
|
||
</section>
|
||
</main>
|
||
</section>
|
||
<aside id="diagnostics-panel" class="diagnostics-panel" aria-labelledby="diagnostics-title" hidden>
|
||
<div class="diagnostics-heading"><div><span class="eyebrow">HTTP-запросы</span><h2 id="diagnostics-title">Запросы API</h2></div><button id="diagnostics-close" class="icon-button" type="button" aria-label="Закрыть панель запросов"><svg><use href="#i-close"/></svg></button></div>
|
||
<section class="cluster-section" aria-labelledby="cluster-title">
|
||
<div class="diagnostics-section-heading"><h3 id="cluster-title">Живая схема</h3><span class="cluster-live">LIVE</span></div>
|
||
<p id="cluster-status" class="cluster-status" role="status">Схема доступна после входа</p>
|
||
<div class="cluster-graph">
|
||
<div class="cluster-node cluster-browser"><strong>Ваш браузер</strong><span>HTTP · Bearer</span></div>
|
||
<div id="cluster-balancer" class="cluster-node cluster-balancer" data-state="unknown"><strong>HAProxy</strong><span>Round robin · health check</span></div>
|
||
<div id="cluster-instances" class="cluster-instances" aria-label="Экземпляры API"></div>
|
||
<div class="cluster-stores"><div id="cluster-postgres" class="cluster-node" data-state="unknown"><strong>PostgreSQL</strong><span>Сообщения · реакции · сессии</span></div><div id="cluster-redis" class="cluster-node" data-state="unknown"><strong>Redis</strong><span>Кэш сессий · heartbeat</span></div></div>
|
||
</div>
|
||
<p id="cluster-detail" class="cluster-detail">Подсветка — реальный X-Instance-Id ответа.</p>
|
||
<button id="cluster-probe" class="text-button" type="button">Отправить проверочный запрос ↗</button>
|
||
<p class="cluster-note">Счётчики — ответы в этой вкладке с момента входа. Heartbeat обновляется раз в 2 с; после 8 с тишины API отмечается недоступным. Это отдельная проверка от health check HAProxy.</p>
|
||
<details class="cluster-demo"><summary>Показать отказоустойчивость</summary><p class="cluster-note">В терминале из папки проекта выполните команду. Она остановит один API на 15 с и автоматически запустит его снова. В это время отправляйте сообщения и следите за схемой.</p><code id="cluster-command" class="cluster-command">Ожидаем работающие API…</code><button id="cluster-copy" class="text-button" type="button" disabled>Скопировать команду</button></details>
|
||
</section>
|
||
<div class="diagnostics-summary"><div><span class="diagnostics-label">Пользователь</span><strong id="diagnostics-user">Вход не выполнен</strong></div><div><span class="diagnostics-label">До конца сессии</span><strong id="diagnostics-session">-</strong></div></div>
|
||
<section class="diagnostics-history"><span class="diagnostics-label">История выбранного чата</span><strong id="diagnostics-chat">Выберите чат</strong><p id="diagnostics-messages">Сообщения ещё не загружены</p></section>
|
||
<section class="diagnostics-request"><div class="diagnostics-section-heading"><h3>Последний запрос</h3><time id="diagnostics-request-time"></time></div><p id="diagnostics-empty" class="diagnostics-note">Войдите, откройте чат или отправьте сообщение.</p><div id="diagnostics-request-details" hidden><div class="diagnostics-request-line"><span id="diagnostics-method" class="diagnostics-method"></span><span id="diagnostics-status" class="diagnostics-status"></span></div><span id="diagnostics-origin" class="diagnostics-label diagnostics-origin"></span><code id="diagnostics-path" class="diagnostics-path"></code><p id="diagnostics-result" class="diagnostics-result" role="status" aria-live="polite"></p><dl class="diagnostics-metrics"><div><dt>Авторизация</dt><dd id="diagnostics-auth"></dd></div><div><dt>Время запроса</dt><dd id="diagnostics-duration"></dd></div></dl><span class="diagnostics-label">X-Instance-Id</span><code id="diagnostics-instance-id" class="diagnostics-request-id"></code><span class="diagnostics-label">X-Request-Id</span><code id="diagnostics-request-id" class="diagnostics-request-id"></code></div></section>
|
||
<ol id="diagnostics-previous" class="diagnostics-previous" aria-label="Предыдущие запросы" hidden></ol>
|
||
<p id="diagnostics-background" class="diagnostics-background" hidden></p>
|
||
</aside>
|
||
<div id="toast" class="toast" role="status" aria-live="polite" hidden></div>
|
||
|
||
<dialog id="new-chat-dialog"><div class="dialog-heading"><h2>Собрать чат</h2><button class="icon-button" data-close-dialog aria-label="Закрыть"><svg><use href="#i-close"/></svg></button></div><form id="new-chat-form"><label>Название чата<input id="new-chat-title" placeholder="Название" required></label><label>Логины или ID участников<textarea id="new-chat-members" rows="3" placeholder="Например, @n1k0der" spellcheck="false"></textarea><span class="field-note">Укажите логины через запятую. Вы добавитесь автоматически.</span></label><p id="chat-dialog-notice" class="form-notice" role="status" hidden></p><div class="dialog-actions"><button class="button secondary" type="button" data-close-dialog>Отмена</button><button class="button primary" type="submit">Создать чат</button></div></form></dialog>
|
||
<dialog id="profile-dialog"><div class="dialog-heading"><h2>Ваш профиль</h2><button class="icon-button" data-close-dialog aria-label="Закрыть"><svg><use href="#i-close"/></svg></button></div><p id="profile-details" class="muted"></p><label>Ваш ID<input id="my-id" readonly spellcheck="false"></label><p class="field-note">Поделитесь ID для приглашения в чат.</p><button id="copy-id" class="button primary wide"><svg><use href="#i-copy"/></svg>Скопировать ID</button></dialog>
|
||
<dialog id="members-dialog"><div class="dialog-heading"><h2>Участники чата</h2><button class="icon-button" data-close-dialog aria-label="Закрыть"><svg><use href="#i-close"/></svg></button></div><div id="members-list" class="members-list"></div></dialog>
|
||
</body>
|
||
</html>
|