diff --git a/lnbits/core/static/extension.png b/lnbits/core/static/extension.png new file mode 100644 index 00000000..78378fd7 Binary files /dev/null and b/lnbits/core/static/extension.png differ 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