Enhance security by adding role-checking functions in ESLint configuration and updating Vue components to improve content sanitization comments, while refining error handling in API endpoints for better clarity.
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 3m40s

This commit is contained in:
Torsten Schulz (local)
2025-12-20 14:19:55 +01:00
parent 19024cd87e
commit e128e1a77c
22 changed files with 40 additions and 25 deletions

View File

@@ -29,7 +29,7 @@ async function loadConfig() {
try {
const data = await $fetch('/api/config')
rawContent.value = data?.seiten?.geschichte || ''
} catch (e) {
} catch (_e) {
rawContent.value = ''
}
}

View File

@@ -64,7 +64,7 @@ async function loadConfig() {
rawContent.value = satzung.content || ''
pdfUrl.value = satzung.pdfUrl || ''
}
} catch (e) {
} catch (_e) {
rawContent.value = ''
pdfUrl.value = ''
}

View File

@@ -4,9 +4,10 @@
<h1 class="text-4xl sm:text-5xl font-display font-bold text-gray-900 mb-6">
TT-Regeln
</h1>
<!-- nosemgrep: javascript.vue.security.audit.xss.templates.avoid-v-html -->
<div
class="prose prose-lg max-w-none"
v-html="content" <!-- nosemgrep: javascript.vue.security.audit.xss.templates.avoid-v-html -->
v-html="content"
/>
</div>
</div>
@@ -28,7 +29,7 @@ async function loadConfig() {
try {
const data = await $fetch('/api/config')
rawContent.value = data?.seiten?.ttRegeln || ''
} catch (e) {
} catch (_e) {
rawContent.value = ''
}
}

View File

@@ -4,9 +4,10 @@
<h1 class="text-4xl sm:text-5xl font-display font-bold text-gray-900 mb-6">
Über uns
</h1>
<!-- nosemgrep: javascript.vue.security.audit.xss.templates.avoid-v-html -->
<div
class="prose prose-lg max-w-none"
v-html="content" <!-- nosemgrep: javascript.vue.security.audit.xss.templates.avoid-v-html -->
v-html="content"
/>
</div>
</div>
@@ -28,7 +29,7 @@ async function loadConfig() {
try {
const data = await $fetch('/api/config')
rawContent.value = data?.seiten?.ueberUns || ''
} catch (e) {
} catch (_e) {
rawContent.value = ''
}
}