Skip to content

Commit ab88d8a

Browse files
ert78gbmondalaci
authored andcommitted
feat(agent): Add 'Device' menu and submenus (#461)
1 parent 041d4de commit ab88d8a

14 files changed

+111
-20
lines changed

packages/uhk-web/src/app/components/device/settings/device-settings.component.html renamed to packages/uhk-web/src/app/components/device/configuration/device-configuration.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1>
2-
<i class="fa fa-cog"></i>
3-
<span>Device settings</span>
2+
<i class="fa fa-sliders"></i>
3+
<span>Device configuration</span>
44
</h1>
55

66
<ul class="list-unstyled btn-list">

packages/uhk-web/src/app/components/device/settings/device-settings.component.scss renamed to packages/uhk-web/src/app/components/device/configuration/device-configuration.component.scss

File renamed without changes.

packages/uhk-web/src/app/components/device/settings/device-settings.component.ts renamed to packages/uhk-web/src/app/components/device/configuration/device-configuration.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import { SaveUserConfigInBinaryFileAction, SaveUserConfigInJsonFileAction } from
77

88
@Component({
99
selector: 'device-settings',
10-
templateUrl: './device-settings.component.html',
11-
styleUrls: ['./device-settings.component.scss'],
10+
templateUrl: './device-configuration.component.html',
11+
styleUrls: ['./device-configuration.component.scss'],
1212
host: {
1313
'class': 'container-fluid'
1414
}
1515
})
16-
export class DeviceSettingsComponent {
16+
export class DeviceConfigurationComponent {
1717

1818
constructor(private store: Store<AppState>) {
1919
}
Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
import { Routes } from '@angular/router';
22

3-
import { DeviceSettingsComponent } from './settings/device-settings.component';
3+
import { DeviceConfigurationComponent } from './configuration/device-configuration.component';
4+
import { DeviceFirmwareComponent } from './firmware/device-firmware.component';
5+
import { MouseSpeedComponent } from './mouse-speed/mouse-speed.component';
46

57
export const deviceRoutes: Routes = [
68
{
7-
path: '',
8-
redirectTo: 'device',
9-
pathMatch: 'full'
10-
},
11-
{
12-
path: 'device/settings',
13-
component: DeviceSettingsComponent
9+
path: 'device',
10+
children: [
11+
{
12+
path: '',
13+
redirectTo: 'configuration',
14+
pathMatch: 'full'
15+
},
16+
{
17+
path: 'configuration',
18+
component: DeviceConfigurationComponent
19+
},
20+
{
21+
path: 'mouse-speed',
22+
component: MouseSpeedComponent
23+
},
24+
{
25+
path: 'firmware',
26+
component: DeviceFirmwareComponent
27+
}
28+
]
1429
}
1530
];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<h1>
2+
<i class="fa fa-sliders"></i>
3+
<span>Firmware</span>
4+
</h1>
5+
<p>
6+
Coming soon ...
7+
</p>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
:host {
2+
overflow-y: auto;
3+
display: block;
4+
height: 100%;
5+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'device-firmware',
5+
templateUrl: './device-firmware.component.html',
6+
styleUrls: ['./device-firmware.component.scss'],
7+
host: {
8+
'class': 'container-fluid'
9+
}
10+
})
11+
export class DeviceFirmwareComponent {
12+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
export * from './settings/device-settings.component';
1+
export * from './configuration/device-configuration.component';
2+
export * from './firmware/device-firmware.component';
3+
export * from './mouse-speed/mouse-speed.component';
24
export * from './device.routes';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<h1>
2+
<i class="fa fa-sliders"></i>
3+
<span>Firmware</span>
4+
</h1>
5+
<p>
6+
Coming soon ...
7+
</p>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
:host {
2+
overflow-y: auto;
3+
display: block;
4+
height: 100%;
5+
}

0 commit comments

Comments
 (0)