|
28 | 28 | <ion-fab-button class="custom-fab-button" color="light" [routerLink]="'/tabs/menu/server-status'"> |
29 | 29 | <ion-icon [name]="lastServerResponseDeltaInSeconds < 2400?'wifi':'wifi-outline'"></ion-icon> |
30 | 30 | </ion-fab-button> |
31 | | - <div class="fab-label">{{lastServerResponseDeltaInSeconds < 240?'Online':'Offline'}}: {{lastServerResponseTime | date: 'dd.MM.yy HH:mm'}}</div> |
32 | | - </div> |
33 | | - <div class="col"> |
34 | | - <ion-fab-button class="custom-fab-button" color="light" (click)="getPlayerStatus()"> |
35 | | - <ion-icon [name]="numberOfPlayingStreams>0?'musical-note':'musical-note-outline'"></ion-icon> |
36 | | - </ion-fab-button> |
37 | | - <div class="fab-label">{{numberOfPlayingStreams +"/"+ totalStreams}} Stream(s) playing</div> |
| 31 | + <div class="fab-label">{{lastServerResponseDeltaInSeconds < 240?'Online':'Offline'}}: {{lastServerResponseTime | |
| 32 | + date: 'dd.MM.yy HH:mm' }}</div> |
| 33 | + </div> |
| 34 | + <div class="col"> |
| 35 | + <ion-fab-button class="custom-fab-button" color="light" (click)="getPlayerStatus()"> |
| 36 | + <ion-icon [name]="numberOfPlayingStreams>0?'musical-note':'musical-note-outline'"></ion-icon> |
| 37 | + </ion-fab-button> |
| 38 | + <div class="fab-label">{{numberOfPlayingStreams +"/"+ totalStreams}} Stream(s) playing</div> |
| 39 | + |
| 40 | + </div> |
38 | 41 |
|
39 | 42 | </div> |
40 | 43 |
|
41 | | - </div> |
42 | 44 |
|
43 | 45 |
|
| 46 | + </div> |
44 | 47 |
|
45 | | - </div> |
| 48 | + <ng-container *ngIf="(displayState|async) as state else noState"> |
| 49 | + <div class="container"> |
| 50 | + <ion-list-header> |
| 51 | + <ion-label><span *ngIf="userPreeferenceUsername as name">{{name ? name+"s": 'Your'}}</span> |
| 52 | + Devices</ion-label> |
| 53 | + <ion-button size="small" fill="clear" (click)="openModal()"> |
| 54 | + <ion-icon slot="icon-only" name="add-circle-outline"></ion-icon> |
| 55 | + </ion-button> |
| 56 | + </ion-list-header> |
| 57 | + </div> |
46 | 58 |
|
47 | | - <ng-container *ngIf="(displayState|async) as state else noState"> |
48 | | - <div class="container"> |
49 | | - <ion-list-header> |
50 | | - <ion-label><span *ngIf="userPreeferenceUsername as name">{{name ? name+"s": 'Your'}}</span> Devices</ion-label> |
51 | | - <ion-button size="small" fill="clear" (click)="openModal()"> |
52 | | - <ion-icon slot="icon-only" name="add-circle-outline"></ion-icon> |
53 | | - </ion-button> |
54 | | - </ion-list-header> |
55 | | - </div> |
56 | 59 |
|
| 60 | + <div class="container-fluid"> |
| 61 | + <swiper (swiper)="onSwiper($event)" (slideChange)="onSlideChange($event)" [config]="swiperConfig"> |
| 62 | + <ng-container *ngFor="let group of state.server.groups; let i = index"> |
| 63 | + <ng-template swiperSlide *ngIf="group.clients[0].connected"> |
57 | 64 |
|
58 | | - <div class="container-fluid"> |
59 | | - <swiper (swiper)="onSwiper($event)" (slideChange)="onSlideChange($event)" [config]="swiperConfig"> |
60 | | - <ng-container *ngFor="let group of state.server.groups; let i = index"> |
61 | | - <ng-template swiperSlide *ngIf="group.clients[0].connected"> |
| 65 | + <app-snapcast-group-preview [streams]="state.server.streams" [group]="group"></app-snapcast-group-preview> |
| 66 | + </ng-template> |
62 | 67 |
|
63 | | - <app-snapcast-group-preview [streams]="state.server.streams" [group]="group"></app-snapcast-group-preview> |
64 | | - </ng-template> |
| 68 | + </ng-container> |
| 69 | + <ng-container *ngFor="let group of state.server.groups; let i = index"> |
| 70 | + <ng-template swiperSlide *ngIf="group.clients[0].connected === false"> |
| 71 | + <app-snapcast-group-preview class="disconnected" [streams]="state.server.streams" |
| 72 | + [group]="group"></app-snapcast-group-preview> |
| 73 | + </ng-template> |
65 | 74 |
|
66 | | - </ng-container> |
67 | | - <ng-container *ngFor="let group of state.server.groups; let i = index"> |
68 | | - <ng-template swiperSlide *ngIf="group.clients[0].connected === false"> |
69 | | - <app-snapcast-group-preview class="disconnected" [streams]="state.server.streams" |
70 | | - [group]="group"></app-snapcast-group-preview> |
71 | | - </ng-template> |
| 75 | + </ng-container> |
| 76 | + </swiper> |
| 77 | + </div> |
| 78 | + <div class="container"> |
72 | 79 |
|
73 | | - </ng-container> |
74 | | - </swiper> |
75 | | - </div> |
76 | | - <div class="container"> |
77 | 80 |
|
| 81 | + <ion-list-header> |
| 82 | + <ion-label><span *ngIf="userPreeferenceUsername as name">{{name ? name+"s": 'Your'}}</span> |
| 83 | + Streams</ion-label> |
| 84 | + </ion-list-header> |
| 85 | + <swiper (swiper)="onSwiper($event)" (slideChange)="onSlideChange($event)" [config]="swiperConfig"> |
| 86 | + <ng-template swiperSlide *ngFor="let stream of state.server.streams; let i = index"> |
| 87 | + <app-snapcast-stream-preview [stream]="stream"></app-snapcast-stream-preview> |
| 88 | + </ng-template> |
| 89 | + </swiper> |
| 90 | + </div> |
| 91 | + </ng-container> |
78 | 92 |
|
79 | | - <ion-list-header> |
80 | | - <ion-label><span *ngIf="userPreeferenceUsername as name">{{name ? name+"s": 'Your'}}</span> Streams</ion-label> |
81 | | - </ion-list-header> |
82 | | - <swiper (swiper)="onSwiper($event)" (slideChange)="onSlideChange($event)" [config]="swiperConfig"> |
83 | | - <ng-template swiperSlide *ngFor="let stream of state.server.streams; let i = index"> |
84 | | - <app-snapcast-stream-preview [stream]="stream"></app-snapcast-stream-preview> |
85 | | - </ng-template> |
86 | | - </swiper> |
| 93 | + <!-- <app-snapcast-status></app-snapcast-status> --> |
| 94 | + <div class="page-padding-bottom"> |
87 | 95 | </div> |
88 | | - </ng-container> |
89 | | - |
90 | | - <!-- <app-snapcast-status></app-snapcast-status> --> |
91 | | - <div class="page-padding-bottom"> |
92 | | - </div> |
93 | 96 |
|
94 | 97 | </ion-content> |
95 | 98 |
|
|
117 | 120 | Wanna use a different server? Go to the <a routerLink="/tabs/menu/settings">Settings</a> page and change the |
118 | 121 | Snapcast server URL. |
119 | 122 | <br> |
| 123 | + Just wana test test? Enable the Demo mode: |
| 124 | + |
120 | 125 |
|
121 | 126 | </ion-card-content> |
| 127 | + <ion-button fill="clear" color="primary" (click)="enableDemoMode()"> |
| 128 | + <ion-icon name="play"></ion-icon> Enable Demo Mode |
| 129 | + </ion-button> |
122 | 130 | </div> |
123 | 131 | </ng-template> |
124 | 132 | </div> |
|
0 commit comments