From 1d980afb62c5998c9b9e5113cbbedbe15d124cc2 Mon Sep 17 00:00:00 2001
From: ben
LNbits uses
Vue
- for best-in-class, responsive and high-performance components.
+ for best-in-class, responsive and high-performance
+ components.
Typical example of Vue components in a frontend script:
- Content can be
- conditionally rendered using Vue's
+ Content can be conditionally rendered using Vue's
For most purposes use Quasar's inbuilt VueQrcode library:
+ For most purposes use Quasar's inbuilt VueQrcode library:
+
LNbits does also include a handy
QR code enpoint
+ QR code enpoint
Fastapi includes a great websocket tool
- A few LNbits extensions also make use of a weird and useful websocket/GET tool built into LNbits, such as extensions Copilot and LNURLDevices
v-if
:
-
-
-
-
-
+ {% raw %} You can use via
+ {{protocol + location}}{% endraw
+ %}/api/v1/qrcode/some-data-you-want-in-a-qrcode:
+
+
+
+
- You can subscribe to websocket with wss:{{location}}/api/v1/ws/{SOME-ID}
- You can post to any clients subscribed to the endpoint with {{protocol + location}}/api/v1/ws/{SOME-ID}/{THE-DATA-YOU-WANT-TO-POST}
-
-
- Function used in this demo:
-
-
+ A few LNbits extensions also make use of a weird and useful
+ websocket/GET tool built into LNbits, such as extensions
+ Copilot and LNURLDevices
+ You can subscribe to websocket with
+ wss:{{location}}/api/v1/ws/{SOME-ID}
+ You can post to any clients subscribed to the endpoint with
+ {{protocol +
+ location}}/api/v1/ws/{SOME-ID}/{THE-DATA-YOU-WANT-TO-POST}
+
+
+ Function used in this demo:
+