feat: add empty DMs box
This commit is contained in:
parent
192ef1770e
commit
b7c099c935
5 changed files with 33 additions and 13 deletions
1
static/components/direct-messages/direct-messages.html
Normal file
1
static/components/direct-messages/direct-messages.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<div>dmmms</div>
|
||||||
14
static/components/direct-messages/direct-messages.js
Normal file
14
static/components/direct-messages/direct-messages.js
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
async function directMessages(path) {
|
||||||
|
const template = await loadTemplateAsync(path)
|
||||||
|
Vue.component('direct-messages', {
|
||||||
|
name: 'direct-messages',
|
||||||
|
props: ['adminkey', 'inkey'],
|
||||||
|
template,
|
||||||
|
|
||||||
|
data: function () {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
methods: {},
|
||||||
|
created: async function () {}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,7 @@ const merchant = async () => {
|
||||||
await stallDetails('static/components/stall-details/stall-details.html')
|
await stallDetails('static/components/stall-details/stall-details.html')
|
||||||
await stallList('static/components/stall-list/stall-list.html')
|
await stallList('static/components/stall-list/stall-list.html')
|
||||||
await orderList('static/components/order-list/order-list.html')
|
await orderList('static/components/order-list/order-list.html')
|
||||||
|
await directMessages('static/components/direct-messages/direct-messages.html')
|
||||||
|
|
||||||
const nostr = window.NostrTools
|
const nostr = window.NostrTools
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,6 @@
|
||||||
></small
|
></small
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
<a
|
<a
|
||||||
class="text-secondary"
|
class="text-secondary"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|
|
||||||
|
|
@ -101,18 +101,23 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 col-md-5 q-gutter-y-md">
|
<div class="col-12 col-md-5 q-gutter-y-md">
|
||||||
<q-card>
|
<!-- <div class="row q-col-gutter-md"> -->
|
||||||
<q-card-section>
|
<div class="col-12">
|
||||||
<h6 class="text-subtitle1 q-my-none">
|
<q-card>
|
||||||
{{SITE_TITLE}} Nostr Market Extension
|
<q-card-section>
|
||||||
</h6>
|
<h6 class="text-subtitle1 q-my-none">
|
||||||
</q-card-section>
|
{{SITE_TITLE}} Nostr Market Extension
|
||||||
<q-card-section class="q-pa-none">
|
</h6>
|
||||||
<q-separator></q-separator>
|
</q-card-section>
|
||||||
<q-list> {% include "nostrmarket/_api_docs.html" %} </q-list>
|
<q-card-section class="q-pa-none">
|
||||||
</q-card-section>
|
<q-separator></q-separator>
|
||||||
</q-card>
|
<q-list> {% include "nostrmarket/_api_docs.html" %} </q-list>
|
||||||
|
</q-card-section>
|
||||||
|
</q-card>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">x111</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<q-dialog v-model="importKeyDialog.show" position="top">
|
<q-dialog v-model="importKeyDialog.show" position="top">
|
||||||
<q-card class="q-pa-lg q-pt-xl" style="width: 500px">
|
<q-card class="q-pa-lg q-pt-xl" style="width: 500px">
|
||||||
|
|
@ -151,6 +156,7 @@
|
||||||
<script src="{{ url_for('nostrmarket_static', path='components/stall-details/stall-details.js') }}"></script>
|
<script src="{{ url_for('nostrmarket_static', path='components/stall-details/stall-details.js') }}"></script>
|
||||||
<script src="{{ url_for('nostrmarket_static', path='components/stall-list/stall-list.js') }}"></script>
|
<script src="{{ url_for('nostrmarket_static', path='components/stall-list/stall-list.js') }}"></script>
|
||||||
<script src="{{ url_for('nostrmarket_static', path='components/order-list/order-list.js') }}"></script>
|
<script src="{{ url_for('nostrmarket_static', path='components/order-list/order-list.js') }}"></script>
|
||||||
|
<script src="{{ url_for('nostrmarket_static', path='components/direct-messages/direct-messages.js') }}"></script>
|
||||||
<script src="{{ url_for('nostrmarket_static', path='js/index.js') }}"></script>
|
<script src="{{ url_for('nostrmarket_static', path='js/index.js') }}"></script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue