57 lines
2.4 KiB
HTML
57 lines
2.4 KiB
HTML
|
|
<!--
|
||
|
|
|
||
|
|
Copyright © 2016-2019 The Thingsboard Authors
|
||
|
|
|
||
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
|
you may not use this file except in compliance with the License.
|
||
|
|
You may obtain a copy of the License at
|
||
|
|
|
||
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
|
||
|
|
Unless required by applicable law or agreed to in writing, software
|
||
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
|
See the License for the specific language governing permissions and
|
||
|
|
limitations under the License.
|
||
|
|
|
||
|
|
-->
|
||
|
|
<mat-sidenav-container>
|
||
|
|
<mat-sidenav #sidenav class="tb-site-sidenav mat-elevation-z2"
|
||
|
|
(click)="sidenavClicked()"
|
||
|
|
[mode]="sidenavMode"
|
||
|
|
[opened]="sidenavOpened">
|
||
|
|
<header class="tb-nav-header">
|
||
|
|
<mat-toolbar color="primary" class="tb-nav-header-toolbar">
|
||
|
|
<div fxFlex="auto" fxLayout="row">
|
||
|
|
<img [src]="logo"
|
||
|
|
aria-label="logo" class="tb-logo-title"/>
|
||
|
|
</div>
|
||
|
|
</mat-toolbar>
|
||
|
|
</header>
|
||
|
|
<mat-toolbar color="primary" fxFlex="0%" class="tb-side-menu-toolbar" fxLayout="column" role="navigation">
|
||
|
|
<tb-side-menu></tb-side-menu>
|
||
|
|
</mat-toolbar>
|
||
|
|
</mat-sidenav>
|
||
|
|
<mat-sidenav-content>
|
||
|
|
<div fxLayout="column" role="main" style="height: 100%;">
|
||
|
|
<mat-toolbar fxLayout="row" color="primary" class="mat-elevation-z1 tb-primary-toolbar">
|
||
|
|
<button mat-button mat-icon-button id="main" fxHide.gt-sm (click)="sidenav.toggle()">
|
||
|
|
<mat-icon class="material-icons">menu</mat-icon>
|
||
|
|
</button>
|
||
|
|
<div fxFlex tb-breadcrumb class="mat-toolbar-tools">
|
||
|
|
</div>
|
||
|
|
<button *ngIf="fullscreenEnabled" mat-button mat-icon-button fxHide.xs fxHide.sm (click)="toggleFullscreen()">
|
||
|
|
<mat-icon class="material-icons">{{ isFullscreen() ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon>
|
||
|
|
</button>
|
||
|
|
<tb-user-menu [displayUserInfo]="true"></tb-user-menu>
|
||
|
|
</mat-toolbar>
|
||
|
|
<mat-progress-bar color="warn" style="z-index: 10; margin-bottom: -4px; width: 100%;" mode="indeterminate"
|
||
|
|
*ngIf="isLoading$ | async">
|
||
|
|
</mat-progress-bar>
|
||
|
|
<div fxFlex fxLayout="column" tb-toast class="tb-main-content">
|
||
|
|
<router-outlet></router-outlet>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</mat-sidenav-content>
|
||
|
|
</mat-sidenav-container>
|