mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-25 11:25:56 +00:00
Realmlist switcher next to PLAY, and a Modules page
- Named realmlists (e.g. Solo, PTR): a drop-down by the PLAY button switches the game client by writing the chosen text into every locale's realmlist.wtf (the replaced file is saved first); add / edit / remove with a name and the realmlist text (or just an address). First use offers 'Solo' (127.0.0.1) and, if the client held another realmlist, 'Previous'. - Modules page: bundled catalog (modules/catalog.json) of the optional modules built into the server; switch each on or off (its Enable setting), open its page on GitHub, edit its configuration with the module's own documentation. Nine modules to start with. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a79c26ed49
commit
81aacdf5bb
17 files changed
+1208
-5
No files matched your search
@@ -6,6 +6,7 @@ import { useHuman, useT } from "@/i18n";
|
||||
import { applyServerUpdate, useServerUpdate } from "@/lib/serverUpdate";
|
||||
import { checkClient, useClientStatus } from "@/lib/clientUpdate";
|
||||
import { ClientDialog, type ClientDialogMode } from "@/screens/ClientDialog";
|
||||
import { RealmlistMenu } from "@/screens/RealmlistMenu";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card } from "@/components/ui/card";
|
||||
|
||||
@@ -276,12 +277,13 @@ export function Overview({ server, onForget, onOpenUpdates }: { server: ServerSu
|
||||
{t("btn.stopSmall")}
|
||||
</Button>
|
||||
)}
|
||||
{client && <RealmlistMenu serverId={server.id} className="ml-auto" />}
|
||||
{client && clientStatus?.update_available ? (
|
||||
<Button variant="primary" size="xl" disabled={playing} onClick={() => setDialog("update")} className="ml-auto min-w-40">
|
||||
<Button variant="primary" size="xl" disabled={playing} onClick={() => setDialog("update")} className="min-w-40">
|
||||
{t("btn.updateClient")}
|
||||
</Button>
|
||||
) : client ? (
|
||||
<Button variant={running ? "primary" : "secondary"} size="xl" disabled={transitioning || playing} onClick={() => void play()} className="ml-auto min-w-40">
|
||||
<Button variant={running ? "primary" : "secondary"} size="xl" disabled={transitioning || playing} onClick={() => void play()} className="min-w-40">
|
||||
{playing && <Loader2 className="h-5 w-5 animate-spin" aria-hidden />}
|
||||
{running ? t("btn.play") : t("btn.startPlay")}
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user