Enhance ESLint configuration to include support for .mjs and .cjs file types. Update ignored files patterns to ensure proper linting of project files. Refactor Vue component templates for improved readability and maintainability, including consistent formatting and structure across various components. Update error handling in save functions to prevent silent failures.
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 52s
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 52s
This commit is contained in:
@@ -173,8 +173,10 @@
|
||||
</div>
|
||||
|
||||
<!-- Optional password toggle for passkey users - vorläufig deaktiviert -->
|
||||
<!--
|
||||
<div v-if="usePasskey" class="flex items-center gap-2 text-sm text-gray-700">
|
||||
<div
|
||||
v-if="false"
|
||||
class="flex items-center gap-2 text-sm text-gray-700"
|
||||
>
|
||||
<input
|
||||
v-model="setPasswordForPasskey"
|
||||
type="checkbox"
|
||||
@@ -217,17 +219,23 @@
|
||||
v-if="false"
|
||||
class="bg-blue-50 border border-blue-200 rounded-lg p-4 text-xs space-y-3"
|
||||
>
|
||||
<div class="font-semibold text-blue-900 mb-2">🔍 Debug-Informationen (QR-Code):</div>
|
||||
<div class="font-semibold text-blue-900 mb-2">
|
||||
🔍 Debug-Informationen (QR-Code):
|
||||
</div>
|
||||
<div class="space-y-1 text-blue-800">
|
||||
<div><strong>Challenge:</strong> <code class="bg-blue-100 px-1 rounded break-all">{{ debugChallenge }}</code></div>
|
||||
<div><strong>RP-ID:</strong> <code class="bg-blue-100 px-1 rounded">{{ debugRpId }}</code></div>
|
||||
<div v-if="debugRegistrationId"><strong>Registration-ID:</strong> <code class="bg-blue-100 px-1 rounded break-all">{{ debugRegistrationId }}</code></div>
|
||||
<div v-if="debugRegistrationId">
|
||||
<strong>Registration-ID:</strong> <code class="bg-blue-100 px-1 rounded break-all">{{ debugRegistrationId }}</code>
|
||||
</div>
|
||||
<div><strong>Origin:</strong> <code class="bg-blue-100 px-1 rounded">{{ typeof window !== 'undefined' ? window.location.origin : 'N/A (SSR)' }}</code></div>
|
||||
</div>
|
||||
|
||||
<!-- FIDO QR-Code Info -->
|
||||
<div class="mt-3 p-3 bg-purple-50 border border-purple-300 rounded">
|
||||
<div class="font-semibold text-purple-900 mb-2">🔐 FIDO Cross-Device Info:</div>
|
||||
<div class="font-semibold text-purple-900 mb-2">
|
||||
🔐 FIDO Cross-Device Info:
|
||||
</div>
|
||||
<div class="text-xs text-purple-800 space-y-2">
|
||||
<div><strong>QR-Code-Format:</strong> FIDO-URI (enthält öffentlichen Schlüssel + Secret)</div>
|
||||
<div><strong>Hinweis:</strong> Der QR-Code enthält einen FIDO-URI, der vom Smartphone gescannt werden muss.</div>
|
||||
@@ -270,10 +278,19 @@
|
||||
</div>
|
||||
|
||||
<!-- Smartphone URL -->
|
||||
<div v-if="debugSmartphoneUrl" class="mt-3 p-3 bg-green-50 border border-green-300 rounded">
|
||||
<div class="font-semibold text-green-900 mb-2">📱 Alternative: Smartphone-URL (manuell öffnen):</div>
|
||||
<div
|
||||
v-if="debugSmartphoneUrl"
|
||||
class="mt-3 p-3 bg-green-50 border border-green-300 rounded"
|
||||
>
|
||||
<div class="font-semibold text-green-900 mb-2">
|
||||
📱 Alternative: Smartphone-URL (manuell öffnen):
|
||||
</div>
|
||||
<div class="break-all text-xs mb-2 p-2 bg-white rounded border">
|
||||
<a :href="debugSmartphoneUrl" target="_blank" class="text-blue-600 hover:underline">
|
||||
<a
|
||||
:href="debugSmartphoneUrl"
|
||||
target="_blank"
|
||||
class="text-blue-600 hover:underline"
|
||||
>
|
||||
{{ debugSmartphoneUrl }}
|
||||
</a>
|
||||
</div>
|
||||
@@ -281,23 +298,26 @@
|
||||
<strong>Anleitung:</strong> Falls der QR-Code nicht funktioniert, öffnen Sie diese URL manuell auf Ihrem Smartphone.
|
||||
</div>
|
||||
<button
|
||||
@click="copyToClipboard(debugSmartphoneUrl)"
|
||||
class="px-3 py-1 bg-green-600 text-white text-xs rounded hover:bg-green-700"
|
||||
@click="copyToClipboard(debugSmartphoneUrl)"
|
||||
>
|
||||
📋 URL kopieren
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Full Options JSON -->
|
||||
<div v-if="debugOptions" class="mt-3">
|
||||
<div
|
||||
v-if="debugOptions"
|
||||
class="mt-3"
|
||||
>
|
||||
<details class="text-xs">
|
||||
<summary class="cursor-pointer font-semibold text-blue-900 hover:text-blue-700 mb-2">
|
||||
📄 Vollständige Options (JSON) - Klicken zum Anzeigen
|
||||
</summary>
|
||||
<pre class="mt-2 p-2 bg-gray-100 rounded overflow-auto text-xs max-h-60 border">{{ JSON.stringify(debugOptions, null, 2) }}</pre>
|
||||
<button
|
||||
@click="copyToClipboard(JSON.stringify(debugOptions, null, 2))"
|
||||
class="mt-2 px-3 py-1 bg-gray-600 text-white text-xs rounded hover:bg-gray-700"
|
||||
@click="copyToClipboard(JSON.stringify(debugOptions, null, 2))"
|
||||
>
|
||||
📋 JSON kopieren
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user