Skip to content

Commit

Permalink
Merge pull request #236 from clams-tech/release/2.1.0
Browse files Browse the repository at this point in the history
Release 2.1.0
  • Loading branch information
lnbc1QWFyb24 authored Feb 11, 2024
2 parents 97c7b1e + 0728444 commit a4afb8f
Show file tree
Hide file tree
Showing 19 changed files with 688 additions and 77 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remote",
"version": "2.0.0",
"version": "2.1.0",
"scripts": {
"dev": "vite dev",
"dev-https": "vite dev --mode https",
Expand Down Expand Up @@ -39,7 +39,7 @@
"eslint-plugin-svelte": "^2.30.0",
"eslint-plugin-unused-imports": "^3.0.0",
"fake-indexeddb": "^4.0.2",
"postcss": "^8.4.24",
"postcss": "^8.4.31",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.10.1",
"rollup-plugin-polyfill-node": "^0.12.0",
Expand All @@ -50,7 +50,7 @@
"ts-unused-exports": "^9.0.5",
"tslib": "^2.6.0",
"typescript": "^5.1.6",
"vite": "^4.4.9",
"vite": "^4.5.2",
"vitest": "^0.34.4"
},
"type": "module",
Expand All @@ -65,7 +65,7 @@
"bitcoinjs-lib": "^6.1.3",
"bolt12-decoder": "^0.0.9",
"chart.js": "^4.3.0",
"crypto-js": "^4.1.1",
"crypto-js": "^4.2.0",
"date-fns": "^2.30.0",
"date-fns-tz": "^2.0.0",
"date-picker-svelte": "^2.9.0",
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/lib/components/SectionHeading.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
import check from '$lib/icons/check.js'
import edit from '$lib/icons/edit.js'
import { createEventDispatcher } from 'svelte'
export let text = $translate(`app.routes.${$page.url.pathname}.title`)
export let text = ''
export let icon = ''
export let editable = false
$: if (!text && !editable) {
text = $translate(`app.routes.${$page.url.pathname}.title`)
}
let editing = false
let input: HTMLInputElement
Expand Down
2 changes: 1 addition & 1 deletion src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const DEFAULT_SETTINGS: Settings = {
lavaLamp: true
}

export const SUPPORTED_LANGUAGES = ['en', 'en-AU', 'en-GB', 'en-US']
export const SUPPORTED_LANGUAGES = ['en', 'en-AU', 'en-GB', 'en-US', 'es']
export const DOCS_LINK = 'https://docs.clams.tech/remote'
export const TWITTER_LINK = 'https://twitter.com/clamstech'
export const GITHUB_LINK = 'https://github.com/clams-tech'
Expand Down
12 changes: 9 additions & 3 deletions src/lib/db/db.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,17 @@ onmessage = async (message: MessageEvent<Message>) => {

if (transactions.length) {
await Promise.all(
transactions.map(transaction =>
db.payments.update(transaction.id, transaction).then(updated => {
transactions.map(async transaction => {
// CLN replaced(?) transaction has a block height of 0
if (transaction.data.blockHeight === 0) {
await db.payments.delete(transaction.id)
return
}

return db.payments.update(transaction.id, transaction).then(updated => {
!updated && db.payments.put(transaction)
})
)
})
)
}

Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"add_wallet": "Add Wallet",
"delete_wallet_modal": {
"heading": "Delete Wallet",
"paragraph": "Are you sure that you would like to delete this wallet connection and all of it's associated data?"
"paragraph": "Are you sure that you would like to delete this wallet connection and all of its associated data?"
}
},
"/wallets/coreln": {
Expand Down Expand Up @@ -217,6 +217,7 @@
"lnurl_withdrawrequest": "Withdraw",
"lnurl_payrequest": "Pay",
"lnurl_auth": "Auth",
"lnurl_login": "Login",
"rune_placeholder": "7jN2zKjkWlvncm_La3uZc9vLVGLu7xl9oBoun6pth7E9MA==",
"add_wallet": "You do not have a wallet connected. <a href='/wallets/add'>Create a new wallet connection</a> to get started.",
"no_channels": "You have no channels, try syncing your wallets or open a new channel.",
Expand Down
Loading

0 comments on commit a4afb8f

Please sign in to comment.