From 0ac6ea6f1e63f3044fe787f0401b29635c850dc4 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Tue, 25 Dec 2018 14:26:46 +0100 Subject: [PATCH] gui: Reformat HTML & JS for consistent white space (white space only change) --- gui/default/syncthing/app.js | 18 +-- .../syncthing/core/aboutModalView.html | 10 +- .../core/discoveryFailuresModalView.html | 2 +- gui/default/syncthing/core/durationFilter.js | 4 +- gui/default/syncthing/core/eventService.js | 48 +++--- .../syncthing/core/languageSelectDirective.js | 18 +-- gui/default/syncthing/core/localeService.js | 12 +- .../syncthing/core/notificationDirective.js | 2 +- gui/default/syncthing/core/notifications.html | 8 +- .../syncthing/core/pathIsSubDirDirective.js | 6 +- gui/default/syncthing/core/percentFilter.js | 4 +- .../syncthing/core/popoverDirective.js | 2 +- .../syncthing/core/selectOnClickDirective.js | 4 +- .../syncthing/core/syncthingController.js | 138 +++++++++--------- .../syncthing/core/tooltipDirective.js | 2 +- .../syncthing/core/uniqueFolderDirective.js | 2 +- .../syncthing/core/validDeviceidDirective.js | 2 +- gui/default/syncthing/development/logbar.html | 4 +- .../syncthing/device/editDeviceModalView.html | 12 +- .../device/globalChangesModalView.html | 62 ++++---- .../syncthing/device/idqrModalView.html | 2 +- .../syncthing/folder/editFolderModalView.html | 48 +++--- .../folder/restoreVersionsModalView.html | 2 +- .../settings/advancedSettingsModalView.html | 18 +-- .../syncthing/settings/settingsModalView.html | 60 ++++---- .../transfer/neededFilesModalView.html | 4 +- .../usageReportPreviewModalView.html | 4 +- 27 files changed, 252 insertions(+), 246 deletions(-) diff --git a/gui/default/syncthing/app.js b/gui/default/syncthing/app.js index e077ee5bf..695aa8570 100644 --- a/gui/default/syncthing/app.js +++ b/gui/default/syncthing/app.js @@ -156,7 +156,7 @@ function buildTree(children) { children: [] } - $.each(children, function(path, data) { + $.each(children, function (path, data) { var parts = path.split('/'); var name = parts.splice(-1)[0]; @@ -214,26 +214,26 @@ function unitPrefixed(input, binary) { if (input > factor * factor * factor * factor * 1000) { // Don't show any decimals for more than 4 digits input /= factor * factor * factor * factor; - return input.toLocaleString(undefined, {maximumFractionDigits: 0}) + ' T' + i; + return input.toLocaleString(undefined, { maximumFractionDigits: 0 }) + ' T' + i; } // Show 3 significant digits (e.g. 123T or 2.54T) if (input > factor * factor * factor * factor) { input /= factor * factor * factor * factor; - return input.toLocaleString(undefined, {maximumSignificantDigits: 3}) + ' T' + i; + return input.toLocaleString(undefined, { maximumSignificantDigits: 3 }) + ' T' + i; } if (input > factor * factor * factor) { input /= factor * factor * factor; if (binary && input >= 1000) { - return input.toLocaleString(undefined, {maximumFractionDigits: 0}) + ' G' + i; + return input.toLocaleString(undefined, { maximumFractionDigits: 0 }) + ' G' + i; } - return input.toLocaleString(undefined, {maximumSignificantDigits: 3}) + ' G' + i; + return input.toLocaleString(undefined, { maximumSignificantDigits: 3 }) + ' G' + i; } if (input > factor * factor) { input /= factor * factor; if (binary && input >= 1000) { - return input.toLocaleString(undefined, {maximumFractionDigits: 0}) + ' M' + i; + return input.toLocaleString(undefined, { maximumFractionDigits: 0 }) + ' M' + i; } - return input.toLocaleString(undefined, {maximumSignificantDigits: 3}) + ' M' + i; + return input.toLocaleString(undefined, { maximumSignificantDigits: 3 }) + ' M' + i; } if (input > factor) { input /= factor; @@ -242,9 +242,9 @@ function unitPrefixed(input, binary) { prefix = ' K'; } if (binary && input >= 1000) { - return input.toLocaleString(undefined, {maximumFractionDigits: 0}) + prefix + i; + return input.toLocaleString(undefined, { maximumFractionDigits: 0 }) + prefix + i; } - return input.toLocaleString(undefined, {maximumSignificantDigits: 3}) + prefix + i; + return input.toLocaleString(undefined, { maximumSignificantDigits: 3 }) + prefix + i; } return Math.round(input).toLocaleString() + ' '; }; diff --git a/gui/default/syncthing/core/aboutModalView.html b/gui/default/syncthing/core/aboutModalView.html index 0a3c93d08..35e266481 100644 --- a/gui/default/syncthing/core/aboutModalView.html +++ b/gui/default/syncthing/core/aboutModalView.html @@ -1,13 +1,13 @@ -
+

Syncthing includes the following software or portions thereof: