mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-18 19:25:56 +00:00
Add CoA / Wildcard realm profiles for v0.5.0 (#10)
* Add isolated Wildcard realm profiles and release v0.5.0 * Document realm validation and align npm lock version
This commit is contained in:
1 parent
831685dbd7
commit
1bcef5f8c2
35 files changed
+872
-37
No files matched your search
@@ -50,6 +50,9 @@ export interface StatusView {
|
||||
path_exists: boolean;
|
||||
}
|
||||
|
||||
export type RealmMode = "coa" | "wildcard";
|
||||
export interface RealmProfiles { active: RealmMode; wildcard_created: boolean; supported: boolean; recovery_pending: boolean }
|
||||
|
||||
export interface Human {
|
||||
code: string;
|
||||
title: string;
|
||||
@@ -149,6 +152,7 @@ export interface SaveReport {
|
||||
export type BackupKind = "quick" | "full" | "config" | "database";
|
||||
|
||||
export interface RecoveryPoint {
|
||||
realm?: RealmMode;
|
||||
schema: number;
|
||||
id: string;
|
||||
kind: BackupKind;
|
||||
@@ -193,6 +197,7 @@ export interface ModuleView {
|
||||
page: string | null;
|
||||
/** not shown on the Modules page */
|
||||
hidden: boolean;
|
||||
compatibility?: "compatible" | "experimental" | "unsupported";
|
||||
}
|
||||
|
||||
export interface ModuleSetting {
|
||||
@@ -361,6 +366,8 @@ export interface ConsoleLine {
|
||||
}
|
||||
|
||||
export const api = {
|
||||
realmProfiles: (id: string) => invoke<RealmProfiles>("realm_profiles", { id }),
|
||||
realmSelect: (id: string, mode: RealmMode, restart: boolean) => invoke<RealmProfiles>("realm_select", { id, mode, restart }),
|
||||
defaultInstallDir: () => invoke<string>("default_install_dir"),
|
||||
scan: (path: string) => invoke<ScanReport>("scan_server", { path }),
|
||||
add: (path: string) => invoke<ServerSummary>("add_server", { path }),
|
||||
|
||||
Reference in new issue
Block a user