import { injectable , Bootstrap } from '@cloudbeaver/core-di' ; import { Executor , IExecutor } from '@cloudbeaver/core-executor' ; import { ScreenService } from '@cloudbeaver/core-routing' ; import { AppScreen } from './AppScreen' ; @ injectable ( ) export class AppScreenService extends Bootstrap { static screenName = 'app' ; readonly activation : IExecutor < void > ; constructor ( private screenService ) { super ( ) ; this . activation = new Executor ( ) ; } register ( ) { this . screenService . create ( { name : AppScreenService . screenName , routes : [ { name : AppScreenService . screenName , path : '/' } ] , component : AppScreen , root : true , onActivate : async ( ) => { await this . activation . execute ( ) ; } , } ) ; } load ( ) { } }