fix: exclude /nostr from code format
This commit is contained in:
parent
f369e2fdac
commit
1e4ea75b00
9 changed files with 46 additions and 31 deletions
|
|
@ -75,12 +75,17 @@
|
|||
</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>
|
||||
|
|
@ -88,7 +93,13 @@
|
|||
<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>
|
||||
|
|
@ -104,17 +115,20 @@
|
|||
<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>
|
||||
<!-- 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.
|
||||
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>
|
||||
|
||||
<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.
|
||||
<q-card-section></q-card-section>
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
|
|
@ -217,7 +231,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
|
||||
|
|
@ -229,7 +243,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
|
||||
|
|
@ -239,7 +253,7 @@
|
|||
.catch(function (error) {
|
||||
LNbits.utils.notifyApiError(error)
|
||||
})
|
||||
return false;
|
||||
return false
|
||||
},
|
||||
deleteRelay(url) {
|
||||
console.log('DELETE RELAY ' + url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue