From 50458901d6a132531d8a5c43427d1f7b77870237 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 25 Jan 2023 16:55:08 +0000 Subject: [PATCH] Added generic icon for iconless plugiins --- lnbits/core/static/extension.png | Bin 0 -> 8913 bytes lnbits/core/static/js/extensions.js | 8 ++- lnbits/core/templates/core/extensions.html | 39 +++++++++-- lnbits/core/templates/core/install.html | 75 +++++++++++++-------- lnbits/static/js/components.js | 2 +- 5 files changed, 89 insertions(+), 35 deletions(-) create mode 100644 lnbits/core/static/extension.png diff --git a/lnbits/core/static/extension.png b/lnbits/core/static/extension.png new file mode 100644 index 0000000000000000000000000000000000000000..78378fd7679c93434adca5d0cbb64bae0e3c72a2 GIT binary patch literal 8913 zcmeHLc{r49+aG%tichS+ZseWht_h zP_$sk77>we=vj~NJ&x~qj_-Znzn+<6=DzRiI?vyE{(jea-Pe8HSFxsg2RMW{006)N z1AT2X`Y~+xw~v+n-=>P|1^~E*0xix`&2aueink|;>_!AqFHnd;VgQ*000g|LO0`b< zpj4`}gSjTe7!=!vtGDc(IM9TW9_hz;puFrA-3==DhdXm|6(Z(#e$@9~{B|8lJbXLB z)~9-_UFg1NI&aW+)e6l`Idgh(neUZ&NAC*f3+#m8g80YpKRRoIIBK|VR;=3f)ilkB zHx(`?*{ibGNpakZnQo8$E7bbj^FtyJf&LU!4lqPVQgtI-*~Sc&g4A6I;N zi_wQ8TE6qymIp^sWO-Iajh)jKRYUacUcja&Z(N@6G=V&oJ*l#DLdg9L@^J$#!YadQ z;cLyt=aQL4n^q}_>FMQ9HD0tTs~Fn5UXkvQDYckU+E!k_)ZARqqV<|J{Jt|3KO3wt z`yj!mBjm0Ob=DCJwwb)kb9DO51-_iXi7N7y`G%@+2!oPh88fI`llJPzx3NGGJvI+x zkus_m%#$G{y6A9MO&Hr!D(5qzQ+tpXmlnUsAa?x9%tbXv?#RUp7Aor!O-HVZZ%yqC`{{} z9fC={#RSf^zt?j~W;zxA)L9rASasB4sOsR6G`*Je?=#0A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{BiW%U_z{{*AfSnc%pclv#?DmyB-tx;N{LMxlAYhIh1pSEkczUlgM z1#{BOEL@hfoq^3aCI)n*C!LJ2tuKG=tHIS#@rxgwzkdzA+S3gXsZcdPq zY^gg`!{^4H62X7Af(5agFf&j?E(yRG1^@!~0T`Q6ef(IaFu*>CH~tK>_Dl{fv`kPK zjr%RjzKip;CL_RPnfQ-hqp+ojWWeNl%GP}rp5Ue>G&}IyX8_O7W>Uni-Wq}-==q@mi=Qp zx?0pgbkRQY@EpEi`});lQruVHwU*p*+?Ie zW{=cbo64DE9p1enOgW8gV=e{NEtRr_*#$GUwU0JN8R}KhYX@MUW2#-M=@9-u!C7bg literal 0 HcmV?d00001 diff --git a/lnbits/core/static/js/extensions.js b/lnbits/core/static/js/extensions.js index c51af4b8..ad9745e7 100644 --- a/lnbits/core/static/js/extensions.js +++ b/lnbits/core/static/js/extensions.js @@ -4,7 +4,8 @@ new Vue({ return { searchTerm: '', filteredExtensions: null, - maxStars: 5 + maxStars: 5, + user: null } }, mounted() { @@ -33,5 +34,10 @@ new Vue({ } } }, + created() { + if (window.user) { + this.user = LNbits.map.user(window.user) + } + }, mixins: [windowMixin] }) diff --git a/lnbits/core/templates/core/extensions.html b/lnbits/core/templates/core/extensions.html index 1db58a00..bf41e276 100644 --- a/lnbits/core/templates/core/extensions.html +++ b/lnbits/core/templates/core/extensions.html @@ -3,9 +3,19 @@ {% endblock %} {% block page %}
-
-

Extensions

+
+

+ Extensions + Add Extensions +

+
- +
+
+ + +
{% raw %} -
+
+ {{ extension.name }} +
+
{{ extension.name }}
-

+

Add Extensions (admin only)

@@ -58,22 +58,29 @@ :key="extension.id + extension.hash" > - +
- +
+ + +
New Version {% raw %} -
+
+ {{ extension.name }} +
+
{{ extension.name }}
-
-
- - - Ratings coming soon -
+ + +
+ + Ratings coming soon
@@ -309,7 +326,7 @@ showUpgradeDialog: false, selectedExtension: null, selectedExtensionRepos: null, - maxStars: 0 + maxStars: 5 } }, watch: { diff --git a/lnbits/static/js/components.js b/lnbits/static/js/components.js index b67380ad..0911ea4a 100644 --- a/lnbits/static/js/components.js +++ b/lnbits/static/js/components.js @@ -145,7 +145,7 @@ Vue.component('lnbits-extension-list', { - Add extensions + Add Extensions