minor css and js improvements

This commit is contained in:
2026-06-20 23:30:20 +02:00
parent 55cc1be52f
commit 433ed86f7e
7 changed files with 11 additions and 20 deletions

View File

@@ -27,7 +27,7 @@ if ($API_devices->request_method === 'POST') {
} }
$filename = basename($_FILES['file']['name']); $filename = basename($_FILES['file']['name']);
$filename = preg_replace('/[^a-zA-Z0-9_\.\-]/', '_', $filename); $filename = preg_replace('/[^a-zA-Z0-9_.-]/', '_', $filename);
$file_extension = strtolower(pathinfo($filename, PATHINFO_EXTENSION)); $file_extension = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
$expectedExtension = $allowedFiletypes[$filetype]; $expectedExtension = $allowedFiletypes[$filetype];

View File

@@ -279,7 +279,7 @@ body {
line-height: var(--bs-body-line-height); line-height: var(--bs-body-line-height);
color: var(--bs-body-color); color: var(--bs-body-color);
background-color: var(--bs-body-bg); background-color: var(--bs-body-bg);
webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
} }

File diff suppressed because one or more lines are too long

View File

@@ -22,7 +22,8 @@ async function loadTranslations() {
const response = await fetch('/api/v1/frontend/locale/'); const response = await fetch('/api/v1/frontend/locale/');
if (!response.ok) { if (!response.ok) {
throw new Error(`HTTP ${response.status}`); console.error(`HTTP ${response.status}`);
return;
} }
const data = await response.json(); const data = await response.json();

View File

@@ -5,7 +5,8 @@ document.addEventListener("DOMContentLoaded", async function () {
const response = await fetch("/api/v1/frontend/breadcrumbs/"); const response = await fetch("/api/v1/frontend/breadcrumbs/");
if (!response.ok) { if (!response.ok) {
throw new Error(`HTTP ${response.status}`); console.error(`HTTP ${response.status}`);
return;
} }
breadcrumbArray = await response.json(); breadcrumbArray = await response.json();

View File

@@ -3,7 +3,8 @@ document.addEventListener("DOMContentLoaded", async function () {
const response = await fetch("/api/v1/frontend/response/"); const response = await fetch("/api/v1/frontend/response/");
if (!response.ok) { if (!response.ok) {
throw new Error(`HTTP ${response.status}`); console.error(`HTTP ${response.status}`);
return;
} }
const data = await response.json(); const data = await response.json();

View File

@@ -197,19 +197,6 @@ function getColorForUser(name) {
return finalColor; return finalColor;
} }
// Helper: get all dates between two dates (inclusive)
function getDatesBetween(startDate, endDate) {
const dates = [];
let current = new Date(startDate);
const end = new Date(endDate);
while (current <= end) {
dates.push(current.toISOString().slice(0, 10));
current.setDate(current.getDate() + 1);
}
return dates;
}
let stompChart = null; let stompChart = null;
// Convert dd/mm/yyyy → Date safely // Convert dd/mm/yyyy → Date safely
@@ -253,7 +240,8 @@ async function loadChart() {
const res = await fetch('/api/v1/office/stompjes/?frontend=1'); const res = await fetch('/api/v1/office/stompjes/?frontend=1');
if (!res.ok) { if (!res.ok) {
throw new Error(`HTTP ${res.status}`); console.error(`HTTP ${res.status}`);
return;
} }
const data = await res.json(); const data = await res.json();