19 lines
419 B
TypeScript
19 lines
419 B
TypeScript
|
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();
|
||
|
}
|