Update to Prettier 3 and add trailing commas (#8244)

Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Basil Crow <me@basilcrow.com>
This commit is contained in:
Alexander Brandes 2023-07-27 09:28:43 +02:00 committed by GitHub
parent b3342f845c
commit 74610e024a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
77 changed files with 407 additions and 334 deletions

View File

@ -22,7 +22,7 @@
{
method: "post",
headers: crumb.wrap({}),
}
},
).then((rsp) => {
if (!rsp.ok) {
rsp.text().then((responseText) => {
@ -38,7 +38,7 @@
let e = Array.from(
document
.getElementById("plugins")
.querySelectorAll("input[type='checkbox']")
.querySelectorAll("input[type='checkbox']"),
).find(function (e) {
return String(e.checked) !== e.getAttribute("original");
});

View File

@ -41,7 +41,7 @@ Behaviour.specify("#filter-box", "_table", 0, function (e) {
}
}
var instructions = document.getElementById(
"hidden-by-default-instructions"
"hidden-by-default-instructions",
);
if (instructions) {
instructions.style.display = anyVisible ? "none" : "";
@ -53,7 +53,7 @@ Behaviour.specify("#filter-box", "_table", 0, function (e) {
(function () {
var instructionsTd = document.getElementById(
"hidden-by-default-instructions-td"
"hidden-by-default-instructions-td",
);
if (instructionsTd) {
// only on Available tab
@ -372,19 +372,19 @@ Behaviour.specify("#filter-box", "_table", 0, function (e) {
if (dependenciesDiv) {
pluginTR.jenkinsPluginMetadata.dependencies = selectAll(
"span",
dependenciesDiv
dependenciesDiv,
);
pluginTR.jenkinsPluginMetadata.dependencyIds = processSpanSet(
pluginTR.jenkinsPluginMetadata.dependencies
pluginTR.jenkinsPluginMetadata.dependencies,
);
}
if (dependentsDiv) {
pluginTR.jenkinsPluginMetadata.dependents = selectAll(
"span",
dependentsDiv
dependentsDiv,
);
pluginTR.jenkinsPluginMetadata.dependentIds = processSpanSet(
pluginTR.jenkinsPluginMetadata.dependents
pluginTR.jenkinsPluginMetadata.dependents,
);
}
@ -462,7 +462,7 @@ Behaviour.specify("#filter-box", "_table", 0, function (e) {
window.addEventListener("load", function () {
const compatibleCheckbox = document.querySelector(
"[data-select='compatible']"
"[data-select='compatible']",
);
if (compatibleCheckbox) {
compatibleCheckbox.addEventListener("click", () => {
@ -478,7 +478,7 @@ window.addEventListener("load", function () {
}
const uninstallButtons = document.querySelectorAll(
"[data-action='uninstall']"
"[data-action='uninstall']",
);
uninstallButtons.forEach((uninstallButton) => {
uninstallButton.addEventListener("click", () => {
@ -499,7 +499,7 @@ window.addEventListener("load", function () {
document.body.appendChild(form);
form.submit();
},
() => {}
() => {},
);
});
});
@ -513,7 +513,7 @@ window.addEventListener("load", function () {
};
const updateButton = document.querySelector("#button-update");
const checkboxes = document.querySelectorAll(
"input[type='checkbox'], [data-select], .jenkins-table__checkbox"
"input[type='checkbox'], [data-select], .jenkins-table__checkbox",
);
checkboxes.forEach((checkbox) => {
checkbox.addEventListener("click", () => {
@ -528,7 +528,7 @@ window.addEventListener("load", function () {
if (updateCenterError) {
notificationBar.show(
updateCenterError.content.textContent,
notificationBar.ERROR
notificationBar.ERROR,
);
}
});

View File

@ -9,6 +9,6 @@
detail.style.display =
detail.style.display == "block" ? "none" : "block";
});
}
},
);
})();

View File

@ -2,7 +2,7 @@
var redirectForm = document.getElementById("redirect-error");
if (!redirectForm) {
console.warn(
'This script expects to have an element with id="redirect-error" to be working.'
'This script expects to have an element with id="redirect-error" to be working.',
);
return;
}

View File

@ -128,6 +128,6 @@ if (window.addEventListener) {
tl.layout();
},
null,
true
true,
);
})();

View File

@ -109,20 +109,20 @@ function generateSVGIcon(iconName, iconSizeClass) {
"href",
imagesURL +
"/build-status/build-status-sprite.svg#build-status-" +
(isInProgress ? "in-progress" : "static")
(isInProgress ? "in-progress" : "static"),
);
svg1.appendChild(use1);
const svg2 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
svg2.setAttribute(
"class",
"svg-icon icon-" + iconName + " " + (iconSizeClass || "icon-sm")
"svg-icon icon-" + iconName + " " + (iconSizeClass || "icon-sm"),
);
svg2.setAttribute("viewBox", "0 0 24 24");
const use2 = document.createElementNS("http://www.w3.org/2000/svg", "use");
use2.setAttribute(
"href",
imagesURL + "/build-status/build-status-sprite.svg#" + buildStatus
imagesURL + "/build-status/build-status-sprite.svg#" + buildStatus,
);
svg2.appendChild(use2);
@ -174,7 +174,7 @@ window.displayBuilds = function (data) {
"jenkins-table__link",
"jenkins-table__badge",
"model-link",
"inside"
"inside",
);
a2.href = rootUrl + "/" + e.url;
a2.textContent = e.displayName;
@ -190,7 +190,7 @@ window.displayBuilds = function (data) {
"onclick",
'javascript:tl.getBand(0).scrollToCenter(Timeline.DateTime.parseGregorianDateTime("' +
e.timestampString3 +
'"))'
'"))',
);
button.textContent = e.timestampString;
td3.appendChild(button);

View File

@ -29,7 +29,7 @@
if (graphLocation) {
const type = timespanSelect.value;
const parentSelector = graphLocation.getAttribute(
"data-graph-parent-selector"
"data-graph-parent-selector",
);
const baseUrl = graphLocation.getAttribute("data-graph-base-url");
const graphAlt = graphLocation.getAttribute("data-graph-alt");

View File

@ -12,5 +12,5 @@ Behaviour.specify(
n.style.display = "block";
this.style.display = "none";
};
}
},
);

View File

@ -9,7 +9,7 @@ Behaviour.specify(
crumb.appendToForm(form);
form.submit();
});
}
},
);
function refresh() {

View File

@ -16,5 +16,5 @@ Behaviour.specify(
hoverNotification(message, this, -100);
return false;
};
}
},
);

View File

@ -8,10 +8,10 @@ Behaviour.specify(
fetch(url + "?" + params).then((rsp) => {
rsp.text().then((responseText) => {
var message = document.getElementById(
"URICheckEncodingMonitor-message"
"URICheckEncodingMonitor-message",
);
message.innerHTML = responseText;
});
});
}
},
);

View File

@ -13,7 +13,7 @@ rootUrlField.onkeydown = function (event) {
var iframeRelativeUrl = "setupWizard/setupWizardConfigureInstance";
var rootUrl = iframeUrl.substr(
0,
iframeUrl.length - iframeRelativeUrl.length
iframeUrl.length - iframeRelativeUrl.length,
);
// to keep only the root url
rootUrlField.value = rootUrl;

View File

@ -87,19 +87,19 @@
document.getElementById("visible-am-container"),
{
closeAll: closeAll,
}
},
);
var securityMonitors = initializeAmMonitor(
document.getElementById("visible-sec-am-container"),
{
closeAll: closeAll,
}
},
);
monitorWidgets = [normalMonitors, securityMonitors].filter(
function (widget) {
return widget !== null;
},
);
monitorWidgets = [normalMonitors, securityMonitors].filter(function (
widget
) {
return widget !== null;
});
monitorWidgets.forEach(function (widget) {
widget.startListeners();

View File

@ -30,7 +30,7 @@ Behaviour.specify(
event.preventDefault();
revokeToken(element);
});
}
},
);
Behaviour.specify(
@ -41,7 +41,7 @@ Behaviour.specify(
element.addEventListener("click", function () {
saveApiToken(element);
});
}
},
);
function revokeToken(anchorRevoke) {
@ -69,7 +69,7 @@ function revokeToken(anchorRevoke) {
if (repeatedChunk.querySelectorAll(".legacy-token").length > 0) {
// we are revoking the legacy token
var messageIfLegacyRevoked = anchorRevoke.getAttribute(
"data-message-if-legacy-revoked"
"data-message-if-legacy-revoked",
);
var legacyInput = document.getElementById("apiToken");
@ -80,7 +80,7 @@ function revokeToken(anchorRevoke) {
}
});
},
() => {}
() => {},
);
}
@ -125,7 +125,7 @@ function saveApiToken(button) {
// show the copy button
var tokenCopyButton = repeatedChunk.querySelector(
".jenkins-copy-button"
".jenkins-copy-button",
);
tokenCopyButton.setAttribute("text", tokenValue);
tokenCopyButton.classList.remove("jenkins-hidden");
@ -135,7 +135,7 @@ function saveApiToken(button) {
uuidInput.value = tokenUuid;
var warningMessage = repeatedChunk.querySelector(
".display-after-generation"
".display-after-generation",
);
warningMessage.classList.add("visible");
@ -143,7 +143,7 @@ function saveApiToken(button) {
button.remove();
var revokeButton = repeatedChunk.querySelector(
".api-token-property-token-revoke"
".api-token-property-token-revoke",
);
revokeButton.classList.remove("hidden-button");
@ -164,7 +164,7 @@ function adjustTokenEmptyListMessage(tokenList) {
// number of token that are already existing or freshly created
var numOfToken = tokenList.querySelectorAll(
".token-list-existing-item, .token-list-fresh-item"
".token-list-existing-item, .token-list-fresh-item",
).length;
if (numOfToken >= 1) {
if (!emptyListMessage.classList.contains("hidden-message")) {

View File

@ -33,7 +33,7 @@ function selectFresh(anchor) {
var parent = anchor.closest(".legacy-token-usage");
var allCheckBoxes = parent.querySelectorAll(".token-to-revoke");
var concernedCheckBoxes = parent.querySelectorAll(
".token-to-revoke.fresh-token"
".token-to-revoke.fresh-token",
);
checkTheDesiredOne(allCheckBoxes, concernedCheckBoxes);
@ -43,7 +43,7 @@ function selectRecent(anchor) {
var parent = anchor.closest(".legacy-token-usage");
var allCheckBoxes = parent.querySelectorAll(".token-to-revoke");
var concernedCheckBoxes = parent.querySelectorAll(
".token-to-revoke.recent-token"
".token-to-revoke.recent-token",
);
checkTheDesiredOne(allCheckBoxes, concernedCheckBoxes);
@ -93,7 +93,7 @@ function confirmAndRevokeAllSelected(button) {
var confirmMessageTemplate = button.getAttribute("data-confirm-template");
var confirmMessage = confirmMessageTemplate.replace(
"%num%",
allCheckedCheckBoxes.length
allCheckedCheckBoxes.length,
);
dialog
.confirm(confirmTitle, { message: confirmMessage, type: "destructive" })
@ -119,7 +119,7 @@ function confirmAndRevokeAllSelected(button) {
headers: crumb.wrap({ "Content-Type": "application/json" }),
}).then(() => window.location.reload());
},
() => {}
() => {},
);
}
}

View File

@ -37,7 +37,7 @@ Behaviour.specify(
}
const oneOrMoreFieldsEditedNotice = parentContainer.querySelector(
".jenkins-edited-section-label"
".jenkins-edited-section-label",
);
if (oneOrMoreFieldsEditedNotice.classList.contains("jenkins-hidden")) {
@ -63,7 +63,7 @@ Behaviour.specify(
JSON.stringify(Object.fromEntries(formData));
oneOrMoreFieldsEditedNotice.classList.toggle(
"jenkins-hidden",
result
result,
);
});
});
@ -83,7 +83,7 @@ Behaviour.specify(
layoutUpdateCallback.call();
});
e = null; // avoid memory leak
}
},
);
Behaviour.specify(
@ -99,5 +99,5 @@ Behaviour.specify(
const customizedFields = element.getAttribute("data-customized-fields");
console.log("no element " + id + " for " + customizedFields);
}
}
},
);

View File

@ -102,5 +102,5 @@ Behaviour.specify(
f.target = "_self";
}
});
}
},
);

View File

@ -15,7 +15,7 @@ Behaviour.specify("INPUT.combobox2", "combobox", 100, function (e) {
}
return candidates;
},
{}
{},
);
refillOnChange(e, function (params) {

View File

@ -48,5 +48,5 @@ Behaviour.specify(
element.addEventListener("click", function () {
expandTextArea(element);
});
}
},
);

View File

@ -1,3 +1,4 @@
// prettier-ignore
window.createFilterMenuButton = function (
button,
menu,
@ -39,7 +40,7 @@ function _createFilterMenuButton(menu) {
filterInput.setAttribute("type", "search");
filterInput.addEventListener("input", (event) =>
_applyFilterKeyword(menu, event.currentTarget)
_applyFilterKeyword(menu, event.currentTarget),
);
filterInput.addEventListener("keypress", (event) => {
if (event.key === "Enter") {

View File

@ -58,7 +58,7 @@ Behaviour.specify(
btn,
menu,
menuAlign.split("-"),
250
250,
);
// copy class names
for (i = 0; i < btn.classList.length; i++) {
@ -151,14 +151,14 @@ Behaviour.specify(
opacity: { to: 1 },
},
0.2,
YAHOO.util.Easing.easeIn
YAHOO.util.Easing.easeIn,
).animate();
Behaviour.applySubtree(nc, true);
ensureVisible(nc);
layoutUpdateCallback.call();
},
true
true,
);
});
@ -188,7 +188,7 @@ Behaviour.specify(
}
});
}
}
},
);
Behaviour.specify("DIV.dd-handle", "hetero-list", -100, function (e) {

View File

@ -35,12 +35,12 @@ Behaviour.specify(
secretUpdateBtn.onclick = function () {
e.querySelector(".hidden-password-field").setAttribute(
"type",
"password"
"password",
);
e.querySelector(".hidden-password-placeholder").remove();
secretUpdateBtn.remove();
};
}
},
);
Behaviour.specify(
@ -51,5 +51,5 @@ Behaviour.specify(
element.addEventListener("input", function () {
element.setAttribute("type", "password");
});
}
},
);

View File

@ -87,5 +87,5 @@ Behaviour.specify(
r.onclick = r.onchange = function () {
g.updateButtons();
};
}
},
);

View File

@ -66,7 +66,7 @@ var repeatableSupport = {
opacity: { to: 1 },
},
0.2,
YAHOO.util.Easing.easeIn
YAHOO.util.Easing.easeIn,
).animate();
Behaviour.applySubtree(nc, true);
@ -83,7 +83,7 @@ var repeatableSupport = {
var addButtonElements = Array.from(this.container.children).filter(
function (b) {
return b.classList.contains("repeatable-add");
}
},
);
if (addButtonElements.length == 2) {
@ -96,7 +96,7 @@ var repeatableSupport = {
addButtonElements = Array.from(this.container.children).filter(
function (b) {
return b.classList.contains("repeatable-add");
}
},
);
if (addButtonElements.length == 1 && this.enableTopButton) {
@ -133,7 +133,7 @@ var repeatableSupport = {
height: { to: 0 },
},
0.2,
YAHOO.util.Easing.easeIn
YAHOO.util.Easing.easeIn,
);
a.onComplete.subscribe(function () {
var p = n.parentNode;
@ -194,7 +194,7 @@ Behaviour.specify(
repeatableSupport.onAdd(button);
});
button = null; // avoid memory leak
}
},
);
/**
@ -221,9 +221,9 @@ Behaviour.specify(
input.parentNode.replaceChild(button, input);
console.warn(
"Adapted element to new markup, it should be changed to use f:repeatableDeleteButton instead in the plugin",
button
button,
);
}
},
);
Behaviour.specify(
@ -234,7 +234,7 @@ Behaviour.specify(
e.addEventListener("click", function () {
repeatableSupport.onDelete(e);
});
}
},
);
// radio buttons in repeatable content

View File

@ -18,7 +18,7 @@ function updateListBox(listBox, url, config) {
if (!settingMain) {
console.warn(
"Couldn't find the expected validation element (.validation-error-area) for element",
listBox.parentNode
listBox.parentNode,
);
return;
}

View File

@ -89,5 +89,5 @@ Behaviour.specify(
hidePreview.style.display = "none";
previewDiv.style.display = "none";
};
}
},
);

View File

@ -6,5 +6,5 @@ Behaviour.specify(
element.onclick = function () {
safeValidateButton(this);
};
}
},
);

View File

@ -6,7 +6,7 @@
setTimeout(updateBuildCaptionIcon, 5000);
} else {
var progressBar = document.querySelector(
".build-caption-progress-container"
".build-caption-progress-container",
);
if (progressBar) {
progressBar.style.display = "none";

View File

@ -77,5 +77,5 @@ Behaviour.specify(
document.getElementById(idref).fetchedBytes =
startOffset !== "" ? Number(startOffset) : 0;
fetchNext(document.getElementById(idref), href, onFinishEvent);
}
},
);

View File

@ -17,7 +17,7 @@
if (selection === null || window.getSelection().type !== "Range") {
elem.parentElement.classList.add("jenkins-hidden");
elem.parentElement.previousSibling.classList.remove(
"jenkins-hidden"
"jenkins-hidden",
);
}
});

View File

@ -6,5 +6,5 @@ Behaviour.specify(
var id = e.getAttribute("data-id");
var url = e.getAttribute("data-url");
refreshPart(id, url);
}
},
);

View File

@ -32,9 +32,9 @@ Behaviour.specify(
} else {
hoverNotification(
"Copy is only supported with a secure (HTTPS) connection",
copyButton
copyButton,
);
}
});
}
},
);

View File

@ -34,19 +34,19 @@ function progressivelyRender(handler, callback, statusId) {
"Aborted.";
} else if (r.status == "error") {
document.querySelector(
"#" + statusId + " .progress-bar-done"
"#" + statusId + " .progress-bar-done",
).style.width = "100%";
document.querySelector(
"#" + statusId + " .progress-bar-left"
"#" + statusId + " .progress-bar-left",
).style.width = "0%";
document.getElementById(statusId).className = "progress-bar red";
} else {
callback(r.data);
document.querySelector(
"#" + statusId + " .progress-bar-done"
"#" + statusId + " .progress-bar-done",
).style.width = 100 * r.status + "%";
document.querySelector(
"#" + statusId + " .progress-bar-left"
"#" + statusId + " .progress-bar-left",
).style.width = 100 - 100 * r.status + "%";
checkNewsLater(500);
}
@ -68,7 +68,7 @@ document.addEventListener("DOMContentLoaded", function () {
progressivelyRender(
window.proxy,
window[holder.getAttribute("data-callback")],
holder.getAttribute("data-id")
holder.getAttribute("data-id"),
);
});
});

View File

@ -38,7 +38,7 @@
"postcss-loader": "7.3.3",
"postcss-preset-env": "9.0.0",
"postcss-scss": "4.0.6",
"prettier": "2.8.8",
"prettier": "3.0.0",
"sass": "1.64.1",
"sass-loader": "13.3.2",
"style-loader": "3.3.3",

View File

@ -300,7 +300,7 @@ $.when(getItems()).done(function (data) {
activateValidationMessage(
"#itemname-invalid",
".add-item-name",
message
message,
);
} else {
cleanValidationMessages(".add-item-name");

View File

@ -24,7 +24,7 @@ pluginManager.initialPluginList = function (handler) {
error: function (xhr, textStatus, errorThrown) {
handler.call({ isError: true, errorMessage: errorThrown });
},
}
},
);
};
@ -112,7 +112,7 @@ pluginManager.installPlugins = function (plugins, handler) {
error: function (xhr, textStatus, errorThrown) {
handler.call({ isError: true, errorMessage: errorThrown });
},
}
},
);
};
@ -141,7 +141,7 @@ pluginManager.installStatus = function (handler, correlationId) {
error: function (xhr, textStatus, errorThrown) {
handler.call({ isError: true, errorMessage: errorThrown });
},
}
},
);
};
@ -168,7 +168,7 @@ pluginManager.availablePlugins = function (handler) {
error: function (xhr, textStatus, errorThrown) {
handler.call({ isError: true, errorMessage: errorThrown });
},
}
},
);
};
@ -188,7 +188,7 @@ pluginManager.availablePluginsSearch = function (query, limit, handler) {
error: function (xhr, textStatus, errorThrown) {
handler.call({ isError: true, errorMessage: errorThrown });
},
}
},
);
};
@ -217,7 +217,7 @@ pluginManager.incompleteInstallStatus = function (handler, correlationId) {
error: function (xhr, textStatus, errorThrown) {
handler.call({ isError: true, errorMessage: errorThrown });
},
}
},
);
};
@ -236,7 +236,7 @@ pluginManager.completeInstall = function (handler) {
error: function (xhr, textStatus, errorThrown) {
handler.call({ isError: true, message: errorThrown });
},
}
},
);
};
@ -254,7 +254,7 @@ pluginManager.getRestartStatus = function (handler) {
error: function (xhr, textStatus, errorThrown) {
handler.call({ isError: true, message: errorThrown });
},
}
},
);
};
@ -273,7 +273,7 @@ pluginManager.installPluginsDone = function (handler) {
error: function (xhr, textStatus, errorThrown) {
handler.call({ isError: true, message: errorThrown });
},
}
},
);
};
@ -292,7 +292,7 @@ pluginManager.restartJenkins = function (handler) {
error: function (xhr, textStatus, errorThrown) {
handler.call({ isError: true, message: errorThrown });
},
}
},
);
};

View File

@ -21,7 +21,7 @@ function saveFirstUser($form, success, error) {
},
{
error: error,
}
},
);
}
@ -38,7 +38,7 @@ function saveConfigureInstance($form, success, error) {
},
{
error: error,
}
},
);
}

View File

@ -24,7 +24,7 @@ function registerConfirmationLink(element) {
document.body.appendChild(form);
form.submit();
},
() => {}
() => {},
);
return false;
});
@ -37,7 +37,7 @@ function init() {
0,
(element) => {
registerConfirmationLink(element);
}
},
);
}

View File

@ -48,7 +48,7 @@ Dialog.prototype.init = function () {
if (this.dialogType === "modal") {
if (this.options.content != null) {
const content = createElementFromHtml(
`<div class='jenkins-dialog__contents jenkins-dialog__contents--modal'/>`
`<div class='jenkins-dialog__contents jenkins-dialog__contents--modal'/>`,
);
content.appendChild(this.options.content);
this.dialog.appendChild(content);
@ -62,7 +62,7 @@ Dialog.prototype.init = function () {
`);
this.dialog.appendChild(closeButton);
closeButton.addEventListener("click", () =>
this.dialog.dispatchEvent(new Event("cancel"))
this.dialog.dispatchEvent(new Event("cancel")),
);
}
this.dialog.addEventListener("click", function (e) {
@ -76,7 +76,7 @@ Dialog.prototype.init = function () {
this.form = null;
if (this.options.form != null && this.dialogType === "form") {
const contents = createElementFromHtml(
`<div class='jenkins-dialog__contents'/>`
`<div class='jenkins-dialog__contents'/>`,
);
this.form = this.options.form;
contents.appendChild(this.options.form);
@ -85,7 +85,7 @@ Dialog.prototype.init = function () {
}
if (this.options.message != null && this.dialogType !== "form") {
const message = createElementFromHtml(
`<div class='jenkins-dialog__contents'/>`
`<div class='jenkins-dialog__contents'/>`,
);
this.dialog.appendChild(message);
message.innerText = this.options.message;
@ -132,8 +132,8 @@ Dialog.prototype.appendButtons = function () {
<button data-id="ok" type="${
this.options.submitButton ? "submit" : "button"
}" class="jenkins-button jenkins-button--primary ${
_typeClassMap[this.options.type]
}">${this.options.okText}</button>
_typeClassMap[this.options.type]
}">${this.options.okText}</button>
<button data-id="cancel" class="jenkins-button">${
this.options.cancelText
}</button>
@ -166,7 +166,7 @@ Dialog.prototype.show = function () {
this.dialog.remove();
cancel();
},
{ once: true }
{ once: true },
);
this.dialog.focus();
if (this.input != null) {
@ -192,7 +192,7 @@ Dialog.prototype.show = function () {
resolve(value);
}
},
{ once: true }
{ once: true },
);
}
});

View File

@ -12,8 +12,8 @@ function init() {
chevron.classList.add("children");
chevron.items = Array.from(
document.querySelectorAll(
"form > div > .jenkins-section > .jenkins-section__title"
)
"form > div > .jenkins-section > .jenkins-section__title",
),
).map((section) => {
section.id = toId(section.textContent);
return { label: section.textContent, url: "#" + section.id };

View File

@ -15,7 +15,7 @@ function generateJumplistAccessors() {
const isFirefox = navigator.userAgent.indexOf("Firefox") !== -1;
// Firefox adds unwanted lines when copying buttons in text, so use a span instead
const dropdownChevron = document.createElement(
isFirefox ? "span" : "button"
isFirefox ? "span" : "button",
);
dropdownChevron.className = "jenkins-menu-dropdown-chevron";
dropdownChevron.dataset.href = link.href;
@ -51,13 +51,13 @@ function generateDropdowns() {
.then((json) =>
instance.setContent(
Utils.generateDropdownItems(
mapChildrenItemsToDropdownItems(json.items)
)
)
mapChildrenItemsToDropdownItems(json.items),
),
),
)
.catch((error) => console.log(`Jumplist request failed: ${error}`))
.finally(() => (instance.loaded = true));
})
}),
);
}

View File

@ -13,7 +13,7 @@ function init() {
Utils.generateDropdown(element, (instance) => {
instance.setContent(element.nextElementSibling.content);
});
}
},
);
}

View File

@ -32,7 +32,7 @@ function menuItem(options) {
{
type: "link",
},
options
options,
);
const label = xmlEscape(itemOptions.label);
@ -78,19 +78,19 @@ function menuItem(options) {
function heading(label) {
return createElementFromHtml(
`<p class="jenkins-dropdown__heading">${label}</p>`
`<p class="jenkins-dropdown__heading">${label}</p>`,
);
}
function separator() {
return createElementFromHtml(
`<div class="jenkins-dropdown__separator"></div>`
`<div class="jenkins-dropdown__separator"></div>`,
);
}
function placeholder(label) {
return createElementFromHtml(
`<p class="jenkins-dropdown__placeholder">${label}</p>`
`<p class="jenkins-dropdown__placeholder">${label}</p>`,
);
}

View File

@ -31,7 +31,7 @@ function generateDropdown(element, callback) {
onShown(instance) {
behaviorShim.applySubtree(instance.popper);
},
})
}),
);
}
@ -62,7 +62,7 @@ function generateDropdownItems(items) {
trigger: "mouseenter",
placement: "right-start",
offset: [-8, 0],
})
}),
);
}
@ -108,23 +108,23 @@ function generateDropdownItems(items) {
const isVisible =
window.getComputedStyle(container).visibility === "visible";
const isLastDropdown = Array.from(
document.querySelectorAll(".jenkins-dropdown")
document.querySelectorAll(".jenkins-dropdown"),
)
.filter((dropdown) => container !== dropdown)
.filter(
(dropdown) =>
window.getComputedStyle(dropdown).visibility === "visible"
window.getComputedStyle(dropdown).visibility === "visible",
)
.every(
(dropdown) =>
!(
container.compareDocumentPosition(dropdown) &
Node.DOCUMENT_POSITION_FOLLOWING
)
),
);
return isVisible && isLastDropdown;
}
},
);
behaviorShim.applySubtree(menuItems);

View File

@ -56,7 +56,7 @@ function init() {
this.init();
this.div.appendChild(
createElementFromHtml(options.icon || this.defaultIcon)
createElementFromHtml(options.icon || this.defaultIcon),
);
const message = this.div.appendChild(document.createElement("span"));
message.appendChild(document.createTextNode(text));

View File

@ -1,15 +1,15 @@
const rowSelectionControllers = document.querySelectorAll(
".jenkins-table__checkbox"
".jenkins-table__checkbox",
);
rowSelectionControllers.forEach((headerCheckbox) => {
const table = headerCheckbox.closest(".jenkins-table");
const tableCheckboxes = table.querySelectorAll("input[type='checkbox']");
const moreOptionsButton = table.querySelector(
".jenkins-table__checkbox-options"
".jenkins-table__checkbox-options",
);
const moreOptionsDropdown = table.querySelector(
".jenkins-table__checkbox-dropdown"
".jenkins-table__checkbox-dropdown",
);
const moreOptionsAllButton = table.querySelector("[data-select='all']");
const moreOptionsNoneButton = table.querySelector("[data-select='none']");
@ -23,14 +23,14 @@ rowSelectionControllers.forEach((headerCheckbox) => {
const allCheckboxesSelected = () => {
const selectedCheckboxes = Array.from(tableCheckboxes).filter(
(e) => e.checked
(e) => e.checked,
);
return tableCheckboxes.length === selectedCheckboxes.length;
};
const anyCheckboxesSelected = () => {
const selectedCheckboxes = Array.from(tableCheckboxes).filter(
(e) => e.checked
(e) => e.checked,
);
return selectedCheckboxes.length > 0;
};
@ -66,7 +66,7 @@ rowSelectionControllers.forEach((headerCheckbox) => {
headerCheckbox.classList.remove("jenkins-table__checkbox--indeterminate");
if (moreOptionsDropdown !== null) {
moreOptionsDropdown.classList.remove(
"jenkins-table__checkbox-dropdown--visible"
"jenkins-table__checkbox-dropdown--visible",
);
}
@ -89,7 +89,7 @@ rowSelectionControllers.forEach((headerCheckbox) => {
return;
}
moreOptionsDropdown.classList.remove(
"jenkins-table__checkbox-dropdown--visible"
"jenkins-table__checkbox-dropdown--visible",
);
}
});
@ -97,7 +97,7 @@ rowSelectionControllers.forEach((headerCheckbox) => {
if (moreOptionsButton !== null) {
moreOptionsButton.addEventListener("click", () => {
moreOptionsDropdown.classList.toggle(
"jenkins-table__checkbox-dropdown--visible"
"jenkins-table__checkbox-dropdown--visible",
);
});
}

View File

@ -12,11 +12,11 @@ function init() {
.forEach((searchBar) => {
const searchWrapper = searchBar.parentElement.parentElement;
const searchResultsContainer = createElementFromHtml(
`<div class="jenkins-search__results-container"></div>`
`<div class="jenkins-search__results-container"></div>`,
);
searchWrapper.appendChild(searchResultsContainer);
const searchResults = createElementFromHtml(
`<div class="jenkins-search__results"></div>`
`<div class="jenkins-search__results"></div>`,
);
searchResultsContainer.appendChild(searchResults);
@ -37,16 +37,16 @@ function init() {
createElementFromHtml(
`<a class="${index === 0 ? SELECTED_CLASS : ""}" href="${
item.url
}"><div>${item.icon}</div>${xmlEscape(item.label)}</a>`
)
}"><div>${item.icon}</div>${xmlEscape(item.label)}</a>`,
),
);
});
if (results.length === 0 && container === searchResults) {
container.appendChild(
createElementFromHtml(
`<p class="jenkins-search__results__no-results-label">No results</p>`
)
`<p class="jenkins-search__results__no-results-label">No results</p>`,
),
);
}
}
@ -64,13 +64,13 @@ function init() {
function showResultsContainer() {
searchResultsContainer.classList.add(
"jenkins-search__results-container--visible"
"jenkins-search__results-container--visible",
);
}
function hideResultsContainer() {
searchResultsContainer.classList.remove(
"jenkins-search__results-container--visible"
"jenkins-search__results-container--visible",
);
searchResultsContainer.style.height = "1px";
}
@ -84,7 +84,7 @@ function init() {
makeKeyboardNavigable(
searchResultsContainer,
() => searchResults.querySelectorAll("a"),
SELECTED_CLASS
SELECTED_CLASS,
);
// Workaround: Firefox doesn't update the dropdown height correctly so

View File

@ -28,7 +28,7 @@ function init() {
0,
(element) => {
registerStopButton(element);
}
},
);
}

View File

@ -39,8 +39,8 @@ function registerTooltip(element) {
instance.reference.setAttribute("title", instance.props.content);
},
},
TOOLTIP_BASE
)
TOOLTIP_BASE,
),
);
}
@ -57,8 +57,8 @@ function registerTooltip(element) {
"true";
},
},
TOOLTIP_BASE
)
TOOLTIP_BASE,
),
);
}
}
@ -82,8 +82,8 @@ function hoverNotification(text, element) {
}, 3000);
},
},
TOOLTIP_BASE
)
TOOLTIP_BASE,
),
);
tooltip.show();
}
@ -95,7 +95,7 @@ function init() {
1000,
(element) => {
registerTooltip(element);
}
},
);
window.hoverNotification = hoverNotification;

View File

@ -2,10 +2,10 @@ import debounce from "lodash/debounce";
const buildHistoryContainer = document.getElementById("buildHistory");
const pageSearchInputContainer = buildHistoryContainer.querySelector(
".build-search-row .jenkins-search"
".build-search-row .jenkins-search",
);
const pageSearchInput = buildHistoryContainer.querySelector(
".build-search-row input"
".build-search-row input",
);
const buildHistoryPage = document.getElementById("buildHistoryPage");
const properties = document.getElementById("properties");
@ -91,7 +91,7 @@ function updateBuilds(params) {
if (newDataTable.classList.contains("hasPageData")) {
buildHistoryPage.setAttribute(
"page-entry-newest",
newDataTable.getAttribute("page-entry-newest")
newDataTable.getAttribute("page-entry-newest"),
);
}
@ -112,7 +112,7 @@ function createRefreshTimeout(params) {
cancelRefreshTimeout();
buildRefreshTimeout = window.setTimeout(
() => updateBuilds(params),
updateBuildsRefreshInterval
updateBuildsRefreshInterval,
);
}
@ -143,19 +143,19 @@ function getDataTable(buildHistoryDiv) {
function updatePageParams(dataTable) {
buildHistoryPage.setAttribute(
"page-has-up",
dataTable.getAttribute("page-has-up")
dataTable.getAttribute("page-has-up"),
);
buildHistoryPage.setAttribute(
"page-has-down",
dataTable.getAttribute("page-has-down")
dataTable.getAttribute("page-has-down"),
);
buildHistoryPage.setAttribute(
"page-entry-newest",
dataTable.getAttribute("page-entry-newest")
dataTable.getAttribute("page-entry-newest"),
);
buildHistoryPage.setAttribute(
"page-entry-oldest",
dataTable.getAttribute("page-entry-oldest")
dataTable.getAttribute("page-entry-oldest"),
);
}
function togglePageUpDown() {
@ -330,7 +330,7 @@ function checkRowCellOverflows(row) {
// eslint-disable-next-line no-inner-declarations
function expandLeftWithRight(
leftCellOverFlowParams,
rightCellOverflowParams
rightCellOverflowParams,
) {
// Float them left and right...
leftCellOverFlowParams.element.style.float = "left";

View File

@ -4,7 +4,7 @@ document.querySelector("#button-icon-legend").addEventListener("click", () => {
const template = document.querySelector("#template-icon-legend");
const title = template.getAttribute("data-title");
const content = createElementFromHtml(
"<div>" + template.innerHTML + "</div>"
"<div>" + template.innerHTML + "</div>",
);
dialog.modal(content, {

View File

@ -5,7 +5,7 @@ searchBarInput.suggestions = function () {
.map((item) => ({
url: item.querySelector("a").href,
icon: item.querySelector(
".jenkins-section__item__icon svg, .jenkins-section__item__icon img"
".jenkins-section__item__icon svg, .jenkins-section__item__icon img",
).outerHTML,
label: item.querySelector("dt").textContent,
}))

View File

@ -4,7 +4,7 @@ const passwordField = document.querySelector("#password1");
const password2Field = document.querySelector("#password2");
const showPasswordField = document.querySelector("#showPassword");
const passwordStrengthWrapper = document.querySelector(
"#passwordStrengthWrapper"
"#passwordStrengthWrapper",
);
const passwordStrengthIndicator = document.querySelector("#passwordStrength");

View File

@ -40,7 +40,7 @@ function applyFilter(searchQuery) {
clearOldResults();
var rows = pluginManagerAvailable({
plugins: plugins.filter(
(plugin) => selectedPlugins.indexOf(plugin.name) === -1
(plugin) => selectedPlugins.indexOf(plugin.name) === -1,
),
admin,
});
@ -48,7 +48,7 @@ function applyFilter(searchQuery) {
tbody.insertAdjacentHTML("beforeend", rows);
updateInstallButtonState();
}
},
);
}
@ -76,7 +76,7 @@ document.addEventListener("DOMContentLoaded", function () {
if (updateCenterError) {
notificationBar.show(
updateCenterError.content.textContent,
notificationBar.ERROR
notificationBar.ERROR,
);
}
});
@ -90,7 +90,7 @@ function updateInstallButtonState() {
};
const installButton = document.querySelector("#button-install");
const installAfterRestartButton = document.querySelector(
"#button-install-after-restart"
"#button-install-after-restart",
);
if (!anyCheckboxesSelected()) {
installButton.disabled = true;

View File

@ -122,7 +122,7 @@ var createPluginSetupWizard = function (appendTarget) {
if (visibleDependencies[plugName]) {
return options.fn();
}
}
},
);
// wrap calls with this method to handle generic errors returned by the plugin manager
@ -235,7 +235,7 @@ var createPluginSetupWizard = function (appendTarget) {
onComplete();
}
},
{ dataType: "html" }
{ dataType: "html" },
);
});
} else {
@ -251,8 +251,8 @@ var createPluginSetupWizard = function (appendTarget) {
baseUrl: jenkins.baseUrl,
jenkinsVersion: getJenkinsVersion(),
},
data
)
data,
),
);
if (panel === currentPanel) {
// just replace id-marked elements
@ -300,7 +300,7 @@ var createPluginSetupWizard = function (appendTarget) {
var $modalHeader = $container.find(".modal-header");
if ($modalHeader.length > 0 && $modalHeader.is(".closeable")) {
$modalHeader.prepend(
'<button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button>'
'<button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button>',
);
}
@ -310,7 +310,7 @@ var createPluginSetupWizard = function (appendTarget) {
var $modalFooter = $container.find(".modal-footer");
if ($modalFooter.length === 0) {
$modalFooter = $('<div class="modal-footer"></div>').appendTo(
$container
$container,
);
}
$modalFooter.prepend(
@ -318,7 +318,7 @@ var createPluginSetupWizard = function (appendTarget) {
translations.installWizard_jenkinsVersionTitle +
" " +
getJenkinsVersionFull() +
"</div>"
"</div>",
);
}
@ -402,7 +402,7 @@ var createPluginSetupWizard = function (appendTarget) {
{
installStatus: "pending",
},
p
p,
);
installingPlugins.push(plug);
}
@ -418,14 +418,14 @@ var createPluginSetupWizard = function (appendTarget) {
function () {
return progressPanel(arguments);
},
{ installingPlugins: [] }
{ installingPlugins: [] },
);
pluginManager.installPlugins(
pluginNames,
handleGenericError(function () {
showStatePanel();
})
}),
);
};
@ -526,7 +526,7 @@ var createPluginSetupWizard = function (appendTarget) {
pluginManager.installStatus(
handleGenericError(function (data) {
showStatePanel(data.state);
})
}),
);
return;
}
@ -577,7 +577,7 @@ var createPluginSetupWizard = function (appendTarget) {
setPanel(
progressPanel,
{ installingPlugins: installingPlugins },
attachScrollEvent
attachScrollEvent,
);
// call to the installStatus, update progress bar & plugin details; transition on complete
@ -663,7 +663,7 @@ var createPluginSetupWizard = function (appendTarget) {
$txt.append($div);
var $itemProgress = $(
'.selected-plugin[id="installing-' + idIfy(j.name) + '"]'
'.selected-plugin[id="installing-' + idIfy(j.name) + '"]',
);
if ($itemProgress.length > 0 && !$itemProgress.is("." + state)) {
$itemProgress.addClass(state);
@ -687,7 +687,7 @@ var createPluginSetupWizard = function (appendTarget) {
$(".progress-bar").css({ width: "100%" });
showStatePanel(data.state);
}
})
}),
);
};
@ -714,7 +714,7 @@ var createPluginSetupWizard = function (appendTarget) {
plug.allDependencies = getAllDependencies(plug.name);
}
oncomplete();
})
}),
);
};
@ -834,7 +834,7 @@ var createPluginSetupWizard = function (appendTarget) {
? xform
: function (d) {
return d;
}
},
);
return elements;
};
@ -859,7 +859,7 @@ var createPluginSetupWizard = function (appendTarget) {
{
scrollTop: pos,
},
100
100,
);
setTimeout(function () {
// wait for css transitions to finish
@ -868,7 +868,7 @@ var createPluginSetupWizard = function (appendTarget) {
{
scrollTop: pos,
},
50
50,
);
}, 50);
}
@ -895,7 +895,7 @@ var createPluginSetupWizard = function (appendTarget) {
text.toLowerCase(),
function (d) {
return d.toLowerCase();
}
},
);
if (localMatches.length > 0) {
matches = matches.concat(localMatches);
@ -922,7 +922,7 @@ var createPluginSetupWizard = function (appendTarget) {
function () {
var val = $(this).val();
searchForPlugins(val, true);
}
},
);
// handle keyboard up/down navigation between items in
@ -989,7 +989,7 @@ var createPluginSetupWizard = function (appendTarget) {
function () {
var top = $pl.scrollTop() + $el.position().top;
$pl.stop(true).scrollTop(top);
}
},
);
};
@ -1023,7 +1023,7 @@ var createPluginSetupWizard = function (appendTarget) {
if ($main.length > 0) {
responseText = responseText.replace(
/body([^>]*)[>](.|[\r\n])+[<][/]body/,
"body$1>" + $main.html() + "</body"
"body$1>" + $main.html() + "</body",
);
}
var doc = $("iframe#setup-first-user").contents()[0];
@ -1042,7 +1042,7 @@ var createPluginSetupWizard = function (appendTarget) {
securityConfig.saveFirstUser(
$form,
handleFirstUserResponseSuccess,
handleFirstUserResponseError
handleFirstUserResponseError,
);
};
@ -1067,7 +1067,7 @@ var createPluginSetupWizard = function (appendTarget) {
// give up
showConfigureInstance();
},
}
},
);
};
@ -1098,7 +1098,7 @@ var createPluginSetupWizard = function (appendTarget) {
if ($main.length > 0) {
responseText = responseText.replace(
/body([^>]*)[>](.|[\r\n])+[<][/]body/,
"body$1>" + $main.html() + "</body"
"body$1>" + $main.html() + "</body",
);
}
var doc = $("iframe#setup-configure-instance").contents()[0];
@ -1116,7 +1116,7 @@ var createPluginSetupWizard = function (appendTarget) {
securityConfig.saveConfigureInstance(
$form,
handleConfigureInstanceResponseSuccess,
handleConfigureInstanceResponseError
handleConfigureInstanceResponseError,
);
};
@ -1148,7 +1148,7 @@ var createPluginSetupWizard = function (appendTarget) {
$("iframe[src]").contents().find("form:not(.no-json)"),
function () {
jenkins.goTo("/"); // this will re-run connectivity test
}
},
);
};
@ -1166,7 +1166,7 @@ var createPluginSetupWizard = function (appendTarget) {
handleGenericError(function (data) {
failedPluginNames = [];
showStatePanel(data.state);
})
}),
);
});
};
@ -1201,7 +1201,7 @@ var createPluginSetupWizard = function (appendTarget) {
setTimeout(pingUntilRestarted, 1000);
} else if (!restartStatus.restartSupported) {
throw new Error(
translations.installWizard_error_restartNotSupported
translations.installWizard_error_restartNotSupported,
);
}
} else {
@ -1219,7 +1219,7 @@ var createPluginSetupWizard = function (appendTarget) {
pluginManager.completeInstall(
handleGenericError(function () {
jenkins.goTo("/");
})
}),
);
};
@ -1326,7 +1326,7 @@ var createPluginSetupWizard = function (appendTarget) {
if (isFatal) {
console.log(
"Default update site connectivity check failed with fatal error: " +
errorMessage
errorMessage,
);
}
setPanel(offlinePanel);
@ -1363,7 +1363,7 @@ var createPluginSetupWizard = function (appendTarget) {
setFailureStatus(j);
}
showStatePanel(data.state);
})
}),
);
} else {
showStatePanel(data.state);
@ -1392,7 +1392,7 @@ var createPluginSetupWizard = function (appendTarget) {
console.warn(
'Plugin "' +
plugName +
'" not found in the list of installing plugins.'
'" not found in the list of installing plugins.',
);
continue;
}
@ -1415,7 +1415,7 @@ var createPluginSetupWizard = function (appendTarget) {
setPanel(incompleteInstallationPanel, {
installingPlugins: installingPlugins,
});
})
}),
);
return;
}
@ -1423,13 +1423,13 @@ var createPluginSetupWizard = function (appendTarget) {
// finally, show the installer
// If no active install, by default, we'll show the welcome screen
showStatePanel();
})
}),
);
})
}),
);
})
}),
);
})
}),
);
};
@ -1445,7 +1445,7 @@ var createPluginSetupWizard = function (appendTarget) {
});
showInitialSetupWizard();
})
}),
);
};

View File

@ -35,7 +35,7 @@ window.addEventListener("load", function () {
`);
item.addEventListener("click", () => {
const headerToScrollTo = document.getElementById(
item.querySelector(".task-link").dataset.sectionId
item.querySelector(".task-link").dataset.sectionId,
);
const sectionTopPosition =

View File

@ -214,7 +214,7 @@ jenkins.testConnectivity = function (siteId, handler) {
handler.call({ isError: true, errorMessage: errorThrown });
}
},
}
},
);
};
testConnectivity();
@ -288,8 +288,8 @@ jenkins.staplerPost = function (url, $form, success, options) {
contentType: "application/x-www-form-urlencoded",
crumb: crumb,
},
options
)
options,
),
);
};

View File

@ -11,7 +11,7 @@ export default function makeKeyboardNavigable(
selectedClass,
additionalBehaviours = () => {},
hasKeyboardPriority = () =>
window.getComputedStyle(container).visibility === "visible"
window.getComputedStyle(container).visibility === "visible",
) {
window.addEventListener("keydown", (e) => {
let items = Array.from(itemsFunc());

View File

@ -159,36 +159,51 @@
.c-D33833 {
border: 1px solid #900;
box-shadow: inset #900 0 0 1px, inset #fff 0 0 0 1px,
0 5px 3px -2px rgba(0, 0, 0, 0.25), inset -5px -5px 10px 2px #903,
box-shadow:
inset #900 0 0 1px,
inset #fff 0 0 0 1px,
0 5px 3px -2px rgba(0, 0, 0, 0.25),
inset -5px -5px 10px 2px #903,
inset -5px -10px 15px 14px #d33833;
}
.c-6D6B6D {
border: 1px solid #000;
box-shadow: inset #333 0 0 1px, inset #fff 0 0 0 1px,
0 5px 3px -2px rgba(0, 0, 0, 0.25), inset -5px -5px 10px 2px #222,
box-shadow:
inset #333 0 0 1px,
inset #fff 0 0 0 1px,
0 5px 3px -2px rgba(0, 0, 0, 0.25),
inset -5px -5px 10px 2px #222,
inset -5px -10px 15px 14px #555;
}
.c-335061 {
border: 1px solid #356;
box-shadow: inset #024 0 0 1px, inset #fff 0 0 0 1px,
0 5px 3px -2px rgba(0, 0, 0, 0.25), inset -5px -5px 10px 2px #012,
box-shadow:
inset #024 0 0 1px,
inset #fff 0 0 0 1px,
0 5px 3px -2px rgba(0, 0, 0, 0.25),
inset -5px -5px 10px 2px #012,
inset -5px -10px 15px 14px #335061;
}
.c-49728B {
border: 1px solid #036;
box-shadow: inset #036 0 0 1px, inset #fff 0 0 0 1px,
0 5px 3px -2px rgba(0, 0, 0, 0.25), inset -5px -5px 10px 2px #036,
box-shadow:
inset #036 0 0 1px,
inset #fff 0 0 0 1px,
0 5px 3px -2px rgba(0, 0, 0, 0.25),
inset -5px -5px 10px 2px #036,
inset -5px -10px 15px 14px #49728b;
}
.c-6699CC {
border: 1px solid #6699cc;
box-shadow: inset #003399 0 0 1px, inset #ffffff 0 0 0 1px,
0 5px 3px -2px rgba(0, 0, 0, 0.25), inset -5px -5px 10px 2px #336699,
box-shadow:
inset #003399 0 0 1px,
inset #ffffff 0 0 0 1px,
0 5px 3px -2px rgba(0, 0, 0, 0.25),
inset -5px -5px 10px 2px #336699,
inset -5px -10px 15px 14px #6699cc;
}

View File

@ -370,7 +370,10 @@ pre.console {
padding: 4px 0;
margin-left: 0;
border-bottom: 1px solid #090;
font: bold 12px Helvetica, Arial, sans-serif;
font:
bold 12px Helvetica,
Arial,
sans-serif;
}
#foldertab li {

View File

@ -31,7 +31,8 @@
&:focus {
& + label {
&::before {
box-shadow: 0 0 0 5px var(--focus-input-glow),
box-shadow:
0 0 0 5px var(--focus-input-glow),
inset 0 0 0 5px var(--focus-input-border);
}
}
@ -42,7 +43,8 @@
&:focus {
& + label {
&::before {
box-shadow: 0 0 0 5px var(--focus-input-glow),
box-shadow:
0 0 0 5px var(--focus-input-glow),
inset 0 0 0 12px var(--focus-input-border);
}
}
@ -55,7 +57,8 @@
&:focus {
& + label {
&::before {
box-shadow: 0 0 0 5px var(--focus-input-glow),
box-shadow:
0 0 0 5px var(--focus-input-glow),
inset 0 0 0 12px var(--focus-input-border);
}
}
@ -67,7 +70,8 @@
&:active,
&:focus {
&::before {
box-shadow: 0 0 0 5px var(--focus-input-glow),
box-shadow:
0 0 0 5px var(--focus-input-glow),
inset 0 0 0 12px var(--focus-input-border);
}
}
@ -75,7 +79,8 @@
& + label {
&::before {
box-shadow: 0 0 0 10px transparent,
box-shadow:
0 0 0 10px transparent,
inset 0 0 0 12px var(--focus-input-border);
}
@ -91,14 +96,17 @@
&::before {
opacity: 0.35 !important;
box-shadow: 0 0 0 10px transparent, inset 0 0 0 2px var(--input-border) !important;
box-shadow:
0 0 0 10px transparent,
inset 0 0 0 2px var(--input-border) !important;
}
}
&:checked {
& + label {
&::before {
box-shadow: 0 0 0 10px transparent,
box-shadow:
0 0 0 10px transparent,
inset 0 0 0 12px var(--focus-input-border) !important;
}
@ -129,7 +137,9 @@
border-radius: 6px;
transition: var(--standard-transition);
margin-right: 11px;
box-shadow: 0 0 0 10px transparent, inset 0 0 0 2px var(--input-border);
box-shadow:
0 0 0 10px transparent,
inset 0 0 0 2px var(--input-border);
}
&::after {
@ -159,7 +169,8 @@
&:hover {
&::before {
box-shadow: 0 0 0 10px transparent,
box-shadow:
0 0 0 10px transparent,
inset 0 0 0 5px var(--input-border-hover);
}
}
@ -167,7 +178,8 @@
&:active,
&:focus {
&::before {
box-shadow: 0 0 0 5px var(--focus-input-glow),
box-shadow:
0 0 0 5px var(--focus-input-glow),
inset 0 0 0 5px var(--focus-input-border);
}
}

View File

@ -5,7 +5,9 @@
border-radius: var(--form-input-border-radius);
width: 100%;
box-shadow: var(--form-input-glow);
transition: var(--standard-transition), height 0s;
transition:
var(--standard-transition),
height 0s;
cursor: text;
margin-bottom: var(--section-padding);

View File

@ -7,7 +7,10 @@
width: 100%;
box-shadow: var(--form-input-glow);
// Set height transition to 0s as vertical resizing has a delay/lag otherwise
transition: all var(--standard-transition), height 0s, padding 0s;
transition:
all var(--standard-transition),
height 0s,
padding 0s;
&:hover {
border-color: var(--input-border-hover);

View File

@ -19,7 +19,8 @@
&:hover {
& + label {
&::before {
box-shadow: 0 0 0 10px transparent,
box-shadow:
0 0 0 10px transparent,
inset 0 0 0 5px var(--input-border-hover);
}
}
@ -31,7 +32,8 @@
& + label {
&::before {
transition: box-shadow var(--elastic-transition);
box-shadow: 0 0 0 5px var(--focus-input-glow),
box-shadow:
0 0 0 5px var(--focus-input-glow),
inset 0 0 0 5px var(--focus-input-border);
}
}
@ -42,7 +44,8 @@
&:active {
& + label {
&::before {
box-shadow: 0 0 0 5px var(--focus-input-glow),
box-shadow:
0 0 0 5px var(--focus-input-glow),
inset 0 0 0 8px var(--focus-input-border);
}
}
@ -55,7 +58,8 @@
&:active,
&:focus {
&::before {
box-shadow: 0 0 0 5px var(--focus-input-glow),
box-shadow:
0 0 0 5px var(--focus-input-glow),
inset 0 0 0 12px var(--focus-input-border);
}
}
@ -101,7 +105,9 @@
height: 22px;
border-radius: 50%;
background: transparent;
box-shadow: 0 0 0 10px transparent, inset 0 0 0 2px var(--input-border);
box-shadow:
0 0 0 10px transparent,
inset 0 0 0 2px var(--input-border);
transition: box-shadow var(--standard-transition);
}
}

View File

@ -17,7 +17,9 @@
margin: 0;
padding: 0 0.5rem 0 var(--search-bar-height);
line-height: 1;
box-shadow: 0 0 0 2px transparent, 0 0 0 12px transparent;
box-shadow:
0 0 0 2px transparent,
0 0 0 12px transparent;
transition: var(--standard-transition);
font-weight: 500;
height: var(--search-bar-height);
@ -64,7 +66,8 @@
&:focus {
outline: none;
background: var(--item-background--active);
box-shadow: 0 0 0 2px var(--focus-input-border),
box-shadow:
0 0 0 2px var(--focus-input-border),
0 0 0 7px var(--focus-input-glow);
&::-webkit-search-cancel-button {

View File

@ -112,7 +112,9 @@
border-radius: 19px;
transition: var(--standard-transition);
margin-right: 1rem;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), 0 0 0 10px transparent;
box-shadow:
inset 0 0 0 1px rgba(0, 0, 0, 0.05),
0 0 0 10px transparent;
}
&::after {
@ -140,7 +142,8 @@
&:active,
&:focus {
&::before {
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05),
box-shadow:
inset 0 0 0 1px rgba(0, 0, 0, 0.05),
0 0 0 5px var(--focus-input-glow);
}

View File

@ -144,7 +144,9 @@ a.yui-button:visited {
text-decoration: none;
border: 2px solid;
border-radius: 4px;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
transition:
color 0.15s ease-in-out,
background-color 0.15s ease-in-out,
border-color 0.15s ease-in-out;
@include button-secondary;

View File

@ -12,8 +12,10 @@
font-weight: 500;
line-height: 1.66;
color: var(--text-color);
box-shadow: 0 0 1px 1px rgba(darken(#024cb6, 50%), 0.075),
0 10px 30px rgba(darken(#024cb6, 50%), 0.25), 0 0 30px 5px var(--background);
box-shadow:
0 0 1px 1px rgba(darken(#024cb6, 50%), 0.075),
0 10px 30px rgba(darken(#024cb6, 50%), 0.25),
0 0 30px 5px var(--background);
will-change: opacity, transform;
z-index: 999;
cursor: pointer;

View File

@ -11,20 +11,24 @@
background: transparent;
outline: none;
border: none;
box-shadow: 0 0 0 10px transparent, inset 0 0 0 0.125rem var(--input-border);
box-shadow:
0 0 0 10px transparent,
inset 0 0 0 0.125rem var(--input-border);
border-radius: 6px;
transition: var(--standard-transition);
cursor: pointer;
padding: 0;
&:hover {
box-shadow: 0 0 0 10px transparent,
box-shadow:
0 0 0 10px transparent,
inset 0 0 0 0.3125rem var(--input-border-hover);
}
&:active,
&:focus {
box-shadow: 0 0 0 5px var(--focus-input-glow),
box-shadow:
0 0 0 5px var(--focus-input-glow),
inset 0 0 0 0.3125rem var(--focus-input-border);
}
@ -57,17 +61,20 @@
}
&--all {
box-shadow: 0 0 0 10px transparent,
box-shadow:
0 0 0 10px transparent,
inset 0 0 0 0.6875rem var(--focus-input-border);
&:hover {
box-shadow: 0 0 0 10px transparent,
box-shadow:
0 0 0 10px transparent,
inset 0 0 0 1.375rem var(--focus-input-border);
}
&:active,
&:focus {
box-shadow: 0 0 0 5px var(--focus-input-glow),
box-shadow:
0 0 0 5px var(--focus-input-glow),
inset 0 0 0 1.375rem var(--focus-input-border);
}
@ -139,8 +146,11 @@
border-radius: 0.8rem;
z-index: 999;
padding: 0.4rem;
box-shadow: inset 0 0 0 2px rgba(white, 0.05), 0 0 0 1px rgba(black, 0.05),
0 5px 10px rgba(black, 0.1), 0 5px 20px rgba(black, 0.3);
box-shadow:
inset 0 0 0 2px rgba(white, 0.05),
0 0 0 1px rgba(black, 0.05),
0 5px 10px rgba(black, 0.1),
0 5px 20px rgba(black, 0.3);
min-width: 170px;
opacity: 0;
visibility: collapse;

View File

@ -8,13 +8,16 @@ $skip-link-box-shadow: 0 0 50px -15px var(--yellow);
left: calc(var(--section-padding) - $skip-link-inline-padding);
z-index: 2000;
background: var(--background);
box-shadow: 0 0 0 1rem transparent, $skip-link-box-shadow;
box-shadow:
0 0 0 1rem transparent,
$skip-link-box-shadow;
color: var(--text-color) !important;
padding: $skip-link-block-padding $skip-link-inline-padding;
border-radius: 0.66rem;
outline: none;
text-decoration: none !important;
transition: var(--elastic-transition),
transition:
var(--elastic-transition),
box-shadow var(--standard-transition) 0.1s;
opacity: 0;
scale: 80%;
@ -43,7 +46,9 @@ $skip-link-box-shadow: 0 0 50px -15px var(--yellow);
}
&:focus-visible {
box-shadow: 0 0 0 0.2rem var(--yellow), $skip-link-box-shadow;
box-shadow:
0 0 0 0.2rem var(--yellow),
$skip-link-box-shadow;
opacity: 1;
scale: 100%;
text-decoration: none !important;

View File

@ -384,7 +384,8 @@
&:hover {
background: rgba(100, 200, 255, 0.1);
box-shadow: inset 0 400px 400px -100px rgba(100, 200, 255, 0.33),
box-shadow:
inset 0 400px 400px -100px rgba(100, 200, 255, 0.33),
inset 0 0 0 1px rgba(100, 200, 255, 0.33);
}
@ -718,7 +719,8 @@
background: rgba(255, 255, 255, 0.75);
&:nth-child(odd) {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2),
box-shadow:
0 1px 3px rgba(0, 0, 0, 0.2),
inset 0 0 0 999px rgba(0, 0, 0, 0.05);
}
@ -807,7 +809,8 @@
margin-right: 1.3%;
margin-top: 1em;
padding: 20px 25px;
box-shadow: inset 0 -200px 200px -100px rgba(0, 0, 0, 0.1),
box-shadow:
inset 0 -200px 200px -100px rgba(0, 0, 0, 0.1),
0 1px 3px rgba(0, 0, 0, 0.2);
border: 1px solid rgba(0, 60, 100, 0.5);
text-shadow: #fff 0 1px 3px;
@ -827,7 +830,8 @@
&:focus {
background: #fff;
box-shadow: inset 0 -200px 200px -100px rgba(0, 0, 0, 0.1),
box-shadow:
inset 0 -200px 200px -100px rgba(0, 0, 0, 0.1),
0 0 5px 3px rgba(00, 180, 250, 0.2);
}
@ -837,7 +841,8 @@
&.btn-primary {
background: rgba(200, 240, 255, 0.2);
box-shadow: inset 0 -200px 200px -100px rgba(0, 120, 160, 0.2),
box-shadow:
inset 0 -200px 200px -100px rgba(0, 120, 160, 0.2),
0 1px 3px rgba(0, 0, 0, 0.2);
color: rgba(0, 80, 120, 1);
@ -847,7 +852,8 @@
}
&:focus {
box-shadow: inset 0 -200px 200px -100px rgba(0, 120, 160, 0.2),
box-shadow:
inset 0 -200px 200px -100px rgba(0, 120, 160, 0.2),
0 0 5px 3px rgba(00, 180, 250, 0.2);
}
}

View File

@ -128,7 +128,7 @@ var Behaviour = (function () {
var list = findElementsBySelector(
node,
registration.selector,
includeSelf
includeSelf,
);
if (list.length > 0) {
//console.log(registration.id + ":" + registration.selector + " @" + registration.priority + " on " + list.length + " elements");
@ -196,7 +196,7 @@ function findElementsBySelector(startNode, selector, includeSelf) {
}
};
return Array.from(startNode.parentNode.querySelectorAll(selector)).filter(
isSelfOrChild
isSelfOrChild,
);
} else {
return Array.from(startNode.querySelectorAll(selector));

View File

@ -89,7 +89,7 @@ function ComboBox(idOrField, callback, config) {
: idOrField;
if (typeof this.field == "undefined") {
alert(
"You have specified an invalid id for the field you want to turn into a combo box"
"You have specified an invalid id for the field you want to turn into a combo box",
);
}
this.dropdown = document.createElement("div");

View File

@ -161,7 +161,7 @@ var crumb = {
(function initializeCrumb() {
var extensionsAvailable = document.head.getAttribute(
"data-extensions-available"
"data-extensions-available",
);
if (extensionsAvailable === "true") {
var crumbHeaderName = document.head.getAttribute("data-crumb-header");
@ -663,7 +663,7 @@ function registerValidator(e) {
if (!tr) {
console.warn(
"Couldn't find the expected validation element (.validation-error-area) for element",
e.closest(".jenkins-form-item")
e.closest(".jenkins-form-item"),
);
return;
}
@ -681,13 +681,13 @@ function registerValidator(e) {
} catch (e) {
if (window.console != null) {
console.warn(
"Legacy checkUrl '" + url + "' is not valid JavaScript: " + e
"Legacy checkUrl '" + url + "' is not valid JavaScript: " + e,
);
}
if (window.YUI != null) {
YUI.log(
"Legacy checkUrl '" + url + "' is not valid JavaScript: " + e,
"warn"
"warn",
);
}
return url; // return plain url as fallback
@ -698,7 +698,7 @@ function registerValidator(e) {
depends.split(" ").forEach(
TryEach(function (n) {
q.nearBy(n);
})
}),
);
}
return url + q.toString();
@ -717,7 +717,7 @@ function registerValidator(e) {
"Failed to register validation method: " +
e.getAttribute("checkUrl") +
" : " +
e
e,
);
return;
}
@ -732,7 +732,7 @@ function registerValidator(e) {
const errorMessage = `<div class="error">An internal error occurred during form field validation (HTTP ${response.status}). Please reload the page and if the problem persists, ask the administrator for help.</div>`;
updateValidationArea(
validationArea,
response.status === 200 ? responseText : errorMessage
response.status === 200 ? responseText : errorMessage,
);
});
},
@ -760,13 +760,13 @@ function registerValidator(e) {
if (window.YUI != null) {
YUI.log(
"Unable to find a nearby control of the name " + name,
"warn"
"warn",
);
}
return;
}
c.addEventListener("change", checker.bind(e));
})
}),
);
}
@ -780,7 +780,7 @@ function registerRegexpValidator(e, regexp, message) {
if (!tr) {
console.warn(
"Couldn't find the expected parent element (.setting-main) for element",
e.closest(".jenkins-form-item")
e.closest(".jenkins-form-item"),
);
return;
}
@ -800,7 +800,7 @@ function registerRegexpValidator(e, regexp, message) {
} else {
updateValidationArea(
this.targetElement,
`<div class="error">${message}</div>`
`<div class="error">${message}</div>`,
);
set = true;
}
@ -821,7 +821,7 @@ function registerMinMaxValidator(e) {
if (!tr) {
console.warn(
"Couldn't find the expected parent element (.setting-main) for element",
e.closest(".jenkins-form-item")
e.closest(".jenkins-form-item"),
);
return;
}
@ -857,7 +857,7 @@ function registerMinMaxValidator(e) {
// The value is out of range
updateValidationArea(
this.targetElement,
`<div class="error">This value should be between ${min} and ${max}</div>`
`<div class="error">This value should be between ${min} and ${max}</div>`,
);
set = true;
} else {
@ -876,7 +876,7 @@ function registerMinMaxValidator(e) {
if (parseInt(min) > parseInt(this.value)) {
updateValidationArea(
this.targetElement,
`<div class="error">This value should be larger than ${min}</div>`
`<div class="error">This value should be larger than ${min}</div>`,
);
set = true;
} else {
@ -894,7 +894,7 @@ function registerMinMaxValidator(e) {
if (parseInt(max) < parseInt(this.value)) {
updateValidationArea(
this.targetElement,
`<div class="error">This value should be less than ${max}</div>`
`<div class="error">This value should be less than ${max}</div>`,
);
set = true;
} else {
@ -1232,7 +1232,7 @@ function rowvgStartEachRow(recursive, f) {
function (e) {
// progressBar.jelly
e.onclick = progressBarOnClick;
}
},
);
// <label> that doesn't use ID, so that it can be copied in <repeatable>
@ -1242,7 +1242,7 @@ function rowvgStartEachRow(recursive, f) {
++p,
function (e) {
e.onclick = labelAttachPreviousOnClick;
}
},
);
// form fields that are validated via AJAX call to the server
@ -1251,19 +1251,19 @@ function rowvgStartEachRow(recursive, f) {
"INPUT.validated",
"input-validated",
++p,
registerValidator
registerValidator,
);
Behaviour.specify(
"SELECT.validated",
"select-validated",
++p,
registerValidator
registerValidator,
);
Behaviour.specify(
"TEXTAREA.validated",
"textarea-validated",
++p,
registerValidator
registerValidator,
);
// validate required form values
@ -1286,7 +1286,7 @@ function rowvgStartEachRow(recursive, f) {
e.addEventListener("keypress", preventInputEe);
registerMinMaxValidator(e);
registerRegexpValidator(e, /^-?(\d+)$/, "Not an integer");
}
},
);
Behaviour.specify(
@ -1297,7 +1297,7 @@ function rowvgStartEachRow(recursive, f) {
e.addEventListener("keypress", preventInputEe);
registerMinMaxValidator(e);
registerRegexpValidator(e, /^\d+$/, "Not a non-negative integer");
}
},
);
Behaviour.specify(
@ -1308,7 +1308,7 @@ function rowvgStartEachRow(recursive, f) {
e.addEventListener("keypress", preventInputEe);
registerMinMaxValidator(e);
registerRegexpValidator(e, /^(\d*[1-9]\d*|)$/, "Not a positive integer");
}
},
);
Behaviour.specify(
@ -1319,7 +1319,7 @@ function rowvgStartEachRow(recursive, f) {
e.addEventListener("keypress", preventInputEe);
registerMinMaxValidator(e);
registerRegexpValidator(e, /^[1-9]\d*$/, "Not a positive integer");
}
},
);
Behaviour.specify(
@ -1362,7 +1362,7 @@ function rowvgStartEachRow(recursive, f) {
]);
return true;
};
}
},
);
Behaviour.specify(
@ -1373,7 +1373,7 @@ function rowvgStartEachRow(recursive, f) {
e.onclick = helpButtonOnClick;
e.tabIndex = 9999; // make help link unnavigable from keyboard
e.parentNode.parentNode.classList.add("has-help");
}
},
);
// legacy class name
@ -1463,7 +1463,7 @@ function rowvgStartEachRow(recursive, f) {
function on_drag(e) {
codemirror.CodeMirror.setSize(
null,
Math.max(MIN_HEIGHT, start_h + e.y - start_y) + "px"
Math.max(MIN_HEIGHT, start_h + e.y - start_y) + "px",
);
}
@ -1516,7 +1516,7 @@ function rowvgStartEachRow(recursive, f) {
++p,
function (e) {
makeButton(e);
}
},
);
Behaviour.specify("INPUT.yui-button", "input-yui-button", ++p, function (e) {
@ -1534,7 +1534,7 @@ function rowvgStartEachRow(recursive, f) {
// Set start.ref to checkbox in preparation of row-set-end processing
e.setAttribute("ref", (checkbox.id = "cb" + iota++));
}
},
);
// see RowVisibilityGroupTest
@ -1582,7 +1582,7 @@ function rowvgStartEachRow(recursive, f) {
*/
eachRow: rowvgStartEachRow,
};
}
},
);
Behaviour.specify(
@ -1593,7 +1593,7 @@ function rowvgStartEachRow(recursive, f) {
e.addEventListener("click", function () {
updateOptionalBlock(e);
});
}
},
);
Behaviour.specify(
@ -1627,7 +1627,7 @@ function rowvgStartEachRow(recursive, f) {
}
applyNameRef(start, end, ref);
}
},
);
Behaviour.specify(
@ -1642,7 +1642,7 @@ function rowvgStartEachRow(recursive, f) {
// Get the `input` from the checkbox container
var checkbox = e.querySelector("input[type='checkbox']");
updateOptionalBlock(checkbox);
}
},
);
// image that shows [+] or [-], with hover effect.
@ -1742,7 +1742,7 @@ function rowvgStartEachRow(recursive, f) {
}
: function (e) {
e.setAttribute("field-disabled", "true");
}
},
);
}
}
@ -1750,7 +1750,7 @@ function rowvgStartEachRow(recursive, f) {
e.onchange = updateDropDownList;
updateDropDownList();
}
},
);
Behaviour.specify("A.showDetails", "a-showdetails", ++p, function (e) {
@ -1769,7 +1769,7 @@ function rowvgStartEachRow(recursive, f) {
++p,
function (e) {
e.classList.add("behavior-loading--hidden");
}
},
);
Behaviour.specify(
@ -1778,7 +1778,7 @@ function rowvgStartEachRow(recursive, f) {
++p,
function (e) {
new YAHOO.widget.Button(e, { type: "menu", menu: e.nextElementSibling });
}
},
);
Behaviour.specify(".track-mouse", "-track-mouse", ++p, function (element) {
@ -1811,9 +1811,9 @@ function rowvgStartEachRow(recursive, f) {
([e]) =>
e.target.classList.toggle(
"bottom-sticker-inner--stuck",
e.intersectionRatio < 1
e.intersectionRatio < 1,
),
{ threshold: [1] }
{ threshold: [1] },
);
observer.observe(el);
@ -1879,7 +1879,7 @@ function rowvgStartEachRow(recursive, f) {
var spanTag = document.createElement("span");
spanTag.innerHTML = labelText;
label.appendChild(spanTag);
}
},
);
})();
@ -1909,7 +1909,7 @@ function refillOnChange(e, onChange) {
deps.forEach(
TryEach(function (d) {
params[d.name] = controlValue(d.control);
})
}),
);
onChange(params);
}
@ -1925,14 +1925,14 @@ function refillOnChange(e, onChange) {
if (window.YUI != null) {
YUI.log(
"Unable to find a nearby control of the name " + name,
"warn"
"warn",
);
}
return;
}
c.addEventListener("change", h);
deps.push({ name: Path.tail(name), control: c });
})
}),
);
}
h(); // initial fill
@ -2089,7 +2089,7 @@ function AutoScroller(scrollContainer) {
var height = getViewportHeight();
var scrollPos = Math.max(
scrollDiv.scrollTop,
document.documentElement.scrollTop
document.documentElement.scrollTop,
);
var diff = currentHeight - scrollPos - height;
// window.alert("currentHeight=" + currentHeight + ",scrollTop=" + scrollDiv.scrollTop + ",height=" + height);
@ -2133,7 +2133,7 @@ function refreshPart(id, url) {
console.log(
"Failed to retrieve response for ID " +
id +
", perhaps Jenkins is unavailable"
", perhaps Jenkins is unavailable",
);
return;
}
@ -2233,7 +2233,7 @@ function findMatchingFormInput(base, name) {
base.name +
'"], select[name="' +
base.name +
'"]'
'"]',
);
var targets = f.querySelectorAll(
'input[name="' +
@ -2242,7 +2242,7 @@ function findMatchingFormInput(base, name) {
name +
'"], select[name="' +
name +
'"]'
'"]',
);
for (var i = 0; i < bases.length; i++) {
@ -2259,7 +2259,7 @@ if (typeof Form === "object") {
/** @deprecated For backward compatibility only; use {@link findMatchingFormInput} instead. */
Form.findMatchingInput = function (base, name) {
console.warn(
"Deprecated call to Form.findMatchingInput detected; use findMatchingFormInput instead."
"Deprecated call to Form.findMatchingInput detected; use findMatchingFormInput instead.",
);
return findMatchingFormInput(base, name);
};
@ -2385,7 +2385,7 @@ function createSearchBox(searchURL) {
var ac = new YAHOO.widget.AutoComplete(
"search-box",
"search-box-completion",
ds
ds,
);
ac.typeAhead = false;
ac.autoHighlight = false;
@ -2627,7 +2627,7 @@ function buildFormTree(form) {
addProperty(
p,
e.name.substring(r),
(e.formDom = { value: e.value })
(e.formDom = { value: e.value }),
);
} else {
addProperty(p, e.name.substring(r), e.value);
@ -2675,7 +2675,7 @@ window.addEventListener("load", function () {
document.querySelectorAll(".jenkins-form-item").forEach(function (element) {
if (
element.querySelector(
".optionalBlock-container > .row-group-start input[type='checkbox'], .optional-block-start input[type='checkbox'], div > .jenkins-checkbox"
".optionalBlock-container > .row-group-start input[type='checkbox'], .optional-block-start input[type='checkbox'], div > .jenkins-checkbox",
) != null
) {
element.classList.add("jenkins-form-item--tight");
@ -2731,7 +2731,7 @@ function loadScript(href, callback) {
// eslint-disable-next-line no-unused-vars
function safeValidateButton(button) {
var descriptorUrl = button.getAttribute(
"data-validate-button-descriptor-url"
"data-validate-button-descriptor-url",
);
var method = button.getAttribute("data-validate-button-method");
var checkUrl = descriptorUrl + "/" + method;

View File

@ -82,7 +82,7 @@ var Sortable = (function () {
self.onClicked(this);
return false;
};
}.bind(this)
}.bind(this),
);
// figure out the initial sort preference
@ -94,7 +94,7 @@ var Sortable = (function () {
if (initialSortDir != null) {
this.pref = { column: i, direction: arrowTable[initialSortDir] };
}
}.bind(this)
}.bind(this),
);
}
@ -237,15 +237,15 @@ var Sortable = (function () {
return s(
this.extractData(a.cells[column]),
this.extractData(b.cells[column])
this.extractData(b.cells[column]),
);
}.bind(this)
}.bind(this),
);
rows.forEach(
function (e) {
this.table.tBodies[0].appendChild(e);
}.bind(this)
}.bind(this),
);
// update arrow rendering
@ -259,7 +259,7 @@ var Sortable = (function () {
getIndexOfSortableTable: function () {
return Array.from(document.querySelectorAll("TABLE.sortable")).indexOf(
this.table
this.table,
);
},
@ -449,7 +449,7 @@ var Sortable = (function () {
YAHOO.util.StorageManager.LOCATION_SESSION,
{
order: [YAHOO.util.StorageEngineGears],
}
},
);
} catch (e) {
// no storage available

View File

@ -24,7 +24,7 @@ module.exports = (env, argv) => ({
"pages/manage-jenkins/system-information": [
path.join(
__dirname,
"src/main/js/pages/manage-jenkins/system-information"
"src/main/js/pages/manage-jenkins/system-information",
),
],
app: [path.join(__dirname, "src/main/js/app.js")],

View File

@ -4392,7 +4392,7 @@ __metadata:
postcss-loader: 7.3.3
postcss-preset-env: 9.0.0
postcss-scss: 4.0.6
prettier: 2.8.8
prettier: 3.0.0
sass: 1.64.1
sass-loader: 13.3.2
sortablejs: 1.15.0
@ -6114,12 +6114,12 @@ __metadata:
languageName: node
linkType: hard
"prettier@npm:2.8.8":
version: 2.8.8
resolution: "prettier@npm:2.8.8"
"prettier@npm:3.0.0":
version: 3.0.0
resolution: "prettier@npm:3.0.0"
bin:
prettier: bin-prettier.js
checksum: b49e409431bf129dd89238d64299ba80717b57ff5a6d1c1a8b1a28b590d998a34e083fa13573bc732bb8d2305becb4c9a4407f8486c81fa7d55100eb08263cf8
prettier: bin/prettier.cjs
checksum: 6a832876a1552dc58330d2467874e5a0b46b9ccbfc5d3531eb69d15684743e7f83dc9fbd202db6270446deba9c82b79d24383d09924c462b457136a759425e33
languageName: node
linkType: hard