-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NAS-131978 / 25.04 / Instances table and layout (#10971)
* NAS-131978: Instances table and layout * NAS-131978: Instances table and layout * NAS-131978: Instances table and layout * NAS-131978: Update tests
- Loading branch information
1 parent
8b74fc7
commit c636124
Showing
111 changed files
with
1,401 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 12 additions & 5 deletions
17
src/app/pages/virtualization/components/all-instances/all-instances.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
.demo-layout { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
@import 'scss-imports/variables'; | ||
@import 'mixins/layout'; | ||
|
||
.demo-table { | ||
height: 100%; | ||
@include tree-node-with-details-container; | ||
|
||
:host { | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
|
||
.table-container { | ||
background: var(--bg2); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../virtualization/components/all-instances/instance-details/instance-details.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="cards"> | ||
<div class="scroll-window"> | ||
<ix-instance-devices></ix-instance-devices> | ||
<ix-instance-devices [instance]="instance()"></ix-instance-devices> | ||
<ix-instance-general-info [instance]="instance()"></ix-instance-general-info> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 13 additions & 2 deletions
15
...omponents/all-instances/instance-details/instance-devices/instance-devices.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
@import 'mixins/cards'; | ||
@import 'scss-imports/variables'; | ||
|
||
mat-card-content p { | ||
margin: 0 0 6px; | ||
:host { | ||
.card { | ||
@include details-card(); | ||
margin: 0; | ||
|
||
mat-card-header { | ||
button { | ||
margin-left: 8px; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
.../pages/virtualization/components/all-instances/instance-list/instance-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<div class="container"> | ||
<div class="table-container"> | ||
<div class="item-search"> | ||
@if (!showMobileDetails()) { | ||
<ix-fake-progress-bar | ||
class="loader-bar" | ||
[loading]="isLoading()" | ||
></ix-fake-progress-bar> | ||
} | ||
|
||
<ix-search-input1 | ||
[maxLength]="100" | ||
[disabled]="!instances().length" | ||
[value]="searchQuery()" | ||
(search)="onSearch($event)" | ||
></ix-search-input1> | ||
</div> | ||
|
||
<div class="instances"> | ||
@if (filteredInstances()?.length) { | ||
<div class="instances-header-row"> | ||
<div class="cell checkbox"> | ||
<mat-checkbox | ||
color="primary" | ||
ixTest="select-all-app" | ||
[checked]="isAllSelected()" | ||
[indeterminate]="!isAllSelected() && !!selection.selected.length" | ||
(change)="toggleAllChecked($event.checked)" | ||
></mat-checkbox> | ||
</div> | ||
<div class="cell">{{ 'Name' | translate }}</div> | ||
<div class="cell">{{ 'Type' | translate }}</div> | ||
<div class="cell">{{ 'Status' | translate }}</div> | ||
<div class="cell actions">{{ 'Controls' | translate }}</div> | ||
</div> | ||
} @else { | ||
<ix-empty [conf]="emptyConfig()"></ix-empty> | ||
} | ||
|
||
@for (instance of filteredInstances(); track instance.id) { | ||
<ix-instance-row | ||
[instance]="instance" | ||
[class.selected]="selectedInstance()?.id === instance.id" | ||
[selected]="selection.isSelected(instance.id)" | ||
(click)="viewDetails(instance)" | ||
(keydown.enter)="viewDetails(instance)" | ||
(onStart)="start(instance.id)" | ||
(onStop)="stop(instance.id)" | ||
(onRestart)="restart(instance.id)" | ||
></ix-instance-row> | ||
} | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.