From 9360a03f9459644e9de832af878cec9f66ff6bc4 Mon Sep 17 00:00:00 2001 From: Milad Raeisi <6504337+miladsoft@users.noreply.github.com> Date: Wed, 3 Apr 2024 22:51:46 +0400 Subject: [PATCH] Fixed wallet UI (#63) * Remove extra js codes * Fix wallet UI except modals * Fixed create and recover modal UI * Fixed wallet words modad UI * Fixed tables UI * Fixed checkbox UI --- src/Angor/Client/Pages/Founder.razor | 20 +- src/Angor/Client/Pages/Investor.razor | 137 +-- src/Angor/Client/Pages/Penalties.razor | 99 ++- src/Angor/Client/Pages/Settings.razor | 192 ++-- src/Angor/Client/Pages/Signatures.razor | 103 ++- src/Angor/Client/Pages/View.razor | 123 +-- src/Angor/Client/Pages/Wallet.razor | 595 ++++++++----- src/Angor/Client/Shared/MainLayout.razor | 2 +- src/Angor/Client/wwwroot/assets/css/app.css | 26 +- .../Client/wwwroot/assets/css/dashboard.css | 128 +-- src/Angor/Client/wwwroot/assets/js/app.js | 62 +- .../Client/wwwroot/assets/js/dashboard.js | 830 ------------------ src/Angor/Client/wwwroot/index.html | 3 +- 13 files changed, 913 insertions(+), 1407 deletions(-) delete mode 100644 src/Angor/Client/wwwroot/assets/js/dashboard.js diff --git a/src/Angor/Client/Pages/Founder.razor b/src/Angor/Client/Pages/Founder.razor index cc72edb0..da4986f7 100644 --- a/src/Angor/Client/Pages/Founder.razor +++ b/src/Angor/Client/Pages/Founder.razor @@ -11,7 +11,7 @@ @inject NavigationManager NavigationManager @inject IWalletStorage _walletStorage; @inject IClientStorage storage; -@inject IRelayService RelayService; +@inject IRelayService RelayService; @inject IIndexerService _IndexerService @if (!hasWallet) @@ -22,8 +22,8 @@
- | - | Funding Target (@network.CoinTicker) | -Raised (@network.CoinTicker) | -Raised (% Target) | -Project Status | -My Investment (@network.CoinTicker) | -Spent by Founder | -Available to Founder | -In Recovery | -
---|---|---|---|---|---|---|---|---|---|
- @TrimString(@project.ProjectInfo.ProjectIdentifier) - | -@project.Metadata?.Name | -@project.ProjectInfo.TargetAmount @network.CoinTicker | -@Money.Satoshis(stats?.AmountInvested ?? 0).ToUnit(MoneyUnit.BTC) @network.CoinTicker | -@((stats?.AmountInvested ?? 0) * 100 / Money.Coins(project.ProjectInfo.TargetAmount).Satoshi) % | -
- @if (project.ProjectInfo.StartDate < DateTime.UtcNow)
- {
- Funding - } - else - { -Live - } - |
- @Money.Satoshis(project.AmountInvested ?? 0).ToUnit(MoneyUnit.BTC) @network.CoinTicker - @if (!project.SignaturesInfo?.Signatures.Any() ?? false) - { - - } - | -- | -- | -@Money.Satoshis(project.AmountInRecovery ?? 0).ToUnit(MoneyUnit.BTC) @network.CoinTicker | -
+ | Name | +Funding Target (@network.CoinTicker) | +Raised (@network.CoinTicker) | +Raised (% Target) | +Project Status | +My Investment (@network.CoinTicker) | +Spent by Founder | +Available to Founder | +In Recovery | +
---|---|---|---|---|---|---|---|---|---|
+ @project.Metadata?.Name + | +@project.ProjectInfo.TargetAmount @network.CoinTicker | +@Money.Satoshis(stats?.AmountInvested ?? 0).ToUnit(MoneyUnit.BTC) @network.CoinTicker | +@((stats?.AmountInvested ?? 0) * 100 / Money.Coins(project.ProjectInfo.TargetAmount).Satoshi) % | +
+ @if (project.ProjectInfo.StartDate < DateTime.UtcNow)
+ {
+ Funding + } + else + { +Live + } + |
+ + @Money.Satoshis(project.AmountInvested ?? 0).ToUnit(MoneyUnit.BTC) @network.CoinTicker + @if (!project.SignaturesInfo?.Signatures.Any() ?? false) + { + + } + | +- | +- | +@Money.Satoshis(project.AmountInRecovery ?? 0).ToUnit(MoneyUnit.BTC) @network.CoinTicker | +
Project ID | -Amount in Penalty | -Days Left | -||||||
---|---|---|---|---|---|---|---|---|
@penalty.ProjectIdentifier | -@penalty.Amount @network.CoinTicker | -
- @if (penalty.IsExpired)
- {
- if (penalty.IsReleased)
- {
-
- }
- else
- {
-
- }
- }
- else
+
+
+
+
+
+
+
+
+
+ Penalties Details+
+
+
|
Network Type: @networkType
Explorer url: @_networkConfiguration.GetDefaultExplorerUrl().First().Url
- +This will wipe your wallet as well!
@@ -54,12 +54,12 @@ I confirm I have a backup of my wallet words, yes wipe all data from this device.Please tick the box to wipe all storage!
} - +Link | -Status | -Default | -- |
---|---|---|---|
@indexer.Url | -@indexer.Status.ToString() | -- @if (indexer.IsPrimary) - { - - } - else - { - - } - | -- - | -
Link | +Status | +Default | ++ |
---|---|---|---|
@indexer.Url | +@indexer.Status.ToString() | ++ @if (indexer.IsPrimary) + { + + } + else + { + + } + | ++ + | +
Link | -Name | -Status | -Default | -- |
---|---|---|---|---|
@relay.Url | -@relay.Name | -@relay.Status.ToString() | -- @if (relay.IsPrimary) - { - - } - else - { - - } - | -- - | -
Link | +Name | +Status | +Default | ++ |
---|---|---|---|---|
@relay.Url | +@relay.Name | +@relay.Status.ToString() | ++ @if (relay.IsPrimary) + { + + } + else + { + + } + | ++ + | +
Investment amount | -Received at | -Status | -|
---|---|---|---|
@Money.Coins(signature.AmountToInvest ?? 0).ToUnit(MoneyUnit.BTC) @network.CoinTicker | -@signature.TimeArrived.ToString("g") | - @if (signature.TimeApproved is null) - { -- } - else - { - | Approved on - @signature.TimeApproved.ToString() | - } -
Investment amount | +Received at | +Status | +|
---|---|---|---|
@Money.Coins(signature.AmountToInvest ?? 0).ToUnit(MoneyUnit.BTC) @network.CoinTicker | +@signature.TimeArrived.ToString("g") | + @if (signature.TimeApproved is null) + { ++ } + else + { + | Approved on - @signature.TimeApproved.ToString() | + } +
project not found...
+project not found...
} } else @@ -55,11 +55,11 @@ if (metadata?.Banner != null) {@metadata?.About
Total Raised: @Money.Satoshis(projectStats.TotalRaised).ToUnit(MoneyUnit.BTC) @network.CoinTicker
Total Investors: @projectStats.TotalInvestors
- @*Total Seeders: @projectStats.TotalSeeders
*@ -Time Left for Investing: @projectStats.TimeLeft days
+ @*Total Seeders: @projectStats.TotalSeeders
*@ +Time Left for Investing: @projectStats.TimeLeft days
} - +Stage | -Stage % | -Release Date | - -
---|
@(index + 1) | -@project.ProjectInfo.Stages[index].AmountToRelease % | -@project.ProjectInfo.Stages[index].ReleaseDate.ToString("dd/MM/yyyy") | - +Stage | +Stage % | +Release Date | +
---|
No seeders yet.
- } -No seeders yet.
+ } +You have already invested in this project. +
+ You have already invested in this project. View the transaction on the explorer.
@@ -225,7 +228,7 @@ }+ Wallet and balances +
+