diff --git a/ogWebconsole/src/app/components/groups/groups.component.css b/ogWebconsole/src/app/components/groups/groups.component.css index 405cdc0..0cc1a01 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.css +++ b/ogWebconsole/src/app/components/groups/groups.component.css @@ -194,13 +194,13 @@ mat-spinner { .result-card { width: 100%; max-width: 250px; - height: 250px; + height: 250px; } .paginator-container { display: flex; justify-content: center; margin-bottom: 30px; - + } .divider { @@ -214,3 +214,61 @@ mat-card { .mat-tooltip { white-space: pre-line; } + +.classroom-grid { + display: flex; + flex-wrap: wrap; + gap: 16px; + justify-content: flex-start; +} + +.classroom-item { + flex: 0 1 calc(16.66% - 16px); + max-width: calc(16.66% - 16px); + box-sizing: border-box; +} + +.classroom-card { + width: 100%; + text-align: center; +} + +.client-text { + font-size: 0.8rem; + color: rgba(0, 0, 0, 0.54); +} + +.client-name { + font-size: 0.9rem; + text-align: center; +} + +.card-og-live { + background-color: #4caf50; + color: white; +} + +.card-busy { + background-color: #f44336; + color: white; +} + +.card-windows { + background-color: #2196f3; + color: white; +} + +.card-linux { + background-color: #9c27b0; + color: white; +} + +.card-macos { + background-color: #ff9800; + color: white; +} + +.card-off { + background-color: #9e9e9e; + color: white; +} diff --git a/ogWebconsole/src/app/components/groups/groups.component.html b/ogWebconsole/src/app/components/groups/groups.component.html index 43a30ba..2b97926 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.html +++ b/ogWebconsole/src/app/components/groups/groups.component.html @@ -57,7 +57,7 @@ - +
{{ 'internalElementsTitle' | translate }} @@ -71,13 +71,15 @@ - + + +
info {{ 'noInternalElementsMessage' | translate }}
-
@@ -88,46 +90,57 @@ lan help_outline - {{child.name}} + {{ child.name }}
more_vert - - - - - - - - -
+ + +
+
+ + + {{ pc.name }} + + +

{{ pc.ip }}

+

{{ pc.mac }}

+
+ + + + +
+
+
+ +
diff --git a/ogWebconsole/src/app/components/groups/groups.component.ts b/ogWebconsole/src/app/components/groups/groups.component.ts index 70af3f9..3066539 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.ts +++ b/ogWebconsole/src/app/components/groups/groups.component.ts @@ -141,11 +141,8 @@ export class GroupsComponent implements OnInit { this.breadcrumb = this.breadcrumb.slice(0, index + 1); const target = this.breadcrumbData[index]; this.breadcrumbData = this.breadcrumbData.slice(0, index + 1); - if (target.type === 'client') { - this.selectedDetail = target; - } else { - this.loadChildrenAndClients(target.id); - } + this.selectedDetail = target; + this.loadChildrenAndClients(target.id); } loadChildrenAndClients(id: string): void { @@ -303,7 +300,7 @@ export class GroupsComponent implements OnInit { } onExecuteCommand(event: MouseEvent, child: any, name: string, type:string): void { - console.log('Executing command on:', child); + console.log('Executing command on:', child); this.dialog.open(ExecuteCommandOuComponent, { width: '50%', @@ -455,7 +452,7 @@ export class GroupsComponent implements OnInit { this.joyrideService.startTour({ steps: ['groupsTitleStepText', 'addStep', 'keyStep', 'unitStep', 'elementsStep', 'tabsStep'], showPrevButton: true, - themeColor: '#3f51b5' + themeColor: '#3f51b5' }); } }