add server share option to context menu

This commit is contained in:
ppc
2024-09-03 15:02:11 +01:00
parent 15329d5dcd
commit 6acddc2f78
4 changed files with 29 additions and 15 deletions
+4
View File
@@ -12,6 +12,10 @@ export class AMServer extends Realm.Object<AMServer> implements AMServerInfoResp
lastUsed: Date;
createdAt: Date;
get shareUrl() {
return `http://card.ppc.moe/#/servers/add?address=${encodeURIComponent(this.serverAddress)}`;
}
static generate(serverAddress: string) {
return {