App: Light PoS on top of the existing PoS (#1909)

* Initial commit

* review fixes

* Fix padding of logo, readjust display font size when clearing numbers

Co-authored-by: Kukks <evilkukka@gmail.com>
This commit is contained in:
Mario Dian
2020-09-21 14:06:31 +08:00
committed by GitHub
parent 8891111b2c
commit c640289f4f
10 changed files with 262 additions and 1 deletions

View File

@@ -65,6 +65,8 @@ namespace BTCPayServer.Controllers
var numberFormatInfo = _AppService.Currencies.GetNumberFormatInfo(settings.Currency) ?? _AppService.Currencies.GetNumberFormatInfo("USD");
double step = Math.Pow(10, -(numberFormatInfo.CurrencyDecimalDigits));
viewType ??= settings.EnableShoppingCart ? PosViewType.Cart : settings.DefaultView;
var store = await _AppService.GetStore(app);
var storeBlob = store.GetStoreBlob();
return View("PointOfSale/" + viewType, new ViewPointOfSaleViewModel()
{
@@ -91,6 +93,7 @@ namespace BTCPayServer.Controllers
CustomTipText = settings.CustomTipText,
CustomTipPercentages = settings.CustomTipPercentages,
CustomCSSLink = settings.CustomCSSLink,
CustomLogoLink = storeBlob.CustomLogo,
AppId = appId,
Description = settings.Description,
EmbeddedCSS = settings.EmbeddedCSS