From fa776f0d0b7b4ca7071f0aa912be84e81caf6b61 Mon Sep 17 00:00:00 2001 From: marios Date: Mon, 18 Apr 2022 15:57:51 +0300 Subject: Callsigns (#37) * Plugin callsigns, filechangehandler thread bug fix, plugin file perms - Plugins are now assigned a callsign (a random string), which they use for all internal identification, like resource fetching and method calls. This is to ensure that plugins only access their own resources and methods. - Made FileChangeHandler send off events to a queue, that is then consumed by the Loader, instead of calling import_plugin on its own, since that caused weird issues with the event loop and the thread watchdog is using. - Plugins are now owned by root and have read-only permissions. This is handled automatically. * Improved general look and feel of plugin tab * Make all plugin entries have the same padding between them * Make "No plugins installed" text look the same as "No new notifications" Co-authored-by: WerWolv --- plugin_loader/static/plugin_page.js | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) (limited to 'plugin_loader/static/plugin_page.js') diff --git a/plugin_loader/static/plugin_page.js b/plugin_loader/static/plugin_page.js index 62c24bfe..0531f04e 100644 --- a/plugin_loader/static/plugin_page.js +++ b/plugin_loader/static/plugin_page.js @@ -19,20 +19,28 @@ function installPlugin(request_id) { function addPluginInstallPrompt(artifact, version, request_id) { let text = ` -
-

Install plugin

-
    -
  • ${artifact}
  • -
  • ${version}
  • -
-
- - -
+ + +
+

Install Plugin?

+

+ ${artifact} + Version: ${version} +

+ +

+
`; - document.getElementById('plugin_install_list').innerHTML += text; + document.getElementById('plugin_install_list').innerHTML = text; + + execute_in_tab('SP', false, 'FocusNavController.DispatchVirtualButtonClick(28)') } (function () { -- cgit v1.2.3