2023-12-04 21:19:43 +00:00
|
|
|
<nav class="devtools-nav" #navBar mat-tab-nav-bar [color]="'accent'" [tabPanel]="tabPanel">
|
2021-02-13 10:22:04 +00:00
|
|
|
<div id="nav-buttons">
|
2023-08-30 22:41:16 +00:00
|
|
|
<button (click)="toggleInspector()" matTooltip="Inspect element">
|
|
|
|
|
<mat-icon [class.inspector-active]="inspectorRunning"> pin_end </mat-icon>
|
2021-02-13 10:22:04 +00:00
|
|
|
</button>
|
2023-08-30 22:41:16 +00:00
|
|
|
<button [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>
|
2023-08-30 22:41:16 +00:00
|
|
|
<button [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>
|
2023-12-04 21:19:43 +00:00
|
|
|
@for (tab of tabs; track $index) {
|
|
|
|
|
<a class="mat-tab-link" mat-tab-link (click)="changeTab(tab)" [active]="activeTab === tab">
|
|
|
|
|
{{ tab }}
|
|
|
|
|
</a>
|
|
|
|
|
}
|
|
|
|
|
@if (angularVersion) {
|
|
|
|
|
<section id="app-angular-version">
|
|
|
|
|
Angular version:
|
|
|
|
|
<span id="version-number">
|
|
|
|
|
{{ angularVersion }}
|
|
|
|
|
</span>
|
|
|
|
|
@if (latestSHA) {
|
|
|
|
|
| DevTools SHA: {{ latestSHA }}
|
|
|
|
|
}
|
|
|
|
|
</section>
|
|
|
|
|
}
|
2021-02-13 10:22:04 +00:00
|
|
|
</nav>
|
2023-12-04 21:19:43 +00:00
|
|
|
<mat-tab-nav-panel #tabPanel>
|
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"
|
2022-04-18 07:35:56 +00:00
|
|
|
[class.hidden]="activeTab !== 'Components'"
|
2021-02-13 10:22:04 +00:00
|
|
|
(toggleInspector)="toggleInspector()"
|
2023-12-04 21:19:43 +00:00
|
|
|
/>
|
|
|
|
|
<ng-profiler [class.hidden]="activeTab !== 'Profiler'"/>
|
|
|
|
|
<ng-router-tree [routes]="routes" [class.hidden]="activeTab !== 'Router Tree'"/>
|
|
|
|
|
<ng-injector-tree [class.hidden]="activeTab !== 'Injector Tree'"/>
|
2020-06-02 16:13:30 +00:00
|
|
|
</div>
|
2023-12-04 21:19:43 +00:00
|
|
|
</mat-tab-nav-panel>
|
2022-04-18 07:35:56 +00:00
|
|
|
<mat-menu #menu="matMenu">
|
2023-08-30 22:41:16 +00:00
|
|
|
<div mat-menu-item disableRipple (click)="$event.stopPropagation(); toggleTimingAPI()">
|
|
|
|
|
<mat-slide-toggle [checked]="timingAPIEnabled">
|
|
|
|
|
Enable timing API
|
|
|
|
|
</mat-slide-toggle>
|
2022-04-18 07:35:56 +00:00
|
|
|
</div>
|
2023-08-30 22:41:16 +00:00
|
|
|
<div mat-menu-item disableRipple (click)="$event.stopPropagation(); themeService.toggleDarkMode(currentTheme === 'light-theme')">
|
|
|
|
|
<mat-slide-toggle [checked]="currentTheme === 'dark-theme'">
|
|
|
|
|
Dark Mode
|
|
|
|
|
</mat-slide-toggle>
|
2022-04-18 07:35:56 +00:00
|
|
|
</div>
|
2023-08-30 22:41:16 +00:00
|
|
|
<div mat-menu-item disableRipple (click)="$event.stopPropagation(); showCommentNodes = $event.checked">
|
|
|
|
|
<mat-slide-toggle [checked]="showCommentNodes">
|
|
|
|
|
Show comment nodes
|
|
|
|
|
</mat-slide-toggle>
|
2022-04-18 07:35:56 +00:00
|
|
|
</div>
|
2020-05-07 03:21:32 +00:00
|
|
|
</mat-menu>
|
2021-05-03 23:13:23 +00:00
|
|
|
<mat-menu #info="matMenu">
|
2022-04-18 07:35:56 +00:00
|
|
|
<a mat-menu-item href="https://angular.io/devtools" target="_blank">
|
|
|
|
|
<mat-icon>library_books</mat-icon>
|
|
|
|
|
Guide
|
|
|
|
|
</a>
|
|
|
|
|
<a mat-menu-item href="https://github.com/angular/angular" target="_blank">
|
|
|
|
|
<mat-icon>launch</mat-icon>
|
|
|
|
|
GitHub
|
|
|
|
|
</a>
|
|
|
|
|
<a mat-menu-item href="https://github.com/angular/angular/issues" target="_blank">
|
|
|
|
|
<mat-icon>bug_report</mat-icon>
|
|
|
|
|
Issues
|
|
|
|
|
</a>
|
2021-05-03 23:13:23 +00:00
|
|
|
</mat-menu>
|