Enhance security and error handling in various components by refining error catch blocks to ignore specific errors, improving code clarity and consistency across the application.

This commit is contained in:
Torsten Schulz (local)
2025-12-20 15:05:49 +01:00
parent 3e956ac46b
commit d89cabdd34
42 changed files with 117 additions and 113 deletions

View File

@@ -100,7 +100,7 @@ const isMemberMenuOpen = ref(false)
// Reactive auth state from store
const isLoggedIn = computed(() => authStore.isLoggedIn)
const isAdmin = computed(() => authStore.isAdmin)
// const isAdmin = computed(() => authStore.isAdmin)
const toggleMemberMenu = () => {
isMemberMenuOpen.value = !isMemberMenuOpen.value

View File

@@ -103,7 +103,7 @@
<script setup>
import { ref, onMounted } from 'vue'
import { Calendar, Users, BarChart } from 'lucide-vue-next'
import { Users } from 'lucide-vue-next'
const mannschaften = ref([])
@@ -124,7 +124,7 @@ const loadMannschaften = async () => {
return
}
mannschaften.value = lines.slice(1).map((line, index) => {
mannschaften.value = lines.slice(1).map((line, _index) => {
// Besserer CSV-Parser: Respektiert Anführungszeichen
const values = []
let current = ''

View File

@@ -280,7 +280,7 @@ const upcomingGames = computed(() => {
// Nur Spiele der nächsten 7 Tage
return gameDate >= today && gameDate <= in7Days
} catch (error) {
} catch (_error) {
return false
}
})