feat: add zap setup screen

This commit is contained in:
2024-03-10 16:39:23 +07:00
parent 0c4b309a11
commit bb6badfed6
17 changed files with 121 additions and 248 deletions

View File

@@ -409,6 +409,15 @@ export class Ark {
}
}
public async nwc_status() {
try {
const cmd: boolean = await invoke("nwc_status");
return cmd;
} catch {
return false;
}
}
public async zap_profile(id: string, amount: number, message: string) {
try {
const cmd: boolean = await invoke("zap_profile", { id, amount, message });
@@ -526,4 +535,21 @@ export class Ark {
fileDropEnabled: true,
});
}
public open_nwc() {
return new WebviewWindow("nwc", {
title: "Nostr Wallet Connect",
url: "/nwc",
minWidth: 400,
width: 400,
height: 600,
hiddenTitle: true,
titleBarStyle: "overlay",
fileDropEnabled: true,
});
}
public open_zap() {
// todo
}
}