all repos — underbbs @ 2976d438d90bea2beb4e67272fd628ff163459f2

decentralized social media client

frontend/ts/settings.ts (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export class AdapterConfig {
  // common
  public nickname: string = "";
  public protocol: string = "";
  
  // masto/misskey
  public server: string | null = null;
  public apiKey: string | null = null;
  
  // nostr
  public privkey: string | null = null;
  public relays: string[] | null = null;
}

export class Settings {
  public adapters: AdapterConfig[] = [];
  
  static _instance: Settings = new Settings();
}