mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-24 19:25:56 +00:00
Add the SQUID dashboard tab and make a stopped server stay stopped after updating
The Dashboard tab (shown with SQUID Playerbots) downloads the dashboard release of the bots' release series, starts it on a free local port and shows it in the window. After an update, a server that was stopped stays stopped unless the owner asked for it to start. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4c4f8bbb3e
commit
838cc07e73
17 files changed
+564
-17
No files matched your search
@@ -1,13 +1,13 @@
|
||||
import { useState } from "react";
|
||||
|
||||
/**
|
||||
* What to do when an update has finished: leave the server running (the default, as the update proves the new build
|
||||
* starts) or stop it again, and whether to open the game after a client update (off by default).
|
||||
* Whether a finished update starts things. Off by default for both: updating a stopped server leaves it stopped (a
|
||||
* server that was running is started again, as the update had to stop it) and a client update does not open the game.
|
||||
*/
|
||||
export type AfterUpdate = "server" | "client";
|
||||
|
||||
const key = (kind: AfterUpdate, id: string) => `coa-start-after-${kind}-update:${id}`;
|
||||
const fallback = (kind: AfterUpdate) => kind === "server";
|
||||
const fallback = (_kind: AfterUpdate) => false;
|
||||
|
||||
export function startAfterUpdate(kind: AfterUpdate, id: string): boolean {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user