feat: TTLock page redesign — sector circles, COM dropdown, DLL diagnostics
- SectorPicker: circles 1–16, click to toggle (blue=selected, gray=not) - COM port: dropdown populated from agent's serial ports list + refresh button - Per-workstation buttons: HardDriveDownload (save), Zap (test encoder) - Workstations without COM port shown as dimmed with amber 'Энкодер не настроен' - DLL entry point error shown with hint to check TTHotel libs/index.js - Backend: GET /ttlock/dll-info?workstation_id= → reads TTHotel index.js via agent - api.ts: added dllInfo() call Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -616,6 +616,9 @@ export const api = {
|
||||
testEncoder: (slug: string, workstationId: string) =>
|
||||
req<{ ok: boolean }>('POST', `/api/hotels/${slug}/ttlock/test`, { workstationId }),
|
||||
|
||||
dllInfo: (slug: string, workstationId: string) =>
|
||||
req<{ ok: boolean; content: string; path: string }>('GET', `/api/hotels/${slug}/ttlock/dll-info?workstation_id=${workstationId}`),
|
||||
|
||||
getRoomLocks: (slug: string) =>
|
||||
req<RoomLockMapping[]>('GET', `/api/hotels/${slug}/ttlock/room-locks`),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user