Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then((resp) => {
const log = Anser.ansiToHtml(resp.bodyText, {use_classes: true});
const linkedLog = Anser.linkify(log);
this.store.storeLog(linkedLog.split('\n'));
})
})
constructor(
public readonly content: string,
public readonly severity?: MessageType
) {
this.htmlContent = ansiToHtml(this.content, {
use_classes: true,
remove_empty: true
});
}
output: computed('logPointer', 'head', 'tail', function() {
let logs = this.logPointer === 'head' ? this.head : this.tail;
let colouredLogs = Anser.ansiToHtml(logs);
return htmlSafe(colouredLogs);
}),
get output() {
let logs = this.logPointer === 'head' ? this.head : this.tail;
logs = logs.replace(//g, '>');
let colouredLogs = Anser.ansiToHtml(logs);
return htmlSafe(colouredLogs);
}