added infra log styles
This commit is contained in:
parent
c96c98c38b
commit
d4998222bb
|
@ -79,6 +79,11 @@ class LogTerminal extends HTMLElement {
|
||||||
color: #ff3300;
|
color: #ff3300;
|
||||||
text-shadow: 1px 1px 1px rgba(200, 0, 0, .6), 0 0 .5em rgba(200, 0, 0, .6)
|
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>
|
</style>
|
||||||
<template id="TERMINAL_TEMPLATE">
|
<template id="TERMINAL_TEMPLATE">
|
||||||
<div name="terminal" class="container">
|
<div name="terminal" class="container">
|
||||||
|
@ -106,6 +111,7 @@ class LogTerminal extends HTMLElement {
|
||||||
in: (e,d)=>d.lines,
|
in: (e,d)=>d.lines,
|
||||||
apply: (e,d,i)=>{
|
apply: (e,d,i)=>{
|
||||||
if(d.source === "stderr") e.classList.add("error");
|
if(d.source === "stderr") e.classList.add("error");
|
||||||
|
if(d.source === "infrastructure") e.classList.add("infrastructure");
|
||||||
e.innerHTML = `<span>${d.line}</span>`
|
e.innerHTML = `<span>${d.line}</span>`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue