diff --git a/ng-app/src/App.svelte b/ng-app/src/App.svelte index 82d63c4..78dcd53 100644 --- a/ng-app/src/App.svelte +++ b/ng-app/src/App.svelte @@ -29,11 +29,13 @@ import WalletCreate from "./routes/WalletCreate.svelte"; import Invitation from "./routes/Invitation.svelte"; import WalletLogin from "./routes/WalletLogin.svelte"; + import WalletInfo from "./routes/WalletInfo.svelte"; import User from "./routes/User.svelte"; import UserRegistered from "./routes/UserRegistered.svelte"; import Install from "./lib/Install.svelte"; import ng from "./api"; + import AccountInfo from "./routes/AccountInfo.svelte"; const routes = new Map(); routes.set("/", Home); @@ -43,6 +45,8 @@ routes.set("/i/:invitation", Invitation); routes.set("/user", User); routes.set("/user/registered", UserRegistered); + routes.set("/wallet", WalletInfo); + routes.set("/user/account", AccountInfo); if (import.meta.env.NG_APP_WEB) routes.set("/install", Install); routes.set(/^\/ng(.*)/i, URI); routes.set("*", NotFound); diff --git a/ng-app/src/routes/AccountInfo.svelte b/ng-app/src/routes/AccountInfo.svelte new file mode 100644 index 0000000..f23770a --- /dev/null +++ b/ng-app/src/routes/AccountInfo.svelte @@ -0,0 +1,389 @@ + + + + + + + + + + + + + + + Account Info + + + window.history.go(-1)} + on:click={() => window.history.go(-1)} + > + + Back + + + + + {#each display_sites as site} + + + {site.name} + + + + + + + + Devices + + + {#each site.devices as device, index} + + + {#if device.type == "Web"} + + {:else} + + {/if} + + + + Name + {device.name} + + + Id + {device.peer_id} + + + Version + {device.version} + + + Device Type + + {`${device.details?.browser?.name} - ${device.details?.browser.arch}`} + + + + {/each} + + + + + + + Brokers + + + + {#if display_brokers.length > 0} + {#each Object.values(display_brokers) as broker, index} + + + + + + + + + Address + {broker.address} + + + Last Connected + {broker.last_connected} + + + ID + {broker.id} + + + Can Forward? + {broker.can_forward} + + + Can Verify? + {broker.can_verify} + + + + {/each} + {:else} + + No brokers connected + + {/if} + + {/each} + + + + {#if error} + + + + + {#if error == "AlreadyExists"} + + The user is already registered with the selected broker. Try logging + in instead + + + + Login + + + {:else} + + An error occurred:{error} + + + + Go back to homepage + + + {/if} + + {/if} + + + + diff --git a/ng-app/src/routes/User.svelte b/ng-app/src/routes/User.svelte index 5eee826..05233e9 100644 --- a/ng-app/src/routes/User.svelte +++ b/ng-app/src/routes/User.svelte @@ -12,7 +12,7 @@ + + + + + + + + + Wallet Info + + + + + window.history.go(-1)} + on:click={() => window.history.go(-1)} + > + + Back + + + + + {#if !downloading} + + + + + Download Wallet File + + {:else if download_error} + + + + + Download failed: {download_error} + + {:else if !wallet_file_ready} + + + + + Download in progress... + + {:else if download_link === true} + + You will find the file named "{wallet_file_ready}" in + your Downloads folder + + {:else} + + + + + + + Click here to download the wallet file + + + + {/if} + + + + + + + Remove Wallet from Device + + + Are you sure you want to remove this wallet from your device? + + + Cancel + + + Remove + + + + + + + {#if false} + + + + + Wallet QR-Code + Use this QR-Code to log in with your wallet on new devices. + + + {/if} + + + {#if false} + + + + + Copy Wallet Link + + {/if} + + + {#if false} + + + + Save to Device for Future Logins + + {/if} + + + + + {#if error} + + + + + {#if error == "AlreadyExists"} + + The user is already registered with the selected broker. Try logging + in instead + + + + Login + + + {:else} + + An error occurred:{error} + + + + Go back to homepage + + + {/if} + + {/if} + + + + diff --git a/ng-app/src/routes/WalletLogin.svelte b/ng-app/src/routes/WalletLogin.svelte index eb0bf5b..cff2274 100644 --- a/ng-app/src/routes/WalletLogin.svelte +++ b/ng-app/src/routes/WalletLogin.svelte @@ -10,6 +10,7 @@ -->
+ The user is already registered with the selected broker. Try logging + in instead +
+ An error occurred:{error} +
+ Are you sure you want to remove this wallet from your device? +