From 30325397d090cfffee1143f21423aff7bd4e6122 Mon Sep 17 00:00:00 2001 From: tza Date: Tue, 5 Apr 2022 22:40:24 +0300 Subject: added plugin tile view isolation Tile views will now run each in their own iframe. This makes it more safe as plugins no longer share the same javascript context, and plugin method calls can now be supported from the tile view. --- plugin_loader/templates/plugin_view.html | 51 +++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 8 deletions(-) (limited to 'plugin_loader/templates') diff --git a/plugin_loader/templates/plugin_view.html b/plugin_loader/templates/plugin_view.html index d0275a7a..895931c4 100644 --- a/plugin_loader/templates/plugin_view.html +++ b/plugin_loader/templates/plugin_view.html @@ -1,13 +1,21 @@ - + {% if not plugins|length %} -
+
No plugins installed :( -
+
{% endif %} @@ -15,15 +23,42 @@
{% for plugin in plugins %} {% if plugin.tile_view_html|length %} -
- {{ plugin.tile_view_html|safe }} +
+ +
{% else %}
-
+
- -
+ +
{% endif %} -- cgit v1.2.3