@@ -83,17 +83,16 @@ export interface ViewInput {
8383 onInitiatorMouseLeave : ( ) => void ;
8484}
8585
86- export interface ViewOutput { }
87-
88- export type View = ( input : ViewInput , output : ViewOutput , target : HTMLElement ) => void ;
86+ export type View = ( input : ViewInput , output : object , target : HTMLElement ) => void ;
8987
9088export class DeveloperResourcesListView extends UI . Widget . VBox {
9189 #items: SDK . PageResourceLoader . PageResource [ ] = [ ] ;
9290 #selectedItem: SDK . PageResourceLoader . PageResource | null = null ;
9391 readonly #view: View ;
9492 #filters: TextUtils . TextUtils . ParsedFilter [ ] = [ ] ;
95- constructor ( view : View = ( input , output , target ) => {
96- // clang-format off
93+ constructor (
94+ view : View = ( input , _ , target ) => {
95+ // clang-format off
9796 render ( html `
9897 < devtools-data-grid
9998 name =${ i18nString ( UIStrings . developerResources ) }
@@ -158,21 +157,21 @@ export class DeveloperResourcesListView extends UI.Widget.VBox {
158157 </ table >
159158 </ devtools-data-grid > ` ,
160159 target , { host : input } ) ;
161- // clang-format on
162- function renderUrl ( url : string ) : HTMLElement {
163- const outer = document . createElement ( 'div' ) ;
164- UI . ARIAUtils . setHidden ( outer , true ) ;
165- outer . setAttribute ( 'part' , 'url-outer' ) ;
166- const domain = outer . createChild ( 'div' ) ;
167- domain . setAttribute ( 'part' , 'url-prefix' ) ;
168- const path = outer . createChild ( 'div' ) ;
169- path . setAttribute ( 'part' , 'url-suffix' ) ;
170- const splitURL = / ^ ( .* ) ( \/ [ ^ / ] * ) $ / . exec ( url ) ;
171- domain . textContent = splitURL ? splitURL [ 1 ] : url ;
172- path . textContent = splitURL ? splitURL [ 2 ] : '' ;
173- return outer ;
174- }
175- } ) {
160+ // clang-format on
161+ function renderUrl ( url : string ) : HTMLElement {
162+ const outer = document . createElement ( 'div' ) ;
163+ UI . ARIAUtils . setHidden ( outer , true ) ;
164+ outer . setAttribute ( 'part' , 'url-outer' ) ;
165+ const domain = outer . createChild ( 'div' ) ;
166+ domain . setAttribute ( 'part' , 'url-prefix' ) ;
167+ const path = outer . createChild ( 'div' ) ;
168+ path . setAttribute ( 'part' , 'url-suffix' ) ;
169+ const splitURL = / ^ ( .* ) ( \/ [ ^ / ] * ) $ / . exec ( url ) ;
170+ domain . textContent = splitURL ? splitURL [ 1 ] : url ;
171+ path . textContent = splitURL ? splitURL [ 2 ] : '' ;
172+ return outer ;
173+ }
174+ } ) {
176175 super ( true ) ;
177176 this . #view = view ;
178177 this . registerRequiredCSS ( developerResourcesListViewStyles ) ;
0 commit comments