ccp-features #8

Merged
m.lettere merged 44 commits from ccp-features into master 2023-06-28 19:18:25 +02:00
1 changed files with 6 additions and 0 deletions
Showing only changes of commit d4998222bb - Show all commits

View File

@ -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>`
}
}