Revert "Improve configuration form for readability and UX"

This commit is contained in:
Arc 2025-09-11 05:15:23 +01:00 • committed by GitHub
commit 93ba3ba628
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 512 additions and 552 deletions

View file

@ -6,56 +6,21 @@
<div class="col-12 q-gutter-y-md">
<q-card>
<q-card-section>
<div class="row items-center wrap q-mb-md">
<div class="row items-center no-wrap q-mb-md">
<div class="col">
<h5 class="text-subtitle1 q-my-none">
NWC Service Provider Configuration
NWC Service Provider - Config
</h5>
</div>
</div>
<q-markup-table flat wrap-cells="true">
<q-markup-table flat>
<tbody>
<q-tr>
<q-tr v-for="entry in entries" :key="entry.key">
<q-td>
<q-input
v-model="config.relay"
label="Nostr Relay URL"
filled
wrap
:hint="'URL of the Nostr relay for dispatching and receiving NWC events. Use public relays or a custom one. Specify `nostrclient` to use the Nostr Client extension'"
>
</q-input>
<span> ${entry.key} </span>
</q-td>
</q-tr>
<q-tr>
<q-td>
<q-input
filled
label="Relay Alias"
v-model="config.relay_alias"
:hint="'Relay URL to display in pairing URLs. If your relay has a different public URL than the one set in \'Nostr Relay URL\' set it here.'"
/>
</q-td>
</q-tr>
<q-tr>
<q-td>
<q-input
filled
label="NWC Provider Secret Key "
v-model="config.provider_key"
:hint="'The secret key for the NWC Service Provider. You don\'t need to change this unless your key has been compromised.'"
/>
</q-td>
</q-tr>
<q-tr>
<q-td>
<q-input
filled
label="Time Period To Handle Missed Events"
v-model="config.handle_missed_events"
type="number"
:hint="'Number of seconds to look back for processing events missed while offline. Setting it to 0 disables this functionality.'"
/>
<q-input v-model="entry.value" />
</q-td>
</q-tr>
</tbody>

View file

@ -1,8 +1,8 @@
{% extends "base.html" %} {% from "macros.jinja" import window_vars with context
%} {% block scripts %} {{ window_vars(user) }}
<script type="module">
import * as NobleSecp256k1 from '/nwcprovider/static/js/noble-secp256k1.min.js'
window.NobleSecp256k1 = NobleSecp256k1
import * as NobleSecp256k1 from "/nwcprovider/static/js/noble-secp256k1.min.js";
window.NobleSecp256k1 = NobleSecp256k1;
</script>
<script src="{{ static_url_for('nwcprovider/static', path='js/index.js') }}"></script>
{% endblock %} {% block page %}