GraphQL and API docs #933 + create /plugins log folder #921

This commit is contained in:
jokob-sk
2025-01-06 09:22:34 +11:00
parent b2c445e39d
commit 58eaa33f39
7 changed files with 185 additions and 9 deletions

View File

@@ -17,9 +17,9 @@ html {
background-color: #353c42;
}
body {
/* body {
background-image: url('../img/boxed-bg-dark.png') !important;
}
} */
body, .bg-yellow, .callout.callout-warning, .alert-warning, .label-warning, .modal-warning .modal-body {

View File

@@ -19,9 +19,9 @@
background-color: #353c42;
}
body {
/* body {
background-image: url('../img/boxed-bg-dark.png') !important;
}
} */
body, .bg-yellow, .callout.callout-warning, .alert-warning, .label-warning, .modal-warning .modal-body {

View File

@@ -225,8 +225,15 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
pluginsData = res["data"];
// Sort settingsData alphabetically based on the "setGroup" property
// Sort settingsData alphabetically, ensuring "General" is always first
settingsData.sort((a, b) => {
if (a["setGroup"] === "General") {
return -1; // Place "General" first
}
if (b["setGroup"] === "General") {
return 1; // Place "General" first
}
// For other values, sort alphabetically
if (a["setGroup"] < b["setGroup"]) {
return -1;
}