-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Expand file tree
/
Copy pathindex.component.html
More file actions
23 lines (22 loc) · 911 Bytes
/
index.component.html
File metadata and controls
23 lines (22 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div
class="component-group dark-scrollbar justify-center md:justify-start"
*ngIf="components.length > 0"
[class.directionCol]="direction === 'column'"
>
<ng-container *ngFor="let item of components; trackBy: trackByItem">
<ng-container [ngSwitch]="item.type">
<app-calendar *ngSwitchCase="ComponentType.Calendar" [data]="item" />
<app-runtime *ngSwitchCase="ComponentType.Runtime" [data]="item" />
<app-offwork *ngSwitchCase="ComponentType.OffWork" [data]="item" />
<app-image *ngSwitchCase="ComponentType.Image" [data]="item" />
<app-countdown *ngSwitchCase="ComponentType.Countdown" [data]="item" />
<app-html
*ngSwitchCase="ComponentType.HTML"
[data]="item"
[class.hidden]="!item['html']"
/>
<app-holiday *ngSwitchCase="ComponentType.Holiday" [data]="item" />
</ng-container>
</ng-container>
<ng-content />
</div>