-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding an update counter on masonry cards * WIP Count updates + more * remove libs + fixes * Hide empty Group Name * Change Column Width inside a grouped holder * Release 0.3.1 * lint markdown * extract masonry options to inside masonry * fix test for good
- Loading branch information
Showing
30 changed files
with
332 additions
and
151 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
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
4 changes: 3 additions & 1 deletion
4
apps/senstate-dashboard/src/app/components/shared/group-holder/group-holder.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,5 +1,7 @@ | ||
<div class="group-name"> | ||
<div class="inner-padding"> | ||
<div class="group-name" *ngIf="showGroupName"> | ||
<ng-content select="[group_holder__name]"></ng-content> | ||
</div> | ||
|
||
<ng-content></ng-content> | ||
</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
65 changes: 46 additions & 19 deletions
65
...state-dashboard/src/app/components/tab-content/watchers-list/watchers-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 |
---|---|---|
@@ -1,23 +1,50 @@ | ||
<ng-container *ngIf="watchers$ |async as watchers"> | ||
<h2 class="mat-h3" *ngIf="watchers.length === 0"> | ||
<ng-container *ngIf="groupedWatchers$ |async as grouped"> | ||
<h2 class="mat-h3" *ngIf="grouped.length === 0"> | ||
No watchers yet :) | ||
</h2> | ||
|
||
<senstate-group-holder | ||
*ngFor="let group of watchers; trackBy: trackByGroupFunc"> | ||
<b *ngIf="group.key && group.key !== 'undefined'" | ||
group_holder__name> | ||
{{group.key}} - Watchers: {{group.watchers.length}} | ||
</b> | ||
|
||
<div *ngFor="let tag of group.watchers; trackBy: trackByWatcherFunc" | ||
[ngSwitch]="tag.type" | ||
class="watcher-entry"> | ||
<code>{{ tag.tag }}:</code> | ||
<i class="mat-small" | ||
*ngIf="debugToggle.showDebugId$() | async">{{tag.watchId}}</i> | ||
<br /> | ||
<senstate-list-json-value [watchId]="tag.watchId"></senstate-list-json-value> | ||
</div> | ||
</senstate-group-holder> | ||
<div class="groups" [cssProps]="{'--group-holder-width': grouped.length > 1 ? groupedColumnWidth : 100 }"> | ||
|
||
<senstate-group-holder | ||
*ngFor="let group of grouped; trackBy: trackByGroupFunc" | ||
[showGroupName]="group.haveGroups"> | ||
|
||
<b *ngIf="group.hasName" group_holder__name> | ||
{{group.key}} - Watchers: {{group.watchers.length}} | ||
</b> | ||
|
||
<div class="watcher-holder" | ||
[cssProps]="{'--watcher-holder-width': group.watchers.length > 1 ? watcherColumnWidth : 100 }"> | ||
<div *ngFor="let tag of group.watchers; trackBy: trackByWatcherFunc" | ||
[ngSwitch]="tag.type" | ||
class="watcher-entry"> | ||
<code>{{ tag.tag }}:</code> | ||
<i class="mat-small" | ||
*ngIf="debugToggle.showDebugId$() | async">{{tag.watchId}}</i> | ||
<br /> | ||
<senstate-list-json-value [watchId]="tag.watchId"></senstate-list-json-value> | ||
</div> | ||
</div> | ||
</senstate-group-holder> | ||
|
||
</div> | ||
</ng-container> | ||
|
||
<ng-template [dynamicPortalSource]="'view-options_'+appId"> | ||
<hr class="divider" /> | ||
|
||
<label>Grouped Width</label> | ||
<mat-select [(value)]="groupedColumnWidth" > | ||
<mat-option [value]="50">2 Columns</mat-option> | ||
<mat-option [value]="33">3 Columns</mat-option> | ||
<mat-option [value]="25">4 Columns</mat-option> | ||
</mat-select> | ||
<hr class="divider" /> | ||
|
||
<label>Watchers Width</label> | ||
<mat-select [(value)]="watcherColumnWidth" > | ||
<mat-option [value]="50">2 Columns</mat-option> | ||
<mat-option [value]="33">3 Columns</mat-option> | ||
<mat-option [value]="25">4 Columns</mat-option> | ||
</mat-select> | ||
</ng-template> |
Oops, something went wrong.