revert: Dev/Compose/Frontend auf Stand ceef6f0 (07.05.2026 22:02)
Deploy Development / deploy (push) Successful in 36s
Test Suite / pytest-backend (push) Successful in 25s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 8s
Test Suite / playwright-tests (push) Successful in 23s

Alle Änderungen nach dem letzten verifizierten Deploy (ceef6f0) für
docker-compose.dev-env.yml, docker-compose.yml, .env.example sowie
main.jsx, MediaLibraryPage, ExerciseFormPage zurückgesetzt;
ErrorBoundary entfernt. Entspricht dem funktionierenden develop-Stand
von Gitea an diesem Zeitpunkt.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-05-08 09:18:07 +02:00
1 parent d758de3852
commit f8a7247ccc
7 files changed
+24 -109

No files matched your search

+7 -13
View File
@@ -13,8 +13,8 @@ import {
CircleDot,
FilePenLine,
Copyright,
Image as LucideImage,
Video as LucideVideo,
Image,
Video,
FileText,
File,
Upload,
@@ -45,10 +45,6 @@ const MEDIA_KIND_OPTIONS = [
{ value: 'other', label: 'Sonstiges' },
]
/** Kein image/*/video/* — WebKit (iOS Safari) ist damit oft kaputt; alles explizit. */
const MEDIA_UPLOAD_ACCEPT =
'image/jpeg,image/png,image/gif,image/heic,image/heif,video/mp4,video/quicktime,application/pdf,.jpg,.jpeg,.png,.gif,.heic,.heif,.mp4,.mov,.pdf'
const LC_STATUS_LABELS = {
active: 'Aktiv',
trash_soft: 'Papierkorb (1)',
@@ -219,8 +215,8 @@ function MediaTypeGlyph({ mimeType, compact }) {
const kind = previewDisplayKind(mimeType)
const label = MEDIA_KIND_LABELS[kind] || 'Medium'
let Icon = File
if (kind === 'image') Icon = LucideImage
else if (kind === 'video') Icon = LucideVideo
if (kind === 'image') Icon = Image
else if (kind === 'video') Icon = Video
else if (kind === 'pdf') Icon = FileText
const sz = compact ? 12 : 14
return (
@@ -478,13 +474,12 @@ export default function MediaLibraryPage() {
const selCount = selected.size
const onBulkArchiveFiles = async (e) => {
const input = e.target
const fl = input.files
const fl = e.target.files
if (!fl?.length) return
const list = Array.from(fl)
e.target.value = ''
if (uploadVis === 'club' && !Number(uploadClubId)) {
window.alert('Bitte einen Verein für die Sichtbarkeit „Verein“ wählen.')
input.value = ''
return
}
setUploadBusy(true)
@@ -507,7 +502,6 @@ export default function MediaLibraryPage() {
} catch (err) {
window.alert(err.message || String(err))
} finally {
input.value = ''
setUploadBusy(false)
}
}
@@ -630,7 +624,7 @@ export default function MediaLibraryPage() {
ref={bulkFileInputRef}
type="file"
className="media-library__sr-file"
accept={MEDIA_UPLOAD_ACCEPT}
accept="image/*,video/*,application/pdf"
multiple
onChange={onBulkArchiveFiles}
/>