diff --git a/src/octoprint/plugins/pluginmanager/__init__.py b/src/octoprint/plugins/pluginmanager/__init__.py index 2c4466ca6..228ae25fd 100644 --- a/src/octoprint/plugins/pluginmanager/__init__.py +++ b/src/octoprint/plugins/pluginmanager/__init__.py @@ -36,7 +36,12 @@ import threading from datetime import datetime -_DATA_FORMAT_VERSION = "v2" +try: + from os import scandir +except: + from scandir import scandir + +_DATA_FORMAT_VERSION = "v3" def map_repository_entry(entry): @@ -124,6 +129,8 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, self._notices_cache_ttl = 0 self._notices_mtime = None + self._orphans = None + self._console_logger = None self._get_throttled = lambda: False @@ -296,6 +303,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, "enable": ["plugin"], "disable": ["plugin"], "cleanup": ["plugin"], + "cleanup_all": [], "refresh_repository": [] } @@ -313,12 +321,15 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, if refresh_notices or not self._is_notices_cache_valid(): self._notices_available = self._refresh_notices() + refresh_orphan = request.values.get("refresh_orphans", "false") in valid_boolean_trues + def view(): return jsonify(plugins=self._get_plugins(), repository=dict( available=self._repository_available, plugins=self._repository_plugins ), + orphan_data=self._get_orphans(refresh=refresh_orphan), os=get_os(), octoprint=get_octoprint_version_string(), pip=dict( @@ -345,6 +356,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, hash_update(repr(self._repository_plugins)) hash_update(str(self._notices_available)) hash_update(repr(self._notices)) + hash_update(repr(self._get_orphans())) hash_update(repr(safe_mode)) hash_update(repr(self._connectivity_checker.online)) hash_update(repr(_DATA_FORMAT_VERSION)) @@ -355,7 +367,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, return with_revalidation_checking(etag_factory=lambda *args, **kwargs: etag(), condition=lambda *args, **kwargs: condition(), - unless=lambda: refresh_repository or refresh_notices)(view)() + unless=lambda: refresh_repository or refresh_notices or refresh_orphan)(view)() def on_api_command(self, command, data): if not Permissions.PLUGIN_PLUGINMANAGER_MANAGE.can(): @@ -385,12 +397,17 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, return self.command_uninstall(plugin, cleanup=data.get("cleanup", False)) elif command == "cleanup": - plugin_name = data["plugin"] - if not plugin_name in self._plugin_manager.plugins: - return make_response("Unknown plugin: %s" % plugin_name, 404) + plugin = data["plugin"] + try: + plugin = self._plugin_manager.plugins[plugin] + except KeyError: + # not installed, we are cleaning up left overs, that's ok + pass - plugin = self._plugin_manager.plugins[plugin_name] - return self.command_cleanup(plugin) + return self.command_cleanup(plugin, include_disabled=True) + + elif command == "cleanup_all": + return self.command_cleanup_all() elif command == "enable" or command == "disable": plugin_name = data["plugin"] @@ -662,45 +679,106 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, self._send_result_notification("uninstall", result) self._logger.info("Plugin {} uninstalled".format(plugin.key)) + self._cleanup_disabled(plugin.key) if cleanup: - self.command_cleanup(plugin) + self.command_cleanup(plugin.key, result_notifications=False) return jsonify(result) - def command_cleanup(self, plugin): - # delete plugin settings - self._settings.global_set(["plugins", plugin.key], None) - self._settings.save() - message = "Cleaned up settings of plugin {}".format(plugin.key) - self._log_stdout(message) + def command_cleanup(self, plugin, include_disabled=False, result_notifications=True, settings_save=True): + if isinstance(plugin, basestring): + key = result_value = plugin + else: + key = plugin.key + result_value = self._to_external_plugin(plugin) + + message = "Cleaning up plugin {}...".format(key) self._logger.info(message) + self._log_stdout(message) + + # delete plugin settings + self._cleanup_settings(key) + + # delete plugin disabled entry + if include_disabled: + self._cleanup_disabled(key) # delete plugin data folder - import os - import shutil - result_data = True - data_folder = os.path.join(self._settings.getBaseFolder("data"), plugin.key) - if os.path.exists(data_folder): - try: - shutil.rmtree(data_folder) - message = "Cleaned up data folder of plugin {}".format(plugin.key) - self._log_stdout(message) - self._logger.info(message) - except: - message = "Could not delete data folder of plugin {} at {}".format(plugin.key, data_folder) - self._log_stderr(message) - self._logger.exception(message) - result_data = False + if not self._cleanup_data(key): + message = "Could not delete data folder of plugin {}".format(key) + self._logger.exception(message) + self._log_stderr(message) + result_data = False + + if settings_save: + self._settings.save() result = dict(result=result_data, needs_restart=True, - plugin=self._to_external_plugin(plugin)) - self._send_result_notification("cleanup", result) - self._logger.info("Plugin {} cleaned up".format(plugin.key)) + plugin=result_value) + if result_notifications: + self._send_result_notification("cleanup", result) + + # cleaning orphan cache + self._orphans = None return jsonify(result) + def command_cleanup_all(self): + orphans = self._get_orphans() + cleaned_up = set() + + for orphan in sorted(orphans.keys()): + self.command_cleanup(orphan, + include_disabled=True, + result_notifications=False, + settings_save=False) + cleaned_up.add(orphan) + + self._settings.save() + + result = dict(result=True, + needs_restart=len(cleaned_up) > 0, + cleaned_up=sorted(list(cleaned_up))) + self._send_result_notification("cleanup_all", result) + self._logger.info("Cleaned up all data, {} left overs removed".format(len(cleaned_up))) + + # cleaning orphan cache + self._orphans = None + + return jsonify(result) + + def _cleanup_disabled(self, plugin): + # delete from disabled list + disabled = self._settings.global_get(["plugins", "_disabled"]) + try: + disabled.remove(plugin) + except ValueError: + # not in list, ok + pass + self._settings.global_set(["plugins", "_disabled"], disabled) + + def _cleanup_settings(self, plugin): + # delete plugin settings + self._settings.global_set(["plugins", plugin], None) + return True + + def _cleanup_data(self, plugin): + import os + import shutil + + data_folder = os.path.join(self._settings.getBaseFolder("data"), plugin) + if os.path.exists(data_folder): + try: + shutil.rmtree(data_folder) + return True + except Exception: + self._logger.exception("Could not delete plugin data folder at {}".format(data_folder)) + return False + else: + return True + def command_toggle(self, plugin, command): if plugin.key == "pluginmanager": return make_response("Can't enable/disable Plugin Manager", 400) @@ -1025,6 +1103,41 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, self._notices = notices return True + def _get_orphans(self, refresh=False): + from collections import defaultdict + + if self._orphans is not None and not refresh: + return self._orphans + + installed_keys = self._plugin_manager.plugins.keys() + orphans = defaultdict(lambda: dict(settings=False, data=False, disabled=False)) + + # settings + for key in list(self._settings.global_get(["plugins"]).keys()): + if key.startswith("_"): + # internal key, like _disabled + continue + + if key not in installed_keys: + orphans[key]["settings"] = True + + # data + for entry in scandir(self._settings.getBaseFolder("data")): + if not entry.is_dir(): + continue + + if entry.name not in installed_keys: + orphans[entry.name]["data"] = True + + # disabled + disabled = self._settings.global_get(["plugins", "_disabled"]) + for key in disabled: + if key not in installed_keys: + orphans[key]["disabled"] = True + + self._orphans = dict(**orphans) + return self._orphans + @property def _reconnect_hooks(self): reconnect_hooks = self.__class__.RECONNECT_HOOKS diff --git a/src/octoprint/plugins/pluginmanager/static/clientjs/pluginmanager.js b/src/octoprint/plugins/pluginmanager/static/clientjs/pluginmanager.js index 5a59a2075..4d2c02abc 100644 --- a/src/octoprint/plugins/pluginmanager/static/clientjs/pluginmanager.js +++ b/src/octoprint/plugins/pluginmanager/static/clientjs/pluginmanager.js @@ -10,18 +10,21 @@ }; OctoPrintPluginManagerClient.prototype.get = function(refresh, opts) { - var refresh_repo, refresh_notices; + var refresh_repo, refresh_notices, refresh_orphans; if (_.isPlainObject(refresh)) { refresh_repo = refresh.repo || false; refresh_notices = refresh.notices || false; + refresh_orphans = refresh.orphans || false; } else { refresh_repo = refresh; refresh_notices = false; + refresh_orphans = false; } var query = []; if (refresh_repo) query.push("refresh_repository=true"); if (refresh_notices) query.push("refresh_notices=true"); + if (refresh_orphans) query.push("refresh_orphans=true"); return this.base.get(this.base.getSimpleApiUrl("pluginmanager") + ((query.length) ? "?" + query.join("&") : ""), opts); }; @@ -73,6 +76,11 @@ return this.base.simpleApiCommand("pluginmanager", "cleanup", data, opts); }; + OctoPrintPluginManagerClient.prototype.cleanupAll = function(plugin, opts) { + var data = {}; + return this.base.simpleApiCommand("pluginmanager", "cleanup_all", data, opts); + }; + OctoPrintPluginManagerClient.prototype.enable = function(plugin, opts) { var data = { plugin: plugin diff --git a/src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css b/src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css index b6479776c..7450d4f01 100644 --- a/src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css +++ b/src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css @@ -1 +1 @@ -#settings_plugin_pluginmanager .form-search{text-align:center;margin-bottom:5px!important}#settings_plugin_pluginmanager_pluginlist{display:block;width:auto;height:400px;overflow-x:hidden;overflow-y:scroll;padding-right:2px;margin-bottom:1em}#settings_plugin_pluginmanager_pluginlist table td.settings_plugin_plugin_manager_plugins_name,#settings_plugin_pluginmanager_pluginlist table th.settings_plugin_plugin_manager_plugins_name{text-overflow:ellipsis;text-align:left}#settings_plugin_pluginmanager_pluginlist table td.settings_plugin_plugin_manager_plugins_actions,#settings_plugin_pluginmanager_pluginlist table th.settings_plugin_plugin_manager_plugins_actions{text-align:center;width:80px}#settings_plugin_pluginmanager_pluginlist table td.settings_plugin_plugin_manager_plugins_actions a,#settings_plugin_pluginmanager_pluginlist table th.settings_plugin_plugin_manager_plugins_actions a{text-decoration:none;color:#000}#settings_plugin_pluginmanager_pluginlist table td.settings_plugin_plugin_manager_plugins_actions a.disabled,#settings_plugin_pluginmanager_pluginlist table th.settings_plugin_plugin_manager_plugins_actions a.disabled{color:#ccc;cursor:default}#settings_plugin_pluginmanager_repositorydialog h4{position:relative}#settings_plugin_pluginmanager_repositorydialog h4 a.dropdown-toggle{color:inherit;text-decoration:none;font-size:14px}#settings_plugin_pluginmanager_repositorydialog h4 ul.dropdown-menu{font-size:14px}#settings_plugin_pluginmanager_repositorydialog .form-search{text-align:center;margin-bottom:5px!important}#settings_plugin_pluginmanager_repositorydialog .form-inline{padding:5px 10px 5px 5px;margin-bottom:0}#settings_plugin_pluginmanager_repositorydialog .form-inline .help-block{margin-bottom:0;font-size:85%}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_empty,#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_unavailable{overflow:hidden;width:100%;height:300px;background-image:url(../img/repo_unavailable.png);text-align:center;display:table}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_empty div,#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_unavailable div{display:table-cell;vertical-align:middle}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_list{width:auto;height:300px;overflow-x:hidden;overflow-y:scroll;padding-right:2px}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_list .entry{border-bottom:1px solid #ddd;padding:5px}#settings_plugin_pluginmanager_workingdialog_output .message{font-weight:700}#settings_plugin_pluginmanager_workingdialog_output .error{font-weight:700;color:#900}#settings_plugin_pluginmanager_workingdialog_output .stdout{color:#333}#settings_plugin_pluginmanager_workingdialog_output .stderr{color:#900}#settings_plugin_pluginmanager_workingdialog_output .call{color:#009} \ No newline at end of file +#settings_plugin_pluginmanager_pluginlist{display:block;width:auto;max-height:400px;overflow-x:hidden;overflow-y:scroll;padding-right:2px;margin-bottom:1em}#settings_plugin_pluginmanager_pluginlist table td.settings_plugin_plugin_manager_plugins_name,#settings_plugin_pluginmanager_pluginlist table th.settings_plugin_plugin_manager_plugins_name{text-overflow:ellipsis;text-align:left}#settings_plugin_pluginmanager_pluginlist table td.settings_plugin_plugin_manager_plugins_actions,#settings_plugin_pluginmanager_pluginlist table th.settings_plugin_plugin_manager_plugins_actions{text-align:center;width:80px}#settings_plugin_pluginmanager_pluginlist table td.settings_plugin_plugin_manager_plugins_actions a,#settings_plugin_pluginmanager_pluginlist table th.settings_plugin_plugin_manager_plugins_actions a{text-decoration:none;color:#000}#settings_plugin_pluginmanager_pluginlist table td.settings_plugin_plugin_manager_plugins_actions a.disabled,#settings_plugin_pluginmanager_pluginlist table th.settings_plugin_plugin_manager_plugins_actions a.disabled{color:#ccc;cursor:default}#settings_plugin_pluginmanager_orphanlist{display:block;width:auto;max-height:400px;overflow-x:hidden;overflow-y:scroll;padding-right:2px;margin-bottom:1em}#settings_plugin_pluginmanager_orphanlist table td.settings_plugin_plugin_manager_orphans_id,#settings_plugin_pluginmanager_orphanlist table th.settings_plugin_plugin_manager_orphans_id{text-overflow:ellipsis;text-align:left}#settings_plugin_pluginmanager_orphanlist table td.settings_plugin_plugin_manager_orphans_actions,#settings_plugin_pluginmanager_orphanlist table th.settings_plugin_plugin_manager_orphans_actions{text-align:center;width:80px}#settings_plugin_pluginmanager_orphanlist table td.settings_plugin_plugin_manager_orphans_actions a,#settings_plugin_pluginmanager_orphanlist table th.settings_plugin_plugin_manager_orphans_actions a{text-decoration:none;color:#000}#settings_plugin_pluginmanager_orphanlist table td.settings_plugin_plugin_manager_orphans_actions a.disabled,#settings_plugin_pluginmanager_orphanlist table th.settings_plugin_plugin_manager_orphans_actions a.disabled{color:#ccc;cursor:default}#settings_plugin_pluginmanager_repositorydialog h4{position:relative}#settings_plugin_pluginmanager_repositorydialog h4 a.dropdown-toggle{color:inherit;text-decoration:none;font-size:14px}#settings_plugin_pluginmanager_repositorydialog h4 ul.dropdown-menu{font-size:14px}#settings_plugin_pluginmanager_repositorydialog .form-search{text-align:center;margin-bottom:5px!important}#settings_plugin_pluginmanager_repositorydialog .form-inline{padding:5px 10px 5px 5px;margin-bottom:0}#settings_plugin_pluginmanager_repositorydialog .form-inline .help-block{margin-bottom:0;font-size:85%}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_empty,#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_unavailable{overflow:hidden;width:100%;height:300px;background-image:url(../img/repo_unavailable.png);text-align:center;display:table}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_empty div,#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_unavailable div{display:table-cell;vertical-align:middle}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_list{width:auto;height:300px;overflow-x:hidden;overflow-y:scroll;padding-right:2px}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_list .entry{border-bottom:1px solid #ddd;padding:5px}#settings_plugin_pluginmanager_workingdialog_output .message{font-weight:700}#settings_plugin_pluginmanager_workingdialog_output .error{font-weight:700;color:#900}#settings_plugin_pluginmanager_workingdialog_output .stdout{color:#333}#settings_plugin_pluginmanager_workingdialog_output .stderr{color:#900}#settings_plugin_pluginmanager_workingdialog_output .call{color:#009} \ No newline at end of file diff --git a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js index 2753f4338..257bb8f24 100644 --- a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js +++ b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js @@ -82,6 +82,23 @@ $(function() { 0 ); + self.orphans = new ItemListHelper( + "plugin.pluginmanager.orphans", + { + "identifier": function (a, b) { + // sorts ascending + if (a["identifier"].toLocaleLowerCase() < b["identifier"].toLocaleLowerCase()) return -1; + if (a["identifier"].toLocaleLowerCase() > b["identifier"].toLocaleLowerCase()) return 1; + return 0; + } + }, + {}, + "identifier", + [], + [], + 0 + ); + self.uploadElement = $("#settings_plugin_pluginmanager_repositorydialog_upload"); self.uploadButton = $("#settings_plugin_pluginmanager_repositorydialog_upload_start"); @@ -328,6 +345,7 @@ $(function() { self.fromResponse = function(data, options) { self._fromPluginsResponse(data.plugins, options); + self._fromOrphanResponse(data.orphan_data, options); self._fromRepositoryResponse(data.repository, options); self._fromPipResponse(data.pip, options); @@ -361,6 +379,14 @@ $(function() { self.plugins.updateItems(data); }; + self._fromOrphanResponse = function(data) { + var orphans = []; + _.each(data, function(value, key) { + orphans.push({identifier: key, settings: value.settings, data: value.data}); + }); + self.orphans.updateItems(orphans); + }; + self._fromRepositoryResponse = function(data) { self.repositoryAvailable(data.available); if (data.available) { @@ -396,17 +422,18 @@ $(function() { if (!_.isPlainObject(options)) { options = { refresh_repo: options, + refresh_orphans: false, refresh_notices: false, eval_notices: false }; - } options.refresh_repo = options.refresh_repo || false; + options.refresh_orphans = options.refresh_orphans || false; options.refresh_notices = options.refresh_notices || false; options.eval_notices = options.eval_notices || false; - OctoPrint.plugins.pluginmanager.get({repo: options.refresh_repo, notices: options.refresh_notices}) + OctoPrint.plugins.pluginmanager.get({repo: options.refresh_repo, notices: options.refresh_notices, orphans: options.refresh_orphans}) .done(function(data) { self.fromResponse(data, options); }); @@ -612,20 +639,27 @@ $(function() { }; self.cleanupPlugin = function(data) { + var key, name; + if (_.isObject(data)) { + key = data.key; + name = data.name; + } else { + key = name = data; + } + if (!self.loginState.isAdmin()) { return; } - if (!self.enableUninstall(data)) { - return; - } - - if (data.key === "pluginmanager") return; + if (key === "pluginmanager") return; var performCleanup = function() { - self._markWorking(gettext("Cleaning up plugin data..."), _.sprintf(gettext("Cleaning up data of plugin \"%(name)s\""), {name: _.escape(data.name)})); + self._markWorking(gettext("Cleaning up plugin data..."), _.sprintf(gettext("Cleaning up data of plugin \"%(name)s\""), {name: _.escape(name)})); - OctoPrint.plugins.pluginmanager.cleanup(data.key) + OctoPrint.plugins.pluginmanager.cleanup(key) + .done(function() { + self.requestData(); + }) .fail(function() { new PNotify({ title: gettext("Something went wrong"), @@ -640,7 +674,7 @@ $(function() { }; showConfirmationDialog({ - message: _.sprintf(gettext("You are about to cleanup the plugin data of \"%(name)s\". This operation cannot be reversed."), {name: _.escape(data.name)}), + message: _.sprintf(gettext("You are about to cleanup the plugin data of \"%(name)s\". This operation cannot be reversed."), {name: _.escape(name)}), cancel: gettext("Keep data"), proceed: gettext("Cleanup data"), onproceed: performCleanup, @@ -648,6 +682,38 @@ $(function() { }); }; + self.cleanupAll = function() { + if (!self.loginState.isAdmin()) { + return; + } + + var performCleanup = function() { + var title = gettext("Cleaning up all left over plugin data..."); + self._markWorking(title, title); + + OctoPrint.plugins.pluginmanager.cleanupAll() + .fail(function() { + new PNotify({ + title: gettext("Something went wrong"), + text: gettext("Please consult octoprint.log for details"), + type: "error", + hide: false + }); + }) + .always(function() { + self._markDone(); + }) + }; + + showConfirmationDialog({ + message: gettext("You are about to cleanup left over plugin settings and data of plugins no longer installed. This operation cannot be reversed."), + cancel: gettext("Keep data"), + proceed: gettext("Cleanup all data"), + onproceed: performCleanup, + nofade: true + }); + }; + self.refreshRepository = function() { if (!self.loginState.hasPermission(self.access.permissions.PLUGIN_PLUGINMANAGER_INSTALL)) { return; @@ -794,6 +860,10 @@ $(function() { line = gettext("Cleanup %(plugin)s: %(result)s"); break; } + case "cleanup_all": { + line = gettext("Cleanup all: %(result)s"); + break; + } default: { return; } @@ -1183,7 +1253,11 @@ $(function() { var name = "Unknown"; if (data.hasOwnProperty("plugin")) { if (data.plugin !== "unknown") { - name = data.plugin.name; + if (_.isPlainObject(data.plugin)) { + name = data.plugin.name; + } else { + name = data.plugin; + } } } diff --git a/src/octoprint/plugins/pluginmanager/static/less/pluginmanager.less b/src/octoprint/plugins/pluginmanager/static/less/pluginmanager.less index 3de4ce398..89f5ee3d0 100644 --- a/src/octoprint/plugins/pluginmanager/static/less/pluginmanager.less +++ b/src/octoprint/plugins/pluginmanager/static/less/pluginmanager.less @@ -1,8 +1,4 @@ #settings_plugin_pluginmanager { - .form-search { - text-align: center; - margin-bottom: 5px !important; - } } #settings_plugin_pluginmanager_pluginlist { @@ -40,6 +36,41 @@ } } +#settings_plugin_pluginmanager_orphanlist { + display: block; + width: auto; + max-height: 400px; + overflow-x: hidden; + overflow-y: scroll; + padding-right: 2px; + margin-bottom: 1em; + + table { + + th, td { + &.settings_plugin_plugin_manager_orphans_id { + text-overflow: ellipsis; + text-align: left; + } + + &.settings_plugin_plugin_manager_orphans_actions { + text-align: center; + width: 80px; + + a { + text-decoration: none; + color: #000; + + &.disabled { + color: #ccc; + cursor: default; + } + } + } + } + } +} + #settings_plugin_pluginmanager_repositorydialog { h4 { position: relative; diff --git a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 index 22f73fbc5..b3c23ee99 100644 --- a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 +++ b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 @@ -34,92 +34,144 @@ {% endtrans %} {% endmacro %} -{{ pluginmanager_printing() }} -{{ pluginmanager_nopip() }} -{{ pluginmanager_safemode() }} -{{ pluginmanager_throttled() }} + -
-
- - - -
-
- - - -
- -
+
+
+ {{ pluginmanager_printing() }} + {{ pluginmanager_nopip() }} + {{ pluginmanager_safemode() }} + {{ pluginmanager_throttled() }} -

{{ _('Installed Plugins') }}

+
+ +
- +

{{ _('Installed Plugins') }}

-
- - - - - - - - - - - - - -
{{ _('Name') }}{{ _('Actions') }}
-
()
-
-
 
-
- {{ _('Homepage') }} - - -   +
+ + +
+
+ + +
-
-  |  |  -
-
+
+ + + +
+
+
- +
+ + + + + + + + + + + + + +
{{ _('Name') }}{{ _('Actions') }}
+
()
+
+
 
+
+ {{ _('Homepage') }} + + +   +
+
+  |  |  +
+
-
-
- - - Using pip of "", Version - - -
-
- - Installation directory: ("--user" flag: )
- Virtual environment:
- Additional Arguments: -
-
-
+ -
-
- - - - - +
+
+ + + Using pip of "", Version + + +
+
+ + Installation directory: ("--user" flag: )
+ Virtual environment:
+ Additional Arguments: +
+
+
+ +
-
- - {{ _('Reshow current notices') }} · - {{ _('Refresh notices from repository') }} - + +
+
+ +
+ +

{{ _('Cleanup') }}

+ +
+
+ + + + + + + + + + + + + +
{{ _('Identifier') }}{{ _('Actions') }}
+ + + +
+
+ + +
+
+ {{ _('Nothing to cleanup! There are no settings or data left over from plugins which are no longer installed.') }} +