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);
|
border-radius: var(--radius);
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: background 0.15s, color 0.15s;
|
transition:
|
||||||
|
background 0.15s,
|
||||||
|
color 0.15s;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-right: var(--space-2xs);
|
margin-right: var(--space-2xs);
|
||||||
@@ -379,7 +381,10 @@ th.admin-ap-col {
|
|||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: none;
|
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;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -888,7 +893,6 @@ th.admin-ap-col {
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
grid-template-rows: 1fr 1fr;
|
grid-template-rows: 1fr 1fr;
|
||||||
gap: 0px 0px;
|
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"header"
|
"header"
|
||||||
"filters";
|
"filters";
|
||||||
@@ -1748,7 +1752,9 @@ th.admin-ap-col {
|
|||||||
font-size: var(--step--1);
|
font-size: var(--step--1);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-decoration: none;
|
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) {
|
.admin-body .pagination-btn:hover:not(.disabled) {
|
||||||
|
|||||||
@@ -35,7 +35,8 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
.tfe-left-column, .tfe-right-column {
|
.tfe-left-column,
|
||||||
|
.tfe-right-column {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|||||||
@@ -74,29 +74,29 @@ function _copyTextToClipboard(text) {
|
|||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
window.openEditDialog = function (id, name, _hasPassword, expiresVal) {
|
window.openEditDialog = (id, name, _hasPassword, expiresVal) => {
|
||||||
document.getElementById("edit-link-id").value = id;
|
document.getElementById("edit-link-id").value = id;
|
||||||
document.getElementById("edit-name").value = name || "";
|
document.getElementById("edit-name").value = name || "";
|
||||||
document.getElementById("edit-expires").value = expiresVal || "";
|
document.getElementById("edit-expires").value = expiresVal || "";
|
||||||
document.getElementById("edit-dialog").showModal();
|
document.getElementById("edit-dialog").showModal();
|
||||||
}
|
};
|
||||||
|
|
||||||
window.openApproveDialog = function (requestId) {
|
window.openApproveDialog = (requestId) => {
|
||||||
document.getElementById("approve-request-id").value = requestId;
|
document.getElementById("approve-request-id").value = requestId;
|
||||||
document.getElementById("approve-dialog").showModal();
|
document.getElementById("approve-dialog").showModal();
|
||||||
}
|
};
|
||||||
|
|
||||||
window.openRejectDialog = function (requestId) {
|
window.openRejectDialog = (requestId) => {
|
||||||
document.getElementById("reject-request-id").value = requestId;
|
document.getElementById("reject-request-id").value = requestId;
|
||||||
document.getElementById("reject-dialog").showModal();
|
document.getElementById("reject-dialog").showModal();
|
||||||
}
|
};
|
||||||
|
|
||||||
window.openArchiveLinkDialog = function (id) {
|
window.openArchiveLinkDialog = (id) => {
|
||||||
document.getElementById("archive-link-id").value = id;
|
document.getElementById("archive-link-id").value = id;
|
||||||
document.getElementById("archive-link-dialog").showModal();
|
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-id").value = id;
|
||||||
document.getElementById("delete-archived-link-dialog").showModal();
|
document.getElementById("delete-archived-link-dialog").showModal();
|
||||||
}
|
};
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
fieldset.remove();
|
fieldset.remove();
|
||||||
reindexGroups();
|
reindexGroups();
|
||||||
// Trigger htmx autosave so deletion is persisted
|
// 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