diff --git a/README.md b/README.md index f40c8676..00570169 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,11 @@ Cashu Wallet ## One-liner build & run + ``` docker-compose up -d ``` + access at http://localhost:3000 or serve it behind a reverse proxy. ## Install the dependencies diff --git a/src-capacitor/android/app/debug/output.json b/src-capacitor/android/app/debug/output.json index dc2b1619..f8cd2add 100644 --- a/src-capacitor/android/app/debug/output.json +++ b/src-capacitor/android/app/debug/output.json @@ -1 +1,18 @@ -[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-debug.apk","fullName":"debug","baseName":"debug","dirName":""},"path":"app-debug.apk","properties":{}}] \ No newline at end of file +[ + { + "outputType": { "type": "APK" }, + "apkData": { + "type": "MAIN", + "splits": [], + "versionCode": 1, + "versionName": "1.0", + "enabled": true, + "outputFile": "app-debug.apk", + "fullName": "debug", + "baseName": "debug", + "dirName": "" + }, + "path": "app-debug.apk", + "properties": {} + } +] diff --git a/src/boot/base.js b/src/boot/base.js index 0391d287..9472826e 100644 --- a/src/boot/base.js +++ b/src/boot/base.js @@ -41,7 +41,7 @@ window.windowMixin = { currency = "sat"; } if (useUiStore().hideBalance && !showBalance) { - return "****" + return "****"; } if (currency == "sat") return this.formatSat(value); if (currency == "usd") value = value / 100; diff --git a/src/components/BalanceView.vue b/src/components/BalanceView.vue index 62dde710..37207c34 100644 --- a/src/components/BalanceView.vue +++ b/src/components/BalanceView.vue @@ -221,8 +221,8 @@ export default defineComponent({ return this.activeUnit; }, toggleHideBalance() { - this.hideBalance = !this.hideBalance - } + this.hideBalance = !this.hideBalance; + }, }, }); diff --git a/src/contrib/cashu-ts/README.md b/src/contrib/cashu-ts/README.md index e3e21924..cba9c770 100644 --- a/src/contrib/cashu-ts/README.md +++ b/src/contrib/cashu-ts/README.md @@ -56,7 +56,7 @@ npm i @cashu/cashu-ts ### Example ```typescript -import { CashuMint, CashuWallet, getEncodedToken } from '@cashu/cashu-ts'; +import { CashuMint, CashuWallet, getEncodedToken } from "@cashu/cashu-ts"; const mint = new CashuMint(mintUrl); const wallet = new CashuWallet(mint); diff --git a/src/contrib/cashu-ts/coverage/lcov-report/block-navigation.js b/src/contrib/cashu-ts/coverage/lcov-report/block-navigation.js index cc121302..5b295be8 100644 --- a/src/contrib/cashu-ts/coverage/lcov-report/block-navigation.js +++ b/src/contrib/cashu-ts/coverage/lcov-report/block-navigation.js @@ -1,87 +1,85 @@ /* eslint-disable */ var jumpToCode = (function init() { - // Classes of code we would like to highlight in the file view - var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; + // Classes of code we would like to highlight in the file view + var missingCoverageClasses = [".cbranch-no", ".cstat-no", ".fstat-no"]; - // Elements to highlight in the file listing view - var fileListingElements = ['td.pct.low']; + // Elements to highlight in the file listing view + var fileListingElements = ["td.pct.low"]; - // We don't want to select elements that are direct descendants of another match - var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > ` + // We don't want to select elements that are direct descendants of another match + var notSelector = ":not(" + missingCoverageClasses.join("):not(") + ") > "; // becomes `:not(a):not(b) > ` - // Selecter that finds elements on the page to which we can jump - var selector = - fileListingElements.join(', ') + - ', ' + - notSelector + - missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` + // Selecter that finds elements on the page to which we can jump + var selector = + fileListingElements.join(", ") + + ", " + + notSelector + + missingCoverageClasses.join(", " + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` - // The NodeList of matching elements - var missingCoverageElements = document.querySelectorAll(selector); + // The NodeList of matching elements + var missingCoverageElements = document.querySelectorAll(selector); - var currentIndex; + var currentIndex; - function toggleClass(index) { - missingCoverageElements - .item(currentIndex) - .classList.remove('highlighted'); - missingCoverageElements.item(index).classList.add('highlighted'); - } - - function makeCurrent(index) { - toggleClass(index); - currentIndex = index; - missingCoverageElements.item(index).scrollIntoView({ - behavior: 'smooth', - block: 'center', - inline: 'center' - }); - } + function toggleClass(index) { + missingCoverageElements.item(currentIndex).classList.remove("highlighted"); + missingCoverageElements.item(index).classList.add("highlighted"); + } - function goToPrevious() { - var nextIndex = 0; - if (typeof currentIndex !== 'number' || currentIndex === 0) { - nextIndex = missingCoverageElements.length - 1; - } else if (missingCoverageElements.length > 1) { - nextIndex = currentIndex - 1; - } + function makeCurrent(index) { + toggleClass(index); + currentIndex = index; + missingCoverageElements.item(index).scrollIntoView({ + behavior: "smooth", + block: "center", + inline: "center", + }); + } - makeCurrent(nextIndex); + function goToPrevious() { + var nextIndex = 0; + if (typeof currentIndex !== "number" || currentIndex === 0) { + nextIndex = missingCoverageElements.length - 1; + } else if (missingCoverageElements.length > 1) { + nextIndex = currentIndex - 1; } - function goToNext() { - var nextIndex = 0; + makeCurrent(nextIndex); + } - if ( - typeof currentIndex === 'number' && - currentIndex < missingCoverageElements.length - 1 - ) { - nextIndex = currentIndex + 1; - } + function goToNext() { + var nextIndex = 0; - makeCurrent(nextIndex); + if ( + typeof currentIndex === "number" && + currentIndex < missingCoverageElements.length - 1 + ) { + nextIndex = currentIndex + 1; } - return function jump(event) { - if ( - document.getElementById('fileSearch') === document.activeElement && - document.activeElement != null - ) { - // if we're currently focused on the search input, we don't want to navigate - return; - } + makeCurrent(nextIndex); + } - switch (event.which) { - case 78: // n - case 74: // j - goToNext(); - break; - case 66: // b - case 75: // k - case 80: // p - goToPrevious(); - break; - } - }; + return function jump(event) { + if ( + document.getElementById("fileSearch") === document.activeElement && + document.activeElement != null + ) { + // if we're currently focused on the search input, we don't want to navigate + return; + } + + switch (event.which) { + case 78: // n + case 74: // j + goToNext(); + break; + case 66: // b + case 75: // k + case 80: // p + goToPrevious(); + break; + } + }; })(); -window.addEventListener('keydown', jumpToCode); +window.addEventListener("keydown", jumpToCode); diff --git a/src/contrib/cashu-ts/coverage/lcov-report/index.html b/src/contrib/cashu-ts/coverage/lcov-report/index.html index b7601057..c93c79e0 100644 --- a/src/contrib/cashu-ts/coverage/lcov-report/index.html +++ b/src/contrib/cashu-ts/coverage/lcov-report/index.html @@ -1,101 +1,156 @@ - - + - -
+- Press n or j to go to the next uncovered block, b, p or k for the previous block. + Press n or j to go to the next uncovered block, + b, p or k for the previous block.
-+ File + | ++ | + Statements + | ++ | + Branches + | ++ | + Functions + | ++ | + Lines + | ++ |
---|
File | -- | Statements | -- | Branches | -- | Functions | -- | Lines | -- |
---|