2021-02-13 10:22:04 +00:00
|
|
|
<nav #navBar mat-tab-nav-bar [color]="'accent'">
|
|
|
|
|
<div id="nav-buttons">
|
2021-05-10 18:43:25 +00:00
|
|
|
<button mat-icon-button color="primary" (click)="toggleInspector()" matTooltip="Inspect element">
|
2021-09-08 22:38:13 +00:00
|
|
|
<mat-icon [ngClass]="{ 'inspector-active': inspectorRunning }"> pin_end </mat-icon>
|
2021-02-13 10:22:04 +00:00
|
|
|
</button>
|
2021-05-10 18:43:25 +00:00
|
|
|
<button mat-icon-button color="primary" [matMenuTriggerFor]="menu" matTooltip="Open settings">
|
2021-09-08 22:38:13 +00:00
|
|
|
<mat-icon> settings </mat-icon>
|
2021-02-13 10:22:04 +00:00
|
|
|
</button>
|
2021-05-10 18:43:25 +00:00
|
|
|
<button mat-icon-button color="primary" [matMenuTriggerFor]="info" matTooltip="Info">
|
2021-09-08 22:38:13 +00:00
|
|
|
<mat-icon> info </mat-icon>
|
2021-05-03 23:13:23 +00:00
|
|
|
</button>
|
2021-02-13 10:22:04 +00:00
|
|
|
</div>
|
2021-03-13 02:18:56 +00:00
|
|
|
<a class="mat-tab-link" mat-tab-link *ngFor="let tab of tabs" (click)="changeTab(tab)" [active]="activeTab === tab">
|
2021-02-13 10:22:04 +00:00
|
|
|
{{ tab }}
|
|
|
|
|
</a>
|
|
|
|
|
<section *ngIf="angularVersion" id="app-angular-version">
|
|
|
|
|
Angular version:
|
|
|
|
|
<span id="version-number">
|
|
|
|
|
{{ angularVersion }}
|
|
|
|
|
</span>
|
|
|
|
|
<ng-container *ngIf="latestSHA; let sha"> | DevTools SHA: {{ sha }} </ng-container>
|
|
|
|
|
</section>
|
|
|
|
|
</nav>
|
2020-01-27 18:40:18 +00:00
|
|
|
|
2021-02-13 10:22:04 +00:00
|
|
|
<div class="tab-content">
|
|
|
|
|
<ng-directive-explorer
|
2021-04-28 22:50:06 +00:00
|
|
|
[showCommentNodes]="showCommentNodes"
|
2021-02-13 10:22:04 +00:00
|
|
|
[ngClass]="{ hidden: activeTab !== 'Components' }"
|
|
|
|
|
(toggleInspector)="toggleInspector()"
|
|
|
|
|
></ng-directive-explorer>
|
|
|
|
|
<ng-profiler [ngClass]="{ hidden: activeTab !== 'Profiler' }"></ng-profiler>
|
2021-03-11 05:41:50 +00:00
|
|
|
<ng-router-tree [routes]="routes" [ngClass]="{ hidden: activeTab !== 'Router Tree' }"></ng-router-tree>
|
2020-06-02 16:13:30 +00:00
|
|
|
</div>
|
2020-01-27 18:40:18 +00:00
|
|
|
|
2020-08-08 20:30:28 +00:00
|
|
|
<mat-menu #menu="matMenu" class="options-menu">
|
2021-02-13 10:22:04 +00:00
|
|
|
<mat-slide-toggle (change)="toggleTimingAPI($event)" class="menu-toggle-button" (click)="$event.stopPropagation()">
|
2020-08-08 20:31:31 +00:00
|
|
|
Enable timing API
|
2020-05-07 03:21:32 +00:00
|
|
|
</mat-slide-toggle>
|
2020-06-02 16:11:15 +00:00
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
<mat-slide-toggle
|
2020-08-08 20:43:42 +00:00
|
|
|
[checked]="currentTheme === 'dark-theme'"
|
2020-06-02 16:11:15 +00:00
|
|
|
(change)="themeService.toggleDarkMode($event.checked)"
|
|
|
|
|
class="menu-toggle-button"
|
|
|
|
|
(click)="$event.stopPropagation()"
|
|
|
|
|
>
|
|
|
|
|
Dark Mode
|
|
|
|
|
</mat-slide-toggle>
|
2021-04-28 22:50:06 +00:00
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
<mat-slide-toggle
|
|
|
|
|
(change)="showCommentNodes = $event.checked"
|
|
|
|
|
class="menu-toggle-button"
|
|
|
|
|
(click)="$event.stopPropagation()"
|
|
|
|
|
>
|
|
|
|
|
Show comment nodes
|
|
|
|
|
</mat-slide-toggle>
|
2020-05-07 03:21:32 +00:00
|
|
|
</mat-menu>
|
2021-05-03 23:13:23 +00:00
|
|
|
|
|
|
|
|
<mat-menu #info="matMenu">
|
|
|
|
|
<div class="info-menu">
|
2021-05-12 16:52:45 +00:00
|
|
|
<a mat-button class="menu-toggle-button" href="https://angular.io/devtools" target="_blank">
|
2021-05-03 23:13:23 +00:00
|
|
|
<mat-icon>library_books</mat-icon>
|
|
|
|
|
Guide
|
|
|
|
|
</a>
|
2022-01-29 04:12:23 +00:00
|
|
|
<a mat-button class="menu-toggle-button" href="https://github.com/angular/angular" target="_blank">
|
2021-05-03 23:13:23 +00:00
|
|
|
<mat-icon>launch</mat-icon>
|
|
|
|
|
GitHub
|
|
|
|
|
</a>
|
2022-01-29 04:12:23 +00:00
|
|
|
<a mat-button class="menu-toggle-button" href="https://github.com/angular/angular/issues" target="_blank">
|
2021-05-03 23:13:23 +00:00
|
|
|
<mat-icon>bug_report</mat-icon>
|
|
|
|
|
Issues
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-menu>
|