mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 05:12:54 +00:00 
			
		
		
		
	Rename recover to ready
This commit is contained in:
		@@ -4,7 +4,7 @@ export const config = {
 | 
				
			|||||||
    route: 'dashboard',
 | 
					    route: 'dashboard',
 | 
				
			||||||
    triggerFirstFSMStep: 'step_1',
 | 
					    triggerFirstFSMStep: 'step_1',
 | 
				
			||||||
    askReloadSite: false,
 | 
					    askReloadSite: false,
 | 
				
			||||||
    recoverAfterPageReload: true,
 | 
					    sendReadyAfterPageReload: true,
 | 
				
			||||||
    terminalOrConsole: 'terminal',
 | 
					    terminalOrConsole: 'terminal',
 | 
				
			||||||
    currentLayout: 'terminal-ide-web',
 | 
					    currentLayout: 'terminal-ide-web',
 | 
				
			||||||
    enabledLayouts: [
 | 
					    enabledLayouts: [
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -49,7 +49,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
 | 
				
			|||||||
    this.webSocketService.connect();
 | 
					    this.webSocketService.connect();
 | 
				
			||||||
    this.initCommandHandling();
 | 
					    this.initCommandHandling();
 | 
				
			||||||
    this.initDeploymentNotifications();
 | 
					    this.initDeploymentNotifications();
 | 
				
			||||||
    this.recoverIfNeeded();
 | 
					    this.sendReadyIfNeeded();
 | 
				
			||||||
    this.triggerFirstFSMStepIfNeeded();
 | 
					    this.triggerFirstFSMStepIfNeeded();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -84,9 +84,9 @@ export class DashboardComponent implements OnInit, OnDestroy {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  recoverIfNeeded() {
 | 
					  sendReadyIfNeeded() {
 | 
				
			||||||
    if (config.dashboard.recoverAfterPageReload) {
 | 
					    if (config.dashboard.sendReadyAfterPageReload) {
 | 
				
			||||||
      setTimeout(() => this.webSocketService.sendJSON({'key': 'recover'}));
 | 
					      setTimeout(() => this.webSocketService.sendJSON({'key': 'frontend.ready'}));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user