mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-27 07:57:33 +01:00
* 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
92 lines
4.8 KiB
Text
92 lines
4.8 KiB
Text
@model WalletPSBTViewModel
|
|
@addTagHelper *, BundlerMinifier.TagHelpers
|
|
@{
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
|
ViewData.SetActivePageAndTitle(WalletsNavPages.PSBT, string.IsNullOrEmpty(Model.Decoded) ? "Decode PSBT" : "Decoded PSBT", Context.GetStoreData().StoreName);
|
|
}
|
|
|
|
@section PageHeadContent {
|
|
<link rel="stylesheet" href="~/vendor/highlightjs/default.min.css" asp-append-version="true">
|
|
<link href="~/vendor/vue-qrcode-reader/vue-qrcode-reader.css" rel="stylesheet" asp-append-version="true"/>
|
|
}
|
|
|
|
@section PageFootContent {
|
|
<script src="~/vendor/highlightjs/highlight.min.js" asp-append-version="true"></script>
|
|
<bundle name="wwwroot/bundles/camera-bundle.min.js"></bundle>
|
|
<script>
|
|
hljs.initHighlightingOnLoad();
|
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
initQRShow("Scan PSBT", @Json.Serialize(Model.PSBTHex), "scan-qr-modal");
|
|
initCameraScanningApp("Scan PSBT", function (data){
|
|
$("textarea[name=PSBT]").val(data);
|
|
$("#Decode").click();
|
|
}, "scanModal");
|
|
});
|
|
</script>
|
|
}
|
|
|
|
<h4 class="mb-3">@ViewData["PageTitle"]</h4>
|
|
|
|
<div class="row">
|
|
<div class="col-md-10">
|
|
@if (Model.Errors != null && Model.Errors.Count != 0)
|
|
{
|
|
<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>
|
|
@foreach (var error in Model.Errors)
|
|
{
|
|
<span>@error</span>
|
|
<br/>
|
|
}
|
|
</div>
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.Decoded))
|
|
{
|
|
<div class="form-group">
|
|
<form method="post" asp-action="WalletPSBT" asp-route-walletId="@this.Context.GetRouteValue("walletId")">
|
|
<input type="hidden" asp-for="CryptoCode"/>
|
|
<input type="hidden" asp-for="NBXSeedAvailable"/>
|
|
<input type="hidden" asp-for="PSBT"/>
|
|
<input type="hidden" asp-for="FileName"/>
|
|
<div class="d-flex">
|
|
<partial name="WalletSigningMenu" model="@((Model.CryptoCode, Model.NBXSeedAvailable))"/>
|
|
<div class="ms-2 dropdown">
|
|
<button class="btn btn-secondary dropdown-toggle" type="button" id="OtherActionsDropdownToggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
Other actions...
|
|
</button>
|
|
<div class="dropdown-menu" aria-labelledby="OtherActionsDropdownToggle">
|
|
<button name="command" type="submit" class="dropdown-item" value="broadcast">Review</button>
|
|
<button name="command" type="submit" class="dropdown-item" value="update">Update</button>
|
|
<button name="command" type="submit" class="dropdown-item" value="combine">Combine</button>
|
|
<button name="command" type="submit" class="dropdown-item" value="save-psbt">Download</button>
|
|
<button name="command" type="button" class="dropdown-item only-for-js" data-bs-toggle="modal" data-bs-target="#scan-qr-modal">Show QR</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<pre><code class="json">@Model.Decoded</code></pre>
|
|
}
|
|
<p>You can decode a PSBT by either pasting its content or by uploading the file.</p>
|
|
<form class="form-group" method="post" asp-action="WalletPSBT" asp-route-walletId="@this.Context.GetRouteValue("walletId")" enctype="multipart/form-data">
|
|
<div class="form-group">
|
|
<label asp-for="PSBT" class="form-label"></label>
|
|
<textarea class="form-control" rows="5" asp-for="PSBT"></textarea>
|
|
<span asp-validation-for="PSBT" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="UploadedPSBTFile" class="form-label"></label>
|
|
<input asp-for="UploadedPSBTFile" type="file" class="form-control">
|
|
</div>
|
|
<button type="button" id="scanqrcode" class="ms-2 btn btn-secondary only-for-js" data-bs-toggle="modal" data-bs-target="#scanModal" title="Scan with camera">
|
|
<i class="fa fa-camera"></i>
|
|
</button>
|
|
<button type="submit" name="command" value="decode" class="btn btn-primary" id="Decode">Decode</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<partial name="ShowQR"/>
|
|
<partial name="CameraScanner"/>
|