From b446629707130ffa00a3f5bbd49949ecac3da0a2 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Tue, 7 Mar 2023 09:12:14 +0200 Subject: [PATCH] feat: add basic `order-list` --- static/components/order-list/order-list.html | 3 +++ static/components/order-list/order-list.js | 18 ++++++++++++++++++ .../stall-details/stall-details.html | 8 +++++++- static/js/index.js | 1 + templates/nostrmarket/index.html | 1 + 5 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 static/components/order-list/order-list.html create mode 100644 static/components/order-list/order-list.js diff --git a/static/components/order-list/order-list.html b/static/components/order-list/order-list.html new file mode 100644 index 0000000..147c21f --- /dev/null +++ b/static/components/order-list/order-list.html @@ -0,0 +1,3 @@ +
+ xx1 +
\ No newline at end of file diff --git a/static/components/order-list/order-list.js b/static/components/order-list/order-list.js new file mode 100644 index 0000000..15b1528 --- /dev/null +++ b/static/components/order-list/order-list.js @@ -0,0 +1,18 @@ +async function orderList(path) { + const template = await loadTemplateAsync(path) + Vue.component('order-list', { + name: 'order-list', + props: ['adminkey', 'inkey'], + template, + + data: function () { + return { + } + }, + methods: { + }, + created: async function () { + } + }) + } + \ No newline at end of file diff --git a/static/components/stall-details/stall-details.html b/static/components/stall-details/stall-details.html index b26caf3..9ffe49a 100644 --- a/static/components/stall-details/stall-details.html +++ b/static/components/stall-details/stall-details.html @@ -185,7 +185,13 @@ -
+
+ +
diff --git a/static/js/index.js b/static/js/index.js index 5b26d4c..3eb50ad 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -5,6 +5,7 @@ const merchant = async () => { await shippingZones('static/components/shipping-zones/shipping-zones.html') await stallDetails('static/components/stall-details/stall-details.html') await stallList('static/components/stall-list/stall-list.html') + await orderList('static/components/order-list/order-list.html') const nostr = window.NostrTools diff --git a/templates/nostrmarket/index.html b/templates/nostrmarket/index.html index fa07f17..b866226 100644 --- a/templates/nostrmarket/index.html +++ b/templates/nostrmarket/index.html @@ -150,6 +150,7 @@ + {% endblock %}