- Заполнены заглушки: user-friendly-messages, health, aria, keyboard - backend: core/auth.py, /api/v1/stats; cached-api → backend-client при USE_MOCK_DATA=false - .env.example, middleware auth (skip при USE_MOCK_DATA), убраны неиспользуемые deps - Страницы: airworthiness, maintenance, defects, modifications; AircraftAddModal, Sidebar - Главная страница: REFLY — Контроль лётной годности (вместо Numerology App) - Линт/скрипты: eslintrc, security, cleanup, logs, api inbox/knowledge Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
620 B
TypeScript
21 lines
620 B
TypeScript
/** Горячие клавиши и фокус. MVP: no-op реализации */
|
|
export class Hotkey {
|
|
constructor(_key: string, _handler: () => void) {}
|
|
register() {}
|
|
unregister() {}
|
|
}
|
|
|
|
export function createActivationHandler(_keys: string[], _handler: () => void) {
|
|
return () => {};
|
|
}
|
|
|
|
export function createEscapeHandler(_handler: () => void) {
|
|
return (e: KeyboardEvent) => { if (e.key === 'Escape') _handler(); };
|
|
}
|
|
|
|
export function createFocusTrap(_container: HTMLElement) {
|
|
return { activate: () => {}, deactivate: () => {} };
|
|
}
|
|
|
|
export function registerHotkeys(_map: Record<string, () => void>) {}
|