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
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 54s
This commit is contained in:
@@ -7,13 +7,25 @@
|
||||
</h1>
|
||||
<div class="w-24 h-1 bg-primary-600 mb-8" />
|
||||
|
||||
<div v-if="loadingGroups" class="text-center py-8">
|
||||
<p class="text-gray-600">Lade verfügbare Newsletter...</p>
|
||||
<div
|
||||
v-if="loadingGroups"
|
||||
class="text-center py-8"
|
||||
>
|
||||
<p class="text-gray-600">
|
||||
Lade verfügbare Newsletter...
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<form v-else @submit.prevent="unsubscribe" class="space-y-6">
|
||||
<form
|
||||
v-else
|
||||
class="space-y-6"
|
||||
@submit.prevent="unsubscribe"
|
||||
>
|
||||
<div>
|
||||
<label for="groupId" class="block text-sm font-medium text-gray-700 mb-2">
|
||||
<label
|
||||
for="groupId"
|
||||
class="block text-sm font-medium text-gray-700 mb-2"
|
||||
>
|
||||
Newsletter auswählen *
|
||||
</label>
|
||||
<select
|
||||
@@ -22,18 +34,30 @@
|
||||
required
|
||||
class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500"
|
||||
>
|
||||
<option value="">Bitte wählen Sie einen Newsletter</option>
|
||||
<option v-for="group in groups" :key="group.id" :value="group.id">
|
||||
<option value="">
|
||||
Bitte wählen Sie einen Newsletter
|
||||
</option>
|
||||
<option
|
||||
v-for="group in groups"
|
||||
:key="group.id"
|
||||
:value="group.id"
|
||||
>
|
||||
{{ group.name }}
|
||||
</option>
|
||||
</select>
|
||||
<p v-if="selectedGroup?.description" class="mt-2 text-sm text-gray-600">
|
||||
<p
|
||||
v-if="selectedGroup?.description"
|
||||
class="mt-2 text-sm text-gray-600"
|
||||
>
|
||||
{{ selectedGroup.description }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="email" class="block text-sm font-medium text-gray-700 mb-2">
|
||||
<label
|
||||
for="email"
|
||||
class="block text-sm font-medium text-gray-700 mb-2"
|
||||
>
|
||||
E-Mail-Adresse *
|
||||
</label>
|
||||
<input
|
||||
@@ -43,14 +67,20 @@
|
||||
required
|
||||
class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500"
|
||||
placeholder="ihre.email@example.com"
|
||||
/>
|
||||
>
|
||||
</div>
|
||||
|
||||
<div v-if="error" class="p-4 bg-red-50 border border-red-200 rounded-lg text-red-700">
|
||||
<div
|
||||
v-if="error"
|
||||
class="p-4 bg-red-50 border border-red-200 rounded-lg text-red-700"
|
||||
>
|
||||
{{ error }}
|
||||
</div>
|
||||
|
||||
<div v-if="success" class="p-4 bg-green-50 border border-green-200 rounded-lg text-green-700">
|
||||
<div
|
||||
v-if="success"
|
||||
class="p-4 bg-green-50 border border-green-200 rounded-lg text-green-700"
|
||||
>
|
||||
{{ success }}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user