66 * found in the LICENSE file at https://angular.io/license
77 */
88
9- import {
10- AfterViewInit ,
11- Component ,
12- EventEmitter ,
13- inject ,
14- Input ,
15- OnInit ,
16- Output ,
17- ViewChild ,
18- } from '@angular/core' ;
9+ import { AfterViewInit , Component , Input , OnInit , ViewChild } from '@angular/core' ;
1910import { takeUntilDestroyed } from '@angular/core/rxjs-interop' ;
2011import { MatIcon } from '@angular/material/icon' ;
2112import { MatMenu , MatMenuItem , MatMenuTrigger } from '@angular/material/menu' ;
@@ -24,8 +15,7 @@ import {MatTabLink, MatTabNav, MatTabNavPanel} from '@angular/material/tabs';
2415import { MatTooltip } from '@angular/material/tooltip' ;
2516import { Events , MessageBus , Route } from 'protocol' ;
2617
27- import { ApplicationEnvironment , Frame , TOP_LEVEL_FRAME_ID } from '../application-environment/index' ;
28- import { FrameManager } from '../frame_manager' ;
18+ import { ApplicationEnvironment } from '../application-environment/index' ;
2919import { Theme , ThemeService } from '../theme-service' ;
3020
3121import { DirectiveExplorerComponent } from './directive-explorer/directive-explorer.component' ;
@@ -62,28 +52,25 @@ export class DevToolsTabsComponent implements OnInit, AfterViewInit {
6252 @Input ( ) angularVersion : string | undefined = undefined ;
6353 @Input ( ) isHydrationEnabled = false ;
6454
65- @Output ( ) frameSelected = new EventEmitter < Frame > ( ) ;
6655 @ViewChild ( DirectiveExplorerComponent ) directiveExplorer ! : DirectiveExplorerComponent ;
6756 @ViewChild ( 'navBar' , { static : true } ) navbar ! : MatTabNav ;
6857
69- applicationEnvironment = inject ( ApplicationEnvironment ) ;
7058 activeTab : Tabs = 'Components' ;
59+
7160 inspectorRunning = false ;
7261 routerTreeEnabled = false ;
7362 showCommentNodes = false ;
7463 timingAPIEnabled = false ;
7564
7665 currentTheme ! : Theme ;
77- routes : Route [ ] = [ ] ;
78-
79- frameManager = inject ( FrameManager ) ;
8066
81- TOP_LEVEL_FRAME_ID = TOP_LEVEL_FRAME_ID ;
67+ routes : Route [ ] = [ ] ;
8268
8369 constructor (
8470 public tabUpdate : TabUpdate ,
8571 public themeService : ThemeService ,
8672 private _messageBus : MessageBus < Events > ,
73+ private _applicationEnvironment : ApplicationEnvironment ,
8774 ) {
8875 this . themeService . currentTheme
8976 . pipe ( takeUntilDestroyed ( ) )
@@ -94,11 +81,6 @@ export class DevToolsTabsComponent implements OnInit, AfterViewInit {
9481 } ) ;
9582 }
9683
97- emitSelectedFrame ( frameId : string ) : void {
98- const frame = this . frameManager . frames . find ( ( frame ) => frame . id === parseInt ( frameId , 10 ) ) ;
99- this . frameSelected . emit ( frame ) ;
100- }
101-
10284 ngOnInit ( ) : void {
10385 this . navbar . stretchTabs = false ;
10486 }
@@ -113,7 +95,7 @@ export class DevToolsTabsComponent implements OnInit, AfterViewInit {
11395 }
11496
11597 get latestSHA ( ) : string {
116- return this . applicationEnvironment . environment . LATEST_SHA . slice ( 0 , 8 ) ;
98+ return this . _applicationEnvironment . environment . LATEST_SHA . slice ( 0 , 8 ) ;
11799 }
118100
119101 changeTab ( tab : Tabs ) : void {
0 commit comments