Webatrice: KnownHosts component (#4456)

* refactor dexie services for future schema updates

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2021-11-25 21:12:23 -06:00 committed by GitHub
parent 37879c4255
commit 6ce346af4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 1381 additions and 1291 deletions

View file

@ -10,3 +10,4 @@ export * from './routes';
export * from './sort';
export * from './forms';
export * from './message';
export * from './settings';

View file

@ -12,6 +12,29 @@ export enum StatusEnum {
DISCONNECTING = 99
}
export interface WebSocketConnectOptions {
host?: string;
port?: string;
userName?: string;
password?: string;
hashedPassword?: string;
newPassword?: string;
email?: string;
autojoinrooms?: boolean;
keepalive?: number;
clientid?: string;
reason?: WebSocketConnectReason;
}
export enum WebSocketConnectReason {
LOGIN,
REGISTER,
ACTIVATE_ACCOUNT,
PASSWORD_RESET_REQUEST,
PASSWORD_RESET_CHALLENGE,
PASSWORD_RESET
}
export class Host {
id?: number;
name: string;
@ -20,6 +43,10 @@ export class Host {
localHost?: string;
localPort?: string;
editable: boolean;
lastSelected?: boolean;
userName?: string;
hashedPassword?: string;
remember?: boolean;
}
export const DefaultHosts: Host[] = [
@ -40,7 +67,7 @@ export const DefaultHosts: Host[] = [
{
name: 'Tetrarch',
host: 'mtg.tetrarch.co/servatrice',
port: '4748',
port: '443',
editable: false,
},
];

View file

@ -0,0 +1,6 @@
export class Setting {
user: string;
autoConnect?: boolean;
}
export const APP_USER = '*app';