From f140dd9d443340aa2b38e246ec6da2d51465fd4f Mon Sep 17 00:00:00 2001 From: Eyal Date: Mon, 8 Jul 2019 21:20:08 -0400 Subject: [PATCH 01/30] Quote arguments in pip install If the argument is not quoted, the shell will interpret the braces. --- docs/development/environment.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/development/environment.rst b/docs/development/environment.rst index 8308712b7..04f9af807 100644 --- a/docs/development/environment.rst +++ b/docs/development/environment.rst @@ -25,7 +25,7 @@ below. ``source venv/Scripts/activate`` (Git Bash under Windows, see below) * Update ``pip`` in the virtual environment: ``pip install --upgrade pip`` * Install OctoPrint in `"editable" mode `_, - including its regular *and* development and plugin development dependencies: ``pip install -e .[develop,plugins]`` + including its regular *and* development and plugin development dependencies: ``pip install -e '.[develop,plugins]'`` When the virtual environment is activated you can then: From 78c2199d89adc510a9fdf060724d7364bc46e97e Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Mon, 12 Aug 2019 20:32:42 -0700 Subject: [PATCH 02/30] Fire PRINTER_PROFILE_MODIFIED when printer profile was modified --- docs/events/index.rst | 14 +++++++++++++- src/octoprint/printer/profile.py | 8 +++++++- src/octoprint/server/api/printer_profiles.py | 3 ++- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/docs/events/index.rst b/docs/events/index.rst index 108cfc20b..87e7c439e 100644 --- a/docs/events/index.rst +++ b/docs/events/index.rst @@ -628,7 +628,7 @@ SlicingProfileAdded * ``profile``: the profile that was added SlicingProfileModified - A new slicing profile was modified. + A slicing profile was modified. Payload: @@ -653,3 +653,15 @@ SettingsUpdated This event may also be triggered if calling code of :py:class:`octoprint.settings.Settings.save` or :py:class:`octoprint.plugin.PluginSettings.save` sets the ``trigger_event`` parameter to ``True``. + +.. _sec-events-available_events-printer_profile: + +Printer Profile +-------- + +PrinterProfileModified + A printer profile was modified. + + Payload: + + * ``identifier``: the identifier of the modified printer profile diff --git a/src/octoprint/printer/profile.py b/src/octoprint/printer/profile.py index b846f1e20..293b7b231 100644 --- a/src/octoprint/printer/profile.py +++ b/src/octoprint/printer/profile.py @@ -326,7 +326,7 @@ class PrinterProfileManager(object): return False return self._remove_from_path(self._get_profile_path(identifier)) - def save(self, profile, allow_overwrite=False, make_default=False): + def save(self, profile, allow_overwrite=False, make_default=False, trigger_event=False): if "id" in profile: identifier = profile["id"] elif "name" in profile: @@ -349,6 +349,12 @@ class PrinterProfileManager(object): if self._current is not None and self._current["id"] == identifier: self.select(identifier) + + from octoprint.events import eventManager, Events + if trigger_event: + payload = dict(identifier=identifier) + eventManager().fire(Events.PRINTER_PROFILE_MODIFIED, payload=payload) + return self.get(identifier) def is_default_unmodified(self): diff --git a/src/octoprint/server/api/printer_profiles.py b/src/octoprint/server/api/printer_profiles.py index 5e4933309..0b390146e 100644 --- a/src/octoprint/server/api/printer_profiles.py +++ b/src/octoprint/server/api/printer_profiles.py @@ -146,7 +146,8 @@ def printerProfilesUpdate(identifier): merged_profile["id"] = identifier try: - saved_profile = printerProfileManager.save(merged_profile, allow_overwrite=True, make_default=make_default) + saved_profile = printerProfileManager.save(merged_profile, allow_overwrite=True, make_default=make_default, + trigger_event=True) except InvalidProfileError: return make_response("Profile is invalid", 400) except CouldNotOverwriteError: From 9c748a85b44bca880d0f30f97d2f9c5128b7fc13 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Mon, 12 Aug 2019 20:40:17 -0700 Subject: [PATCH 03/30] removed ' to march master --- docs/development/environment.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/development/environment.rst b/docs/development/environment.rst index 04f9af807..8308712b7 100644 --- a/docs/development/environment.rst +++ b/docs/development/environment.rst @@ -25,7 +25,7 @@ below. ``source venv/Scripts/activate`` (Git Bash under Windows, see below) * Update ``pip`` in the virtual environment: ``pip install --upgrade pip`` * Install OctoPrint in `"editable" mode `_, - including its regular *and* development and plugin development dependencies: ``pip install -e '.[develop,plugins]'`` + including its regular *and* development and plugin development dependencies: ``pip install -e .[develop,plugins]`` When the virtual environment is activated you can then: From e4e97190dae588b540b2d5bfe540a2aa5b82a13c Mon Sep 17 00:00:00 2001 From: Ben Yarmis Date: Sun, 25 Aug 2019 01:38:52 -0500 Subject: [PATCH 04/30] Resolving issue #3253 Added myself to the AUTHORS.md file --- AUTHORS.md | 1 + src/octoprint/util/version.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS.md b/AUTHORS.md index 99c995aa4..38730e8d6 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -107,6 +107,7 @@ date of first contribution): * [Steven Spungin](https://github.com/flamenco) * [Piotr Usewicz](https://github.com/pusewicz) * [Aliaksei Pilko](https://github.com/aliaksei135) + * [Ben Yarmis](https://github.com/byarmis) OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by [Daid Braam](https://github.com/daid). Parts of its communication layer and diff --git a/src/octoprint/util/version.py b/src/octoprint/util/version.py index 08cf63079..c3275758e 100644 --- a/src/octoprint/util/version.py +++ b/src/octoprint/util/version.py @@ -123,7 +123,7 @@ def get_python_version_string(): # Debian has the python version set to 2.7.15+ which is not PEP440 compliant (bug 914072) if version_string.endswith("+"): - version_string = python_version[:-1] + version_string = version_string[:-1] return version_string From 6df3cb5c12e0d39b07941767e54e0ab6e58626c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 4 Sep 2019 10:31:45 +0200 Subject: [PATCH 05/30] =?UTF-8?q?=F0=9F=90=9B=20plugin.version=20may=20be?= =?UTF-8?q?=20None?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/plugins/tracking/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/octoprint/plugins/tracking/__init__.py b/src/octoprint/plugins/tracking/__init__.py index 3655aef66..515c6729b 100644 --- a/src/octoprint/plugins/tracking/__init__.py +++ b/src/octoprint/plugins/tracking/__init__.py @@ -179,7 +179,7 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin, if ping_interval: self._ping_worker = RepeatedTimer(ping_interval, self._track_ping, run_first=True) self._ping_worker.start() - + if self._pong_worker is None: pong_interval = self._settings.get(["pong"]) if pong_interval: @@ -230,7 +230,13 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin, if b"octopi_version" in self._environment[b"plugins"][b"pi_support"]: payload[b"octopi_version"] = self._environment[b"plugins"][b"pi_support"][b"octopi_version"] - self._track("startup", **payload) + plugins = self._plugin_manager.enabled_plugins + plugins_thirdparty = [plugin for plugin in plugins.values() if not plugin.bundled] + payload[b"plugins"] = ",".join(map(lambda x: "{}:{}".format(x.key.lower(), + x.version.lower() if x.version else "?"), + plugins_thirdparty)) + + self._track("startup", body=True, **payload) def _track_shutdown(self): if not self._settings.get_boolean([b"enabled"]): From a3a60c59679c5c821e633e7a63f127d1086872b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 4 Sep 2019 10:59:03 +0200 Subject: [PATCH 06/30] =?UTF-8?q?=E2=98=94=20appkeys:=20better=20handling?= =?UTF-8?q?=20of=20empty=20request=20body?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/plugins/appkeys/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/octoprint/plugins/appkeys/__init__.py b/src/octoprint/plugins/appkeys/__init__.py index 310638360..b5d066ddf 100644 --- a/src/octoprint/plugins/appkeys/__init__.py +++ b/src/octoprint/plugins/appkeys/__init__.py @@ -121,6 +121,9 @@ class AppKeysPlugin(octoprint.plugin.AssetPlugin, @no_firstrun_access def handle_request(self): data = flask.request.json + if data is None: + return flask.make_response("Missing key request", 400) + if not "app" in data: return flask.make_response("No app name provided", 400) From 36198c684f187cb1f914aaaa5b889d75bb255e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 4 Sep 2019 16:22:31 +0200 Subject: [PATCH 07/30] =?UTF-8?q?=F0=9F=90=9B=20Fix=20scoping=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #3247 --- src/octoprint/static/js/app/viewmodels/control.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/octoprint/static/js/app/viewmodels/control.js b/src/octoprint/static/js/app/viewmodels/control.js index 4e9049b67..2dfc378ec 100644 --- a/src/octoprint/static/js/app/viewmodels/control.js +++ b/src/octoprint/static/js/app/viewmodels/control.js @@ -203,9 +203,8 @@ $(function() { }); } - var js; if (control.hasOwnProperty("javascript")) { - js = control.javascript; + var js = control.javascript; // if js is a function everything's fine already, but if it's a string we need to eval that first if (!_.isFunction(js)) { @@ -216,12 +215,12 @@ $(function() { } if (control.hasOwnProperty("enabled")) { - js = control.enabled; + var enabled = control.enabled; // if js is a function everything's fine already, but if it's a string we need to eval that first - if (!_.isFunction(js)) { + if (!_.isFunction(enabled)) { control.enabled = function (data) { - return eval(js); + return eval(enabled); } } } From 79b66f17b66aea92278511c31cc27dd8f7e75960 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Wed, 4 Sep 2019 22:57:17 -0700 Subject: [PATCH 08/30] Events PRINTER_PROFILE_ADDED and PRINTER_PROFILE_DELETED are now triggered --- src/octoprint/printer/profile.py | 19 +++++++++++++++---- src/octoprint/server/api/printer_profiles.py | 5 +++-- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/octoprint/printer/profile.py b/src/octoprint/printer/profile.py index 293b7b231..bb36ce0d3 100644 --- a/src/octoprint/printer/profile.py +++ b/src/octoprint/printer/profile.py @@ -319,12 +319,19 @@ class PrinterProfileManager(object): except InvalidProfileError: return None - def remove(self, identifier): + def remove(self, identifier, trigger_event=False): if self._current is not None and self._current["id"] == identifier: return False elif settings().get(["printerProfiles", "default"]) == identifier: return False - return self._remove_from_path(self._get_profile_path(identifier)) + + removed = self._remove_from_path(self._get_profile_path(identifier)) + if removed and trigger_event: + from octoprint.events import eventManager, Events + payload = dict(identifier=identifier) + eventManager().fire(Events.PRINTER_PROFILE_DELETED, payload=payload) + + return removed def save(self, profile, allow_overwrite=False, make_default=False, trigger_event=False): if "id" in profile: @@ -341,7 +348,10 @@ class PrinterProfileManager(object): profile = dict_sanitize(profile, self.__class__.default) profile = dict_merge(self.__class__.default, profile) - self._save_to_path(self._get_profile_path(identifier), profile, allow_overwrite=allow_overwrite) + path = self._get_profile_path(identifier) + is_overwrite = os.path.exists(path) + + self._save_to_path(path, profile, allow_overwrite=allow_overwrite) if make_default: settings().set(["printerProfiles", "default"], identifier) @@ -353,7 +363,8 @@ class PrinterProfileManager(object): from octoprint.events import eventManager, Events if trigger_event: payload = dict(identifier=identifier) - eventManager().fire(Events.PRINTER_PROFILE_MODIFIED, payload=payload) + event = Events.PRINTER_PROFILE_MODIFIED if is_overwrite else Events.PRINTER_PROFILE_ADDED + eventManager().fire(event, payload=payload) return self.get(identifier) diff --git a/src/octoprint/server/api/printer_profiles.py b/src/octoprint/server/api/printer_profiles.py index 0b390146e..11528287c 100644 --- a/src/octoprint/server/api/printer_profiles.py +++ b/src/octoprint/server/api/printer_profiles.py @@ -85,7 +85,8 @@ def printerProfilesAdd(): return make_response("Profile does not contain mandatory 'name' field", 400) try: - saved_profile = printerProfileManager.save(profile, allow_overwrite=False, make_default=make_default) + saved_profile = printerProfileManager.save(profile, allow_overwrite=False, make_default=make_default, + trigger_event=True) except InvalidProfileError: return make_response("Profile is invalid", 400) except CouldNotOverwriteError: @@ -114,7 +115,7 @@ def printerProfilesDelete(identifier): if default_profile and default_profile["id"] == identifier: return make_response("Cannot delete default profile: {}".format(identifier), 409) - printerProfileManager.remove(identifier) + printerProfileManager.remove(identifier, trigger_event=True) return NO_CONTENT @api.route("/printerprofiles/", methods=["PATCH"]) From b3e76c3ecc0a824585368f4369f9a17fb300c3c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 5 Sep 2019 14:25:17 +0200 Subject: [PATCH 09/30] =?UTF-8?q?=F0=9F=90=9B=20plugin.version=20can=20be?= =?UTF-8?q?=20None,=20episode=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/plugins/tracking/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/octoprint/plugins/tracking/__init__.py b/src/octoprint/plugins/tracking/__init__.py index 515c6729b..29a8ff85e 100644 --- a/src/octoprint/plugins/tracking/__init__.py +++ b/src/octoprint/plugins/tracking/__init__.py @@ -208,7 +208,9 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin, plugins = self._plugin_manager.enabled_plugins plugins_thirdparty = [plugin for plugin in plugins.values() if not plugin.bundled] - payload = dict(plugins=",".join(map(lambda x: "{}:{}".format(x.key.lower(), x.version.lower()), plugins_thirdparty))) + payload = dict(plugins=",".join(map(lambda x: "{}:{}".format(x.key.lower(), + x.version.lower() if x.version else "?"), + plugins_thirdparty))) self._track("pong", body=True, **payload) From f0914c22143ef8f06ae9394928bbf39536bbc00e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 5 Sep 2019 14:39:00 +0200 Subject: [PATCH 10/30] =?UTF-8?q?=F0=9F=90=9B=20appkeys:=20empty=20user=5F?= =?UTF-8?q?id=20=3D=20unset=20user=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also some more debug logging Closes #3257 --- src/octoprint/plugins/appkeys/__init__.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/octoprint/plugins/appkeys/__init__.py b/src/octoprint/plugins/appkeys/__init__.py index b5d066ddf..d67c8de9a 100644 --- a/src/octoprint/plugins/appkeys/__init__.py +++ b/src/octoprint/plugins/appkeys/__init__.py @@ -43,6 +43,12 @@ class PendingDecision(object): user_id=self.user_id, user_token=self.user_token) + def __repr__(self): + return u"PendingDecision({!r}, {!r}, {!r}, {!r}, timeout_callback=...)".format(self.app_id, + self.app_token, + self.user_id, + self.user_token) + class ReadyDecision(object): def __init__(self, app_id, app_token, user_id): @@ -54,6 +60,11 @@ class ReadyDecision(object): def for_pending(cls, pending, user_id): return cls(pending.app_id, pending.app_token, user_id) + def __repr__(self): + return u"ReadyDecision({!r}, {!r}, {!r})".format(self.app_id, + self.app_token, + self.user_id) + class ActiveKey(object): def __init__(self, app_id, api_key, user_id): @@ -74,6 +85,11 @@ class ActiveKey(object): def for_internal(cls, internal, user_id): return cls(internal["app_id"], internal["api_key"], user_id) + def __repr__(self): + return u"ActiveKey({!r}, {!r}, {!r})".format(self.app_id, + self.api_key, + self.user_id) + class AppKeysPlugin(octoprint.plugin.AssetPlugin, octoprint.plugin.BlueprintPlugin, @@ -129,7 +145,7 @@ class AppKeysPlugin(octoprint.plugin.AssetPlugin, app_name = data["app"] user_id = None - if "user" in data: + if "user" in data and data["user"]: user_id = data["user"] app_token, user_token = self._add_pending_decision(app_name, user_id=user_id) From ea59dab7ab96f6e103f8f67406589a316bcb1840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 5 Sep 2019 14:51:51 +0200 Subject: [PATCH 11/30] =?UTF-8?q?=E2=9C=A8=20Optional=20print=20start=20co?= =?UTF-8?q?nfirmation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements #3250 --- src/octoprint/server/api/settings.py | 2 ++ src/octoprint/settings.py | 1 + src/octoprint/static/js/app/viewmodels/files.js | 15 ++++++++++++++- .../static/js/app/viewmodels/printerstate.js | 16 +++++++++++++++- .../static/js/app/viewmodels/settings.js | 1 + .../templates/dialogs/settings/features.jinja2 | 7 +++++++ 6 files changed, 40 insertions(+), 2 deletions(-) diff --git a/src/octoprint/server/api/settings.py b/src/octoprint/server/api/settings.py index 8e7fdfcbb..dd19e4d7a 100644 --- a/src/octoprint/server/api/settings.py +++ b/src/octoprint/server/api/settings.py @@ -124,6 +124,7 @@ def getSettings(): "keyboardControl": s.getBoolean(["feature", "keyboardControl"]), "pollWatched": s.getBoolean(["feature", "pollWatched"]), "modelSizeDetection": s.getBoolean(["feature", "modelSizeDetection"]), + "printStartConfirmation": s.getBoolean(["feature", "printStartConfirmation"]), "printCancelConfirmation": s.getBoolean(["feature", "printCancelConfirmation"]), "g90InfluencesExtruder": s.getBoolean(["feature", "g90InfluencesExtruder"]), "autoUppercaseBlacklist": s.get(["feature", "autoUppercaseBlacklist"]) @@ -417,6 +418,7 @@ def _saveSettings(data): if "keyboardControl" in data["feature"]: s.setBoolean(["feature", "keyboardControl"], data["feature"]["keyboardControl"]) if "pollWatched" in data["feature"]: s.setBoolean(["feature", "pollWatched"], data["feature"]["pollWatched"]) if "modelSizeDetection" in data["feature"]: s.setBoolean(["feature", "modelSizeDetection"], data["feature"]["modelSizeDetection"]) + if "printStartConfirmation" in data["feature"]: s.setBoolean(["feature", "printStartConfirmation"], data["feature"]["printStartConfirmation"]) if "printCancelConfirmation" in data["feature"]: s.setBoolean(["feature", "printCancelConfirmation"], data["feature"]["printCancelConfirmation"]) if "g90InfluencesExtruder" in data["feature"]: s.setBoolean(["feature", "g90InfluencesExtruder"], data["feature"]["g90InfluencesExtruder"]) if "autoUppercaseBlacklist" in data["feature"] and isinstance(data["feature"]["autoUppercaseBlacklist"], (list, tuple)): s.set(["feature", "autoUppercaseBlacklist"], data["feature"]["autoUppercaseBlacklist"]) diff --git a/src/octoprint/settings.py b/src/octoprint/settings.py index 9525481dc..4cb92000d 100644 --- a/src/octoprint/settings.py +++ b/src/octoprint/settings.py @@ -257,6 +257,7 @@ default_settings = { "keyboardControl": True, "pollWatched": False, "modelSizeDetection": True, + "printStartConfirmation": False, "printCancelConfirmation": True, "autoUppercaseBlacklist": ["M117", "M118"], "g90InfluencesExtruder": False diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index 325771fbe..1790ef2ec 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -460,7 +460,20 @@ $(function() { var withinPrintDimensions = self.evaluatePrintDimensions(data, true); var print = printAfterLoad && withinPrintDimensions; - OctoPrint.files.select(data.origin, data.path, print); + if (print && self.settingsViewModel.feature_printStartConfirmation()) { + showConfirmationDialog({ + message: gettext("This will start a new print job. Please check that the print bed is clear."), + question: gettext("Do you want to start the print job now?"), + cancel: gettext("No"), + proceed: gettext("Yes"), + onproceed: function() { + OctoPrint.files.select(data.origin, data.path, print); + }, + nofade: true + }); + } else { + OctoPrint.files.select(data.origin, data.path, print); + } } }; diff --git a/src/octoprint/static/js/app/viewmodels/printerstate.js b/src/octoprint/static/js/app/viewmodels/printerstate.js index b27466e91..5fc266036 100644 --- a/src/octoprint/static/js/app/viewmodels/printerstate.js +++ b/src/octoprint/static/js/app/viewmodels/printerstate.js @@ -322,7 +322,21 @@ $(function() { } }); } else { - OctoPrint.job.start(); + if (!self.settings.feature_printStartConfirmation()) { + OctoPrint.job.start(); + } else { + showConfirmationDialog({ + message: gettext("This will start a new print job. Please check that the print bed is clear."), + question: gettext("Do you want to start the print job now?"), + cancel: gettext("No"), + proceed: gettext("Yes"), + onproceed: function() { + OctoPrint.job.start(); + }, + nofade: true + }); + } + } }; diff --git a/src/octoprint/static/js/app/viewmodels/settings.js b/src/octoprint/static/js/app/viewmodels/settings.js index 5d3490743..34a55a979 100644 --- a/src/octoprint/static/js/app/viewmodels/settings.js +++ b/src/octoprint/static/js/app/viewmodels/settings.js @@ -144,6 +144,7 @@ $(function() { self.feature_keyboardControl = ko.observable(undefined); self.feature_pollWatched = ko.observable(undefined); self.feature_modelSizeDetection = ko.observable(undefined); + self.feature_printStartConfirmation = ko.observable(undefined); self.feature_printCancelConfirmation = ko.observable(undefined); self.feature_g90InfluencesExtruder = ko.observable(undefined); self.feature_autoUppercaseBlacklist = ko.observable(undefined); diff --git a/src/octoprint/templates/dialogs/settings/features.jinja2 b/src/octoprint/templates/dialogs/settings/features.jinja2 index 1fcc90325..b89ba502a 100644 --- a/src/octoprint/templates/dialogs/settings/features.jinja2 +++ b/src/octoprint/templates/dialogs/settings/features.jinja2 @@ -13,6 +13,13 @@ +
+
+ +
+
- +
diff --git a/src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2 b/src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2 index 99055b532..f12e6ad4f 100644 --- a/src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2 +++ b/src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2 @@ -21,8 +21,8 @@
{{ _('Incorrect username or password.') }}
{{ _('Server is currently offline.') }} {{ _('Reconnect...') }}
- - + + {{ _('Forgot password?') }}
- +
@@ -103,7 +103,7 @@
- +
diff --git a/src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2 b/src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2 index 6349f9180..c2c5f9401 100644 --- a/src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2 +++ b/src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2 @@ -1,4 +1,4 @@ - - - + + + diff --git a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 index 5c3e8a772..3b0ca7826 100644 --- a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 +++ b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 @@ -40,7 +40,7 @@ {{ pluginmanager_throttled() }}
- +

{{ _('Installed Plugins') }}

@@ -56,7 +56,7 @@ -
()
+
()
 
@@ -67,7 +67,7 @@
-  |  +  |  @@ -151,7 +151,7 @@
@@ -193,7 +193,7 @@
- +
@@ -246,14 +246,14 @@
{{ _('Confirmations') }} -
+
-
+