9 changed files with 104 additions and 43 deletions
@ -0,0 +1,7 @@ |
|||
.container { |
|||
position: absolute; |
|||
top: 0; |
|||
bottom: 0; |
|||
left: 0; |
|||
right: 0; |
|||
} |
@ -1,32 +1,71 @@ |
|||
<ng-container> |
|||
<mat-toolbar style="border-bottom: black 1px solid"> |
|||
<span>DVRIP Клиент</span> |
|||
<mat-spinner *ngIf="loading" [diameter]="50"></mat-spinner> |
|||
<span class="spacer"></span> |
|||
<ng-container *ngIf="!loading"> |
|||
<mat-form-field *ngIf="availble_channels.length>0"> |
|||
<mat-select [(value)]="selected_channel" (valueChange)="goToRoot()"> |
|||
<mat-option *ngFor="let r of availble_channels" [value]="availble_channels.indexOf(r)">{{r}}</mat-option> |
|||
</mat-select> |
|||
</mat-form-field> |
|||
<p *ngIf="availble_channels.length==0">Нет доступных каналов</p> |
|||
<span class="spacer"></span> |
|||
<mat-form-field *ngIf="availble_recorders.length>0"> |
|||
<mat-select [(value)]="selected_recorder" (valueChange)="getChannels(selected_recorder)"> |
|||
<mat-option *ngFor="let r of availble_recorders" [value]="availble_recorders.indexOf(r)">{{r}}</mat-option> |
|||
</mat-select> |
|||
</mat-form-field> |
|||
<p *ngIf="availble_recorders.length==0">Нет доступных рекордеров</p> |
|||
</ng-container> |
|||
</mat-toolbar> |
|||
<mat-toolbar *ngIf="!loading && availble_channels.length>0 && availble_recorders.length>0" style="border-bottom: black 1px solid"> |
|||
<button mat-button [routerLink]="['about', selected_recorder, selected_channel]">Обзор</button> |
|||
<span class="spacer"></span> |
|||
<button mat-button [routerLink]="['stream', selected_recorder, selected_channel]">Просмотр в реальном времени</button> |
|||
<span class="spacer"></span> |
|||
<button mat-button [routerLink]="['history', selected_recorder, selected_channel]">История обнаружений</button> |
|||
|
|||
<mat-sidenav-container class="container"> |
|||
<mat-sidenav #sidenav mode="over"> |
|||
<div> |
|||
<mat-toolbar (click)="sidenav.toggle()"> |
|||
<button mat-icon-button> |
|||
<mat-icon>menu</mat-icon> |
|||
</button> |
|||
<span>Закрыть</span> |
|||
</mat-toolbar> |
|||
<br> |
|||
<mat-form-field *ngIf="availble_recorders.length>0"> |
|||
<mat-label>Выбранный рекордер</mat-label> |
|||
<mat-select [(value)]="selected_recorder" (valueChange)="getChannels(selected_recorder)"> |
|||
<mat-option *ngFor="let r of availble_recorders" [value]="availble_recorders.indexOf(r)">{{r}}</mat-option> |
|||
</mat-select> |
|||
</mat-form-field> |
|||
<p *ngIf="availble_recorders.length==0">Нет доступных рекордеров</p> |
|||
<br> |
|||
<mat-form-field *ngIf="availble_channels.length>0"> |
|||
<mat-label>Выбранный канал</mat-label> |
|||
<mat-select [(value)]="selected_channel" (valueChange)="goToRoot()"> |
|||
<mat-option *ngFor="let r of availble_channels" [value]="availble_channels.indexOf(r)">{{r}}</mat-option> |
|||
</mat-select> |
|||
</mat-form-field> |
|||
<p *ngIf="availble_channels.length==0">Нет доступных каналов</p> |
|||
<br> |
|||
<span>DVRIP Клиент <span style="color: darkgrey">{{version}}</span></span> |
|||
</div> |
|||
</mat-sidenav> |
|||
|
|||
<mat-sidenav-content> |
|||
<mat-toolbar> |
|||
<button mat-icon-button (click)="sidenav.toggle()"> |
|||
<mat-icon>menu</mat-icon> |
|||
</button> |
|||
<span>{{availble_recorders.length == 0?'Нет доступных рекордеров':availble_recorders[selected_recorder]}} |
|||
<span>{{availble_channels.length == 0?'':'/ ' + availble_channels[selected_channel]}}</span> |
|||
</span> |
|||
<span class="spacer"></span> |
|||
<button mat-button [routerLink]="['about', selected_recorder, selected_channel]">Обзор</button> |
|||
<span class="spacer"></span> |
|||
<button mat-button [routerLink]="['stream', selected_recorder, selected_channel]">Просмотр в реальном времени</button> |
|||
<span class="spacer"></span> |
|||
<button mat-button [routerLink]="['history', selected_recorder, selected_channel]">История обнаружений</button> |
|||
<!--<span class="spacer"></span> |
|||
<button mat-button>Бибки</button>--> |
|||
</mat-toolbar> |
|||
<router-outlet></router-outlet> |
|||
</mat-sidenav-content> |
|||
</mat-sidenav-container> |
|||
</ng-container> |
|||
<!--<ng-container> |
|||
<mat-toolbar style="border-bottom: black 1px solid"> |
|||
<span>DVRIP Клиент <span style="color: darkgrey">{{version}}</span></span> |
|||
<mat-spinner *ngIf="loading" [diameter]="50"></mat-spinner> |
|||
<span class="spacer"></span> |
|||
<ng-container *ngIf="!loading"> |
|||
|
|||
|
|||
<span class="spacer"></span> |
|||
<button mat-button>Бибки</button> |
|||
</mat-toolbar> |
|||
|
|||
</ng-container> |
|||
</mat-toolbar> |
|||
<mat-toolbar *ngIf="!loading && availble_channels.length>0 && availble_recorders.length>0" style="border-bottom: black 1px solid"> |
|||
|
|||
</mat-toolbar> |
|||
</ng-container> |
|||
<router-outlet></router-outlet> |
|||
|
|||
--> |
|||
|
@ -0,0 +1 @@ |
|||
export const version = "dev"; |
Loading…
Reference in new issue