mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 07:11:18 +02:00
Fix lint warnings: arrow functions in admin-acces.js, duplicate gap in admin.css, biome formatting
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -103,7 +103,9 @@
|
||||
border-radius: var(--radius);
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
transition:
|
||||
background 0.15s,
|
||||
color 0.15s;
|
||||
flex-shrink: 0;
|
||||
vertical-align: middle;
|
||||
margin-right: var(--space-2xs);
|
||||
@@ -379,7 +381,10 @@ th.admin-ap-col {
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
transition: background 0.15s, color 0.15s, border-color 0.15s;
|
||||
transition:
|
||||
background 0.15s,
|
||||
color 0.15s,
|
||||
border-color 0.15s;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
@@ -888,7 +893,6 @@ th.admin-ap-col {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
gap: 0px 0px;
|
||||
grid-template-areas:
|
||||
"header"
|
||||
"filters";
|
||||
@@ -1748,7 +1752,9 @@ th.admin-ap-col {
|
||||
font-size: var(--step--1);
|
||||
font-weight: 400;
|
||||
text-decoration: none;
|
||||
transition: border-color 0.15s, color 0.15s;
|
||||
transition:
|
||||
border-color 0.15s,
|
||||
color 0.15s;
|
||||
}
|
||||
|
||||
.admin-body .pagination-btn:hover:not(.disabled) {
|
||||
|
||||
@@ -35,7 +35,8 @@
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
.tfe-left-column, .tfe-right-column {
|
||||
.tfe-left-column,
|
||||
.tfe-right-column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
|
||||
@@ -74,29 +74,29 @@ function _copyTextToClipboard(text) {
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
window.openEditDialog = function (id, name, _hasPassword, expiresVal) {
|
||||
window.openEditDialog = (id, name, _hasPassword, expiresVal) => {
|
||||
document.getElementById("edit-link-id").value = id;
|
||||
document.getElementById("edit-name").value = name || "";
|
||||
document.getElementById("edit-expires").value = expiresVal || "";
|
||||
document.getElementById("edit-dialog").showModal();
|
||||
}
|
||||
};
|
||||
|
||||
window.openApproveDialog = function (requestId) {
|
||||
window.openApproveDialog = (requestId) => {
|
||||
document.getElementById("approve-request-id").value = requestId;
|
||||
document.getElementById("approve-dialog").showModal();
|
||||
}
|
||||
};
|
||||
|
||||
window.openRejectDialog = function (requestId) {
|
||||
window.openRejectDialog = (requestId) => {
|
||||
document.getElementById("reject-request-id").value = requestId;
|
||||
document.getElementById("reject-dialog").showModal();
|
||||
}
|
||||
};
|
||||
|
||||
window.openArchiveLinkDialog = function (id) {
|
||||
window.openArchiveLinkDialog = (id) => {
|
||||
document.getElementById("archive-link-id").value = id;
|
||||
document.getElementById("archive-link-dialog").showModal();
|
||||
}
|
||||
};
|
||||
|
||||
window.openDeleteArchivedLinkDialog = function (id) {
|
||||
window.openDeleteArchivedLinkDialog = (id) => {
|
||||
document.getElementById("delete-archived-link-id").value = id;
|
||||
document.getElementById("delete-archived-link-dialog").showModal();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
fieldset.remove();
|
||||
reindexGroups();
|
||||
// Trigger htmx autosave so deletion is persisted
|
||||
form.dispatchEvent(new Event('change', { bubbles: true }));
|
||||
form.dispatchEvent(new Event("change", { bubbles: true }));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user