diff --git a/lnbits/extensions/example/static/fastapi-example2.png b/lnbits/extensions/example/static/fastapi-example2.png new file mode 100644 index 000000000..ceacf494d Binary files /dev/null and b/lnbits/extensions/example/static/fastapi-example2.png differ diff --git a/lnbits/extensions/example/templates/example/index.html b/lnbits/extensions/example/templates/example/index.html index 13a0c002e..fd95ee31b 100644 --- a/lnbits/extensions/example/templates/example/index.html +++ b/lnbits/extensions/example/templates/example/index.html @@ -19,7 +19,7 @@
- {{SITE_TITLE}} Extension Development Guide + {{SITE_TITLE}} Extension Development Guide (Collection of resources for extension developers)
@@ -36,6 +36,7 @@ + @@ -68,15 +69,17 @@

LNbits API is built using FastAPI, a high-performance, easy to code API framework.

FastAPI auto-generates swagger UI docs for testing endpoints /docs

- views.py + views.py is used for setting application routes: + views_api.py is used for setting application API endpoints: +

LNbits uses Quasar for frontend deisgn elements. Quasar Framework is an open-source Vue.js based framework for building apps.

-

TIP: Look through /template files in other extensions for examples.

+

TIP: Look through /template files in other extensions for examples.

In the below example we make a dialogue popup box (box can be triggered here): Exmple of a tooltip!

@@ -91,7 +94,7 @@

Quasar is built on Vue-JS, so LNbits uses Vue-JS for rendering page elements, organising JS functions and declaring modles and elements.

-

v-if can be used to render elements:

+

v-if can be used to render elements:

Typical example of a frontend page JS:

@@ -114,6 +117,11 @@ Coming soon...
+ +
Submission
+ Coming soon... +
+
Useful Tools
@@ -138,11 +146,15 @@
Magical G

- A magical "g" (ie this.g.user.wallets[0].inkey) is always available, with info about the user, wallets and + A magical "g" (ie this.g.user.wallets[0].inkey) is always available, with info about the user, wallets and extensions:

{% raw %}{{ g }}{% endraw %}
+ +
Conversion
+ Coming soon... +