import { Dashboard } from "../commands/Dashboard" ; import { ExtensionState } from "../constants" ; import { DashboardCommand } from "../dashboardWebView/DashboardCommand" ; import { DashboardMessage } from "../dashboardWebView/DashboardMessage" ; import { Extension } from "../helpers" ; import { BaseListener } from "./BaseListener" ; export class DashboardListener extends BaseListener { param msg public static process ( msg ) { super . process ( msg ) ; switch ( msg . command ) { case DashboardMessage . getViewType : if ( Dashboard . viewData ) { this . sendMsg ( DashboardCommand . viewData , Dashboard . viewData ) ; } break ; case DashboardMessage . reload : Dashboard . reload ( ) ; break ; case DashboardMessage . setPageViewType : Extension . getInstance ( ) . setState ( ExtensionState . PagesView , msg . data , "workspace" ) ; break ; } } }