Remove console & live process log logic (moved to backend)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { ChangeDetectorRef, Component, EventEmitter, OnInit, Output } from '@angular/core';
|
||||
|
||||
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
|
||||
import { WebSocketService } from '../services/websocket.service';
|
||||
import { WebSocketMessage } from '../message-types/websocket-message';
|
||||
import { IDEMessage } from '../message-types/ide-message';
|
||||
@@ -7,7 +6,7 @@ import { ProcessManagerService } from '../services/processmanager.service';
|
||||
import { DeploymentNotificationService } from '../services/deployment-notification.service';
|
||||
import { config } from '../config';
|
||||
import { LanguageMap } from './language-map';
|
||||
import { filter, first } from 'rxjs/operators';
|
||||
import { first } from 'rxjs/operators';
|
||||
|
||||
enum DeployButtonState {
|
||||
DEPLOYED,
|
||||
@@ -47,8 +46,6 @@ export class IdeComponent implements OnInit {
|
||||
minimap: {enabled: config.ide.showMiniMap}
|
||||
};
|
||||
|
||||
@Output() newLogs = new EventEmitter<any>();
|
||||
|
||||
command_handlers = {
|
||||
'ide.reload': this.reloadHandler.bind(this),
|
||||
'ide.read': this.readHandler.bind(this),
|
||||
@@ -86,13 +83,7 @@ export class IdeComponent implements OnInit {
|
||||
this.processManagerService.init();
|
||||
this.processManagerService.subscribeCallback(
|
||||
config.ide.deployProcessName,
|
||||
message => {
|
||||
this.deploymentNotificationService.deploying.next(false);
|
||||
this.newLogs.emit({
|
||||
stdout: message.stdout,
|
||||
stderr: message.stderr
|
||||
});
|
||||
}
|
||||
() => this.deploymentNotificationService.deploying.next(false)
|
||||
);
|
||||
|
||||
this.processManagerService.subscribeSuccessCallback(
|
||||
|
||||
Reference in New Issue
Block a user