mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
update plugins
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<PropertyGroup>
|
||||
<Product>FixedFloat</Product>
|
||||
<Description>Allows you to embed a FixedFloat conversion screen to allow customers to pay with altcoins.</Description>
|
||||
<Version>1.1.9</Version>
|
||||
<Version>1.1.10</Version>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
<!-- Plugin development properties -->
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
},
|
||||
explicitQuery (){
|
||||
const isExplicit = !!this.explicitId;
|
||||
const explicitFrom = isExplicit ? this.explicitId: null;
|
||||
const explicitFrom = isExplicit ? this.explicitId.replace('ff_', ''): null;
|
||||
return isExplicit? `&from=${explicitFrom}&lockSend=true` : '';
|
||||
},
|
||||
amountQuery () {
|
||||
|
||||
@@ -5,28 +5,30 @@
|
||||
const string id = "FixedFloat";
|
||||
var storeId = Model.StoreId;
|
||||
var settings = await FixedFloatService.GetFixedFloatForStore(storeId);
|
||||
|
||||
|
||||
if (settings?.Enabled is true)
|
||||
{
|
||||
if (settings.ExplicitMethods?.Any() is true)
|
||||
{
|
||||
foreach (var explicitMethod in settings.ExplicitMethods)
|
||||
|
||||
<div class="btcpay-pills d-flex flex-wrap align-items-center justify-content-center gap-2 pb-2">
|
||||
@if (settings.ExplicitMethods?.Any() is true)
|
||||
{
|
||||
if(FixedFloatSettings.AllowedSendingOptions.TryGetValue(explicitMethod, out var explicitMethodValue))
|
||||
foreach (var explicitMethod in settings.ExplicitMethods)
|
||||
{
|
||||
<a href="#@explicitMethod" class="btcpay-pill m-0 payment-method" :class="{ active: pmId === '@explicitMethod' && window.ffExplicitId === '@explicitMethod'}" v-on:click.prevent="()=>{ window.ffExplicitId = '@explicitMethod'; changePaymentMethod('@explicitMethod'); }">
|
||||
@explicitMethodValue
|
||||
</a>
|
||||
if (FixedFloatSettings.AllowedSendingOptions.TryGetValue(explicitMethod, out var explicitMethodValue))
|
||||
{
|
||||
<a href="#ff_@explicitMethod" class="btcpay-pill m-0 payment-method" :class="{ active: pmId === '@id' && window.ffExplicitId === 'ff_@explicitMethod'}" v-on:click.prevent="()=>{ window.ffExplicitId = 'ff_@explicitMethod'; changePaymentMethod('@id'); }">
|
||||
@explicitMethodValue
|
||||
</a>
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if (!settings.OnlyShowExplicitMethods || settings.ExplicitMethods?.Any() is not true)
|
||||
{
|
||||
<a href="#@id" class="btcpay-pill m-0 payment-method" :class="{ active: pmId === '@id' && !window.ffExplicitId }" v-on:click.prevent="()=>{ window.ffExplicitId = null; changePaymentMethod('@id'); }">
|
||||
@id
|
||||
</a>
|
||||
}
|
||||
|
||||
@if (!settings.OnlyShowExplicitMethods || settings.ExplicitMethods?.Any() is not true)
|
||||
{
|
||||
<a href="#@id" class="btcpay-pill m-0 payment-method" :class="{ active: pmId === '@id' && !window.ffExplicitId }" v-on:click.prevent="()=>{ window.ffExplicitId = null; changePaymentMethod('@id'); }">
|
||||
@id
|
||||
</a>
|
||||
}
|
||||
|
||||
</div>
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@
|
||||
<PropertyGroup>
|
||||
<Product>SideShift</Product>
|
||||
<Description>Allows you to embed a SideShift conversion screen to allow customers to pay with altcoins.</Description>
|
||||
<Version>1.1.15</Version>
|
||||
<Version>1.1.16</Version>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
<!-- Plugin development properties -->
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class="payment-box">
|
||||
<p v-html="content"></p>
|
||||
<p v-if="!settleMethodId" class="text-danger">Lightning is not supported via Sideshift. Select another payment method first, then come back.</p>
|
||||
<button v-if="settleMethodId" type="button" v-on:click="openDialog" class="btn btn-primary rounded-pill w-100">{{$t("Pay with SideShift", {crryptoCode: settleMethodId})}}</button>
|
||||
<button v-if="settleMethodId" type="button" v-on:click="openDialog" class="btn btn-primary rounded-pill w-100">{{$t("Pay with SideShift", {cryptoCode: settleMethodId})}}</button>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
var coinInfo = coins.FirstOrDefault(c => c.CryptoCode == coin && c.Network == network);
|
||||
if(coinInfo is null)
|
||||
continue;
|
||||
<a href="#@id" class="btcpay-pill m-0 payment-method" :class="{ active: pmId === '@id' && window.ssExplicitId === '@coinInfo.Id'}" v-on:click.prevent="()=>{ window.ssExplicitId = '@coinInfo.Id'; changePaymentMethod('@id'); }">
|
||||
<a href="#ss_@coinInfo.Id" class="btcpay-pill m-0 payment-method" :class="{ active: pmId === '@id' && window.ssExplicitId === '@coinInfo.Id'}" v-on:click.prevent="()=>{ window.ssExplicitId = '@coinInfo.Id'; changePaymentMethod('@id'); }">
|
||||
@coinInfo.DisplayName @(coinInfo.DisplayName.Equals(coinInfo.Network, StringComparison.InvariantCultureIgnoreCase)? string.Empty: $"({coinInfo.Network})")
|
||||
</a>
|
||||
}
|
||||
|
||||
@@ -58,7 +58,6 @@
|
||||
<label asp-for="OnlyShowExplicitMethods" class="form-label mb-0 me-1">Only show explicit methods</label>
|
||||
</div>
|
||||
</div>
|
||||
<button name="command" type="submit" value="save" class="btn btn-primary">Submit</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user