Revert "chore: code format"

This reverts commit 619e0f05e2.
This commit is contained in:
Vlad Stan 2023-03-23 10:57:29 +02:00
parent 619e0f05e2
commit f369e2fdac
20 changed files with 77 additions and 117 deletions

View file

@ -75,17 +75,12 @@
</q-tr>
</template>
</q-table>
</q-card-section>
<q-card-section>
<div class="text-weight-bold">
Your endpoint:
<q-badge
outline
class="q-ml-sm text-subtitle2"
color="primary"
:label="`wss://${host}/nostrclient/api/v1/relay`"
/>
</div>
<div class="text-weight-bold"> Your endpoint:
<q-badge outline class="q-ml-sm text-subtitle2" color="primary" :label="`wss://${host}/nostrclient/api/v1/relay`" />
</div>
</q-card-section>
</q-card>
<q-card>
@ -93,13 +88,7 @@
<q-form class="q-gutter-md q-y-md" @submit="addRelay">
<div class="row">
<div class="col q-mx-md q-my-sm">
<q-input
outlined
v-model="relayToAdd"
dense
filled
label="Relay URL"
></q-input>
<q-input outlined v-model="relayToAdd" dense filled label="Relay URL"></q-input>
</div>
<div class="col q-mx-md items-align flex items-center justify-right">
<q-btn unelevated color="primary" type="submit">Add relay </q-btn>
@ -115,21 +104,17 @@
<h6 class="text-subtitle1 q-my-none">Nostrclient Extension</h6>
<p>
This extension is a always-on nostr client that other extensions can
use to send and receive events on nostr. Add multiple nostr relays to
connect to. The extension then opens a websocket for you to use at
</p>
use to send and receive events on nostr.
<p>
<!-- wss://{{host}}nostrclient/api/v1/relay -->
<q-badge
outline
class="q-ml-sm text-subtitle2"
color="primary"
:label="`wss://${host}/nostrclient/api/v1/relay`"
/>
Add multiple nostr relays to connect to. The extension then opens a websocket for you to use
at
<p>
<!-- wss://{{host}}nostrclient/api/v1/relay -->
<q-badge outline class="q-ml-sm text-subtitle2" color="primary" :label="`wss://${host}/nostrclient/api/v1/relay`" />
</p>
Only Admin users can manage
this extension.
</p>
Only Admin users can manage this extension.
<q-card-section></q-card-section>
</q-card-section>
</q-card>
@ -232,7 +217,7 @@
message: `Invalid relay URL.`,
caption: "Should start with 'wss://'' or 'ws://'"
})
return false
return false;
}
console.log('ADD RELAY ' + this.relayToAdd)
let that = this
@ -244,7 +229,7 @@
{url: this.relayToAdd}
)
.then(function (response) {
console.log('response:', response)
console.log("response:", response)
if (response.data) {
response.data.map(maplrelays)
that.nostrrelayLinks = response.data
@ -254,7 +239,7 @@
.catch(function (error) {
LNbits.utils.notifyApiError(error)
})
return false
return false;
},
deleteRelay(url) {
console.log('DELETE RELAY ' + url)