diff --git a/package-lock.json b/package-lock.json index 5b1a254..654dc19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "dependencies": { "@tailwindcss/cli": "^4.1.14", "electron-store": "^8.2.0", + "lucide": "^1.7.0", "tailwindcss": "^4.1.14" }, "devDependencies": { @@ -4771,6 +4772,12 @@ "node": ">=10" } }, + "node_modules/lucide": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/lucide/-/lucide-1.7.0.tgz", + "integrity": "sha512-aYNogbuIxea3a8offpKjdMGf2FsUk9GECFh0B4iJgXlJOX41+7/ncvLVluKki8477SoybEdyGGf+qGYLBDiEsA==", + "license": "ISC" + }, "node_modules/magic-string": { "version": "0.30.21", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", diff --git a/package.json b/package.json index 2484526..4b11c37 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,7 @@ "dependencies": { "@tailwindcss/cli": "^4.1.14", "electron-store": "^8.2.0", + "lucide": "^1.7.0", "tailwindcss": "^4.1.14" } } diff --git a/src/components/connection/ConnectionStatus.js b/src/components/connection/ConnectionStatus.js index 331c53a..403a5c6 100644 --- a/src/components/connection/ConnectionStatus.js +++ b/src/components/connection/ConnectionStatus.js @@ -2,6 +2,8 @@ * Bitcoin Core Connection Status Component * Shows connection progress and status while connecting to bitcoind */ +import { icons } from '../../js/icons.js'; + export function ConnectionStatusComponent(container, onConnected) { const connectionDiv = document.createElement('div'); connectionDiv.id = 'connection-status'; @@ -60,7 +62,7 @@ export function ConnectionStatusComponent(container, onConnected) {
Connection Failed
diff --git a/src/components/log/Log.js b/src/components/log/Log.js index 5534ac4..1a72352 100644 --- a/src/components/log/Log.js +++ b/src/components/log/Log.js @@ -1,3 +1,5 @@ +import { icons } from '../../js/icons.js'; + export function LogComponent(container) { const content = document.createElement('div'); content.id = 'log-content'; @@ -148,7 +150,7 @@ export function LogComponent(container) {Limited view: Only the last ${MAX_LOGS} log lines are shown here for performance. @@ -171,10 +173,10 @@ export function LogComponent(container) {
Total fee for a swap is calculated as:
@@ -841,13 +843,13 @@ export function Market(container) {Start fresh with a new wallet
Load a wallet from file
Restore from backup JSON
π Your funds are protected
+${icons.shieldCheck(16, 'mr-2')} Your funds are protected
Recovery process has started automatically. Check your wallet for returned funds.
β οΈ ${w}
`) + .map((w) => `${icons.alertTriangle(12, 'mr-1')} ${w}
`) .join(''); warningEl.classList.remove('hidden'); startBtn.disabled = true; diff --git a/src/components/swap/SwapHistory.js b/src/components/swap/SwapHistory.js index fa3f8e6..818d193 100644 --- a/src/components/swap/SwapHistory.js +++ b/src/components/swap/SwapHistory.js @@ -3,6 +3,7 @@ import { formatRelativeTime, formatElapsedTime, } from './SwapStateManager.js'; +import { icons } from '../../js/icons.js'; let swapHistory = []; @@ -195,7 +196,7 @@ export function buildSwapHistoryMarkup(history) { if (history.length === 0) { return `You haven't completed any coinswaps yet.
You haven't completed any coinswaps yet.
Onion Address
${makerAddr}
-π Privacy Contribution
+${icons.shieldCheck(16, 'mr-2')} Privacy Contribution
This maker broke the transaction link between hop ${makerIndex} and hop ${makerIndex + 2}, making it impossible to trace the flow of funds.
Swap Amount
- π° + ${icons.circleDollarSign(16, 'mr-2')}${satsToBtc(report.targetAmount)} BTC
${formatNumber(report.targetAmount)} sats
@@ -1026,7 +1028,7 @@ export function SwapReportComponent(container, swapReport) {Duration
- β±οΈ + ${icons.timer(16, 'mr-2')}${formatDuration(report.swapDurationSeconds)}
${report.swapDurationSeconds.toFixed(1)}s total
@@ -1035,7 +1037,7 @@ export function SwapReportComponent(container, swapReport) {On-Chain Artifacts
- π + ${icons.link(16, 'mr-2')}${report.artifactsCount} @@ -1048,7 +1050,7 @@ export function SwapReportComponent(container, swapReport) {
Swap Partners
- π€ + ${icons.handshake(16, 'mr-2')}${report.makersCount || report.makerAddresses.length}
Makers recorded in the report
@@ -1057,7 +1059,7 @@ export function SwapReportComponent(container, swapReport) {Total Fee
- πΈ + ${icons.receipt(16, 'mr-2')}${report.feePercentage.toFixed(2)}%
${formatNumber(report.totalFee)} sats
@@ -1073,7 +1075,7 @@ export function SwapReportComponent(container, swapReport) {Setting up coinswap functionality...
@@ -61,14 +63,14 @@ export function TakerInitializationComponent(container, config, onInitialized) {- π‘ Tip: This is the password you set when creating your wallet. + ${icons.lightbulb(16, 'mr-1')} Tip: This is the password you set when creating your wallet.
Initialization Failed
@@ -86,7 +88,7 @@ export function TakerInitializationComponent(container, config, onInitialized) {- π‘ Tor Not Running: + ${icons.lightbulb(16, 'mr-1')} Tor Not Running:
No transactions found for the selected filter.
Try selecting a different filter or refresh.
- ${type === 'swap' ? 'π Coinswap' : type === 'received' ? 'π₯ Received' : 'π€ Sent'} + ${type === 'swap' ? icons.refreshCw(14, 'mr-1') + ' Coinswap' : type === 'received' ? icons.arrowDownCircle(14, 'mr-1') + ' Received' : icons.arrowUpCircle(14, 'mr-1') + ' Sent'}
${statusBadge.text} ${label ? `${label}` : ''} @@ -334,7 +336,7 @@ export function TransactionsListComponent(container) { console.error('β Failed to load transactions:', error); transactionContainer.innerHTML = `Failed to load transactions
${error.message}