Channel view

This commit is contained in:
2026-08-20 10:04:19 +02:00
parent 755ae24cde
commit c319266c51
5 changed files with 55 additions and 2 deletions
+3 -1
View File
@@ -6,6 +6,7 @@ import { base58 } from "@scure/base";
import axios from "axios";
import { Account, AccountsFile, getAccounts } from "@/lib/accounts";
import { Page } from "@/lib/page";
ed.hashes.sha512 = sha512;
@@ -22,11 +23,12 @@ ed.hashes.sha512 = sha512;
* should stay a pure display of what `Enclave` exposes — it should not
* reach into `EnclaveServer` or `EnclaveWebSocket` directly.
*/
export default class Enclave {
export default class Enclave<P = Page> {
public accounts?: AccountsFile;
public server?: EnclaveServer;
public serverList: ServerList;
public forceRender: () => void;
public page?: P;
public constructor() {
this.serverList = {};