diff --git a/models.py b/models.py index f1af073..73e6687 100644 --- a/models.py +++ b/models.py @@ -33,8 +33,12 @@ class Nostrable: class MerchantProfile(BaseModel): name: str | None = None + display_name: str | None = None about: str | None = None picture: str | None = None + banner: str | None = None + nip05: str | None = None + lud16: str | None = None class MerchantConfig(MerchantProfile): diff --git a/static/components/key-pair.js b/static/components/key-pair.js index 5bf9d23..d324bc0 100644 --- a/static/components/key-pair.js +++ b/static/components/key-pair.js @@ -2,21 +2,10 @@ window.app.component('key-pair', { name: 'key-pair', template: '#key-pair', delimiters: ['${', '}'], - props: ['public-key', 'private-key'], - data: function () { - return { - showPrivateKey: false - } - }, + props: ['public-key', 'private-key', 'merchant-config'], methods: { - copyText: function (text, message, position) { - var notify = this.$q.notify - Quasar.copyToClipboard(text).then(function () { - notify({ - message: message || 'Copied to clipboard!', - position: position || 'bottom' - }) - }) + handleImageError: function (event) { + event.target.style.display = 'none' } } }) diff --git a/static/components/merchant-tab.js b/static/components/merchant-tab.js index c82d853..3c48281 100644 --- a/static/components/merchant-tab.js +++ b/static/components/merchant-tab.js @@ -10,7 +10,8 @@ window.app.component('merchant-tab', { 'merchant-active', 'public-key', 'private-key', - 'is-admin' + 'is-admin', + 'merchant-config' ], computed: { marketClientUrl: function () { diff --git a/templates/nostrmarket/components/key-pair.html b/templates/nostrmarket/components/key-pair.html index 911e057..2becf66 100644 --- a/templates/nostrmarket/components/key-pair.html +++ b/templates/nostrmarket/components/key-pair.html @@ -1,93 +1,82 @@ -