COMPANY: Much better job location interface (#927)

This commit is contained in:
Jesse Clark
2023-12-18 04:23:47 -08:00
committed by GitHub
parent 97d679bdac
commit 28ef5df880
22 changed files with 443 additions and 798 deletions
+25
View File
@@ -43,6 +43,20 @@ export function ServersDev(): React.ReactElement {
}
}
function backdoorServer(): void {
const s = GetServer(server);
if (s === null) return;
if (!(s instanceof Server)) return;
s.backdoorInstalled = true;
}
function backdoorAllServers(): void {
for (const s of GetAllServers()) {
if (!(s instanceof Server)) return;
s.backdoorInstalled = true;
}
}
function minSecurity(): void {
const s = GetServer(server);
if (s === null) return;
@@ -118,6 +132,17 @@ export function ServersDev(): React.ReactElement {
<Button onClick={rootAllServers}>Root all</Button>
</td>
</tr>
<tr>
<td>
<Typography>Backdoor:</Typography>
</td>
<td>
<Button onClick={backdoorServer}>Backdoor one</Button>
</td>
<td>
<Button onClick={backdoorAllServers}>Backdoor all</Button>
</td>
</tr>
<tr>
<td>
<Typography>Security:</Typography>