Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8545c48be | ||
|
|
031a9916a0 |
@@ -17,7 +17,7 @@ import { TerminalComponent } from './terminal/terminal.component';
|
||||
import { AppRoutingModule } from './app-routing.module';
|
||||
import { TestmessengerComponent } from './testmessenger/testmessenger.component';
|
||||
import { DeploymentNotificationService } from './services/deployment-notification.service';
|
||||
import { SafePipe } from './pipes/safe.pipe';
|
||||
import { SafePipe, SafeHtmlPipe } from './pipes/safe.pipe';
|
||||
import { ConsoleComponent } from './console/console.component';
|
||||
import { MonacoEditorModule } from 'ngx-monaco-editor';
|
||||
import {
|
||||
@@ -41,6 +41,7 @@ import { LoaderComponent } from './loader/loader.component';
|
||||
DashboardComponent,
|
||||
TestmessengerComponent,
|
||||
SafePipe,
|
||||
SafeHtmlPipe,
|
||||
ConsoleComponent,
|
||||
LoaderComponent
|
||||
],
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="tao-grid-center-left originator">{{message.originator}}</div>
|
||||
<div class="timestamp tao-grid-center-right">{{message.timestamp | date:'HH:mm:ss'}}</div>
|
||||
</div>
|
||||
<div class="tfw-grid-message-body" [innerHtml]="message.message"></div>
|
||||
<div class="tfw-grid-message-body" [innerHtml]="message.message | safeHtml"></div>
|
||||
</div>
|
||||
<div *ngIf="showTypingIndicator"
|
||||
class="tfw-grid-message jumping-circle-container"
|
||||
|
||||
@@ -11,3 +11,14 @@ export class SafePipe implements PipeTransform {
|
||||
return this.sanitizer.bypassSecurityTrustResourceUrl(value);
|
||||
}
|
||||
}
|
||||
|
||||
@Pipe({
|
||||
name: 'safeHtml'
|
||||
})
|
||||
export class SafeHtmlPipe implements PipeTransform {
|
||||
constructor(private sanitized: DomSanitizer) {}
|
||||
|
||||
transform(value) {
|
||||
return this.sanitized.bypassSecurityTrustHtml(value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ export class DashboardConfigService extends ConfigServiceBase {
|
||||
|
||||
layout = new BehaviorSubject<string>('terminal-ide-web');
|
||||
hideMessages = new BehaviorSubject<boolean>(false);
|
||||
iframeUrl = new BehaviorSubject<string>('/webservice');
|
||||
iframeUrl = new BehaviorSubject<string>('');
|
||||
showUrlBar = new BehaviorSubject<boolean>(false);
|
||||
terminalMenuItem = new BehaviorSubject<string>('terminal');
|
||||
reloadIframeOnDeploy = new BehaviorSubject<boolean>(false);
|
||||
|
||||
Reference in New Issue
Block a user