feat: basic orders UI

This commit is contained in:
Vlad Stan 2023-07-11 12:34:21 +03:00
parent 4817e594c9
commit aed65dd65e
4 changed files with 82 additions and 4 deletions

View file

@ -102,6 +102,15 @@ const market = async () => {
}
},
computed: {
allOrders() {
const prefix = 'nostrmarket.orders.'
const orderKeys = this.$q.localStorage.getAllKeys().filter(k => k.startsWith(prefix))
return orderKeys.map((key) => ({
pubkey: key.substring(prefix.length),
orders: this.$q.localStorage.getItem(key)
}), {})
},
filterProducts() {
let products = this.products
console.log('### this.products', this.products)