Add administration submenu and refine controls and toast states
No files matched your search
@@ -47,3 +47,11 @@ icons/icons.js — общий источник 64 линейных иконок.
|
|||||||
SSH-консоль и log-ридер — собственные страницы Dock, а также образцы на странице компонентов. Терминал имеет чёрный фон #000 в обеих темах; текст и ANSI-палитра рассчитаны на этот фон. Обрамление и инструменты используют выбранную тему Dock. Площадь терминала автоматически пересчитывает количество строк и колонок. Перехват клавиатуры ограничен фокусом терминала, предусмотрен доступный выход Ctrl+Shift+M.
|
SSH-консоль и log-ридер — собственные страницы Dock, а также образцы на странице компонентов. Терминал имеет чёрный фон #000 в обеих темах; текст и ANSI-палитра рассчитаны на этот фон. Обрамление и инструменты используют выбранную тему Dock. Площадь терминала автоматически пересчитывает количество строк и колонок. Перехват клавиатуры ограничен фокусом терминала, предусмотрен доступный выход Ctrl+Shift+M.
|
||||||
|
|
||||||
Log-ридер использует моноширинные строки, явные уровни DEBUG/INFO/WARN/ERROR, фильтры и отдельную панель события. На мобильном метаданные переносятся над сообщением, без горизонтального скролла всей страницы. Открытие события останавливает следование, чтобы поток не сдвигал выбранные данные.
|
Log-ридер использует моноширинные строки, явные уровни DEBUG/INFO/WARN/ERROR, фильтры и отдельную панель события. На мобильном метаданные переносятся над сообщением, без горизонтального скролла всей страницы. Открытие события останавливает следование, чтобы поток не сдвигал выбранные данные.
|
||||||
|
|
||||||
|
## Группы навигации и обратная связь
|
||||||
|
|
||||||
|
В Dock поддерживаются раскрываемые группы: «Администрирование» объединяет SSH-консоль и логи. В раскрытом меню активная дочерняя страница получает подложку, а заголовок группы — акцент текста/иконки; в свёрнутом Dock подложка отмечает сам раздел. Вложенность обозначена отступом и тонкой направляющей. Открытие группы не сбрасывает текущую рабочую область.
|
||||||
|
|
||||||
|
Самостоятельные подписанные радио и checkbox оформляются в choice-pill: одинаковая вертикальная ось, округлая общая область нажатия и выбранное состояние. Для readonly сохраняются выделение и копирование. Компонентные образцы соблюдают зазоры между соседними контролами.
|
||||||
|
|
||||||
|
Тосты имеют четыре семантических состояния: success, info, warning и error. Цвет подкрепляется иконкой, заголовком и текстом. Новый токен color.warning задаёт янтарный акцент: #795519 в светлой и #e8c889 в тёмной теме. Тосты не перехватывают фокус при появлении; ошибка не скрывается по таймеру.
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
node scripts/serve.mjs
|
node scripts/serve.mjs
|
||||||
```
|
```
|
||||||
|
|
||||||
Просмотр: [http://127.0.0.1:4173/](http://127.0.0.1:4173/). Нужен Node.js 22+ или Python 3; зависимости для просмотра не требуются. Альтернатива: `python scripts/serve.py`. Оба сервера запрещают кэширование, чтобы после обновления открывался актуальный Dock. Прямой file:// не поддерживает ES modules.
|
Просмотр: [http://127.0.0.1:4173/](http://127.0.0.1:4173/). Нужен Node.js 22+ или Python 3; зависимости для просмотра не требуются. Альтернатива: `python scripts/serve.py`. Оба сервера запрещают кэширование, чтобы после обновления открывался актуальный Dock. Python-сервер имеет увеличенную очередь подключений; в Windows порт закрепляется за одним экземпляром. Прямой file:// не поддерживает ES modules.
|
||||||
|
|
||||||
## Иконки
|
## Иконки
|
||||||
|
|
||||||
@@ -28,11 +28,11 @@ node scripts/serve.mjs
|
|||||||
|
|
||||||
## Возможности
|
## Возможности
|
||||||
|
|
||||||
Самостоятельный сайт Dock на весь экран, без внешней панели просмотра и iframe. Разделы открываются собственной навигацией, URL поддерживают перезагрузку и Back/Forward. Светлая/тёмная тема выбирается в личном кабинете и сохраняется. Параметры locale/density/accent доступны в URL; внешних регуляторов нет. Компоненты и токены — собственные страницы Dock. Экспорт находится на странице токенов. Старый /playground/ перенаправляет на корень с сохранением параметров.
|
Самостоятельный сайт Dock на весь экран, без внешней панели просмотра и iframe. SSH-консоль и логи сгруппированы в раскрываемое «Администрирование». Разделы открываются собственной навигацией, URL поддерживают перезагрузку и Back/Forward. Светлая/тёмная тема выбирается в личном кабинете и сохраняется. Параметры locale/density/accent доступны в URL; внешних регуляторов нет. Компоненты и токены — собственные страницы Dock. Экспорт находится на странице токенов. Старый /playground/ перенаправляет на корень с сохранением параметров.
|
||||||
|
|
||||||
Строки таблиц, сервисов, событий, сеансов, приложений и настроек имеют заметные hover/focus и состояния выбора. Полоса прокрутки оформлена под тему; место для неё резервируется, поэтому меню и диалоги не сдвигают контент.
|
Строки таблиц, сервисов, событий, сеансов, приложений и настроек имеют заметные hover/focus и состояния выбора. Полоса прокрутки оформлена под тему; место для неё резервируется, поэтому меню и диалоги не сдвигают контент.
|
||||||
|
|
||||||
Работают поиск, фильтры, пагинация, редактирование пользователей и доступов, диалоги, меню аккаунта и command palette. Панель раскрывается при наведении; a/ поддерживает клик, клавиатуру и touch.
|
В библиотеке компонентов показаны четыре состояния тостов, readonly-поле и подписанные радио/чекбоксы в капсулах. Работают поиск, фильтры, пагинация, редактирование пользователей и доступов, диалоги, меню аккаунта и command palette. Панель раскрывается при наведении; a/ поддерживает клик, клавиатуру и touch.
|
||||||
|
|
||||||
Личный кабинет и состояния входа — демонстрации на тестовых данных. Сам SSO Service не изменяется; реальная авторизация, письма и Passkey не выполняются. Данные примера хранятся в sessionStorage вкладки; пароли и токены не сохраняются. Сброс — на экране состояний входа.
|
Личный кабинет и состояния входа — демонстрации на тестовых данных. Сам SSO Service не изменяется; реальная авторизация, письма и Passkey не выполняются. Данные примера хранятся в sessionStorage вкладки; пароли и токены не сохраняются. Сброс — на экране состояний входа.
|
||||||
|
|
||||||
@@ -49,6 +49,9 @@ npm run test:dock
|
|||||||
npm run test:identity
|
npm run test:identity
|
||||||
npm run test:approved
|
npm run test:approved
|
||||||
npm run test:site
|
npm run test:site
|
||||||
|
npm run test:icons
|
||||||
|
npm run test:workspaces
|
||||||
|
npm run test:feedback
|
||||||
```
|
```
|
||||||
|
|
||||||
Suite использует Edge на Windows или PLAYWRIGHT_EXECUTABLE_PATH. Для другого порта задайте BASE_URL. [QA](references/QA.md), [проверки утверждённого Dock](references/approved-dock/README.md).
|
Suite использует Edge на Windows или PLAYWRIGHT_EXECUTABLE_PATH. Для другого порта задайте BASE_URL. [QA](references/QA.md), [проверки утверждённого Dock](references/approved-dock/README.md).
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Меню аккаунта содержит только Аккаунт, доступную по роли Панель управления, Сменить аккаунт и Выйти из SSO. Настройки и приложения доступны через навигацию личного кабинета.
|
Меню аккаунта содержит только Аккаунт, доступную по роли Панель управления, Сменить аккаунт и Выйти из SSO. Настройки и приложения доступны через навигацию личного кабинета.
|
||||||
|
|
||||||
Навигация Dock: выбранный пункт сохраняет цвет при наведении. Переход по меню сохраняет раскрытую панель и режим открытия (hover или закрепление); Escape, подложка и уход мыши из hover-меню закрывают её.
|
Навигация Dock: выбранный пункт сохраняет цвет при наведении. «Администрирование» — disclosure-группа с SSH-консолью и логами. aria-expanded и aria-controls описывают её состояние; закрытые дети inert и aria-hidden. В узком Dock видна только иконка раздела. Переход на дочернюю страницу сохраняет раскрытие Dock и группы, повторный клик не пересоздаёт рабочую область. Enter/Space переключают группу, Right открывает и фокусирует первый пункт, Left закрывает, Up/Down перемещают фокус внутри группы. Escape сначала закрывает подменю, затем Dock; модифицированные стрелки сохраняют браузерное поведение. Переход по меню сохраняет раскрытую панель и режим открытия (hover или закрепление); Escape, подложка и уход мыши из hover-меню закрывают её.
|
||||||
|
|
||||||
Иконки: только icons/icons.js, SVG 24×24 со stroke 1.5 и круглыми окончаниями. В Dock ось значка совпадает с центром подложки и аватара; при раскрытии значок не сдвигается. Клавиатурный фокус внутри панели рисуется с inset 2px. Табличные checkbox центрируются по высоте строки; disabled-кнопки не получают hover-фон.
|
Иконки: только icons/icons.js, SVG 24×24 со stroke 1.5 и круглыми окончаниями. В Dock ось значка совпадает с центром подложки и аватара; при раскрытии значок не сдвигается. Клавиатурный фокус внутри панели рисуется с inset 2px. Табличные checkbox центрируются по высоте строки; disabled-кнопки не получают hover-фон.
|
||||||
|
|
||||||
@@ -12,6 +12,23 @@
|
|||||||
|
|
||||||
Рабочие области: SSH — xterm.js, black surface, resize, управляющие коды, history/completion, clipboard, поиск, fullscreen и Keyboard Lock с fallback. Перехват действует только в активном терминале; Ctrl+Shift+M возвращает фокус панели, выключенный ввод не перехватывает Tab. Log reader — текст/level/source-фильтры, пауза с очередью, follow, ограниченные окна строк, детали JSON, безопасное чтение файлов и экспорт. Контракт транспорта, ограничения браузера и cleanup описаны в patterns/WORKSPACES.md.
|
Рабочие области: SSH — xterm.js, black surface, resize, управляющие коды, history/completion, clipboard, поиск, fullscreen и Keyboard Lock с fallback. Перехват действует только в активном терминале; Ctrl+Shift+M возвращает фокус панели, выключенный ввод не перехватывает Tab. Log reader — текст/level/source-фильтры, пауза с очередью, follow, ограниченные окна строк, детали JSON, безопасное чтение файлов и экспорт. Контракт транспорта, ограничения браузера и cleanup описаны в patterns/WORKSPACES.md.
|
||||||
|
|
||||||
|
Поля: readonly остаётся фокусируемым и позволяет выделение/копирование, но не редактирование. Программный фокус #content не рисует рамку вокруг всей страницы. В sample-control-row зазор 12px и общая высота контролов; на мобильном они стоят друг под другом.
|
||||||
|
|
||||||
|
Choice pill: подписанные checkbox/radio помещаются внутрь label.choice-pill со span текста. Вся капсула кликабельна; native input сохраняет поведение и клавиатуру. Контрол и подпись центрированы, checked меняет фон/рамку/цвет, focus-visible обводит капсулу; минимальная высота 40px, на мобильном 44px. Табличные checkbox остаются компактными.
|
||||||
|
|
||||||
|
Тосты: createNotifier из toast.js, типы success/info/warning/error. Иконка, заголовок, текст, семантический акцент и закрытие. Таймеры: 4/5/8 секунд, ошибка без автоматического скрытия. Hover и фокус приостанавливают таймер. Повторный вызов заменяет активное уведомление. Error использует role=alert/assertive; остальные status/polite. Текст вставляется через textContent. Тост помещается в активный dialog и показывается в верхнем слое: затемнение не перекрывает его, закрытие доступно мышью и клавиатурой, фокус возвращается инициатору.
|
||||||
|
|
||||||
|
```js
|
||||||
|
import { createNotifier } from "./components/toast.js";
|
||||||
|
const notify = createNotifier(document.querySelector("#toast"), {
|
||||||
|
t: (ru, en) => ru,
|
||||||
|
});
|
||||||
|
notify("Изменения сохранены", { type: "success" });
|
||||||
|
notify("Проверьте соединение", { type: "warning", title: "Нет ответа" });
|
||||||
|
notify("Операция завершилась ошибкой", { type: "error" });
|
||||||
|
notify.dismiss();
|
||||||
|
```
|
||||||
|
|
||||||
Исполняемые образцы: экран Components; таблица и фильтры — Users; вкладки — Settings; вход — Authentication. Основная стилизация в `system.css`.
|
Исполняемые образцы: экран Components; таблица и фильтры — Users; вкладки — Settings; вход — Authentication. Основная стилизация в `system.css`.
|
||||||
|
|
||||||
| Компонент | Состояния и взаимодействия |
|
| Компонент | Состояния и взаимодействия |
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ export async function exportSystem(
|
|||||||
"icons/anidev-dock-icons.zip",
|
"icons/anidev-dock-icons.zip",
|
||||||
...iconNames.map((name) => `icons/svg/${name}.svg`),
|
...iconNames.map((name) => `icons/svg/${name}.svg`),
|
||||||
"components/system.css",
|
"components/system.css",
|
||||||
|
"components/toast.js",
|
||||||
"components/workspaces.css",
|
"components/workspaces.css",
|
||||||
"components/ssh-console.js",
|
"components/ssh-console.js",
|
||||||
"components/log-reader.js",
|
"components/log-reader.js",
|
||||||
|
|||||||
@@ -974,25 +974,88 @@ dialog > p {
|
|||||||
background: var(--color-accent);
|
background: var(--color-accent);
|
||||||
color: var(--color-on-accent);
|
color: var(--color-on-accent);
|
||||||
}
|
}
|
||||||
#toast {
|
:is(#toast, .anidev-toast) {
|
||||||
|
--toast-tone: var(--color-accent);
|
||||||
position: fixed;
|
position: fixed;
|
||||||
inset: auto;
|
inset: auto;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border: 0;
|
bottom: 24px;
|
||||||
bottom: 25px;
|
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
background: var(--color-text);
|
width: min(420px, calc(100% - 32px));
|
||||||
color: var(--color-bg);
|
max-width: calc(100% - 32px);
|
||||||
padding: 12px 20px;
|
background: var(--color-surface);
|
||||||
|
color: var(--color-text);
|
||||||
|
border: 1px solid
|
||||||
|
color-mix(in srgb, var(--toast-tone) 30%, var(--color-border));
|
||||||
|
border-left: 3px solid var(--toast-tone);
|
||||||
border-radius: var(--radius-control);
|
border-radius: var(--radius-control);
|
||||||
font-size: 14px;
|
box-shadow: 0 8px 32px #0003;
|
||||||
|
padding: 14px;
|
||||||
|
font-size: 13px;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
display: none;
|
display: none;
|
||||||
max-width: calc(100% - 32px);
|
|
||||||
}
|
}
|
||||||
#toast:popover-open {
|
:is(#toast, .anidev-toast)[data-type="success"] {
|
||||||
display: block;
|
--toast-tone: var(--color-success);
|
||||||
|
}
|
||||||
|
:is(#toast, .anidev-toast)[data-type="warning"] {
|
||||||
|
--toast-tone: var(--color-warning);
|
||||||
|
}
|
||||||
|
:is(#toast, .anidev-toast)[data-type="error"] {
|
||||||
|
--toast-tone: var(--color-danger);
|
||||||
|
}
|
||||||
|
:is(#toast, .anidev-toast):popover-open {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 12px;
|
||||||
|
animation: toast-enter 180ms ease-out;
|
||||||
|
}
|
||||||
|
.toast-symbol {
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: color-mix(in srgb, var(--toast-tone) 12%, var(--color-surface));
|
||||||
|
color: var(--toast-tone);
|
||||||
|
}
|
||||||
|
.toast-content {
|
||||||
|
display: grid;
|
||||||
|
gap: 4px;
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.toast-title {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
.toast-message {
|
||||||
|
line-height: 1.5;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
:is(#toast, .anidev-toast) .toast-dismiss {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
width: 28px;
|
||||||
|
min-height: 28px;
|
||||||
|
padding: 6px;
|
||||||
|
border: 0;
|
||||||
|
background: transparent;
|
||||||
|
color: var(--color-muted);
|
||||||
|
}
|
||||||
|
@keyframes toast-enter {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
translate: 0 6px;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
translate: 0 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.skip {
|
.skip {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -2585,3 +2648,197 @@ body[data-concept="dock"] .nav-links button {
|
|||||||
background-color 120ms ease-out,
|
background-color 120ms ease-out,
|
||||||
color 120ms ease-out;
|
color 120ms ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#content:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
.sample-control-row {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
|
||||||
|
gap: 12px;
|
||||||
|
align-items: stretch;
|
||||||
|
max-width: 440px;
|
||||||
|
margin-top: 18px;
|
||||||
|
}
|
||||||
|
.sample-control-row > :is(input, select) {
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
height: calc(var(--size-control) + 8px);
|
||||||
|
}
|
||||||
|
input[readonly] {
|
||||||
|
cursor: default;
|
||||||
|
background: color-mix(in srgb, var(--color-muted) 6%, var(--color-surface));
|
||||||
|
}
|
||||||
|
.choice-pill,
|
||||||
|
.form-row .choice-pill {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
gap: 8px;
|
||||||
|
flex: 0 1 auto;
|
||||||
|
min-height: 40px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
border: 1px solid var(--color-border);
|
||||||
|
border-radius: 999px;
|
||||||
|
background: var(--color-surface);
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 20px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.choice-pill > :is(input[type="checkbox"], input[type="radio"]) {
|
||||||
|
display: block;
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
margin: 0;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.choice-pill > span {
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
.choice-pill:hover {
|
||||||
|
background: var(--color-row-hover);
|
||||||
|
}
|
||||||
|
.choice-pill:has(input:checked) {
|
||||||
|
background: var(--color-row-active);
|
||||||
|
border-color: var(--color-accent);
|
||||||
|
color: var(--color-accent);
|
||||||
|
}
|
||||||
|
.choice-pill:has(input:focus-visible) {
|
||||||
|
outline: 2px solid var(--color-accent);
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
.choice-pill > input:focus-visible {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
.choice-pill:has(input:disabled) {
|
||||||
|
opacity: 0.5;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
body[data-concept="dock"] .navigation {
|
||||||
|
--nav-icon-track: 50px;
|
||||||
|
}
|
||||||
|
body[data-concept="dock"] .navigation > .dock-brand,
|
||||||
|
body[data-concept="dock"] .dock-account-area {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
body[data-concept="dock"] .navigation > .nav-links {
|
||||||
|
min-height: 0;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
scrollbar-width: thin;
|
||||||
|
}
|
||||||
|
body[data-concept="dock"]:not(.dock-open) .navigation > .nav-links {
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
body[data-concept="dock"] .nav-links > button,
|
||||||
|
.nav-group {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.nav-group {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.nav-group-label {
|
||||||
|
position: relative;
|
||||||
|
display: block;
|
||||||
|
padding-right: 24px;
|
||||||
|
}
|
||||||
|
.nav-chevron {
|
||||||
|
position: absolute;
|
||||||
|
right: 8px;
|
||||||
|
top: 50%;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
translate: 0 -50%;
|
||||||
|
transition: transform 160ms ease;
|
||||||
|
}
|
||||||
|
.nav-group.is-expanded .nav-chevron {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
.nav-submenu-container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: 0fr;
|
||||||
|
opacity: 0;
|
||||||
|
transition:
|
||||||
|
grid-template-rows 180ms ease,
|
||||||
|
opacity 140ms ease;
|
||||||
|
}
|
||||||
|
.nav-group.is-expanded .nav-submenu-container {
|
||||||
|
grid-template-rows: 1fr;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
.nav-submenu-clip {
|
||||||
|
min-height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.nav-submenu-list {
|
||||||
|
margin: 4px 0 4px 25px;
|
||||||
|
padding: 0 0 0 14px;
|
||||||
|
border-left: 1px solid var(--color-border);
|
||||||
|
display: grid;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
body[data-concept="dock"] .nav-submenu-list button {
|
||||||
|
grid-template-columns: 24px minmax(0, 1fr);
|
||||||
|
gap: 10px;
|
||||||
|
padding: 8px 8px 8px 0;
|
||||||
|
min-height: 40px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
body[data-concept="dock"] .nav-submenu-list .nav-icon {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
}
|
||||||
|
body[data-concept="dock"] .nav-group-toggle[data-active="true"] {
|
||||||
|
background: var(--color-row-active);
|
||||||
|
color: var(--color-accent);
|
||||||
|
}
|
||||||
|
body[data-concept="dock"]
|
||||||
|
.nav-links
|
||||||
|
.nav-group-toggle[data-active="true"]:is(:hover, :focus-visible) {
|
||||||
|
background: var(--color-row-active);
|
||||||
|
color: var(--color-accent);
|
||||||
|
}
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.sample-control-row {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
.choice-pill,
|
||||||
|
.form-row .choice-pill {
|
||||||
|
min-height: 44px;
|
||||||
|
}
|
||||||
|
body[data-concept="dock"] .nav-submenu-list button {
|
||||||
|
min-height: 44px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.selection-specimen fieldset {
|
||||||
|
margin: 0;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.selection-specimen legend {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body[data-concept="dock"] .navigation .wordmark > span {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
body[data-concept="dock"].dock-open
|
||||||
|
.nav-links
|
||||||
|
.nav-group-toggle[data-active="true"] {
|
||||||
|
background: transparent;
|
||||||
|
color: var(--color-accent);
|
||||||
|
}
|
||||||
|
body[data-concept="dock"].dock-open
|
||||||
|
.nav-links
|
||||||
|
.nav-group-toggle[data-active="true"]:is(:hover, :focus-visible) {
|
||||||
|
background: var(--color-row-hover);
|
||||||
|
color: var(--color-text);
|
||||||
|
}
|
||||||
|
:is(#toast, .anidev-toast) .toast-dismiss:hover:not(:disabled) {
|
||||||
|
background: var(--color-row-hover);
|
||||||
|
color: var(--color-text);
|
||||||
|
}
|
||||||
|
.choice-pill:has(input:disabled) > input {
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
import { iconSvg } from "../icons/icons.js";
|
||||||
|
const types = {
|
||||||
|
success: { icon: "check", ru: "Готово", en: "Success", duration: 4000 },
|
||||||
|
info: { icon: "info", ru: "Информация", en: "Information", duration: 5000 },
|
||||||
|
warning: { icon: "warning", ru: "Внимание", en: "Warning", duration: 8000 },
|
||||||
|
error: { icon: "error", ru: "Ошибка", en: "Error", duration: 0 },
|
||||||
|
};
|
||||||
|
export function createNotifier(element, { t = (ru) => ru } = {}) {
|
||||||
|
element.classList.add("anidev-toast");
|
||||||
|
let timer,
|
||||||
|
remaining = 0,
|
||||||
|
started = 0,
|
||||||
|
active = false,
|
||||||
|
invoker = null;
|
||||||
|
function hide() {
|
||||||
|
clearTimeout(timer);
|
||||||
|
active = false;
|
||||||
|
if (element.isConnected && element.matches(":popover-open"))
|
||||||
|
element.hidePopover();
|
||||||
|
}
|
||||||
|
function resume() {
|
||||||
|
if (!active || !remaining) return;
|
||||||
|
clearTimeout(timer);
|
||||||
|
started = performance.now();
|
||||||
|
timer = setTimeout(hide, remaining);
|
||||||
|
}
|
||||||
|
function pause() {
|
||||||
|
if (!active || !remaining) return;
|
||||||
|
clearTimeout(timer);
|
||||||
|
remaining = Math.max(1, remaining - (performance.now() - started));
|
||||||
|
}
|
||||||
|
element.addEventListener("pointerenter", pause);
|
||||||
|
element.addEventListener("pointerleave", () => {
|
||||||
|
if (!element.contains(document.activeElement)) resume();
|
||||||
|
});
|
||||||
|
element.addEventListener("focusin", pause);
|
||||||
|
element.addEventListener("focusout", (event) => {
|
||||||
|
if (!element.contains(event.relatedTarget) && !element.matches(":hover"))
|
||||||
|
resume();
|
||||||
|
});
|
||||||
|
element.addEventListener("click", (event) => {
|
||||||
|
if (event.target.closest("[data-toast-dismiss]")) {
|
||||||
|
const restore = element.contains(document.activeElement);
|
||||||
|
hide();
|
||||||
|
if (
|
||||||
|
restore &&
|
||||||
|
invoker?.isConnected &&
|
||||||
|
!invoker.closest("[inert]") &&
|
||||||
|
invoker.getClientRects().length
|
||||||
|
)
|
||||||
|
invoker.focus({ preventScroll: true });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// A modal makes outside elements inert: put the toast inside it, then use the top layer.
|
||||||
|
document.addEventListener(
|
||||||
|
"close",
|
||||||
|
(event) => {
|
||||||
|
if (
|
||||||
|
event.target instanceof HTMLDialogElement &&
|
||||||
|
event.target.contains(element)
|
||||||
|
) {
|
||||||
|
hide();
|
||||||
|
document.body.append(element);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ capture: true },
|
||||||
|
);
|
||||||
|
function notify(message, { type = "info", title, duration } = {}) {
|
||||||
|
type = Object.hasOwn(types, type) ? type : "info";
|
||||||
|
const config = types[type];
|
||||||
|
if (!element.contains(document.activeElement))
|
||||||
|
invoker = document.activeElement;
|
||||||
|
hide();
|
||||||
|
const modal = [...document.querySelectorAll("dialog[open]")].at(-1);
|
||||||
|
if (element.parentElement !== (modal || document.body))
|
||||||
|
(modal || document.body).append(element);
|
||||||
|
element.popover = "manual";
|
||||||
|
element.dataset.type = type;
|
||||||
|
element.setAttribute("role", type === "error" ? "alert" : "status");
|
||||||
|
element.setAttribute(
|
||||||
|
"aria-live",
|
||||||
|
type === "error" ? "assertive" : "polite",
|
||||||
|
);
|
||||||
|
element.setAttribute("aria-atomic", "true");
|
||||||
|
element.innerHTML = `<span class="toast-symbol">${iconSvg(config.icon, { size: 20 })}</span><div class="toast-content"><strong class="toast-title"></strong><span class="toast-message"></span></div><button type="button" class="toast-dismiss" data-toast-dismiss aria-label="${t("Закрыть уведомление", "Dismiss notification")}">${iconSvg("close", { size: 16 })}</button>`;
|
||||||
|
element.querySelector(".toast-title").textContent =
|
||||||
|
title || t(config.ru, config.en);
|
||||||
|
element.querySelector(".toast-message").textContent = String(message);
|
||||||
|
active = true;
|
||||||
|
remaining =
|
||||||
|
Number.isFinite(duration) && duration >= 0 ? duration : config.duration;
|
||||||
|
element.showPopover();
|
||||||
|
started = performance.now();
|
||||||
|
if (!element.matches(":hover") && !element.contains(document.activeElement))
|
||||||
|
resume();
|
||||||
|
}
|
||||||
|
notify.dismiss = hide;
|
||||||
|
return notify;
|
||||||
|
}
|
||||||
@@ -79,6 +79,7 @@ export function tokensFor(id, theme = "light", accent, density = "normal") {
|
|||||||
"color.on-accent": on,
|
"color.on-accent": on,
|
||||||
"color.danger": dark ? "#ffafa5" : "#a22923",
|
"color.danger": dark ? "#ffafa5" : "#a22923",
|
||||||
"color.success": dark ? "#a2d3ab" : "#26623b",
|
"color.success": dark ? "#a2d3ab" : "#26623b",
|
||||||
|
"color.warning": dark ? "#e8c889" : "#795519",
|
||||||
"color.row-hover": rowHover,
|
"color.row-hover": rowHover,
|
||||||
"color.row-active": rowActive,
|
"color.row-active": rowActive,
|
||||||
"radius.control": c.radius,
|
"radius.control": c.radius,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { createNotifier } from "../components/toast.js";
|
||||||
import { icons, iconNames, iconSvg } from "./icons.js";
|
import { icons, iconNames, iconSvg } from "./icons.js";
|
||||||
import { tokensFor, cssVars } from "../concepts/registry.js";
|
import { tokensFor, cssVars } from "../concepts/registry.js";
|
||||||
const $ = (s) => document.querySelector(s);
|
const $ = (s) => document.querySelector(s);
|
||||||
@@ -13,8 +14,7 @@ const categories = {
|
|||||||
};
|
};
|
||||||
for (const [id, label] of Object.entries(categories))
|
for (const [id, label] of Object.entries(categories))
|
||||||
$("#category").add(new Option(label, id));
|
$("#category").add(new Option(label, id));
|
||||||
let theme = "light",
|
let theme = "light";
|
||||||
timer;
|
|
||||||
try {
|
try {
|
||||||
theme =
|
theme =
|
||||||
JSON.parse(localStorage.getItem("anidev.preferences") || "{}").theme ===
|
JSON.parse(localStorage.getItem("anidev.preferences") || "{}").theme ===
|
||||||
@@ -54,22 +54,19 @@ $("#theme").addEventListener("click", () => {
|
|||||||
theme = theme === "dark" ? "light" : "dark";
|
theme = theme === "dark" ? "light" : "dark";
|
||||||
applyTheme();
|
applyTheme();
|
||||||
});
|
});
|
||||||
|
const notify = createNotifier($("#toast"));
|
||||||
$("#icon-grid").addEventListener("click", async (e) => {
|
$("#icon-grid").addEventListener("click", async (e) => {
|
||||||
const tile = e.target.closest("[data-icon]");
|
const tile = e.target.closest("[data-icon]");
|
||||||
if (!tile) return;
|
if (!tile) return;
|
||||||
const toast = $("#toast");
|
|
||||||
toast.popover = "manual";
|
|
||||||
try {
|
try {
|
||||||
await navigator.clipboard.writeText(
|
await navigator.clipboard.writeText(
|
||||||
iconSvg(tile.dataset.icon, { size: Number($("#size").value) }),
|
iconSvg(tile.dataset.icon, { size: Number($("#size").value) }),
|
||||||
);
|
);
|
||||||
toast.textContent = `SVG скопирован: ${tile.dataset.icon}`;
|
notify(`SVG скопирован: ${tile.dataset.icon}`, { type: "success" });
|
||||||
} catch {
|
} catch {
|
||||||
toast.textContent = "Не удалось скопировать. Скачайте SVG-пак.";
|
notify("Не удалось скопировать. Скачайте SVG-пак.", { type: "error" });
|
||||||
}
|
}
|
||||||
toast.showPopover();
|
|
||||||
clearTimeout(timer);
|
|
||||||
timer = setTimeout(() => toast.hidePopover(), 2800);
|
|
||||||
});
|
});
|
||||||
applyTheme();
|
applyTheme();
|
||||||
render();
|
render();
|
||||||
@@ -15,7 +15,8 @@
|
|||||||
"test:dock": "node tests/dock.mjs",
|
"test:dock": "node tests/dock.mjs",
|
||||||
"test:identity": "node tests/identity.mjs && node tests/totp-layout.mjs",
|
"test:identity": "node tests/identity.mjs && node tests/totp-layout.mjs",
|
||||||
"test:approved": "node tests/approved-dock.mjs",
|
"test:approved": "node tests/approved-dock.mjs",
|
||||||
"test:site": "node tests/site.mjs"
|
"test:site": "node tests/site.mjs",
|
||||||
|
"test:feedback": "node tests/navigation-feedback.mjs"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"playwright": "^1.58.0"
|
"playwright": "^1.58.0"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { createNotifier } from "../components/toast.js";
|
||||||
import { sshScreen, mountSsh } from "../components/ssh-console.js";
|
import { sshScreen, mountSsh } from "../components/ssh-console.js";
|
||||||
import { logsScreen, mountLogs } from "../components/log-reader.js";
|
import { logsScreen, mountLogs } from "../components/log-reader.js";
|
||||||
import { iconSvg } from "../icons/icons.js";
|
import { iconSvg } from "../icons/icons.js";
|
||||||
@@ -194,9 +195,12 @@ const pageNames = {
|
|||||||
identity: t("Состояния входа", "Sign-in states"),
|
identity: t("Состояния входа", "Sign-in states"),
|
||||||
};
|
};
|
||||||
const icon = (id) =>
|
const icon = (id) =>
|
||||||
iconSvg({ ssh: "terminal", logs: "document" }[id] || id, {
|
iconSvg(
|
||||||
className: "nav-icon",
|
{ ssh: "terminal", logs: "document", administration: "server" }[id] || id,
|
||||||
});
|
{
|
||||||
|
className: "nav-icon",
|
||||||
|
},
|
||||||
|
);
|
||||||
const wordmark = '<div class="wordmark"><b>a/</b><span>anidev</span></div>';
|
const wordmark = '<div class="wordmark"><b>a/</b><span>anidev</span></div>';
|
||||||
function persist() {
|
function persist() {
|
||||||
try {
|
try {
|
||||||
@@ -206,18 +210,7 @@ function persist() {
|
|||||||
toast(t("Хранилище браузера недоступно", "Browser storage unavailable"));
|
toast(t("Хранилище браузера недоступно", "Browser storage unavailable"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let toastTimer;
|
const toast = createNotifier($("#toast"), { t });
|
||||||
function toast(message) {
|
|
||||||
const notification = $("#toast");
|
|
||||||
notification.popover = "manual";
|
|
||||||
notification.textContent = message;
|
|
||||||
if (notification.matches(":popover-open")) notification.hidePopover();
|
|
||||||
notification.showPopover();
|
|
||||||
clearTimeout(toastTimer);
|
|
||||||
toastTimer = setTimeout(() => {
|
|
||||||
notification.hidePopover();
|
|
||||||
}, 3500);
|
|
||||||
}
|
|
||||||
function currentIdentity() {
|
function currentIdentity() {
|
||||||
return identityAdapter.snapshot().account;
|
return identityAdapter.snapshot().account;
|
||||||
}
|
}
|
||||||
@@ -234,7 +227,14 @@ function accountInitials() {
|
|||||||
function navigationPages() {
|
function navigationPages() {
|
||||||
return accountPageIds.includes(page)
|
return accountPageIds.includes(page)
|
||||||
? ["profile", "security", "sessions", "applications", "appearance"]
|
? ["profile", "security", "sessions", "applications", "appearance"]
|
||||||
: ["dashboard", "users", "settings", "ssh", "logs", "components", "tokens"];
|
: [
|
||||||
|
"dashboard",
|
||||||
|
"users",
|
||||||
|
"settings",
|
||||||
|
"administration",
|
||||||
|
"components",
|
||||||
|
"tokens",
|
||||||
|
];
|
||||||
}
|
}
|
||||||
function dockAccount() {
|
function dockAccount() {
|
||||||
return `<div class="dock-account-area"><div id="account-menu" class="account-menu" popover="auto" aria-label="${t("Меню аккаунта", "Account menu")}">
|
return `<div class="dock-account-area"><div id="account-menu" class="account-menu" popover="auto" aria-label="${t("Меню аккаунта", "Account menu")}">
|
||||||
@@ -244,13 +244,41 @@ ${currentIdentity()?.roles.some((r) => ["Master Admin", "SSO Admin"].includes(r)
|
|||||||
<button class="account-separator" data-identity="logout">${icon("logout")}<span>${t("Выйти из SSO", "Sign out of SSO")}</span></button></div>
|
<button class="account-separator" data-identity="logout">${icon("logout")}<span>${t("Выйти из SSO", "Sign out of SSO")}</span></button></div>
|
||||||
<button class="dock-account" popovertarget="account-menu" aria-label="${escape(t("Меню аккаунта ", "Account menu ") + accountName())}"><span class="avatar">${currentIdentity()?.avatar ? `<img src="${escape(currentIdentity().avatar)}" alt="">` : escape(accountInitials())}</span><span class="account-identity"><b>${escape(accountName())}</b><small>${escape(currentIdentity()?.username || "Anidev Identity")}</small></span><span class="account-more" aria-hidden="true">···</span></button></div>`;
|
<button class="dock-account" popovertarget="account-menu" aria-label="${escape(t("Меню аккаунта ", "Account menu ") + accountName())}"><span class="avatar">${currentIdentity()?.avatar ? `<img src="${escape(currentIdentity().avatar)}" alt="">` : escape(accountInitials())}</span><span class="account-identity"><b>${escape(accountName())}</b><small>${escape(currentIdentity()?.username || "Anidev Identity")}</small></span><span class="account-more" aria-hidden="true">···</span></button></div>`;
|
||||||
}
|
}
|
||||||
|
let administrationOpen = ["ssh", "logs"].includes(page);
|
||||||
|
function navPage(id, label = pageNames[id]) {
|
||||||
|
return `<button data-page="${id}" ${page === id ? 'aria-current="page"' : ""} title="${label}" aria-label="${label}">${icon(id)}<span>${label}</span></button>`;
|
||||||
|
}
|
||||||
|
function administrationNav() {
|
||||||
|
const active = ["ssh", "logs"].includes(page);
|
||||||
|
return `<div class="nav-group" data-nav-group="administration"><button type="button" class="nav-group-toggle" data-action="administration-toggle" aria-expanded="false" aria-controls="administration-submenu" data-active="${active}" title="${t("Администрирование", "Administration")}" aria-label="${t("Администрирование", "Administration")}">${icon("administration")}<span class="nav-group-label">${t("Администрирование", "Administration")}${iconSvg("chevron-down", { size: 16, className: "nav-chevron" })}</span></button><div class="nav-submenu-container" id="administration-submenu" aria-hidden="true" inert><div class="nav-submenu-clip"><div class="nav-submenu-list">${navPage("ssh")}${navPage("logs", t("Логи", "Logs"))}</div></div></div></div>`;
|
||||||
|
}
|
||||||
|
function syncAdministration() {
|
||||||
|
const group = $("[data-nav-group=administration]");
|
||||||
|
if (!group) return;
|
||||||
|
const expanded =
|
||||||
|
administrationOpen && document.body.classList.contains("dock-open");
|
||||||
|
group.classList.toggle("is-expanded", expanded);
|
||||||
|
group
|
||||||
|
.querySelector(".nav-group-toggle")
|
||||||
|
.setAttribute("aria-expanded", String(expanded));
|
||||||
|
group
|
||||||
|
.querySelector(".nav-submenu-container")
|
||||||
|
.setAttribute("aria-hidden", String(!expanded));
|
||||||
|
group.querySelector(".nav-submenu-container").inert = !expanded;
|
||||||
|
}
|
||||||
|
function setAdministration(open, focusChild = false) {
|
||||||
|
if (open && !document.body.classList.contains("dock-open")) {
|
||||||
|
dockHoverOpened = false;
|
||||||
|
setDockOpen(true, false);
|
||||||
|
}
|
||||||
|
administrationOpen = open;
|
||||||
|
syncAdministration();
|
||||||
|
if (open && focusChild) $("#administration-submenu button")?.focus();
|
||||||
|
}
|
||||||
function nav() {
|
function nav() {
|
||||||
const dockBrand = `<button class="dock-toggle dock-brand wordmark" data-action="dock-toggle" aria-expanded="false" aria-controls="dock-navigation" aria-label="${t("Развернуть меню Anidev", "Expand Anidev navigation")}" title="${t("Навигация Anidev", "Anidev navigation")}"><b>a/</b><span>anidev</span></button>`;
|
const dockBrand = `<button class="dock-toggle dock-brand wordmark" data-action="dock-toggle" aria-expanded="false" aria-controls="dock-navigation" aria-label="${t("Развернуть меню Anidev", "Expand Anidev navigation")}" title="${t("Навигация Anidev", "Anidev navigation")}"><b>a/</b><span>anidev</span></button>`;
|
||||||
return `<aside class="navigation" id="dock-navigation">${dockBrand}<div class="workspace-label">ANIDEV / PRODUCTION</div><nav aria-label="${t("Основная навигация", "Main navigation")}" class="nav-links">${navigationPages()
|
return `<aside class="navigation" id="dock-navigation">${dockBrand}<div class="workspace-label">ANIDEV / PRODUCTION</div><nav aria-label="${t("Основная навигация", "Main navigation")}" class="nav-links">${navigationPages()
|
||||||
.map(
|
.map((id) => (id === "administration" ? administrationNav() : navPage(id)))
|
||||||
(p) =>
|
|
||||||
`<button data-page="${p}" ${page === p ? 'aria-current="page"' : ""} title="${pageNames[p]}" aria-label="${pageNames[p]}">${icon(p)}<span>${pageNames[p]}</span></button>`,
|
|
||||||
)
|
|
||||||
.join(
|
.join(
|
||||||
"",
|
"",
|
||||||
)}</nav><div class="nav-bottom">eu-central-1<br>Workspace / Pro<br><button data-page="auth" style="font-size:12px;margin-top:15px">${t("Выйти", "Sign out")}</button></div>${dockAccount()}</aside>`;
|
)}</nav><div class="nav-bottom">eu-central-1<br>Workspace / Pro<br><button data-page="auth" style="font-size:12px;margin-top:15px">${t("Выйти", "Sign out")}</button></div>${dockAccount()}</aside>`;
|
||||||
@@ -310,6 +338,7 @@ function setDockOpen(open, returnFocus = true) {
|
|||||||
);
|
);
|
||||||
toggle.title = toggle.getAttribute("aria-label");
|
toggle.title = toggle.getAttribute("aria-label");
|
||||||
$(".main-column").inert = open;
|
$(".main-column").inert = open;
|
||||||
|
syncAdministration();
|
||||||
if (open) {
|
if (open) {
|
||||||
nav.setAttribute("role", "dialog");
|
nav.setAttribute("role", "dialog");
|
||||||
nav.setAttribute("aria-modal", "true");
|
nav.setAttribute("aria-modal", "true");
|
||||||
@@ -624,13 +653,23 @@ function auth() {
|
|||||||
return `<main id="content" class="auth-layout" style="max-width:none;padding:0"><section class="auth-brand">${wordmark}<div class="auth-statement">${t("Ваша инфраструктура.<br>Под вашим контролем.", "Your infrastructure.<br>Under your control.")}</div><small>ANIDEV IDENTITY / ${t("ДЕМОНСТРАЦИЯ", "DEMONSTRATION")}</small></section><section class="auth-main"><form id="auth-form" class="auth-form"><h1>${t("Вход в Anidev", "Sign in to Anidev")}</h1><p>${t("Продолжите работу с вашим пространством.", "Continue to your workspace.")}</p><label class="field">${t("Username или email", "Username or email")}<input name="email" type="text" autocomplete="username" placeholder="anna.volkova" required></label><label class="field">${t("Пароль", "Password")}<input name="password" type="password" autocomplete="current-password" minlength="8" required aria-describedby="password-hint"><small id="password-hint">${t("Демо: anna.volkova или mikhail.orlov; пароль от 8 символов.", "Demo: anna.volkova or mikhail.orlov; password of 8+ characters.")}</small></label><div class="form-row"><input id="remember" type="checkbox"><label for="remember">${t("Запомнить меня", "Remember me")}</label><button class="row-action" type="button" data-action="recover">${t("Забыли пароль?", "Forgot password?")}</button></div><p class="error-text" id="auth-error" role="alert"></p><button class="primary" type="submit">${t("Войти", "Sign in")}</button><div class="auth-divider">${t("или корпоративный аккаунт", "or your company account")}</div><button type="button" class="sso" data-action="sso">${t("Войти через SSO", "Continue with SSO")}</button><div class="auth-foot"><span>© Anidev 2026</span><button class="row-action" type="button" data-page="dashboard">${t("Вернуться к обзору", "Back to overview")}</button></div></form></section></main>`;
|
return `<main id="content" class="auth-layout" style="max-width:none;padding:0"><section class="auth-brand">${wordmark}<div class="auth-statement">${t("Ваша инфраструктура.<br>Под вашим контролем.", "Your infrastructure.<br>Under your control.")}</div><small>ANIDEV IDENTITY / ${t("ДЕМОНСТРАЦИЯ", "DEMONSTRATION")}</small></section><section class="auth-main"><form id="auth-form" class="auth-form"><h1>${t("Вход в Anidev", "Sign in to Anidev")}</h1><p>${t("Продолжите работу с вашим пространством.", "Continue to your workspace.")}</p><label class="field">${t("Username или email", "Username or email")}<input name="email" type="text" autocomplete="username" placeholder="anna.volkova" required></label><label class="field">${t("Пароль", "Password")}<input name="password" type="password" autocomplete="current-password" minlength="8" required aria-describedby="password-hint"><small id="password-hint">${t("Демо: anna.volkova или mikhail.orlov; пароль от 8 символов.", "Demo: anna.volkova or mikhail.orlov; password of 8+ characters.")}</small></label><div class="form-row"><input id="remember" type="checkbox"><label for="remember">${t("Запомнить меня", "Remember me")}</label><button class="row-action" type="button" data-action="recover">${t("Забыли пароль?", "Forgot password?")}</button></div><p class="error-text" id="auth-error" role="alert"></p><button class="primary" type="submit">${t("Войти", "Sign in")}</button><div class="auth-divider">${t("или корпоративный аккаунт", "or your company account")}</div><button type="button" class="sso" data-action="sso">${t("Войти через SSO", "Continue with SSO")}</button><div class="auth-foot"><span>© Anidev 2026</span><button class="row-action" type="button" data-page="dashboard">${t("Вернуться к обзору", "Back to overview")}</button></div></form></section></main>`;
|
||||||
}
|
}
|
||||||
function componentScreen() {
|
function componentScreen() {
|
||||||
return `${heading(t("Библиотека компонентов", "Component library"), t("Единые состояния. Шесть способов выражения.", "Shared states. Six ways of expressing them."), `<button data-action="command">${t("Команды", "Commands")} ⌘K</button>`)}<div class="page-body"><div class="library">
|
return `${heading(t("Библиотека компонентов", "Component library"), t("Единые компоненты и состояния Dock.", "Shared Dock components and states."), `<button data-action="command">${t("Команды", "Commands")} ${commandShortcut}</button>`)}<div class="page-body"><div class="library">
|
||||||
<section class="specimen"><h2>Buttons</h2><div class="component-row"><button class="primary" data-action="demo-save">${t("Сохранить", "Save")}</button><button data-action="toast">${t("Вторичная", "Secondary")}</button><button class="danger" data-action="delete">${t("Удалить", "Delete")}</button><button disabled>Disabled</button><button aria-busy="true" disabled>${t("Загрузка…", "Loading…")}</button></div><small>Hover · active · focus · disabled · loading</small></section>
|
<section class="specimen"><h2>Buttons</h2><div class="component-row"><button class="primary" data-action="demo-save">${t("Сохранить", "Save")}</button><button data-action="toast">${t("Вторичная", "Secondary")}</button><button class="danger" data-action="delete">${t("Удалить", "Delete")}</button><button disabled>Disabled</button><button aria-busy="true" disabled>${t("Загрузка…", "Loading…")}</button></div><small>Hover · active · focus · disabled · loading</small></section>
|
||||||
<section class="specimen"><h2>Inputs & selects</h2><label class="field">${t("Имя проекта", "Project name")}<input placeholder="Anidev Production"></label><label class="field">Email<input aria-invalid="true" aria-describedby="sample-error" value="invalid-email"><small class="error-text" id="sample-error">${t("Введите корректный email", "Enter a valid email")}</small></label><select aria-label="${t("Окружение", "Environment")}"><option>Production</option><option>Staging</option></select><input aria-label="Disabled input" disabled value="Read only"></section>
|
<section class="specimen"><h2>Inputs & selects</h2><label class="field">${t("Имя проекта", "Project name")}<input placeholder="Anidev Production"></label><label class="field">Email<input aria-invalid="true" aria-describedby="sample-error" value="invalid-email"><small class="error-text" id="sample-error">${t("Введите корректный email", "Enter a valid email")}</small></label><div class="sample-control-row"><select aria-label="${t("Окружение", "Environment")}"><option>Production</option><option>Staging</option></select><input aria-label="${t("Только для чтения", "Read-only field")}" readonly value="Read only"></div></section>
|
||||||
<section class="specimen"><h2>Selection controls</h2><div class="form-row"><input id="check-demo" type="checkbox" checked><label for="check-demo">${t("Email-уведомления", "Email notifications")}</label></div><fieldset style="border:0;padding:0"><legend>${t("Период хранения", "Retention period")}</legend><div class="component-row"><label><input type="radio" name="retention" value="30" checked> 30 ${t("дней", "days")}</label><label><input type="radio" name="retention" value="90"> 90 ${t("дней", "days")}</label></div></fieldset><div class="form-row"><label for="switch-demo">${t("Автообновление", "Auto refresh")}</label><input id="switch-demo" class="switch" role="switch" type="checkbox" checked></div></section>
|
<section class="specimen selection-specimen"><h2>Selection controls</h2><div class="form-row"><label class="choice-pill" for="check-demo"><input id="check-demo" type="checkbox" checked><span>${t("Email-уведомления", "Email notifications")}</span></label></div><fieldset style="border:0;padding:0"><legend>${t("Период хранения", "Retention period")}</legend><div class="component-row"><label class="choice-pill"><input type="radio" name="retention" value="30" checked><span>30 ${t("дней", "days")}</span></label><label class="choice-pill"><input type="radio" name="retention" value="90"><span>90 ${t("дней", "days")}</span></label></div></fieldset><div class="form-row"><label for="switch-demo">${t("Автообновление", "Auto refresh")}</label><input id="switch-demo" class="switch" role="switch" type="checkbox" checked></div></section>
|
||||||
<section class="specimen"><h2>Overlays & feedback</h2><div class="component-row"><button data-action="invite">Modal</button><button data-action="drawer">Drawer</button><button data-action="toast">Toast</button><span class="tooltip-wrap"><button aria-describedby="demo-tooltip">Tooltip</button><span class="tooltip" id="demo-tooltip" role="tooltip">${t("Скопировать идентификатор", "Copy identifier")}</span></span></div><details><summary>${t("Действия проекта", "Project actions")}</summary><div class="dropdown"><button data-action="rename">${t("Переименовать", "Rename")}</button><button data-action="download-users">${t("Экспорт CSV", "Export CSV")}</button><button class="danger" data-action="delete">${t("Удалить", "Delete")}</button></div></details><div class="context-target" tabindex="0" role="button" aria-haspopup="menu" style="margin-top:15px">${t("Контекстное меню: правая кнопка, Shift+F10 или Enter", "Context menu: right click, Shift+F10 or Enter")}</div></section>
|
<section class="specimen"><h2>Overlays & feedback</h2><div class="component-row"><button data-action="invite">Modal</button><button data-action="drawer">Drawer</button><button data-action="toast">Toast</button><span class="tooltip-wrap"><button aria-describedby="demo-tooltip">Tooltip</button><span class="tooltip" id="demo-tooltip" role="tooltip">${t("Скопировать идентификатор", "Copy identifier")}</span></span></div><details><summary>${t("Действия проекта", "Project actions")}</summary><div class="dropdown"><button data-action="rename">${t("Переименовать", "Rename")}</button><button data-action="download-users">${t("Экспорт CSV", "Export CSV")}</button><button class="danger" data-action="delete">${t("Удалить", "Delete")}</button></div></details><div class="context-target" tabindex="0" role="button" aria-haspopup="menu" style="margin-top:15px">${t("Контекстное меню: правая кнопка, Shift+F10 или Enter", "Context menu: right click, Shift+F10 or Enter")}</div></section>
|
||||||
<section class="specimen"><h2>Empty state</h2><div class="empty-state"><h3>${t("Пока нет API-ключей", "No API keys yet")}</h3><p>${t("Создайте ключ для подключения сервиса.", "Create a key to connect your service.")}</p><button data-action="create-key">${t("Создать ключ", "Create key")}</button></div></section>
|
<section class="specimen"><h2>Empty state</h2><div class="empty-state"><h3>${t("Пока нет API-ключей", "No API keys yet")}</h3><p>${t("Создайте ключ для подключения сервиса.", "Create a key to connect your service.")}</p><button data-action="create-key">${t("Создать ключ", "Create key")}</button></div></section>
|
||||||
<section class="specimen"><h2>Error & skeleton</h2><div class="error-state" role="status"><p>${t("Не удалось загрузить журнал.", "Could not load the log.")}</p><button data-action="retry">${t("Повторить", "Retry")}</button></div><div aria-label="${t("Загрузка данных", "Loading data")}" aria-busy="true" style="margin-top:20px"><div class="skeleton"></div><div class="skeleton"></div><div class="skeleton"></div></div></section>
|
<section class="specimen"><h2>Error & skeleton</h2><div class="error-state" role="status"><p>${t("Не удалось загрузить журнал.", "Could not load the log.")}</p><button data-action="retry">${t("Повторить", "Retry")}</button></div><div aria-label="${t("Загрузка данных", "Loading data")}" aria-busy="true" style="margin-top:20px"><div class="skeleton"></div><div class="skeleton"></div><div class="skeleton"></div></div></section>
|
||||||
|
<section class="specimen toast-specimen"><h2>${t("Уведомления", "Notifications")}</h2><div class="component-row">${[
|
||||||
|
["success", t("Успех", "Success")],
|
||||||
|
["info", t("Информация", "Information")],
|
||||||
|
["warning", t("Предупреждение", "Warning")],
|
||||||
|
["error", t("Ошибка", "Error")],
|
||||||
|
]
|
||||||
|
.map(
|
||||||
|
([type, label]) => `<button data-action="toast-${type}">${label}</button>`,
|
||||||
|
)
|
||||||
|
.join("")}</div></section>
|
||||||
<section class="specimen status-specimen"><h2>${t("Статусы", "Status indicators")}</h2><div class="component-row status-examples"><span class="status-badge status-badge--success">${iconSvg("check", { size: 16 })}${t("Работает", "Operational")}</span><span class="status-badge status-badge--danger">${iconSvg("close", { size: 16 })}${t("Недоступен", "Unavailable")}</span><span class="status-badge status-badge--pending">${iconSvg("more-horizontal", { size: 16 })}${t("Ожидает", "Pending")}</span></div><p class="muted" style="font-size:13px">${t("Состояние выражено текстом, а не только цветом.", "Status uses text as well as color.")}</p></section>
|
<section class="specimen status-specimen"><h2>${t("Статусы", "Status indicators")}</h2><div class="component-row status-examples"><span class="status-badge status-badge--success">${iconSvg("check", { size: 16 })}${t("Работает", "Operational")}</span><span class="status-badge status-badge--danger">${iconSvg("close", { size: 16 })}${t("Недоступен", "Unavailable")}</span><span class="status-badge status-badge--pending">${iconSvg("more-horizontal", { size: 16 })}${t("Ожидает", "Pending")}</span></div><p class="muted" style="font-size:13px">${t("Состояние выражено текстом, а не только цветом.", "Status uses text as well as color.")}</p></section>
|
||||||
<section class="specimen"><h2>${t("Рабочие области", "Workspaces")}</h2><p class="muted">${t("SSH-терминал и ридер логов в стиле Dock.", "SSH terminal and log reader in Dock style.")}</p><div class="component-row"><button data-page="ssh">${t("SSH-консоль", "SSH console")}</button><button data-page="logs">${t("Log-ридер", "Log reader")}</button></div></section>
|
<section class="specimen"><h2>${t("Рабочие области", "Workspaces")}</h2><p class="muted">${t("SSH-терминал и ридер логов в стиле Dock.", "SSH terminal and log reader in Dock style.")}</p><div class="component-row"><button data-page="ssh">${t("SSH-консоль", "SSH console")}</button><button data-page="logs">${t("Log-ридер", "Log reader")}</button></div></section>
|
||||||
<section class="specimen"><h2>${t("Иконки Anidev", "Anidev icons")}</h2><div class="component-row icon-specimen">${["profile", "security", "sessions", "applications", "settings", "copy", "key", "bell"].map(icon).join("")}</div><p class="muted">${t("64 SVG · сетка 24×24 · контур 1.5px", "64 SVGs · 24×24 grid · 1.5px stroke")}</p><a href="${new URL("../icons/", import.meta.url).pathname}" data-icon-catalog>${t("Открыть пак иконок →", "Open icon pack →")}</a></section>
|
<section class="specimen"><h2>${t("Иконки Anidev", "Anidev icons")}</h2><div class="component-row icon-specimen">${["profile", "security", "sessions", "applications", "settings", "copy", "key", "bell"].map(icon).join("")}</div><p class="muted">${t("64 SVG · сетка 24×24 · контур 1.5px", "64 SVGs · 24×24 grid · 1.5px stroke")}</p><a href="${new URL("../icons/", import.meta.url).pathname}" data-icon-catalog>${t("Открыть пак иконок →", "Open icon pack →")}</a></section>
|
||||||
@@ -842,6 +881,7 @@ document.addEventListener("click", async (e) => {
|
|||||||
const fromDock = Boolean(pageButton.closest(".navigation"));
|
const fromDock = Boolean(pageButton.closest(".navigation"));
|
||||||
if (fromDock && page === pageButton.dataset.page) return;
|
if (fromDock && page === pageButton.dataset.page) return;
|
||||||
page = pageButton.dataset.page;
|
page = pageButton.dataset.page;
|
||||||
|
if (["ssh", "logs"].includes(page)) administrationOpen = true;
|
||||||
$("#dialog").close();
|
$("#dialog").close();
|
||||||
render({ preserveDock: fromDock });
|
render({ preserveDock: fromDock });
|
||||||
if (fromDock && document.body.classList.contains("dock-open")) {
|
if (fromDock && document.body.classList.contains("dock-open")) {
|
||||||
@@ -876,6 +916,32 @@ document.addEventListener("click", async (e) => {
|
|||||||
.querySelectorAll("[popover=auto]:popover-open")
|
.querySelectorAll("[popover=auto]:popover-open")
|
||||||
.forEach((el) => el.hidePopover());
|
.forEach((el) => el.hidePopover());
|
||||||
const actions = {
|
const actions = {
|
||||||
|
"toast-success": () =>
|
||||||
|
toast(t("Изменения сохранены.", "Changes saved."), { type: "success" }),
|
||||||
|
"toast-info": () =>
|
||||||
|
toast(
|
||||||
|
t(
|
||||||
|
"В журнале появилось новое событие.",
|
||||||
|
"A new event is available in the log.",
|
||||||
|
),
|
||||||
|
{ type: "info" },
|
||||||
|
),
|
||||||
|
"toast-warning": () =>
|
||||||
|
toast(
|
||||||
|
t(
|
||||||
|
"Срок действия сессии скоро истечёт.",
|
||||||
|
"Your session will expire soon.",
|
||||||
|
),
|
||||||
|
{ type: "warning" },
|
||||||
|
),
|
||||||
|
"toast-error": () =>
|
||||||
|
toast(
|
||||||
|
t(
|
||||||
|
"Не удалось выполнить операцию. Попробуйте ещё раз.",
|
||||||
|
"The operation failed. Please try again.",
|
||||||
|
),
|
||||||
|
{ type: "error" },
|
||||||
|
),
|
||||||
shares: () =>
|
shares: () =>
|
||||||
openDialog(
|
openDialog(
|
||||||
t("Мои общие ресурсы", "My shares"),
|
t("Мои общие ресурсы", "My shares"),
|
||||||
@@ -890,6 +956,10 @@ document.addEventListener("click", async (e) => {
|
|||||||
}
|
}
|
||||||
setDockOpen(!document.body.classList.contains("dock-open"));
|
setDockOpen(!document.body.classList.contains("dock-open"));
|
||||||
},
|
},
|
||||||
|
"administration-toggle": () =>
|
||||||
|
setAdministration(
|
||||||
|
!administrationOpen || !document.body.classList.contains("dock-open"),
|
||||||
|
),
|
||||||
"dock-close": () => setDockOpen(false),
|
"dock-close": () => setDockOpen(false),
|
||||||
"mobile-menu": () =>
|
"mobile-menu": () =>
|
||||||
setDockOpen(!document.body.classList.contains("dock-open")),
|
setDockOpen(!document.body.classList.contains("dock-open")),
|
||||||
@@ -1079,6 +1149,40 @@ document.addEventListener("keydown", (e) => {
|
|||||||
$(".dock-account")?.focus();
|
$(".dock-account")?.focus();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const groupTarget = e.target.closest?.("[data-nav-group=administration]");
|
||||||
|
if (
|
||||||
|
groupTarget &&
|
||||||
|
document.body.classList.contains("dock-open") &&
|
||||||
|
!e.ctrlKey &&
|
||||||
|
!e.altKey &&
|
||||||
|
!e.metaKey
|
||||||
|
) {
|
||||||
|
if (e.key === "ArrowRight" && e.target.closest(".nav-group-toggle")) {
|
||||||
|
e.preventDefault();
|
||||||
|
setAdministration(true, true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (e.key === "ArrowLeft" || (e.key === "Escape" && administrationOpen)) {
|
||||||
|
e.preventDefault();
|
||||||
|
setAdministration(false);
|
||||||
|
$(".nav-group-toggle").focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
||||||
|
e.preventDefault();
|
||||||
|
const items = [
|
||||||
|
groupTarget.querySelector(".nav-group-toggle"),
|
||||||
|
...(administrationOpen
|
||||||
|
? groupTarget.querySelectorAll("[data-page]")
|
||||||
|
: []),
|
||||||
|
];
|
||||||
|
const at = items.indexOf(e.target),
|
||||||
|
next =
|
||||||
|
(at + (e.key === "ArrowDown" ? 1 : -1) + items.length) % items.length;
|
||||||
|
items[next].focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (document.body.classList.contains("dock-open")) {
|
if (document.body.classList.contains("dock-open")) {
|
||||||
if (e.key === "Escape") {
|
if (e.key === "Escape") {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@@ -1087,7 +1191,7 @@ document.addEventListener("keydown", (e) => {
|
|||||||
}
|
}
|
||||||
if (e.key === "Tab") {
|
if (e.key === "Tab") {
|
||||||
const items = [...$(".navigation").querySelectorAll("button")].filter(
|
const items = [...$(".navigation").querySelectorAll("button")].filter(
|
||||||
(el) => el.getClientRects().length && !el.closest("[popover]"),
|
(el) => el.getClientRects().length && !el.closest("[popover], [inert]"),
|
||||||
);
|
);
|
||||||
const first = items[0],
|
const first = items[0],
|
||||||
last = items.at(-1);
|
last = items.at(-1);
|
||||||
@@ -1198,6 +1302,7 @@ addEventListener("storage", (e) => {
|
|||||||
});
|
});
|
||||||
function navigate(next) {
|
function navigate(next) {
|
||||||
page = next;
|
page = next;
|
||||||
|
if (["ssh", "logs"].includes(page)) administrationOpen = true;
|
||||||
$("#dialog").close();
|
$("#dialog").close();
|
||||||
render();
|
render();
|
||||||
$("#content")?.focus();
|
$("#content")?.focus();
|
||||||
@@ -1234,6 +1339,7 @@ addEventListener("popstate", () => {
|
|||||||
page = Object.keys(pageNames).includes(route.searchParams.get("page"))
|
page = Object.keys(pageNames).includes(route.searchParams.get("page"))
|
||||||
? route.searchParams.get("page")
|
? route.searchParams.get("page")
|
||||||
: "dashboard";
|
: "dashboard";
|
||||||
|
if (["ssh", "logs"].includes(page)) administrationOpen = true;
|
||||||
theme = route.searchParams.get("theme") === "dark" ? "dark" : "light";
|
theme = route.searchParams.get("theme") === "dark" ? "dark" : "light";
|
||||||
tokens = tokensFor("dock", theme, rawAccent || undefined, density);
|
tokens = tokensFor("dock", theme, rawAccent || undefined, density);
|
||||||
document.documentElement.style.cssText = cssVars(tokens);
|
document.documentElement.style.cssText = cssVars(tokens);
|
||||||
|
|||||||
@@ -119,3 +119,16 @@ Log reader: фильтры уровня/сервиса/текста, подсв
|
|||||||
Повторены Core 50/50, standalone site 35/35, Dock 10/10 и feedback/scroll 24/24. Всего текущего прохода 202; ошибок JavaScript нет. npm run check проходит. Скриншоты обеих тем и трёх размеров просмотрены в references/workspaces. Это не полный аудит доступности.
|
Повторены Core 50/50, standalone site 35/35, Dock 10/10 и feedback/scroll 24/24. Всего текущего прохода 202; ошибок JavaScript нет. npm run check проходит. Скриншоты обеих тем и трёх размеров просмотрены в references/workspaces. Это не полный аудит доступности.
|
||||||
|
|
||||||
Экспорт 110 файлов: CRC всех записей и вложенного SVG ZIP проверены; присутствуют оба компонента, CSS, PTY fixture, xterm runtime и лицензии. Распакованный экспорт запущен на отдельном loopback-сервере: ввод в SSH, чёрный фон и фильтры логов работают без репозитория/CDN, ошибок JavaScript нет. QA-сервер закрыт после проверки.
|
Экспорт 110 файлов: CRC всех записей и вложенного SVG ZIP проверены; присутствуют оба компонента, CSS, PTY fixture, xterm runtime и лицензии. Распакованный экспорт запущен на отдельном loopback-сервере: ввод в SSH, чёрный фон и фильтры логов работают без репозитория/CDN, ошибок JavaScript нет. QA-сервер закрыт после проверки.
|
||||||
|
|
||||||
|
|
||||||
|
## Подменю, выбор, readonly и тосты / 01.12.2026
|
||||||
|
|
||||||
|
В Dock добавлена disclosure-группа «Администрирование» с SSH-консолью и логами. Проверены текущая страница/активный раздел, сохранение раскрытия после переходов, повторный клик, Right/Left/Up/Down/Escape, aria-expanded/controls и inert закрытого подменю. На коротком экране навигация прокручивается, аккаунт остаётся видимым. Подпись группы не сталкивается с шевроном.
|
||||||
|
|
||||||
|
В примере Inputs/Selects появился зазор 12px, одинаковая высота и мобильное размещение столбцом. Поле Read only теперь readonly: попытка ввода не меняет значение, выделение/копирование доступны. У #content убрана гигантская обводка при программном фокусе. Радио/checkbox оформлены в choice-pill; центры input/подписи/капсулы измерены в одном layout кадре, native выбор сохранён.
|
||||||
|
|
||||||
|
Тосты success/info/warning/error вынесены в components/toast.js, подключены к приложению и каталогу иконок, включены в экспорт. Проверены типы/роли/иконки/текст, пауза таймера при hover, отсутствие автоскрытия ошибки, неизвестный тип → info и безопасное отображение HTML как текста. Тост в dialog доступен для закрытия и возвращает фокус кнопке копирования; фон модального окна его не перекрывает. Ширина учитывает scrollbar-gutter.
|
||||||
|
|
||||||
|
Новая suite navigation-feedback — 79/79: обе темы, RU/EN, desktop/tablet/mobile, короткий viewport, таймеры, focus, reduced motion. Общий проход: Core 50, standalone 35, Dock 10, scroll/feedback 24, Icons 91, Identity 94, TOTP 4, Workspaces 83 и Navigation/feedback 79 — всего 470/470, ошибок JavaScript нет. Это браузерная проверка и визуальный просмотр; не полный аудит доступности.
|
||||||
|
|
||||||
|
Массовый прогон выявил отказы подключения локального Python preview при параллельной загрузке модулей: контрольный запуск дал 17/24 успешных запроса. Очередь увеличена до 128, в Windows включён SO_EXCLUSIVEADDRUSE, чтобы порт не делили два процесса; успешные запросы больше не засоряют консоль. После перезапуска — 3×24/24 запросов, затем весь браузерный проход 470/470. Временный Node QA-сервер на 4174 остановлен; основной preview 4173 оставлен для просмотра.
|
||||||
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"date": "2026-11-30T20:51:26.151Z",
|
"date": "2026-11-30T23:10:11.396Z",
|
||||||
"passed": 94,
|
"passed": 94,
|
||||||
"failed": 0,
|
"failed": 0,
|
||||||
"failures": [],
|
"failures": [],
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"passed": 79,
|
||||||
|
"errors": [],
|
||||||
|
"checks": "Submenu hierarchy/routes/active section/keys/inert/short viewport; readonly and no landmark outline; control spacing/heights; choice pill centering and behavior; four toast variants/roles/layout; modal close hit testing; paused timers/persistent errors/text safety/reduced motion"
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 5.3 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"clientDate": "2026-11-30",
|
"clientDate": "2026-12-01",
|
||||||
"design": "dock",
|
"design": "dock",
|
||||||
"entry": "standalone root index.html",
|
"entry": "standalone root index.html",
|
||||||
"corePassed": 50,
|
"corePassed": 50,
|
||||||
@@ -8,13 +8,13 @@
|
|||||||
"totpGeometryPassed": 4,
|
"totpGeometryPassed": 4,
|
||||||
"feedbackAndScrollPassed": 24,
|
"feedbackAndScrollPassed": 24,
|
||||||
"sitePassed": 35,
|
"sitePassed": 35,
|
||||||
"totalPassed": 316,
|
"totalPassed": 470,
|
||||||
"failed": 0,
|
"failed": 0,
|
||||||
"errors": [],
|
"errors": [],
|
||||||
"export": "110 files; SSH/log workspaces; vendored xterm and licenses; nested icon ZIP; CRC and standalone runtime verified",
|
"export": "111 files; shared toast notifier; warning token; submenu and choice pills; local xterm runtime",
|
||||||
"iconChecksPassed": 91,
|
"iconChecksPassed": 91,
|
||||||
"polishScenariosPassed": 8,
|
|
||||||
"workspacesPassed": 83,
|
"workspacesPassed": 83,
|
||||||
"lastWorkspaceRunPassed": 202,
|
"lastWorkspaceDate": "2026-12-01",
|
||||||
"lastWorkspaceDate": "2026-12-01"
|
"navigationFeedbackPassed": 79,
|
||||||
|
"historicalPolishScenariosPassed": 8
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |