mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-20 03:25:56 +00:00
Integrate isolated rulesets, portable admission, and compatible relay authentication
This commit is contained in:
commit
d5f1e9cc83
112 files changed
+5892
-965
No files matched your search
+1
-1
@@ -12,7 +12,7 @@ export interface Rates {
|
||||
export interface ModuleEntry { id: string; version: string | null; enabled: boolean }
|
||||
export interface Population { players: number; bots: number; capacity: number | null }
|
||||
export interface AccountProvisioning { automatic: boolean; existing_only: boolean }
|
||||
export type Ruleset = "coa" | "wildcard";
|
||||
export type Ruleset = "coa" | "wildcard" | "reborn";
|
||||
|
||||
export interface RealmSummary {
|
||||
realm_id: string;
|
||||
|
||||
+2
-2
@@ -17,7 +17,7 @@ export interface Credentials { username: string; password: string }
|
||||
export interface RemoteCharacter { name: string; class: number; race: number; level: number; eligible: boolean; reasons: string[]; yours: boolean }
|
||||
|
||||
export interface LinkStatus { connected: boolean; last_error: string | null; channels: number; requests: number }
|
||||
export interface HostControlRealm { local_id: string; realm_id: string; link: LinkStatus }
|
||||
export interface HostControlRealm { local_id: string; realm_id: string; link: LinkStatus; relay: { connected: boolean; last_error: string | null; active_streams: number } | null }
|
||||
export interface ControlStatus { secret_store: string; player_id: string | null; hosting: HostControlRealm[]; preferred_username: string }
|
||||
|
||||
export interface ControlError { code: string; message: string }
|
||||
@@ -30,7 +30,7 @@ export function asControlError(e: unknown): ControlError {
|
||||
export const control = {
|
||||
status: () => invoke<ControlStatus>("control_status"),
|
||||
setPreferredUsername: (name: string) => invoke<string>("control_set_preferred_username", { name }),
|
||||
setAccess: (localId: string, existingOnly: boolean, route: string | null) => invoke<void>("registry_set_access", { localId, existingOnly, route }),
|
||||
setAccess: (localId: string, existingOnly: boolean, allowPortable: boolean, route: string | null) => invoke<void>("registry_set_access", { localId, existingOnly, allowPortable, route }),
|
||||
join: (realm: string, character: string | null, launch: boolean) => invoke<JoinOutcome>("join_realm", { realm, character, launch }),
|
||||
link: (realm: string, login: string, password: string) => invoke<string>("join_link", { realm, login, password }),
|
||||
account: (realm: string) => invoke<AccountView | null>("join_account", { realm }),
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
import type { Ruleset } from "@/lib/browse";
|
||||
|
||||
export type PlayStatus =
|
||||
| "ready" | "syncing" | "preparing" | "waiting_login" | "playing" | "saving" | "offline"
|
||||
@@ -19,6 +20,7 @@ export interface CopyView {
|
||||
export interface CharacterView {
|
||||
id: string;
|
||||
name: string;
|
||||
ruleset: Ruleset;
|
||||
class_name: string;
|
||||
race: string;
|
||||
level: number;
|
||||
|
||||
@@ -13,6 +13,7 @@ export interface RealmPublishStatus {
|
||||
language: string;
|
||||
region: string | null;
|
||||
existing_only: boolean;
|
||||
allow_portable: boolean;
|
||||
route: string | null;
|
||||
metadata_revision: number | null;
|
||||
last_ok_unix: number | null;
|
||||
|
||||
Reference in new issue
Block a user