Update package dependencies and enhance CSV handling in CMS
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 53s

This commit updates the version of several packages in package.json and package-lock.json, including downgrading "quill" to 2.0.2 and upgrading "devalue", "diff", "h3", "node-mock-http", "tar", and "undici" to their latest versions. Additionally, it improves the CSV file handling in the CMS by implementing a cache-busting mechanism for fetching data and enhancing error handling during file saving, ensuring more robust data management.
This commit is contained in:
Torsten Schulz (local)
2026-01-18 22:25:04 +01:00
parent 3577831149
commit a0dd4f6134
4 changed files with 71 additions and 47 deletions

View File

@@ -336,7 +336,9 @@ const formData = ref({
const loadMannschaften = async () => {
isLoading.value = true
try {
const response = await fetch('/data/mannschaften.csv')
// Cache-Buster: Browser/CDN könnten CSV sonst aggressiv cachen
const url = `/data/mannschaften.csv?_t=${Date.now()}`
const response = await fetch(url, { cache: 'no-store' })
if (!response.ok) {
throw new Error('Fehler beim Laden der Mannschaften')
}
@@ -466,7 +468,7 @@ const saveMannschaft = async () => {
}
} catch (error) {
console.error('Fehler beim Speichern:', error)
errorMessage.value = error.data?.message || 'Fehler beim Speichern der Mannschaft.'
errorMessage.value = error?.data?.statusMessage || error?.statusMessage || error?.data?.message || 'Fehler beim Speichern der Mannschaft.'
if (window.showErrorModal) {
window.showErrorModal('Fehler', errorMessage.value)
}