v1 in the middle (#32)

This commit is contained in:
dni ⚡ 2024-10-31 12:15:31 +01:00 committed by GitHub
parent a8eb139360
commit db20915756
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 1259 additions and 1127 deletions

View file

@ -71,7 +71,7 @@
<q-table
flat
dense
:data="nostrrelayLinks"
:rows="nostrrelayLinks"
row-key="id"
:columns="relayTable.columns"
:pagination.sync="relayTable.pagination"
@ -372,8 +372,6 @@
{% endraw %} {% endblock %} {% block scripts %} {{ window_vars(user) }}
<script>
Vue.component(VueQrcode.name, VueQrcode)
var maplrelays = obj => {
obj._data = _.clone(obj)
obj.theTime = obj.time * 60 - (Date.now() / 1000 - obj.timestamp)
@ -391,7 +389,7 @@
if (obj.time_elapsed) {
obj.date = 'Time elapsed'
} else {
obj.date = Quasar.utils.date.formatDate(
obj.date = Quasar.date.formatDate(
new Date((obj.theTime - 3600) * 1000),
'HH:mm:ss'
)
@ -399,7 +397,7 @@
return obj
}
new Vue({
window.app = Vue.createApp({
el: '#vue',
mixins: [windowMixin],
data: function () {
@ -624,7 +622,7 @@
try {
const {data} = await LNbits.api.request(
'PUT',
'/nostrclient/api/v1/relay/test?usr=' + this.g.user.id,
'/nostrclient/api/v1/relay/test',
this.g.user.wallets[0].adminkey,
{
sender_private_key: this.testData.senderPrivateKey,