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} +
    +
    +
    + + {device.name} +
    +
    + + {device.peer_id} +
    +
    + + {device.version} +
    +
    + + + {`${device.details?.browser?.name} - ${device.details?.browser.arch}`} +
    +
    +
  • + {/each} +
    + + + +
  • +

    + Brokers +

    +
  • + + {#if display_brokers.length > 0} + {#each Object.values(display_brokers) as broker, index} + +
  • +
    + +
    + +
    +
    + + {broker.address} +
    +
    + + {broker.last_connected} +
    +
    + + {broker.id} +
    +
    + + {broker.can_forward} +
    +
    + + {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 +

    + + + + {:else} +

    + An error occurred:
    {error} +

    + + + + {/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} + + {: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} +
  • + + + +
  • + {/if} + + +
  • +
    + +
    + Remove Wallet from Device + +

    + Are you sure you want to remove this wallet from your device? +

    +
    + + + +
    +
    +
  • + + + {#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 +

    + + + + {:else} +

    + An error occurred:
    {error} +

    + + + + {/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 @@ -->