New QR Code component, fixes scanning of long lightning invoices

This commit is contained in:
rockstardev 2019-03-08 16:12:54 -06:00 committed by Rockstar Developer
parent 7dad814f19
commit e96d34f741
10 changed files with 10433 additions and 1520 deletions

View file

@ -206,7 +206,7 @@
</div> </div>
<div class="payment__scan"> <div class="payment__scan">
<img v-bind:src="srvModel.cryptoImage" class="qr_currency_icon" /> <img v-bind:src="srvModel.cryptoImage" class="qr_currency_icon" />
<qrcode v-bind:val="scanDisplayQr" v-bind:size="256" bg-color="#f5f5f7" fg-color="#000"> <qrcode v-bind:value="scanDisplayQr" :options="{ width: 256, margin: 0, color: {dark:'#000', light:'#f5f5f7'} }">
</qrcode> </qrcode>
</div> </div>
<div class="payment__details__instruction__open-wallet"> <div class="payment__details__instruction__open-wallet">

View file

@ -114,10 +114,7 @@
</div> </div>
</invoice> </invoice>
<script type="text/javascript"> <script type="text/javascript">
var availableLanguages = @Html.Raw(Json.Serialize( var availableLanguages = @Html.Raw(Json.Serialize(langService.GetLanguages().Select((language) => language.Code)));;
langService
.GetLanguages()
.Select((language) => language.Code)));;
var storeDefaultLang = "@Model.DefaultLang"; var storeDefaultLang = "@Model.DefaultLang";
var fallbackLanguage = "en"; var fallbackLanguage = "en";
startingLanguage = computeStartingLanguage(); startingLanguage = computeStartingLanguage();
@ -169,7 +166,7 @@
i18n: i18n, i18n: i18n,
el: '#checkoutCtrl', el: '#checkoutCtrl',
components: { components: {
qrcode: VueQr, qrcode: VueQrcode,
changelly: ChangellyComponent, changelly: ChangellyComponent,
coinswitch: CoinSwitchComponent coinswitch: CoinSwitchComponent
}, },

View file

@ -44,7 +44,7 @@
"wwwroot/vendor/clipboard.js/clipboard.js", "wwwroot/vendor/clipboard.js/clipboard.js",
"wwwroot/vendor/jquery/jquery.js", "wwwroot/vendor/jquery/jquery.js",
"wwwroot/vendor/vuejs/vue.min.js", "wwwroot/vendor/vuejs/vue.min.js",
"wwwroot/vendor/vuejs/vue-qrcode.js", "wwwroot/vendor/vue-qrcode/vue-qrcode.js",
"wwwroot/vendor/i18next/i18next.js", "wwwroot/vendor/i18next/i18next.js",
"wwwroot/vendor/i18next/i18nextXHRBackend.js", "wwwroot/vendor/i18next/i18nextXHRBackend.js",
"wwwroot/vendor/i18next/vue-i18next.js", "wwwroot/vendor/i18next/vue-i18next.js",

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long