From bd010ece6bf5e4b2088691b6b8fd3243e3196dec Mon Sep 17 00:00:00 2001 From: Ben Weeks Date: Tue, 23 Dec 2025 12:21:59 +0000 Subject: [PATCH] style: fix prettier formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- static/components/product-list.js | 7 +- static/components/stall-list.js | 21 ++++- static/js/index.js | 4 +- .../nostrmarket/components/merchant-tab.html | 16 +++- .../nostrmarket/components/product-list.html | 38 +++++++-- .../nostrmarket/components/stall-list.html | 4 +- templates/nostrmarket/index.html | 82 +++++++++++++++---- 7 files changed, 137 insertions(+), 35 deletions(-) diff --git a/static/components/product-list.js b/static/components/product-list.js index eb42281..78379ae 100644 --- a/static/components/product-list.js +++ b/static/components/product-list.js @@ -20,7 +20,12 @@ window.app.component('product-list', { {name: 'name', align: 'left', label: 'Name', field: 'name'}, {name: 'stall', align: 'left', label: 'Stall', field: 'stall_id'}, {name: 'price', align: 'left', label: 'Price', field: 'price'}, - {name: 'quantity', align: 'left', label: 'Quantity', field: 'quantity'}, + { + name: 'quantity', + align: 'left', + label: 'Quantity', + field: 'quantity' + }, {name: 'actions', align: 'right', label: 'Actions', field: ''} ], pagination: { diff --git a/static/components/stall-list.js b/static/components/stall-list.js index 4108a56..0cdfb04 100644 --- a/static/components/stall-list.js +++ b/static/components/stall-list.js @@ -35,9 +35,24 @@ window.app.component('stall-list', { stallsTable: { columns: [ {name: 'name', align: 'left', label: 'Name', field: 'name'}, - {name: 'currency', align: 'left', label: 'Currency', field: 'currency'}, - {name: 'description', align: 'left', label: 'Description', field: row => row.config?.description || ''}, - {name: 'shippingZones', align: 'left', label: 'Shipping Zones', field: row => row.shipping_zones?.map(z => z.name).join(', ') || ''}, + { + name: 'currency', + align: 'left', + label: 'Currency', + field: 'currency' + }, + { + name: 'description', + align: 'left', + label: 'Description', + field: row => row.config?.description || '' + }, + { + name: 'shippingZones', + align: 'left', + label: 'Shipping Zones', + field: row => row.shipping_zones?.map(z => z.name).join(', ') || '' + }, {name: 'actions', align: 'right', label: 'Actions', field: ''} ], pagination: { diff --git a/static/js/index.js b/static/js/index.js index b9861ef..4d9c3d3 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -258,7 +258,9 @@ window.app = Vue.createApp({ }, refreshNip15: async function () { LNbits.utils - .confirmDialog('This will sync your stalls and products from Nostr relays. Continue?') + .confirmDialog( + 'This will sync your stalls and products from Nostr relays. Continue?' + ) .onOk(async () => { try { await LNbits.api.request( diff --git a/templates/nostrmarket/components/merchant-tab.html b/templates/nostrmarket/components/merchant-tab.html index ef1be39..0684c62 100644 --- a/templates/nostrmarket/components/merchant-tab.html +++ b/templates/nostrmarket/components/merchant-tab.html @@ -76,15 +76,23 @@ - A decentralized marketplace powered by Nostr and Lightning Network. - Create stalls, add products, and start selling with Bitcoin. + A decentralized marketplace powered by Nostr and Lightning + Network. Create stalls, add products, and start selling with + Bitcoin. - + - Open Market Client + Open Market Client diff --git a/templates/nostrmarket/components/product-list.html b/templates/nostrmarket/components/product-list.html index 292db52..6d24b84 100644 --- a/templates/nostrmarket/components/product-list.html +++ b/templates/nostrmarket/components/product-list.html @@ -109,8 +109,12 @@ color="green" unchecked-icon="clear" > - Product is active - click to deactivate - Product is inactive - click to activate + Product is active - click to deactivate + Product is inactive - click to activate - +
- +
Create Product - Cancel + >Create Product + Cancel
@@ -266,8 +281,12 @@ v-ripple > - - + + Restore + >Restore
diff --git a/templates/nostrmarket/components/stall-list.html b/templates/nostrmarket/components/stall-list.html index 36b1db9..a680a50 100644 --- a/templates/nostrmarket/components/stall-list.html +++ b/templates/nostrmarket/components/stall-list.html @@ -56,7 +56,9 @@ - + - - - - - - + + + + + +
Publish NIP-15 - Publish stalls and products + Publish stalls and products @@ -41,8 +73,12 @@ - Publish NIP-99 - Classified listings (coming soon) + Publish NIP-99 + Classified listings (coming soon) @@ -52,7 +88,9 @@ Refresh NIP-15 from Nostr - Sync stalls and products + Sync stalls and products @@ -60,8 +98,12 @@ - Refresh NIP-99 from Nostr - Classified listings (coming soon) + Refresh NIP-99 from Nostr + Classified listings (coming soon) @@ -70,8 +112,12 @@ - Delete NIP-15 from Nostr - Remove stalls and products + Delete NIP-15 from Nostr + Remove stalls and products @@ -79,8 +125,12 @@ - Delete NIP-99 from Nostr - Classified listings (coming soon) + Delete NIP-99 from Nostr + Classified listings (coming soon)