* add new page and ipc processing * refactor: remove unused references from uhk.js * feat: add device recovery route * refactor: device permission * feat: write firmware update log to the screen * fix: xterm height * feat: add reload button to the recovery page * refactor: deviceConnectionState.hasPermission in appStartInfo * refactor: use correct imports * refactor: move .ok-button css class to the main style.scss * feat: add bootload active route guard * style: move RecoveryDeviceAction into new line * feat: delete reload button * feat: start device polling after device recovery
46 lines
1.5 KiB
TypeScript
46 lines
1.5 KiB
TypeScript
import { Routes } from '@angular/router';
|
|
|
|
import { DeviceConfigurationComponent } from './configuration/device-configuration.component';
|
|
import { DeviceFirmwareComponent } from './firmware/device-firmware.component';
|
|
import { MouseSpeedComponent } from './mouse-speed/mouse-speed.component';
|
|
import { LEDBrightnessComponent } from './led-brightness/led-brightness.component';
|
|
import { RestoreConfigurationComponent } from './restore-configuration/restore-configuration.component';
|
|
import { RecoveryModeComponent } from './recovery-mode/recovery-mode.component';
|
|
|
|
export const deviceRoutes: Routes = [
|
|
{
|
|
path: 'device',
|
|
children: [
|
|
{
|
|
path: '',
|
|
redirectTo: 'configuration',
|
|
pathMatch: 'full'
|
|
},
|
|
{
|
|
path: 'configuration',
|
|
component: DeviceConfigurationComponent
|
|
},
|
|
{
|
|
path: 'mouse-speed',
|
|
component: MouseSpeedComponent
|
|
},
|
|
{
|
|
path: 'led-brightness',
|
|
component: LEDBrightnessComponent
|
|
},
|
|
{
|
|
path: 'firmware',
|
|
component: DeviceFirmwareComponent
|
|
},
|
|
{
|
|
path: 'restore-user-configuration',
|
|
component: RestoreConfigurationComponent
|
|
},
|
|
{
|
|
path: 'recovery-mode',
|
|
component: RecoveryModeComponent
|
|
}
|
|
]
|
|
}
|
|
];
|