Merge branch 'staging/maintenance' into maintenance
This commit is contained in:
commit
8799296591
3 files changed
+17
-11
No files matched your search
@@ -62,7 +62,6 @@ INSTALL_REQUIRES = [
|
||||
"filetype>=1.0.7,<2",
|
||||
"zipstream-new>=1.1.8,<1.2",
|
||||
# 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
|
||||
]
|
||||
|
||||
@@ -78,6 +77,8 @@ INSTALL_REQUIRES_PYTHON2 = [
|
||||
"enum34>=1.1.10,<1.2",
|
||||
"frozendict==1.2", # newer versions from different maintainer require Python 3
|
||||
"colorlog<5", # newer versions require Python 3
|
||||
# vendor bundled dependencies
|
||||
"unidecode<1.3", # dependency of awesome-slugify, newer versions require Python 3
|
||||
]
|
||||
|
||||
# Python 3 specific requirements
|
||||
@@ -88,6 +89,8 @@ INSTALL_REQUIRES_PYTHON3 = [
|
||||
"immutabledict>=2.1,<3",
|
||||
"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
|
||||
]
|
||||
|
||||
# OSX specific requirements
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user