Skip to content

Commit

Permalink
npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
lollerfirst committed Aug 15, 2024
1 parent f6e5530 commit fd8828e
Show file tree
Hide file tree
Showing 59 changed files with 19,398 additions and 15,966 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 18 additions & 1 deletion src-capacitor/android/app/debug/output.json
Original file line number Diff line number Diff line change
@@ -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":{}}]
[
{
"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": {}
}
]
2 changes: 1 addition & 1 deletion src/boot/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/components/BalanceView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ export default defineComponent({
return this.activeUnit;
},
toggleHideBalance() {
this.hideBalance = !this.hideBalance
}
this.hideBalance = !this.hideBalance;
},
},
});
</script>
2 changes: 1 addition & 1 deletion src/contrib/cashu-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
136 changes: 67 additions & 69 deletions src/contrib/cashu-ts/coverage/lcov-report/block-navigation.js
Original file line number Diff line number Diff line change
@@ -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);
Loading

0 comments on commit fd8828e

Please sign in to comment.