ccp-features #8
|
@ -79,6 +79,11 @@ class LogTerminal extends HTMLElement {
|
|||
color: #ff3300;
|
||||
text-shadow: 1px 1px 1px rgba(200, 0, 0, .6), 0 0 .5em rgba(200, 0, 0, .6)
|
||||
}
|
||||
|
||||
.terminal > .line.error {
|
||||
color: rgba(255,255,255,0.6);
|
||||
text-shadow: 1px 1px 1px rgba(200, 200, 200, .6), 0 0 .5em rgba(200, 0, 0, .6)
|
||||
}
|
||||
</style>
|
||||
<template id="TERMINAL_TEMPLATE">
|
||||
<div name="terminal" class="container">
|
||||
|
@ -106,6 +111,7 @@ class LogTerminal extends HTMLElement {
|
|||
in: (e,d)=>d.lines,
|
||||
apply: (e,d,i)=>{
|
||||
if(d.source === "stderr") e.classList.add("error");
|
||||
if(d.source === "infrastructure") e.classList.add("infrastructure");
|
||||
e.innerHTML = `<span>${d.line}</span>`
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue