diff --git a/migrations.py b/migrations.py
index 51567b5..b3fafbe 100644
--- a/migrations.py
+++ b/migrations.py
@@ -58,6 +58,7 @@ async def m001_initial(db):
CREATE TABLE nostrmarket.zones (
id TEXT PRIMARY KEY,
user_id TEXT NOT NULL,
+ name TEXT NOT NULL,
cost REAL NOT NULL,
countries TEXT NOT NULL
);
diff --git a/static/components/shipping-zones/shipping-zones.html b/static/components/shipping-zones/shipping-zones.html
new file mode 100644
index 0000000..08ced67
--- /dev/null
+++ b/static/components/shipping-zones/shipping-zones.html
@@ -0,0 +1,31 @@
+
+
+
+
+
+ New Shipping Zone
+ Create a new shipping zone
+
+
+
+
+ XXX
+ xxxxxxxxxxxxx
+
+
+
+
diff --git a/static/components/shipping-zones/shipping-zones.js b/static/components/shipping-zones/shipping-zones.js
new file mode 100644
index 0000000..4aef5f8
--- /dev/null
+++ b/static/components/shipping-zones/shipping-zones.js
@@ -0,0 +1,19 @@
+async function shippingZones(path) {
+ const template = await loadTemplateAsync(path)
+ Vue.component('shipping-zones', {
+ name: 'shipping-zones',
+ template,
+
+ data: function () {
+ return {
+ zones: []
+ }
+ },
+ methods: {
+ createShippingZone: async function () {
+ console.log('### createShippingZone', createShippingZone)
+ },
+ editShippingZone: async function () {}
+ }
+ })
+}
diff --git a/static/js/index.js b/static/js/index.js
index 561c6ec..6d55b30 100644
--- a/static/js/index.js
+++ b/static/js/index.js
@@ -3,6 +3,7 @@ const merchant = async () => {
await stallDetails('static/components/stall-details/stall-details.html')
await keyPair('static/components/key-pair/key-pair.html')
+ await shippingZones('static/components/shipping-zones/shipping-zones.html')
const nostr = window.NostrTools
@@ -12,6 +13,7 @@ const merchant = async () => {
data: function () {
return {
merchant: {},
+ shippingZones: [],
showKeys: false
}
},
diff --git a/templates/nostrmarket/index.html b/templates/nostrmarket/index.html
index fc154b4..f7aaa6c 100644
--- a/templates/nostrmarket/index.html
+++ b/templates/nostrmarket/index.html
@@ -61,12 +61,15 @@
-
+
+
+
+
+
Show Public or Private keys
@@ -103,6 +106,7 @@
+
{% endblock %}