This commit is contained in:
Marc Robin Richter
2026-03-17 14:38:39 +01:00
parent 8acde1f9ad
commit e3ea4772d6
3 changed files with 35 additions and 6 deletions
+1
View File
@@ -102,6 +102,7 @@ export const handlers: Record<string, CommandHandler> = {
green(' ping <target> - Ping a target'),
green(' rm <file> - Remove a file'),
green(' sudo <cmd> - Run as root'),
green(' ts - Check TeamSpeak server status'),
green(' reboot - Reboot the server'),
],
+11
View File
@@ -91,12 +91,23 @@ export function Bricked() {
</div>
))}
{visibleCount >= LINES.length && (
<>
<div className="text-term-dim whitespace-pre leading-[1.4] mt-2">
<span
className="inline-block w-[0.6em] h-[1em] bg-term-dim ml-0.5 align-middle"
style={{ animation: 'blink 1s step-end infinite' }}
/>
</div>
<button
className="mt-6 px-4 py-2 border border-term-dim text-term-dim font-mono text-sm hover:text-term-green hover:border-term-green transition-colors cursor-pointer bg-transparent"
onClick={() => {
localStorage.removeItem('stift15-bricked');
setUnbricked(true);
}}
>
[ F ]
</button>
</>
)}
</div>
);
+17
View File
@@ -63,6 +63,23 @@ export function CommandPrompt({ onReboot, onBrick }: CommandPromptProps) {
return;
}
if (cmd === "ts" || cmd === "teamspeak") {
const msg = encodeURIComponent("Frank, warum ist der ts down?");
window.open(`https://wa.me/?text=${msg}`, "_blank");
setOutputLines((prev) => [
...prev,
echoLine,
{ text: "Checking TeamSpeak server stift15.de...", color: "amber" },
{ text: "", color: "dim" },
{ text: " ✗ NOT IMPLEMENTED", color: "red" },
{ text: " Opening WhatsApp to yell at Frank...", color: "dim" },
{ text: "", color: "dim" },
]);
setHistory((prev) => [...prev, trimmed]);
setHistoryIndex(-1);
return;
}
if (cmd === "reboot") {
setOutputLines((prev) => [
...prev,