mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-09-05 23:19:58 +00:00
Add barebones console option
This commit is contained in:
@@ -21,7 +21,8 @@
|
||||
<app-ide></app-ide>
|
||||
</div>
|
||||
<div class="tfw-terminal">
|
||||
<app-terminal></app-terminal>
|
||||
<app-terminal *ngIf="terminalOrConsole === 'terminal'"></app-terminal>
|
||||
<app-console *ngIf="terminalOrConsole === 'console'"></app-console>
|
||||
</div>
|
||||
<div class="tfw-sidebar">
|
||||
<app-sidebar (layoutChanged)="setLayout($event)" [layout]="layout"></app-sidebar>
|
||||
|
@@ -20,6 +20,8 @@ export class DashboardComponent implements OnInit, OnDestroy {
|
||||
hide_messages: boolean = config.dashboard.hide_messages;
|
||||
iframeUrl: string = config.dashboard.iframeUrl;
|
||||
@ViewChild('webiframe') webiframe: ElementRef;
|
||||
terminalOrConsole = config.dashboard.terminalOrConsole;
|
||||
|
||||
command_handlers = {'layout': this.layoutHandler.bind(this),
|
||||
'reload_frontend': this.reloadFrontendHandlder.bind(this)};
|
||||
|
||||
|
Reference in New Issue
Block a user