SHA256
- Связи: верхняя панель не выходит за границы экрана — кнопки назад/Найти/«?» не обрезаются на узких устройствах; заголовок сокращается вместо сдвига кнопок. - Каналы: emoji-иконка поиска заменена на контурную кнопку-лупу в стиле панели (подсказка «Найти канал»); окно поиска без изменений. - Локальный тестовый вход: на localhost/127.0.0.1/::1 — кнопка демо-входа (сеанс local-tester, автономные локальные состояния ЛС/каналов/профиля, без сервера и пароля); на shineup.me и тестовых доменах кнопка отсутствует. - Заметки на ручную проверку добавлены в Dev_Docs/Pending_Features. - VERSION: client 1.2.262. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
40 lines
1.4 KiB
JavaScript
40 lines
1.4 KiB
JavaScript
import { renderHeader } from '../components/header.js';
|
|
|
|
export const pageMeta = { id: 'login-view', title: 'Войти', showAppChrome: false };
|
|
|
|
export function render({ navigate }) {
|
|
const screen = document.createElement('section');
|
|
screen.className = 'stack auth-screen auth-screen--lower login-choice-screen';
|
|
|
|
const loginButton = document.createElement('button');
|
|
loginButton.className = 'ghost-btn';
|
|
loginButton.type = 'button';
|
|
loginButton.textContent = 'Войти по паролю';
|
|
loginButton.addEventListener('click', () => navigate('login-password-view'));
|
|
|
|
const otherDeviceButton = document.createElement('button');
|
|
otherDeviceButton.className = 'ghost-btn';
|
|
otherDeviceButton.type = 'button';
|
|
otherDeviceButton.textContent = 'Войти через другое устройство';
|
|
otherDeviceButton.addEventListener('click', () => navigate('login-other-device-view'));
|
|
|
|
const actions = document.createElement('div');
|
|
actions.className = 'auth-actions login-actions-wide';
|
|
actions.append(loginButton, otherDeviceButton);
|
|
|
|
const panel = document.createElement('section');
|
|
panel.className = 'login-panel stack';
|
|
panel.innerHTML = '<h1 class="login-panel-title">Войти</h1>';
|
|
panel.append(actions);
|
|
|
|
screen.append(
|
|
renderHeader({
|
|
title: '',
|
|
leftAction: { label: '←', onClick: () => navigate('start-view') },
|
|
}),
|
|
panel,
|
|
);
|
|
|
|
return screen;
|
|
}
|