From f70eac2a48888562a59acecb1e3aa4218d754bb9 Mon Sep 17 00:00:00 2001 From: Fitti Date: Mon, 28 Jun 2021 09:05:49 +0200 Subject: [PATCH] Copy and start to modify templates --- .../templates/twitchalerts/_api_docs.html | 22 + .../templates/twitchalerts/display.html | 197 ++++++++ .../templates/twitchalerts/index.html | 475 ++++++++++++++++-- 3 files changed, 653 insertions(+), 41 deletions(-) create mode 100644 lnbits/extensions/twitchalerts/templates/twitchalerts/_api_docs.html create mode 100644 lnbits/extensions/twitchalerts/templates/twitchalerts/display.html diff --git a/lnbits/extensions/twitchalerts/templates/twitchalerts/_api_docs.html b/lnbits/extensions/twitchalerts/templates/twitchalerts/_api_docs.html new file mode 100644 index 000000000..9dd12cc07 --- /dev/null +++ b/lnbits/extensions/twitchalerts/templates/twitchalerts/_api_docs.html @@ -0,0 +1,22 @@ + + + +
+ Twitch Alerts: Integrate Bitcoin into your stream alerts! +
+

+ Accept Bitcoin donations on Twitch, and integrate them into your alerts. + Present your viewers with a simple donation page, and add those donations + to Streamlabs to play alerts on your stream!
+ + Created by, Fitti +

+
+
+
diff --git a/lnbits/extensions/twitchalerts/templates/twitchalerts/display.html b/lnbits/extensions/twitchalerts/templates/twitchalerts/display.html new file mode 100644 index 000000000..202508319 --- /dev/null +++ b/lnbits/extensions/twitchalerts/templates/twitchalerts/display.html @@ -0,0 +1,197 @@ +{% extends "public.html" %} {% block page %} +
+
+ + +

{{ form_name }}

+
+
{{ form_desc }}
+
+ + + + +

{% raw %}{{amountWords}}{% endraw %}

+
+ Submit + Cancel +
+
+
+
+
+ + + + + + +
+ Copy invoice + Close +
+
+
+
+ +{% endblock %} {% block scripts %} + +{% endblock %} diff --git a/lnbits/extensions/twitchalerts/templates/twitchalerts/index.html b/lnbits/extensions/twitchalerts/templates/twitchalerts/index.html index ac30a196e..2abb6c65e 100644 --- a/lnbits/extensions/twitchalerts/templates/twitchalerts/index.html +++ b/lnbits/extensions/twitchalerts/templates/twitchalerts/index.html @@ -1,56 +1,449 @@ {% extends "base.html" %} {% from "macros.jinja" import window_vars with context %} {% block page %} - - -
Frameworks used by LNbits
- - - {% raw %} - - - {{ tool.name }} - {{ tool.language }} - - {% endraw %} - - - -

- A magical "g" is always available, with info about the user, wallets and - extensions: -

- {% raw %}{{ g }}{% endraw %} -
-
+
+
+ + + New Service + + + + + +
+
+
Services
+
+
+ Export to CSV +
+
+ + {% raw %} + + + {% endraw %} + +
+
+ + + +
+
+
Donations
+
+
+ Export to CSV +
+
+ + {% raw %} + + + {% endraw %} + +
+
+
+
+ + +
+ LNbits Twitch Alerts extension +
+
+ + + {% include "twitchalerts/_api_docs.html" %} + +
+
+ + + + + + + + + + +
+ Update Service + + Create Service + Cancel +
+
+
+
+
{% endblock %} {% block scripts %} {{ window_vars(user) }}