btcpayserver/BTCPayServer/Views/Wallets/WalletRescan.cshtml
d11n ed7031981b
Bootstrap v5 migration (#2490)
* Swap bootstrap asset files

* Update themes and color definitions

* Move general bootstrap customizations

* Theme updates

Theme updates

* Remove BuildBundlerMinifier

This lead to an error, because BuildBundlerMinifier and BundlerMinifier.Core seem to conflict here. Details: https://stackoverflow.com/a/61119586

* Rewplace btn-block class with w-100

* Update badge classes

* Remove old font family head variable

* Update margin classes

* Cleanups

* Update float classes

* Update text classes

* Update padding classes

* Update border classes

* UPdate dropdown classes

* Update select classes

* Update neutral custom props

* Update bootstrap and customizations

* Update ChromeDriver; disable smooth scroll

https://github.com/SeleniumHQ/selenium/issues/8295

* Improve alert messages

* Improve bootstrap customizations

* Disable reduced motion

See also 7358282f

* Update Bootstrap data attributes

* Update file inputs

* Update input groups

* Replace deprecated jumbotron class

* Update variables; re-add negative margin util classes

* Update cards

* Update form labels

* Debug alerts

* Fix aria-labelledby associations

* Dropdown-related test fixes

* Fix CanUseWebhooks test

* Test fixes

* Nav updates

* Fix nav usage in wallet send and payouts

* Update alert and modal close buttons

* Re-add backdrop properties

* Upgrade Bootstrap to v5 final

* Update screen reader classes

* Update font-weight classes

* Update monospace font classes

* Update accordians

* Update close icon usage

* Cleanup

* Update scripts and style integrations

* Update input group texts

* Update LN node setup page

* Update more form control classes

* Update inline forms

* Add js specific test

* Upgrade Vue.js

* Remove unused JS

* Upgrade Bootstrap to v5.0.1

* Try container related test updates

* Separate jQuery bundle

* Remove jQuery from LND seed backup page

* Remove unused code

* Refactor email autofill js

* Refactor camera scanner JS

* Re-add tests

* Re-add BuildBundlerMinifier

* Do not minify bundles containing Bootstrap

Details https://github.com/madskristensen/BundlerMinifier/issues/558

* Update bundles

* Cleanup JS test

* Cleanup tests involving dropdowns

* Cleanup tests involving collapses

* Cleanup locale additions in ConfigureCore

* Cleanup bundles

* Remove duplicate status message

* Cleanup formatting

* Fix missing validation scripts

* Remove unused unminified Bootstrap js files

* Fix classic theme

* Fix Casa theme

* Fix PoS validation
2021-05-19 11:39:27 +09:00

106 lines
4.6 KiB
Plaintext

@model RescanWalletModel
@{
Layout = "../Shared/_NavLayout.cshtml";
ViewData.SetActivePageAndTitle(WalletsNavPages.Rescan, "Rescan wallet", Context.GetStoreData().StoreName);
}
<h4 class="mb-3">@ViewData["PageTitle"]</h4>
@if (!Model.Ok)
{
<div class="row">
<div class="col-lg-8">
<p>This feature is disabled</p>
@if (Model.IsFullySync)
{
<p><span class="text-success fa fa-check-circle"></span> <span>The full node is synched</span></p>
}
else
{
<p><span class="text-danger fa fa-times-circle"></span> <span>The full node is not synched</span></p>
}
@if (Model.IsServerAdmin)
{
<p><span class="text-success fa fa-check-circle"></span> <span>You are server administrator</span></p>
}
else
{
<p><span class="text-danger fa fa-times-circle"></span> <span>You are not server administrator</span></p>
}
@if (Model.IsSupportedByCurrency)
{
<p><span class="text-success fa fa-check-circle"></span> <span>This full node support rescan of the UTXO set</span></p>
}
else
{
<p><span class="text-danger fa fa-times-circle"></span> <span>This full node does not support rescan of the UTXO set</span></p>
}
</div>
</div>
}
else if (!Model.Progress.HasValue)
{
<div class="row">
@if (Model.PreviousError != null)
{
<div class="alert alert-danger alert-dismissible" role="alert">
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
<vc:icon symbol="close" />
</button>
<span>The previous scan stopped with an error: @Model.PreviousError</span>
</div>
}
else if (Model.LastSuccess != null)
{
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
<vc:icon symbol="close" />
</button>
<span>The previous scan completed and found <b>@Model.LastSuccess.Found</b> UTXOs in <b>@Model.TimeOfScan</b> (The total UTXO set size is @Model.LastSuccess.TotalSizeOfUTXOSet.Value)</span>
</div>
}
<div class="col-lg-8">
<p>
Scanning the UTXO set allow you to restore the balance of your wallet, but not all the transaction history.
This operation will scan the HD Path <b>0/*</b>, <b>1/*</b> and <b>*</b> from a starting index, until no UTXO are found in a whole gap limit.
</p>
<p>The batch size make sure the scan do not consume too much RAM at once by rescanning several time with smaller subset of addresses.</p>
<p>If you do not understand the above, go with the defaults and start scanning.</p>
</div>
</div>
<div class="row">
<div class="col-lg-8">
<form method="post">
<div class="form-group">
<label asp-for="StartingIndex" class="form-label"></label>
<input asp-for="StartingIndex" class="form-control" type="number" style="max-width:14ch;" />
</div>
<div class="form-group">
<label asp-for="GapLimit" class="form-label"></label>
<input asp-for="GapLimit" class="form-control" type="number" step="1000" style="max-width:14ch;" />
</div>
<div class="form-group">
<label asp-for="BatchSize" class="form-label"></label>
<input asp-for="BatchSize" class="form-control" type="number" step="1000" style="max-width:14ch;" />
</div>
<button type="submit" class="btn btn-primary">Start scan</button>
</form>
</div>
</div>
}
else
{
<div class="row">
<div class="col-lg-8">
<p>Scanning in progress, refresh the page to see the progress... (Estimated time: @Model.RemainingTime)</p>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="@(Model.Progress.Value)"
aria-valuemin="0" aria-valuemax="100" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width:@(Model.Progress.Value)%;">
@(Model.Progress.Value)% (estimated time: @Model.RemainingTime)
</div>
</div>
</div>
</div>
}