Update package-lock.json and package.json to include 'globals' dependency and improve code formatting in various components for better readability.
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 54s

This commit is contained in:
Torsten Schulz (local)
2025-12-20 10:17:16 +01:00
parent 861802b716
commit b20b89d333
72 changed files with 5338 additions and 2008 deletions

View File

@@ -1,39 +1,46 @@
<template>
<div class="min-h-full py-16 bg-gray-50">
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<div v-if="mannschaft" class="space-y-8">
<div
v-if="mannschaft"
class="space-y-8"
>
<!-- Header -->
<div class="bg-gradient-to-r from-primary-600 to-primary-700 rounded-xl p-8 text-white">
<h1 class="text-4xl font-display font-bold mb-2">
{{ mannschaft.mannschaft }}
</h1>
<p class="text-primary-100 text-xl">{{ mannschaft.liga }}</p>
<p class="text-primary-100 text-xl">
{{ mannschaft.liga }}
</p>
</div>
<!-- Liga-Info -->
<div class="bg-white rounded-xl shadow-lg p-6">
<h2 class="text-2xl font-semibold text-gray-900 mb-6">Liga-Informationen</h2>
<h2 class="text-2xl font-semibold text-gray-900 mb-6">
Liga-Informationen
</h2>
<div class="grid md:grid-cols-2 gap-6">
<div class="space-y-4">
<div class="flex items-center space-x-3">
<div class="w-2 h-2 bg-primary-600 rounded-full"></div>
<div class="w-2 h-2 bg-primary-600 rounded-full" />
<span class="text-gray-600">Staffelleiter:</span>
<span class="font-semibold text-gray-900">{{ mannschaft.staffelleiter }}</span>
</div>
<div class="flex items-center space-x-3">
<div class="w-2 h-2 bg-primary-600 rounded-full"></div>
<div class="w-2 h-2 bg-primary-600 rounded-full" />
<span class="text-gray-600">Telefon:</span>
<span class="font-semibold text-gray-900">{{ mannschaft.telefon }}</span>
</div>
</div>
<div class="space-y-4">
<div class="flex items-center space-x-3">
<div class="w-2 h-2 bg-primary-600 rounded-full"></div>
<div class="w-2 h-2 bg-primary-600 rounded-full" />
<span class="text-gray-600">Heimspieltag:</span>
<span class="font-semibold text-gray-900">{{ mannschaft.heimspieltag }}</span>
</div>
<div class="flex items-center space-x-3">
<div class="w-2 h-2 bg-primary-600 rounded-full"></div>
<div class="w-2 h-2 bg-primary-600 rounded-full" />
<span class="text-gray-600">Spielsystem:</span>
<span class="font-semibold text-gray-900">{{ mannschaft.spielsystem }}</span>
</div>
@@ -53,8 +60,13 @@
class="bg-gray-50 rounded-lg p-4 text-center"
:class="spieler === mannschaft.mannschaftsfuehrer ? 'ring-2 ring-primary-500 bg-primary-50' : ''"
>
<div class="font-semibold text-gray-900">{{ spieler }}</div>
<div v-if="spieler === mannschaft.mannschaftsfuehrer" class="text-xs text-primary-600 font-medium mt-1">
<div class="font-semibold text-gray-900">
{{ spieler }}
</div>
<div
v-if="spieler === mannschaft.mannschaftsfuehrer"
class="text-xs text-primary-600 font-medium mt-1"
>
Mannschaftsführer
</div>
</div>
@@ -63,7 +75,9 @@
<!-- Links -->
<div class="bg-white rounded-xl shadow-lg p-6">
<h2 class="text-2xl font-semibold text-gray-900 mb-6">Weitere Informationen</h2>
<h2 class="text-2xl font-semibold text-gray-900 mb-6">
Weitere Informationen
</h2>
<div class="text-center">
<a
v-if="mannschaft.weitere_informationen_link && mannschaft.weitere_informationen_link !== ''"
@@ -71,7 +85,10 @@
target="_blank"
class="inline-flex items-center px-8 py-4 bg-primary-600 hover:bg-primary-700 text-white font-semibold rounded-lg transition-colors"
>
<BarChart :size="24" class="mr-3" />
<BarChart
:size="24"
class="mr-3"
/>
Weitere Informationen
</a>
</div>
@@ -95,9 +112,16 @@
</div>
</div>
<div v-else class="text-center py-16">
<h1 class="text-4xl font-display font-bold text-gray-900 mb-4">Mannschaft nicht gefunden</h1>
<p class="text-gray-600 mb-8">Die angeforderte Mannschaft konnte nicht gefunden werden.</p>
<div
v-else
class="text-center py-16"
>
<h1 class="text-4xl font-display font-bold text-gray-900 mb-4">
Mannschaft nicht gefunden
</h1>
<p class="text-gray-600 mb-8">
Die angeforderte Mannschaft konnte nicht gefunden werden.
</p>
<NuxtLink
to="/mannschaften"
class="inline-flex items-center px-6 py-3 bg-primary-600 hover:bg-primary-700 text-white font-semibold rounded-lg transition-colors"

View File

@@ -7,12 +7,20 @@
<div class="w-24 h-1 bg-primary-600 mb-8" />
<div class="bg-white p-8 rounded-xl shadow-lg">
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">1. Damen</h3>
<p class="text-gray-600 mb-4">Liga: Bezirksliga</p>
<p class="text-gray-600 mb-6">Mannschaftsführerin: Name folgt</p>
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">
1. Damen
</h3>
<p class="text-gray-600 mb-4">
Liga: Bezirksliga
</p>
<p class="text-gray-600 mb-6">
Mannschaftsführerin: Name folgt
</p>
<div class="mt-8">
<h4 class="text-lg font-semibold text-gray-900 mb-4">Wir suchen Verstärkung!</h4>
<h4 class="text-lg font-semibold text-gray-900 mb-4">
Wir suchen Verstärkung!
</h4>
<p class="text-gray-600 mb-4">
Unsere Damenmannschaft freut sich über neue Spielerinnen. Interessiert? Dann melde dich bei uns!
</p>

View File

@@ -8,21 +8,39 @@
<div class="space-y-8">
<div class="bg-white p-8 rounded-xl shadow-lg">
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">1. Herren</h3>
<p class="text-gray-600 mb-4">Liga: Bezirksoberliga</p>
<p class="text-gray-600">Mannschaftsführer: Name folgt</p>
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">
1. Herren
</h3>
<p class="text-gray-600 mb-4">
Liga: Bezirksoberliga
</p>
<p class="text-gray-600">
Mannschaftsführer: Name folgt
</p>
</div>
<div class="bg-white p-8 rounded-xl shadow-lg">
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">2. Herren</h3>
<p class="text-gray-600 mb-4">Liga: Bezirksliga</p>
<p class="text-gray-600">Mannschaftsführer: Name folgt</p>
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">
2. Herren
</h3>
<p class="text-gray-600 mb-4">
Liga: Bezirksliga
</p>
<p class="text-gray-600">
Mannschaftsführer: Name folgt
</p>
</div>
<div class="bg-white p-8 rounded-xl shadow-lg">
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">3. Herren</h3>
<p class="text-gray-600 mb-4">Liga: Kreisliga</p>
<p class="text-gray-600">Mannschaftsführer: Name folgt</p>
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">
3. Herren
</h3>
<p class="text-gray-600 mb-4">
Liga: Kreisliga
</p>
<p class="text-gray-600">
Mannschaftsführer: Name folgt
</p>
</div>
</div>
</div>

View File

@@ -14,18 +14,18 @@
<div class="mt-16">
<div class="bg-primary-50 p-8 rounded-xl border border-primary-100">
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">
Spielpläne & Ergebnisse
</h3>
<p class="text-gray-600 mb-6">
Alle aktuellen Spielpläne und Ergebnisse unserer Mannschaften finden Sie hier.
</p>
<NuxtLink
to="/mannschaften/spielplaene"
class="inline-flex items-center px-6 py-3 bg-primary-600 hover:bg-primary-700 text-white font-semibold rounded-lg transition-colors"
>
Zu den Spielplänen
</NuxtLink>
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">
Spielpläne & Ergebnisse
</h3>
<p class="text-gray-600 mb-6">
Alle aktuellen Spielpläne und Ergebnisse unserer Mannschaften finden Sie hier.
</p>
<NuxtLink
to="/mannschaften/spielplaene"
class="inline-flex items-center px-6 py-3 bg-primary-600 hover:bg-primary-700 text-white font-semibold rounded-lg transition-colors"
>
Zu den Spielplänen
</NuxtLink>
</div>
</div>
</div>

View File

@@ -8,15 +8,27 @@
<div class="space-y-8">
<div class="bg-white p-8 rounded-xl shadow-lg">
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">Jugend 1 (U18)</h3>
<p class="text-gray-600 mb-4">Liga: Bezirksliga</p>
<p class="text-gray-600">Betreuer: Name folgt</p>
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">
Jugend 1 (U18)
</h3>
<p class="text-gray-600 mb-4">
Liga: Bezirksliga
</p>
<p class="text-gray-600">
Betreuer: Name folgt
</p>
</div>
<div class="bg-white p-8 rounded-xl shadow-lg">
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">Jugend 2 (U15)</h3>
<p class="text-gray-600 mb-4">Liga: Kreisliga</p>
<p class="text-gray-600">Betreuer: Name folgt</p>
<h3 class="text-2xl font-display font-bold text-gray-900 mb-4">
Jugend 2 (U15)
</h3>
<p class="text-gray-600 mb-4">
Liga: Kreisliga
</p>
<p class="text-gray-600">
Betreuer: Name folgt
</p>
</div>
<div class="bg-primary-50 p-8 rounded-xl border border-primary-100">
@@ -24,7 +36,7 @@
Jugendtraining
</h3>
<p class="text-gray-600 mb-6">
<strong>Dienstag & Donnerstag:</strong> 17:00 - 19:00 Uhr<br />
<strong>Dienstag & Donnerstag:</strong> 17:00 - 19:00 Uhr<br>
Für Kinder und Jugendliche von 8-18 Jahren
</p>
<NuxtLink

View File

@@ -5,8 +5,12 @@
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
<div class="flex items-center justify-between">
<div>
<h1 class="text-3xl font-bold text-gray-900">Spielpläne</h1>
<p class="mt-2 text-gray-600">Alle Spielpläne der Mannschaften</p>
<h1 class="text-3xl font-bold text-gray-900">
Spielpläne
</h1>
<p class="mt-2 text-gray-600">
Alle Spielpläne der Mannschaften
</p>
</div>
</div>
</div>
@@ -21,36 +25,58 @@
<div class="flex flex-col sm:flex-row sm:items-center gap-4">
<!-- Wettbewerbs-Filter -->
<div class="flex items-center space-x-2">
<label for="wettbewerb-select" class="text-sm font-medium text-gray-700">
<label
for="wettbewerb-select"
class="text-sm font-medium text-gray-700"
>
Wettbewerb:
</label>
<select
id="wettbewerb-select"
v-model="selectedWettbewerb"
@change="filterData"
class="px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 bg-white text-sm"
@change="filterData"
>
<option value="punktrunde">Punktrunde</option>
<option value="pokal">Pokal</option>
<option value="alle">Alle</option>
<option value="punktrunde">
Punktrunde
</option>
<option value="pokal">
Pokal
</option>
<option value="alle">
Alle
</option>
</select>
</div>
<!-- Mannschafts-Filter -->
<div class="flex items-center space-x-2">
<label for="filter-select" class="text-sm font-medium text-gray-700">
<label
for="filter-select"
class="text-sm font-medium text-gray-700"
>
Mannschaft:
</label>
<select
id="filter-select"
v-model="selectedFilter"
@change="filterData"
class="px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 bg-white text-sm"
@change="filterData"
>
<option value="all">Gesamt</option>
<option value="erwachsene">Erwachsene</option>
<option value="nachwuchs">Nachwuchs</option>
<option v-for="mannschaft in mannschaften" :key="mannschaft" :value="mannschaft">
<option value="all">
Gesamt
</option>
<option value="erwachsene">
Erwachsene
</option>
<option value="nachwuchs">
Nachwuchs
</option>
<option
v-for="mannschaft in mannschaften"
:key="mannschaft"
:value="mannschaft"
>
{{ mannschaft }}
</option>
</select>
@@ -59,12 +85,22 @@
<!-- Download Button -->
<button
@click="downloadPDF"
:disabled="isLoading || !filteredData.length"
class="inline-flex items-center px-4 py-2 bg-primary-600 text-white rounded-lg hover:bg-primary-700 transition-colors disabled:bg-gray-400"
@click="downloadPDF"
>
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
<svg
class="w-4 h-4 mr-2"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
/>
</svg>
PDF Download
</button>
@@ -88,38 +124,95 @@
</div>
<!-- Loading State -->
<div v-if="isLoading" class="text-center py-12">
<svg class="w-8 h-8 text-gray-400 mx-auto mb-4 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
<div
v-if="isLoading"
class="text-center py-12"
>
<svg
class="w-8 h-8 text-gray-400 mx-auto mb-4 animate-spin"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
/>
</svg>
<p class="text-gray-600">Spielpläne werden geladen...</p>
<p class="text-gray-600">
Spielpläne werden geladen...
</p>
</div>
<!-- Error State -->
<div v-else-if="error" class="bg-red-50 border border-red-200 rounded-lg p-6 text-center">
<svg class="w-12 h-12 text-red-400 mx-auto mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z" />
<div
v-else-if="error"
class="bg-red-50 border border-red-200 rounded-lg p-6 text-center"
>
<svg
class="w-12 h-12 text-red-400 mx-auto mb-4"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"
/>
</svg>
<h3 class="text-lg font-medium text-red-800 mb-2">Fehler beim Laden</h3>
<p class="text-red-600 mb-4">{{ error }}</p>
<button @click="loadData" class="px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors">
<h3 class="text-lg font-medium text-red-800 mb-2">
Fehler beim Laden
</h3>
<p class="text-red-600 mb-4">
{{ error }}
</p>
<button
class="px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors"
@click="loadData"
>
Erneut versuchen
</button>
</div>
<!-- Empty State -->
<div v-else-if="!spielplanData || spielplanData.length === 0" class="text-center py-12 bg-white rounded-xl shadow-lg">
<svg class="w-12 h-12 text-gray-400 mx-auto mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" />
<div
v-else-if="!spielplanData || spielplanData.length === 0"
class="text-center py-12 bg-white rounded-xl shadow-lg"
>
<svg
class="w-12 h-12 text-gray-400 mx-auto mb-4"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M9 5H7a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"
/>
</svg>
<h3 class="text-lg font-medium text-gray-900 mb-2">Keine Spielpläne verfügbar</h3>
<p class="text-gray-600">Es wurden noch keine Spielplandaten hochgeladen.</p>
<h3 class="text-lg font-medium text-gray-900 mb-2">
Keine Spielpläne verfügbar
</h3>
<p class="text-gray-600">
Es wurden noch keine Spielplandaten hochgeladen.
</p>
</div>
<!-- Spielplan Table -->
<div v-else class="bg-white rounded-xl shadow-lg overflow-hidden">
<div
v-else
class="bg-white rounded-xl shadow-lg overflow-hidden"
>
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-xl font-semibold text-gray-900">Spielplan</h2>
<h2 class="text-xl font-semibold text-gray-900">
Spielplan
</h2>
<p class="text-sm text-gray-600 mt-1">
{{ getWettbewerbText() }} - {{ filteredData.length }} von {{ spielplanData.length }} Einträgen
</p>
@@ -129,24 +222,42 @@
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th v-for="header in headers" :key="header"
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
<th
v-for="header in headers"
:key="header"
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"
>
{{ formatHeader(header) }}
</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr v-for="(row, index) in filteredData" :key="index"
:class="getRowClass(row)">
<td v-for="header in headers" :key="header"
class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
<span v-if="header.toLowerCase().includes('datum')" class="font-mono">
<tr
v-for="(row, index) in filteredData"
:key="index"
:class="getRowClass(row)"
>
<td
v-for="header in headers"
:key="header"
class="px-6 py-4 whitespace-nowrap text-sm text-gray-900"
>
<span
v-if="header.toLowerCase().includes('datum')"
class="font-mono"
>
{{ formatDate(row[getOriginalHeader(header)]) }}
</span>
<span v-else-if="header.toLowerCase().includes('uhrzeit')" class="font-mono">
<span
v-else-if="header.toLowerCase().includes('uhrzeit')"
class="font-mono"
>
{{ formatTime(row[getOriginalHeader(header)]) }}
</span>
<span v-else-if="header.toLowerCase().includes('mannschaft')" class="font-medium">
<span
v-else-if="header.toLowerCase().includes('mannschaft')"
class="font-medium"
>
{{ row[getOriginalHeader(header)] || '-' }}
</span>
<span v-else-if="header.toLowerCase().includes('runde')">