Merge branch 'maintenance' into devel

This commit is contained in:
Gina Häußge committed 2021-09-13 14:03:05 +02:00
commit 6a697e9013
11 files changed
+37 -30

No files matched your search

+3 -3
View File
@@ -29,10 +29,10 @@ improve/.* 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev
staging/bugfix 1.6.1 29484fb2926960279e62881d6ee073c374a2a5fe pep440-dev
bug/.* 1.6.1 29484fb2926960279e62881d6ee073c374a2a5fe pep440-dev
# staging/maintenance is currently the branch for preparation of 1.7.0rc3
# staging/maintenance is currently the branch for preparation of 1.7.0rc4
# so is regressionfix/...
staging/maintenance 1.7.0rc3 d71de9003dfa23b68b4b434c04a07472f0679535 pep440-dev
regressionfix/.* 1.7.0rc3 d71de9003dfa23b68b4b434c04a07472f0679535 pep440-dev
staging/maintenance 1.7.0rc4 f31194f75365787f3eb5da61a24f2f8620111f4f pep440-dev
regressionfix/.* 1.7.0rc4 f31194f75365787f3eb5da61a24f2f8620111f4f pep440-dev
# staging/devel is currently inactive (but has the 1.4.1rc4 namespace)
staging/devel 1.4.1rc4 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev
+2 -2
View File
@@ -22,7 +22,6 @@ thanks to everyone who contributed!
* Christian Würthner
* Christoph Sigrist
* Creality3D
* Dana Voigt
* David Bounds
* DeltaMaker 3D Printers
* Dennis Breining
@@ -35,6 +34,7 @@ thanks to everyone who contributed!
* Greg Holloway
* Hog Duske
* Itay Shem-tov
* Jeff Moe
* Jeremy Cole
* Joshua Wills
* Julian Melo
@@ -78,4 +78,4 @@ thanks to everyone who contributed!
* Ulderico Cirello
* Ulrich Kempken
and 2347 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
and 2352 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
+7
View File
@@ -38,6 +38,8 @@ The following GCODE scripts are sent by OctoPrint automatically:
* ``afterPrintDone``: Sent just after a print job finished. Defaults to an empty script.
* ``afterPrintPaused``: Sent just after a print job was paused. Defaults to an empty script.
* ``beforePrintResumed``: Sent just before a print job is resumed. Defaults to an empty script.
* ``beforeToolChange``: Sent just before a tool change command (``Tn``) is issued.
* ``afterToolChange``: Sent just after a tool change command (``Tn``) is issued
.. note::
@@ -108,6 +110,11 @@ There are a few additional template variables available for the following specif
* ``cancel_temperature``: Last known temperature values when the print was cancelled. See ``last_temperature`` above
for the structure to expect here.
* ``beforeToolChange`` and ``afterToolChange``
* ``tool.old``: The number of the previous tool
* ``tool.new``: The number of the new tool
.. warning::
-1
View File
@@ -66,7 +66,6 @@ INSTALL_REQUIRES = [
"pathvalidate>=2.4.1,<3",
"colorlog>=5.0.1,<6",
# vendor bundled dependencies
"unidecode", # dependency of awesome-slugify, leave w/o range to not cause dependency hell w/ Octolapse deps
"blinker>=1.4,<2", # dependency of flask_principal
]
@@ -209,7 +209,6 @@ $(function () {
}
})
.css({
"width": "auto",
"margin-left": function () {
return -($(this).width() / 2);
}
@@ -18,10 +18,10 @@ from octoprint.util.version import (
)
SENTRY_URL_SERVER = (
"https://8ae45309783648a6bc6da9ebe4a00753@o118517.ingest.sentry.io/1373987"
"https://d697280f99f544d5a0705e7ae9880dd5@o118517.ingest.sentry.io/1373987"
)
SENTRY_URL_COREUI = (
"https://3eb72bcc7b344513b477217d0d4b96c5@o118517.ingest.sentry.io/1374096"
"https://c82d12e144df4a848e57cd18912239f4@o118517.ingest.sentry.io/1374096"
)
SETTINGS_DEFAULTS = {
@@ -62,7 +62,7 @@
<div class="pull-right">
<button class="btn btn-small" data-bind="click: $root.showRepository"><i class="fas fa-plus"></i> {{ _('Get More') }}</button>
<a class="btn btn-small" href="/plugin/pluginmanager/export"><i class="fas fa-download"></i> {{ _('Export') }}</a>
<a class="btn btn-small" href="{{ url_for('index') }}plugin/pluginmanager/export"><i class="fas fa-download"></i> {{ _('Export') }}</a>
<button class="btn btn-small" data-bind="click: function() { $root.showPluginSettings(); }" title="{{ _('Plugin Configuration')|edq }}"><i class="fas fa-wrench"></i></button>
<a class="btn btn-small" data-toggle="collapse" href="#pluginmanager_info" title="{{ _('Info') }}"><i class="fas fa-lg fa-info-circle text-info" data-bind="css: {'text-error': noticeCount() > 0, 'text-info': noticeCount() <=0 }"></i></a>
</div>
@@ -128,7 +128,7 @@
</table>
</div>
</div>
<div class="tab-pane active" id="settings_plugin_softwareupdate_updatelog">
<div class="tab-pane" id="settings_plugin_softwareupdate_updatelog">
<h3>{{ _('Update log') }}</h3>
<div id="settings_plugin_softwareupdate_updatelog_list">
+12 -9
View File
@@ -1060,18 +1060,14 @@ function showProgressModal(options, promise) {
var progress = $('<div class="progress progress-text-centered"></div>');
var progressBar = $('<div class="bar"></div>').addClass(barClassSuccess);
var progressTextBack = $('<span class="progress-text-back"></span>');
var progressTextFront = $('<span class="progress-text-front"></span>').width(
progress.width()
);
var progressText = $('<span class="progress-text-back"></span>');
if (max === undefined) {
progress.addClass("progress-striped active");
progressBar.width("100%");
}
progressBar.append(progressTextFront);
progress.append(progressTextBack).append(progressBar);
progress.append(progressBar).append(progressText);
var button = $('<button class="btn">' + buttonText + "</button>")
.prop("disabled", true)
@@ -1127,9 +1123,16 @@ function showProgressModal(options, promise) {
// update progress bar
progressBar.width(String(value) + "%");
progressTextFront.text(short);
progressTextBack.text(short);
progressTextFront.width(progress.width());
progressText.text(short);
if (value < 50 && progressText.hasClass("progress-text-front")) {
progressText
.removeClass("progress-text-front")
.addClass("progress-text-back");
} else if (value >= 50 && progressText.hasClass("progress-text-back")) {
progressText
.removeClass("progress-text-back")
.addClass("progress-text-front");
}
// if not successful, apply failure class
if (!success && !progressBar.hasClass(barClassFailure)) {
+1 -1
View File
@@ -50,7 +50,7 @@
{{ _('An account with the following permissions is required:') }} {{ permission_names|join(", ") }}
</p>{% endif %}
<input type="text" id="login-user" data-test-id="login-username" class="input-block-level" placeholder="{{ _('Username')|edq }}" autofocus>
<input type="text" id="login-user" data-test-id="login-username" class="input-block-level" placeholder="{{ _('Username')|edq }}" autofocus autocapitalize="none">
<input type="password" id="login-password" data-test-id="login-password" class="input-block-level" placeholder="{{ _('Password')|edq }}">
<span class="pull-right"><small><a href="https://faq.octoprint.org/forgotten-password" id="login-forgotpassword" target="_blank" tabindex="-1">{{ _('Forgot password?') }}</a></small></span>
<label class="checkbox">
+8 -9
View File
@@ -173,6 +173,9 @@ regex_firmware_splitter = re.compile(r"(^|\s+)([A-Z][A-Z0-9_]*):")
regex_resend_linenumber = re.compile(r"(N|N:)?(?P<n>%s)" % regex_int_pattern)
"""Regex to use for request line numbers in resend requests"""
regex_serial_devices = re.compile(r"^(?:ttyUSB|ttyACM|tty\.usb|cu\.|cuaU|ttyS|rfcomm).*")
"""Regex used to filter out valid tty devices"""
def serialList():
if os.name == "nt":
@@ -189,15 +192,11 @@ def serialList():
pass
else:
candidates = (
glob.glob("/dev/ttyUSB*")
+ glob.glob("/dev/ttyACM*")
+ glob.glob("/dev/tty.usb*")
+ glob.glob("/dev/cu.*")
+ glob.glob("/dev/cuaU*")
+ glob.glob("/dev/ttyS*")
+ glob.glob("/dev/rfcomm*")
)
candidates = []
with os.scandir("/dev") as it:
for entry in it:
if regex_serial_devices.match(entry.name):
candidates.append(entry.path)
# additional ports
additionalPorts = settings().get(["serial", "additionalPorts"])