tinyzoo 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/app/components/CmsDayPicker.vue +5 -1
  2. package/app/components/CmsFieldColor.vue +3 -3
  3. package/app/components/CmsFieldDate.vue +5 -3
  4. package/app/components/CmsFieldGallery.vue +1 -1
  5. package/app/components/CmsFieldRelationOne.vue +1 -1
  6. package/app/components/CmsFieldText.vue +1 -1
  7. package/app/components/CmsListFilters.vue +1 -1
  8. package/app/components/CmsMoment.vue +1 -1
  9. package/app/components/CmsPasswordInput.vue +1 -1
  10. package/app/components/CmsPreviewPanel.vue +4 -4
  11. package/app/components/CmsPublishReview.vue +1 -1
  12. package/app/components/CmsRevisions.vue +1 -1
  13. package/app/components/CmsRichTextEditor.vue +3 -3
  14. package/app/components/CmsSingletonForm.vue +1 -1
  15. package/app/components/CmsTreeList.vue +3 -3
  16. package/app/i18n/cs.ts +43 -0
  17. package/app/i18n/de.ts +43 -0
  18. package/app/i18n/en.ts +43 -0
  19. package/app/middleware/cms-auth.global.ts +1 -1
  20. package/app/pages/admin/[entity]/[id].vue +9 -9
  21. package/app/pages/admin/[entity]/index.vue +7 -7
  22. package/app/pages/admin/account.vue +96 -4
  23. package/app/pages/admin/email/[token].vue +70 -0
  24. package/app/pages/admin/email/revert/[token].vue +70 -0
  25. package/app/pages/admin/media.vue +1 -1
  26. package/app/pages/admin/privacy.vue +6 -2
  27. package/app/pages/admin/styleguide.vue +1 -1
  28. package/app/pages/admin/team.vue +75 -2
  29. package/app/utils/cmsIssues.ts +2 -0
  30. package/package.json +9 -10
  31. package/server/api/cms/_auth/email/[token].get.ts +16 -0
  32. package/server/api/cms/_auth/email/confirm.post.ts +73 -0
  33. package/server/api/cms/_auth/email/index.delete.ts +11 -0
  34. package/server/api/cms/_auth/email/index.get.ts +10 -0
  35. package/server/api/cms/_auth/email/index.post.ts +86 -0
  36. package/server/api/cms/_auth/email/revert/[token].get.ts +15 -0
  37. package/server/api/cms/_auth/email/revert.post.ts +68 -0
  38. package/server/api/cms/_collab/socket.ts +68 -20
  39. package/server/api/cms/_privacy/export.post.ts +5 -1
  40. package/server/api/cms/_privacy/lookup.post.ts +5 -2
  41. package/server/api/cms/_users/[id].delete.ts +3 -0
  42. package/server/api/cms/_users/[id].patch.ts +114 -13
  43. package/server/api/cms/_users/index.post.ts +2 -1
  44. package/server/store/redis.ts +9 -1
  45. package/server/utils/cmsAudit.ts +10 -2
  46. package/server/utils/cmsAuth.ts +15 -4
  47. package/server/utils/cmsCollabServer.ts +22 -9
  48. package/server/utils/cmsEmailChange.ts +193 -0
  49. package/server/utils/cmsEmailChangeRules.ts +108 -0
  50. package/server/utils/cmsEmails.ts +155 -9
  51. package/server/utils/cmsPrivacy.ts +60 -11
  52. package/server/utils/cmsRetention.ts +4 -0
  53. package/src/system.ts +1 -1
  54. package/starter/package.json +2 -2
@@ -2,6 +2,7 @@
2
2
  // A day (YYYY-MM-DD) from the admin's calendar, for small places like list filters:
3
3
  // a button with the day ("14. 11. 2026") that opens the same calendar the date
4
4
  // field uses, never the browser's own date box.
5
+ import type { ButtonProps } from '@nuxt/ui'
5
6
  import { CalendarDate } from '@internationalized/date'
6
7
 
7
8
  const props = defineProps<{ label: string; placeholder?: string }>()
@@ -20,6 +21,9 @@ const value = computed({
20
21
  open.value = false
21
22
  },
22
23
  })
24
+ // Nuxt UI types the arrows as ButtonProps only, yet v-binds them, so HTML attributes reach the button.
25
+ const prevMonth = computed(() => ({ 'aria-label': t('fields.prevMonth') }) as ButtonProps)
26
+ const nextMonth = computed(() => ({ 'aria-label': t('fields.nextMonth') }) as ButtonProps)
23
27
  const shown = computed(() => (model.value ? formatDateWith(`${model.value}T12:00:00`, { dateStyle: 'medium' }) : ''))
24
28
  </script>
25
29
 
@@ -33,7 +37,7 @@ const shown = computed(() => (model.value ? formatDateWith(`${model.value}T12:00
33
37
  <div class="p-2">
34
38
  <UCalendar
35
39
  v-model="value" :locale="locale" :week-starts-on="1" weekday-format="short" :year-controls="false" :fixed-weeks="false"
36
- :calendar-label="label" :prev-month="{ 'aria-label': t('fields.prevMonth') }" :next-month="{ 'aria-label': t('fields.nextMonth') }"
40
+ :calendar-label="label" :prev-month="prevMonth" :next-month="nextMonth"
37
41
  />
38
42
  <div v-if="model" class="flex justify-end pt-1">
39
43
  <UButton size="xs" color="neutral" variant="ghost" @click="value = undefined">{{ t('fields.clear') }}</UButton>
@@ -32,10 +32,10 @@ const showHint = computed(() => touched.value && !!model.value && !valid.value)
32
32
  <input type="color" class="absolute inset-0 size-full cursor-pointer opacity-0" :value="valid ? model! : '#000000'" :aria-label="t('fields.pickColor')" @input="onPick">
33
33
  </label>
34
34
  <UInput
35
- :id="id" v-model="model" :variant="variant" placeholder="#1f6feb" class="w-32" maxlength="7"
36
- :ui="{ base: 'font-mono text-[0.8125rem] uppercase' }" :aria-invalid="showHint" @blur="normalize"
35
+ :id="id" :model-value="model ?? undefined" :variant="variant" placeholder="#1f6feb" class="w-32" maxlength="7"
36
+ :ui="{ base: 'font-mono text-[0.8125rem] uppercase' }" :aria-invalid="showHint" @update:model-value="model = $event" @blur="normalize"
37
37
  />
38
- <UButton v-if="model && field.optional" color="neutral" variant="ghost" size="sm" icon="i-lucide-x" :aria-label="t('fields.clear')" @click="model = null" />
38
+ <UButton v-if="model && field.optional" color="neutral" variant="ghost" size="sm" icon="i-lucide-x" :aria-label="t('fields.clear')" @click="() => { model = null }" />
39
39
  </div>
40
40
  <p v-if="showHint" class="mt-1 text-sm text-error">{{ t('fields.colorHint') }}</p>
41
41
  </div>
@@ -5,6 +5,7 @@
5
5
  // The day is picked from a calendar ("Saturday 13 June 2026"), the time typed beside
6
6
  // it. `f.datetime({ allDay: true })` adds "All day": the time goes away and the value
7
7
  // is stored at 0:00.
8
+ import type { ButtonProps } from '@nuxt/ui'
8
9
  import { CalendarDate } from '@internationalized/date'
9
10
 
10
11
  const props = defineProps<{ field: any; entity?: string; id?: string }>()
@@ -34,10 +35,11 @@ function write(d: string, hm: string) {
34
35
 
35
36
  const open = ref(false)
36
37
  // The calendar's own words otherwise stay English ("Event date", "Previous month").
38
+ // Nuxt UI types the arrows as ButtonProps only, yet v-binds them, so HTML attributes reach the button.
37
39
  const calendarLabels = computed(() => ({
38
40
  calendarLabel: fieldLabel(props.field),
39
- prevMonth: { 'aria-label': t('fields.prevMonth') },
40
- nextMonth: { 'aria-label': t('fields.nextMonth') },
41
+ prevMonth: { 'aria-label': t('fields.prevMonth') } as ButtonProps,
42
+ nextMonth: { 'aria-label': t('fields.nextMonth') } as ButtonProps,
41
43
  }))
42
44
  const calendarValue = computed({
43
45
  get: () => {
@@ -123,7 +125,7 @@ const shortShown = computed(() => {
123
125
  />
124
126
  <UButton
125
127
  v-if="model && field.optional" :id="clearId" color="neutral" variant="ghost" icon="i-lucide-x" :aria-label="t('fields.clear')"
126
- @click="model = null"
128
+ @click="() => { model = null }"
127
129
  />
128
130
  </div>
129
131
  <UCheckbox v-if="canAllDay" :id="allDayId" :model-value="allDay" :label="t('fields.allDay')" class="mt-2.5" @update:model-value="setAllDay" />
@@ -107,7 +107,7 @@ async function upload(files: FileList | null) {
107
107
  </ol>
108
108
  <div class="flex flex-wrap gap-2">
109
109
  <UButton size="sm" color="neutral" variant="outline" icon="i-lucide-upload" :loading="uploading > 0" @click="fileInput?.click()">{{ t('media.upload') }}</UButton>
110
- <UButton size="sm" color="neutral" variant="ghost" icon="i-lucide-images" @click="libraryOpen = true">{{ t('media.browse') }}</UButton>
110
+ <UButton size="sm" color="neutral" variant="ghost" icon="i-lucide-images" @click="() => { libraryOpen = true }">{{ t('media.browse') }}</UButton>
111
111
  <span v-if="items.length" class="self-center text-xs text-muted">{{ t('fields.galleryCount', { count: items.length }) }}</span>
112
112
  </div>
113
113
  </div>
@@ -41,7 +41,7 @@ const variant = computed(() => injected?.value ?? 'outline')
41
41
  />
42
42
  <UButton
43
43
  v-if="model && field.optional" color="neutral" variant="ghost" icon="i-lucide-x" :aria-label="t('fields.clear')"
44
- @click="model = null"
44
+ @click="() => { model = null }"
45
45
  />
46
46
  </div>
47
47
  </template>
@@ -50,7 +50,7 @@ const pickedRef = computed(() => (asRefs.value && typeof model.value === 'string
50
50
  <CmsLinkPicker :initial="null" refs @pick="onPick" />
51
51
  </template>
52
52
  </UPopover>
53
- <UButton size="xs" color="neutral" variant="ghost" icon="i-lucide-x" :aria-label="t('link.remove')" @click="model = ''" />
53
+ <UButton size="xs" color="neutral" variant="ghost" icon="i-lucide-x" :aria-label="t('link.remove')" @click="() => { model = '' }" />
54
54
  </div>
55
55
  <UInput v-else :id="id" v-model="model" :variant="variant" :placeholder="variant === 'ghost' ? t('fields.notSet') : undefined" class="w-full" :maxlength="max" :icon="icon" :ui="href || pickable ? { trailing: 'pe-1.5' } : undefined">
56
56
  <template v-if="href || pickable" #trailing>
@@ -91,7 +91,7 @@ const setDate = (param: string, v: string, part: 'from' | 'to') => {
91
91
  <CmsDayPicker :label="`${fieldLabel(f)} ${t('list.filterTo')}`" :placeholder="t('list.filterTo')" :model-value="dateValue(`filter.${f.key}.to`)" @update:model-value="(v: string) => setDate(`filter.${f.key}.to`, v, 'to')" />
92
92
  </div>
93
93
  </div>
94
- <UButton v-if="count" color="neutral" variant="link" size="sm" class="px-0" @click="model = {}">{{ t('list.filterClear') }}</UButton>
94
+ <UButton v-if="count" color="neutral" variant="link" size="sm" class="px-0" @click="() => { model = {} }">{{ t('list.filterClear') }}</UButton>
95
95
  </div>
96
96
  </template>
97
97
  </UPopover>
@@ -36,7 +36,7 @@ onBeforeUnmount(() => { if (timer) clearTimeout(timer) })
36
36
  <slot />
37
37
  </div>
38
38
  </div>
39
- <UButton color="neutral" variant="ghost" size="xs" icon="i-lucide-x" class="-mr-1 -mt-1" :aria-label="t('common.close')" @click="open = false" />
39
+ <UButton color="neutral" variant="ghost" size="xs" icon="i-lucide-x" class="-mr-1 -mt-1" :aria-label="t('common.close')" @click="() => { open = false }" />
40
40
  </div>
41
41
  </Teleport>
42
42
  </template>
@@ -15,7 +15,7 @@ const { t } = useCmsI18n()
15
15
  <UButton
16
16
  color="neutral" variant="link" size="sm" :icon="visible ? 'i-lucide-eye-off' : 'i-lucide-eye'"
17
17
  :aria-label="visible ? t('auth.hidePassword') : t('auth.showPassword')" :aria-pressed="visible"
18
- @click="visible = !visible"
18
+ @click="() => { visible = !visible }"
19
19
  />
20
20
  </template>
21
21
  </UInput>
@@ -98,15 +98,15 @@ onBeforeUnmount(() => {
98
98
  <span class="text-xs text-muted mr-2 max-sm:hidden">{{ t('editor.previewHint') }}</span>
99
99
  <UButton
100
100
  size="xs" variant="ghost" :color="width === 'desktop' ? 'primary' : 'neutral'" icon="i-lucide-monitor"
101
- :aria-label="t('editor.previewDesktop')" :aria-pressed="width === 'desktop'" @click="width = 'desktop'"
101
+ :aria-label="t('editor.previewDesktop')" :aria-pressed="width === 'desktop'" @click="() => { width = 'desktop' }"
102
102
  />
103
103
  <UButton
104
104
  size="xs" variant="ghost" :color="width === 'phone' ? 'primary' : 'neutral'" icon="i-lucide-smartphone"
105
- :aria-label="t('editor.previewPhone')" :aria-pressed="width === 'phone'" @click="width = 'phone'"
105
+ :aria-label="t('editor.previewPhone')" :aria-pressed="width === 'phone'" @click="() => { width = 'phone' }"
106
106
  />
107
107
  </div>
108
108
  <div class="flex items-center gap-1">
109
- <UButton size="xs" variant="ghost" color="neutral" icon="i-lucide-rotate-cw" :aria-label="t('editor.previewReload')" @click="reloads++" />
109
+ <UButton size="xs" variant="ghost" color="neutral" icon="i-lucide-rotate-cw" :aria-label="t('editor.previewReload')" @click="() => { reloads++ }" />
110
110
  <UButton size="xs" variant="ghost" color="neutral" icon="i-lucide-external-link" :to="url" target="_blank" :aria-label="t('editor.preview')" />
111
111
  <UButton size="xs" variant="ghost" color="neutral" icon="i-lucide-x" :aria-label="t('common.close')" @click="emit('close')" />
112
112
  </div>
@@ -118,7 +118,7 @@ onBeforeUnmount(() => {
118
118
  <p class="mt-1 text-sm text-muted text-pretty">
119
119
  {{ problem.status === 404 ? t('editor.previewMissingBody', { path }) : t('editor.previewErrorBody', { status: problem.status }) }}
120
120
  </p>
121
- <UButton class="mt-4" size="sm" color="neutral" variant="outline" icon="i-lucide-rotate-cw" @click="reloads++">{{ t('editor.previewReload') }}</UButton>
121
+ <UButton class="mt-4" size="sm" color="neutral" variant="outline" icon="i-lucide-rotate-cw" @click="() => { reloads++ }">{{ t('editor.previewReload') }}</UButton>
122
122
  </div>
123
123
  </div>
124
124
  <div v-else class="cms-preview__stage">
@@ -41,7 +41,7 @@ const bird = cmsCharacter('bird')
41
41
  >
42
42
  <template #body>
43
43
  <div class="flex h-14 items-center justify-between border-b border-default px-3 sm:px-6">
44
- <UButton color="neutral" variant="ghost" icon="i-lucide-chevron-left" class="-ml-1.5" @click="open = false">{{ t('review.back') }}</UButton>
44
+ <UButton color="neutral" variant="ghost" icon="i-lucide-chevron-left" class="-ml-1.5" @click="() => { open = false }">{{ t('review.back') }}</UButton>
45
45
  </div>
46
46
  <div class="mx-auto w-full max-w-2xl px-4 py-8 sm:py-12">
47
47
  <div class="flex items-start justify-between gap-6">
@@ -187,7 +187,7 @@ function restore() {
187
187
  </template>
188
188
  <template #footer>
189
189
  <div class="flex w-full items-center justify-end gap-2">
190
- <UButton color="neutral" variant="ghost" @click="open = false">{{ t('common.close') }}</UButton>
190
+ <UButton color="neutral" variant="ghost" @click="() => { open = false }">{{ t('common.close') }}</UButton>
191
191
  <UButton :disabled="!selected || !differences.length" :loading="loading" icon="i-lucide-history" @click="restore">{{ t('revisions.restore') }}</UButton>
192
192
  </div>
193
193
  </template>
@@ -251,15 +251,15 @@ const tools = computed<Tool[]>(() => {
251
251
  </UPopover>
252
252
  <UButton
253
253
  icon="i-lucide-image" size="xs" variant="ghost" color="neutral"
254
- :aria-label="t('fields.toolbar.image')" @click="libraryOpen = true"
254
+ :aria-label="t('fields.toolbar.image')" @click="() => { libraryOpen = true }"
255
255
  />
256
256
  <UButton
257
257
  v-if="editor.isActive('image')" icon="i-lucide-text-quote" size="xs" variant="ghost" color="neutral"
258
258
  :aria-label="t('fields.toolbar.imageAlt')" @click="editAlt"
259
259
  >{{ t('fields.toolbar.imageAlt') }}</UButton>
260
260
  <div class="ml-auto flex gap-0.5">
261
- <UButton icon="i-lucide-undo-2" size="xs" variant="ghost" color="neutral" :aria-label="t('fields.toolbar.undo')" @click="editor.chain().focus().undo().run()" />
262
- <UButton icon="i-lucide-redo-2" size="xs" variant="ghost" color="neutral" :aria-label="t('fields.toolbar.redo')" @click="editor.chain().focus().redo().run()" />
261
+ <UButton icon="i-lucide-undo-2" size="xs" variant="ghost" color="neutral" :aria-label="t('fields.toolbar.undo')" @click="() => { editor?.chain().focus().undo().run() }" />
262
+ <UButton icon="i-lucide-redo-2" size="xs" variant="ghost" color="neutral" :aria-label="t('fields.toolbar.redo')" @click="() => { editor?.chain().focus().redo().run() }" />
263
263
  </div>
264
264
  </div>
265
265
  <EditorContent :editor="editor" class="cms-prose" />
@@ -211,7 +211,7 @@ defineShortcuts({ meta_s: { usingInput: true, handler: () => { if (!saving.value
211
211
  :class="split ? 'bg-(--cms-nav-active)' : ''" :aria-pressed="split" :aria-label="t('editor.preview')" @click="togglePreview"
212
212
  ><span class="max-sm:hidden">{{ t('editor.preview') }}</span></UButton>
213
213
  <UTooltip v-if="!readOnly" :text="t('editor.shortcutSave')">
214
- <UButton :loading="saving" @click="save()">
214
+ <UButton :loading="saving" @click="() => { save() }">
215
215
  {{ isTranslation ? t('translation.save') : t('common.save') }}
216
216
  </UButton>
217
217
  </UTooltip>
@@ -315,7 +315,7 @@ const canMove = computed(() => props.meta?.can?.update !== false)
315
315
  v-model="q" icon="i-lucide-search" :placeholder="t('common.search')" size="sm" variant="ghost" class="w-full sm:w-64" :aria-label="t('common.search')"
316
316
  >
317
317
  <template v-if="q" #trailing>
318
- <UButton color="neutral" variant="link" size="xs" icon="i-lucide-x" :aria-label="t('common.clear')" @click="q = ''" />
318
+ <UButton color="neutral" variant="link" size="xs" icon="i-lucide-x" :aria-label="t('common.clear')" @click="() => { q = '' }" />
319
319
  </template>
320
320
  </UInput>
321
321
  <UTooltip v-if="branches.length" :text="allOpen ? t('tree.collapseAll') : t('tree.expandAll')">
@@ -339,7 +339,7 @@ const canMove = computed(() => props.meta?.can?.update !== false)
339
339
  </CmsEmptyState>
340
340
  <CmsEmptyState v-else-if="!shown.length" variant="no-results" :title="t('list.noResultsTitle', { q })" :description="t('list.noResultsDescription')">
341
341
  <template #actions>
342
- <UButton color="neutral" variant="outline" @click="q = ''">{{ t('list.clearSearch') }}</UButton>
342
+ <UButton color="neutral" variant="outline" @click="() => { q = '' }">{{ t('list.clearSearch') }}</UButton>
343
343
  </template>
344
344
  </CmsEmptyState>
345
345
 
@@ -428,7 +428,7 @@ const canMove = computed(() => props.meta?.can?.update !== false)
428
428
  </template>
429
429
  <template #footer>
430
430
  <div class="flex justify-end gap-2 w-full">
431
- <UButton color="neutral" variant="ghost" @click="dialog = null">{{ t('common.cancel') }}</UButton>
431
+ <UButton color="neutral" variant="ghost" @click="() => { dialog = null }">{{ t('common.cancel') }}</UButton>
432
432
  <UButton icon="i-lucide-folder-input" :loading="moving" @click="confirmMove">{{ t('tree.moveConfirm') }}</UButton>
433
433
  </div>
434
434
  </template>
package/app/i18n/cs.ts CHANGED
@@ -449,6 +449,23 @@ export default {
449
449
  poweredBy: 'Správa obsahu',
450
450
  signedOutTitle: 'Byli jste odhlášeni',
451
451
  signedOutBody: 'Přihlaste se znovu a vrátíme vás na stránku, kde jste byli.',
452
+ emailConfirmTabTitle: 'Nový e-mail',
453
+ emailConfirmTitle: 'Potvrďte nový e-mail',
454
+ emailConfirmBody: 'Do webu {site} se odteď budete přihlašovat adresou {email}.',
455
+ emailConfirmAction: 'Potvrdit novou adresu',
456
+ emailConfirmedTitle: 'E-mail je změněný',
457
+ emailConfirmedBody: 'Odteď se přihlašujte adresou {email}. Na ostatních zařízeních jste byli odhlášeni.',
458
+ emailConfirmedSignIn: 'Přihlásit se',
459
+ emailConfirmedContinue: 'Přejít do administrace',
460
+ emailLinkExpired: 'Vypršel, už byl použit, nebo jste mezitím požádali o jinou změnu. O nový odkaz požádejte na stránce Váš účet.',
461
+ emailTakenTitle: 'Tato adresa je obsazená',
462
+ emailTakenBody: 'Adresu {email} už používá jiný účet, takže se nic nezměnilo.',
463
+ emailRevertTabTitle: 'Vrátit změnu e-mailu',
464
+ emailRevertTitle: 'Vraťte si účet',
465
+ emailRevertBody: 'Vašemu účtu na webu {site} se jako přihlašovací e-mail vrátí adresa {email}. Nastavte si i nové heslo: kdo změnu udělal, znal to staré. Všichni ostatní se odhlásí.',
466
+ emailRevertAction: 'Vrátit adresu a uložit heslo',
467
+ emailRevertExpired: 'Vypršel, nebo už byl použit. Pokud váš účet má pořád někdo jiný, obraťte se na administrátora webu.',
468
+ emailRevertTakenBody: 'Adresu {email} teď používá jiný účet, takže se nic nezměnilo. Obraťte se na administrátora webu.',
452
469
  },
453
470
  roles: {
454
471
  admin: { name: 'Administrátor', description: 'Všechno, včetně lidí a nastavení webu.' },
@@ -502,6 +519,15 @@ export default {
502
519
  actionFailed: 'To se nepovedlo',
503
520
  adminsOnly: 'Tým mohou spravovat jen administrátoři.',
504
521
  inviteCreated: 'Odkaz pro pozvání: {email}',
522
+ changeEmail: 'Změnit e-mail',
523
+ changeEmailTitle: 'Změnit e-mail: {name}',
524
+ changeEmailBody: 'Bude se přihlašovat novou adresou. Na všech zařízeních se odhlásí a na obě adresy přijde e-mail o změně.',
525
+ changeEmailInvitedBody: 'Pozvánka odejde na novou adresu a odkaz poslaný na tu starou přestane platit.',
526
+ newEmail: 'Nová e-mailová adresa',
527
+ emailChanged: 'E-mail změněn',
528
+ changeEmailDisabledBody: 'Má zablokovaný přístup, takže na žádnou z adres nic nepřijde. Až mu přístup zase povolíte, bude se přihlašovat novou adresou.',
529
+ yourPassword: 'Vaše heslo',
530
+ yourPasswordHint: 'Vaše vlastní, aby k přesunu cizího účtu nestačilo jen otevřené přihlášení.',
505
531
  },
506
532
  privacy: {
507
533
  title: 'Soukromí',
@@ -516,6 +542,7 @@ export default {
516
542
  noSubmissions: 'Z této adresy nepřišla žádná zpráva.',
517
543
  account: 'Účet v administraci',
518
544
  noAccount: 'Žádný účet s touto adresou.',
545
+ emailChanges: 'Tuto adresu uvádí změna přihlašovacího e-mailu: buď čeká na potvrzení, nebo jde o cestu zpět po změně.',
519
546
  activity: 'Záznam aktivity',
520
547
  noActivity: 'Žádné záznamy k této adrese.',
521
548
  activityBody: 'Záznamy, které tento účet vytvořil, záznamy o něm (pozvánka, role) a neúspěšná přihlášení s touto adresou. Jsou součástí exportu.',
@@ -528,6 +555,7 @@ export default {
528
555
  eraseTitle: 'Smazat vše, co je uložené k adrese {email}?',
529
556
  // The confirmation lists what this lookup found, one line each (only what exists).
530
557
  eraseSubmissions: { one: '{count} zpráva z formuláře se smaže i s uloženými verzemi.', few: '{count} zprávy z formulářů se smažou i s uloženými verzemi.', other: '{count} zpráv z formulářů se smaže i s uloženými verzemi.' },
558
+ eraseEmailChanges: 'Čekající změna přihlašovacího e-mailu na tuto adresu nebo cesta zpět na ni se zruší.',
531
559
  eraseAccount: 'Účet s touto adresou se zablokuje a anonymizuje: zmizí jméno a e-mail, ale to, co v administraci udělal, zůstane pod označením „smazaný účet“.',
532
560
  eraseActivity: { one: 'V záznamu aktivity ({count} záznam) zmizí jméno, e-mail a IP adresa.', few: 'V záznamu aktivity ({count} záznamy) zmizí jméno, e-mail a IP adresa.', other: 'V záznamu aktivity ({count} záznamů) zmizí jméno, e-mail a IP adresa.' },
533
561
  eraseUndone: 'Nejde to vrátit zpět.',
@@ -548,6 +576,21 @@ export default {
548
576
  changePassword: 'Změnit heslo',
549
577
  saved: 'Uloženo',
550
578
  passwordChanged: 'Heslo změněno',
579
+ signInEmail: 'Přihlašovací e-mail',
580
+ signInEmailDescription: 'Touto adresou se přihlašujete. Nová začne platit, až ji potvrdíte z e-mailu, který na ni pošleme.',
581
+ currentEmail: 'Současný e-mail',
582
+ newEmail: 'Nová e-mailová adresa',
583
+ passwordToConfirm: 'Vaše heslo',
584
+ passwordToConfirmHint: 'Abychom věděli, že jste to opravdu vy.',
585
+ changeEmail: 'Změnit e-mail',
586
+ emailSent: 'Podívejte se do nové schránky',
587
+ emailPendingTitle: 'Čeká na potvrzení adresy {email}',
588
+ emailPendingBody: 'Na tuto adresu jsme poslali odkaz. Změnu dokončíte jeho otevřením; platí 24 hodin. Do té doby se přihlašujte současnou adresou.',
589
+ emailNotArrived: 'E-mail nepřišel ani po pár minutách? Podívejte se do spamu a zkontrolujte, že je adresa správně, a pošlete ho znovu. E-mail vám může změnit i administrátor v sekci Tým.',
590
+ cancelEmailChange: 'Zrušit změnu',
591
+ emailChangeCancelled: 'Změna zrušena',
592
+ sameEmail: 'Tuto adresu už máte',
593
+ demoEmail: 'Do ukázky se přihlašují všichni stejně, takže e-mail tu měnit nejde.',
551
594
  },
552
595
  blocks: {
553
596
  add: 'Přidat blok',
package/app/i18n/de.ts CHANGED
@@ -449,6 +449,23 @@ export default {
449
449
  poweredBy: 'Inhaltsverwaltung',
450
450
  signedOutTitle: 'Sie wurden abgemeldet',
451
451
  signedOutBody: 'Melden Sie sich erneut an, dann landen Sie wieder auf der Seite, auf der Sie waren.',
452
+ emailConfirmTabTitle: 'Neue E-Mail',
453
+ emailConfirmTitle: 'Neue E-Mail bestätigen',
454
+ emailConfirmBody: 'Ab jetzt melden Sie sich bei {site} mit {email} an.',
455
+ emailConfirmAction: 'Neue Adresse bestätigen',
456
+ emailConfirmedTitle: 'Ihre E-Mail wurde geändert',
457
+ emailConfirmedBody: 'Melden Sie sich ab jetzt mit {email} an. Auf Ihren anderen Geräten wurden Sie abgemeldet.',
458
+ emailConfirmedSignIn: 'Anmelden',
459
+ emailConfirmedContinue: 'Zur Verwaltung',
460
+ emailLinkExpired: 'Er ist abgelaufen, wurde bereits verwendet, oder inzwischen wurde eine neuere Änderung angefordert. Fordern Sie auf Ihrer Kontoseite einen neuen an.',
461
+ emailTakenTitle: 'Diese Adresse ist vergeben',
462
+ emailTakenBody: '{email} wird schon von einem anderen Konto verwendet, daher wurde nichts geändert.',
463
+ emailRevertTabTitle: 'E-Mail-Änderung rückgängig machen',
464
+ emailRevertTitle: 'Holen Sie sich Ihr Konto zurück',
465
+ emailRevertBody: '{email} wird wieder die Anmelde-E-Mail Ihres Kontos bei {site}. Legen Sie auch ein neues Passwort fest: Wer die Änderung gemacht hat, kannte das alte. Alle anderen werden abgemeldet.',
466
+ emailRevertAction: 'Adresse zurückholen und Passwort speichern',
467
+ emailRevertExpired: 'Der Link ist abgelaufen oder wurde schon verwendet. Wenn noch jemand anderes Ihr Konto hat, wenden Sie sich an den Administrator der Website.',
468
+ emailRevertTakenBody: '{email} gehört jetzt zu einem anderen Konto, daher wurde nichts geändert. Wenden Sie sich an den Administrator der Website.',
452
469
  },
453
470
  roles: {
454
471
  admin: { name: 'Administrator', description: 'Alles, auch Teamverwaltung und Website-Einstellungen.' },
@@ -502,6 +519,15 @@ export default {
502
519
  actionFailed: 'Das hat nicht geklappt',
503
520
  adminsOnly: 'Nur Administratoren können das Team verwalten.',
504
521
  inviteCreated: 'Einladungslink für {email}',
522
+ changeEmail: 'E-Mail ändern',
523
+ changeEmailTitle: 'E-Mail von {name} ändern',
524
+ changeEmailBody: 'Die Person meldet sich dann mit der neuen Adresse an. Sie wird auf allen Geräten abgemeldet, und beide Adressen erhalten eine E-Mail dazu.',
525
+ changeEmailInvitedBody: 'Die Einladung geht an die neue Adresse, und der Link an die alte Adresse wird ungültig.',
526
+ newEmail: 'Neue E-Mail-Adresse',
527
+ emailChanged: 'E-Mail geändert',
528
+ changeEmailDisabledBody: 'Der Zugang ist gesperrt, daher geht an keine der Adressen eine E-Mail. Nach dem Entsperren meldet sich die Person mit der neuen Adresse an.',
529
+ yourPassword: 'Ihr Passwort',
530
+ yourPasswordHint: 'Ihr eigenes, damit eine offen gelassene Sitzung nicht reicht, um das Konto einer anderen Person umzuziehen.',
505
531
  },
506
532
  privacy: {
507
533
  title: 'Datenschutz',
@@ -516,6 +542,7 @@ export default {
516
542
  noSubmissions: 'Von dieser Adresse wurde keine Nachricht gesendet.',
517
543
  account: 'Konto in dieser Verwaltung',
518
544
  noAccount: 'Kein Konto mit dieser Adresse.',
545
+ emailChanges: 'Eine Änderung der Anmelde-E-Mail nennt diese Adresse: eine, die auf Bestätigung wartet, oder der Weg zurück nach einer Änderung.',
519
546
  activity: 'Aktivitätsprotokoll',
520
547
  noActivity: 'Keine Einträge zu dieser Adresse.',
521
548
  activityBody: 'Einträge, die dieses Konto erzeugt hat, Einträge über das Konto (Einladung, Rolle) und fehlgeschlagene Anmeldungen mit dieser Adresse. Sie sind im Export enthalten.',
@@ -528,6 +555,7 @@ export default {
528
555
  eraseTitle: 'Alles zu {email} löschen?',
529
556
  // The confirmation lists what this lookup found, one line each (only what exists).
530
557
  eraseSubmissions: { one: '{count} Formularnachricht wird endgültig gelöscht, samt gespeicherter Versionen.', other: '{count} Formularnachrichten werden endgültig gelöscht, samt gespeicherter Versionen.' },
558
+ eraseEmailChanges: 'Eine wartende Änderung der Anmelde-E-Mail auf diese Adresse oder der Weg zurück zu ihr wird abgebrochen.',
531
559
  eraseAccount: 'Das Konto mit dieser Adresse wird gesperrt und anonymisiert: Name und E-Mail werden entfernt, seine Aktionen bleiben unter „gelöschtes Konto“.',
532
560
  eraseActivity: { one: 'Im Aktivitätsprotokoll ({count} Eintrag) werden Name, E-Mail und IP-Adresse entfernt.', other: 'Im Aktivitätsprotokoll ({count} Einträge) werden Name, E-Mail und IP-Adresse entfernt.' },
533
561
  eraseUndone: 'Das lässt sich nicht rückgängig machen.',
@@ -548,6 +576,21 @@ export default {
548
576
  changePassword: 'Passwort ändern',
549
577
  saved: 'Gespeichert',
550
578
  passwordChanged: 'Passwort geändert',
579
+ signInEmail: 'Anmelde-E-Mail',
580
+ signInEmailDescription: 'Mit dieser Adresse melden Sie sich an. Eine neue gilt, sobald Sie sie über die E-Mail bestätigen, die wir an sie senden.',
581
+ currentEmail: 'Aktuelle E-Mail',
582
+ newEmail: 'Neue E-Mail-Adresse',
583
+ passwordToConfirm: 'Ihr Passwort',
584
+ passwordToConfirmHint: 'Damit wir wissen, dass Sie es wirklich sind.',
585
+ changeEmail: 'E-Mail ändern',
586
+ emailSent: 'Sehen Sie in Ihrem neuen Postfach nach',
587
+ emailPendingTitle: 'Wartet auf Bestätigung von {email}',
588
+ emailPendingBody: 'Wir haben einen Link an diese Adresse gesendet. Öffnen Sie ihn, um die Änderung abzuschließen; er ist 24 Stunden gültig. Bis dahin melden Sie sich weiter mit Ihrer aktuellen Adresse an.',
589
+ emailNotArrived: 'Nach ein paar Minuten keine E-Mail? Sehen Sie im Spam-Ordner nach, prüfen Sie die Adresse und senden Sie sie erneut. Ein Administrator kann Ihre E-Mail auch unter Team ändern.',
590
+ cancelEmailChange: 'Änderung abbrechen',
591
+ emailChangeCancelled: 'Änderung abgebrochen',
592
+ sameEmail: 'Das ist bereits Ihre Adresse',
593
+ demoEmail: 'Alle melden sich mit denselben Daten an der Demo an, daher bleibt ihre E-Mail unverändert.',
551
594
  },
552
595
  blocks: {
553
596
  add: 'Block hinzufügen',
package/app/i18n/en.ts CHANGED
@@ -450,6 +450,23 @@ export default {
450
450
  poweredBy: 'Content administration',
451
451
  signedOutTitle: 'You were signed out',
452
452
  signedOutBody: 'Sign in again and you’ll land back on the page you were on.',
453
+ emailConfirmTabTitle: 'New email',
454
+ emailConfirmTitle: 'Confirm your new email',
455
+ emailConfirmBody: 'From now on you’ll sign in to {site} with {email}.',
456
+ emailConfirmAction: 'Confirm the new address',
457
+ emailConfirmedTitle: 'Your email has changed',
458
+ emailConfirmedBody: 'Sign in with {email} from now on. You were signed out on your other devices.',
459
+ emailConfirmedSignIn: 'Sign in',
460
+ emailConfirmedContinue: 'Go to the administration',
461
+ emailLinkExpired: 'It has expired, was already used, or a newer change was asked for. Ask for a new one on your account page.',
462
+ emailTakenTitle: 'This address is taken',
463
+ emailTakenBody: 'Another account already uses {email}, so nothing was changed.',
464
+ emailRevertTabTitle: 'Undo the email change',
465
+ emailRevertTitle: 'Take your account back',
466
+ emailRevertBody: '{email} becomes the sign-in email of your account at {site} again. Choose a new password too: whoever made the change knew the old one. Everyone else is signed out.',
467
+ emailRevertAction: 'Restore the address and save the password',
468
+ emailRevertExpired: 'It has expired or was already used. If someone else still has your account, contact the administrator of the site.',
469
+ emailRevertTakenBody: 'Another account uses {email} now, so nothing was changed. Contact the administrator of the site.',
453
470
  },
454
471
  roles: {
455
472
  admin: { name: 'Administrator', description: 'Everything, including people and site settings.' },
@@ -503,6 +520,15 @@ export default {
503
520
  actionFailed: 'That did not work',
504
521
  adminsOnly: 'Only administrators can manage the team.',
505
522
  inviteCreated: 'Invitation link for {email}',
523
+ changeEmail: 'Change email',
524
+ changeEmailTitle: 'Change the email of {name}',
525
+ changeEmailBody: 'They will sign in with the new address. They are signed out on every device, and both addresses get an email about it.',
526
+ changeEmailInvitedBody: 'The invitation goes to the new address, and the link sent to the old one stops working.',
527
+ newEmail: 'New email address',
528
+ emailChanged: 'Email changed',
529
+ changeEmailDisabledBody: 'Their access is disabled, so no email goes to either address. They will sign in with the new one once you enable them again.',
530
+ yourPassword: 'Your password',
531
+ yourPasswordHint: 'Your own, so that a session left open is not enough to move someone’s account.',
506
532
  },
507
533
  privacy: {
508
534
  title: 'Privacy',
@@ -517,6 +543,7 @@ export default {
517
543
  noSubmissions: 'No messages sent from this address.',
518
544
  account: 'Account in this administration',
519
545
  noAccount: 'No account with this address.',
546
+ emailChanges: 'A change of sign-in email names this address: one waiting for confirmation, or the way back after one.',
520
547
  activity: 'Activity log',
521
548
  noActivity: 'No entries about this address.',
522
549
  activityBody: 'Entries made by this account, entries about it (invitation, role) and failed sign-ins with this address. Included in the export.',
@@ -529,6 +556,7 @@ export default {
529
556
  eraseTitle: 'Delete everything stored about {email}?',
530
557
  // The confirmation lists what this lookup found, one line each (only what exists).
531
558
  eraseSubmissions: { one: '{count} form message is deleted for good, with its saved versions.', other: '{count} form messages are deleted for good, with their saved versions.' },
559
+ eraseEmailChanges: 'A waiting change of sign-in email to this address, or the way back to it, is cancelled.',
532
560
  eraseAccount: 'The account with this address is disabled and anonymised: its name and email are removed, but what it did stays under “deleted account”.',
533
561
  eraseActivity: { one: 'In the activity log ({count} entry), the name, email and IP address are removed.', other: 'In the activity log ({count} entries), the name, email and IP address are removed.' },
534
562
  eraseUndone: 'This cannot be undone.',
@@ -549,6 +577,21 @@ export default {
549
577
  changePassword: 'Change password',
550
578
  saved: 'Saved',
551
579
  passwordChanged: 'Password changed',
580
+ signInEmail: 'Sign-in email',
581
+ signInEmailDescription: 'You sign in with this address. A new one starts working once you confirm it from the email we send to it.',
582
+ currentEmail: 'Current email',
583
+ newEmail: 'New email address',
584
+ passwordToConfirm: 'Your password',
585
+ passwordToConfirmHint: 'So we know it’s really you.',
586
+ changeEmail: 'Change email',
587
+ emailSent: 'Check your new mailbox',
588
+ emailPendingTitle: 'Waiting for confirmation of {email}',
589
+ emailPendingBody: 'We sent a link to this address. Open it to finish the change; it works for 24 hours. Until then, keep signing in with your current address.',
590
+ emailNotArrived: 'No email after a few minutes? Check the spam folder and that the address is right, then send it again. An administrator can also change your email in Team.',
591
+ cancelEmailChange: 'Cancel the change',
592
+ emailChangeCancelled: 'Change cancelled',
593
+ sameEmail: 'This is already your address',
594
+ demoEmail: 'Everyone signs in to the demo with the same details, so its email stays as it is.',
552
595
  },
553
596
  blocks: {
554
597
  add: 'Add block',
@@ -1,6 +1,6 @@
1
1
  // Admin routes need a signed-in session; the sign-in pages are the exception (and
2
2
  // send someone who is already signed in straight to the admin).
3
- const PUBLIC = ['/admin/login', '/admin/setup', '/admin/forgot', '/admin/reset/', '/admin/invite/']
3
+ const PUBLIC = ['/admin/login', '/admin/setup', '/admin/forgot', '/admin/reset/', '/admin/invite/', '/admin/email/']
4
4
 
5
5
  export default defineNuxtRouteMiddleware((to) => {
6
6
  if (!to.path.startsWith('/admin')) return
@@ -801,11 +801,11 @@ defineShortcuts({ meta_s: { usingInput: true, handler: () => { if (!saving.value
801
801
  </UButton>
802
802
  </UDropdownMenu>
803
803
  <UTooltip v-if="!isNew" :text="t('revisions.open')">
804
- <UButton variant="ghost" color="neutral" icon="i-lucide-history" :aria-label="t('revisions.open')" class="max-md:hidden" @click="historyOpen = true" />
804
+ <UButton variant="ghost" color="neutral" icon="i-lucide-history" :aria-label="t('revisions.open')" class="max-md:hidden" @click="() => { historyOpen = true }" />
805
805
  </UTooltip>
806
806
  <UButton
807
807
  v-if="arrangement === 'write' && wide && !split" color="neutral" variant="outline" icon="i-lucide-sliders-horizontal"
808
- :class="detailsOpen ? 'bg-(--cms-nav-active)' : ''" :aria-pressed="detailsOpen" @click="detailsOpen = !detailsOpen"
808
+ :class="detailsOpen ? 'bg-(--cms-nav-active)' : ''" :aria-pressed="detailsOpen" @click="() => { detailsOpen = !detailsOpen }"
809
809
  >{{ t('editor.details') }}</UButton>
810
810
  <!-- phones: the details sit under the text; this says they exist and goes there -->
811
811
  <UButton
@@ -819,18 +819,18 @@ defineShortcuts({ meta_s: { usingInput: true, handler: () => { if (!saving.value
819
819
 
820
820
  <!-- one primary action (none for someone who cannot save here) -->
821
821
  <template v-if="readOnly" />
822
- <UButton v-else-if="isTranslation" :loading="saving" @click="save()">{{ t('translation.save') }}</UButton>
822
+ <UButton v-else-if="isTranslation" :loading="saving" @click="() => { save() }">{{ t('translation.save') }}</UButton>
823
823
  <template v-else-if="publish && canPublish">
824
- <UButton v-if="isPublished && !isNew" :loading="saving" @click="save()">{{ futureDate ? t('editor.saveChanges') : t('editor.update') }}</UButton>
824
+ <UButton v-if="isPublished && !isNew" :loading="saving" @click="() => { save() }">{{ futureDate ? t('editor.saveChanges') : t('editor.update') }}</UButton>
825
825
  <template v-else>
826
- <UButton color="neutral" variant="outline" :loading="saving" class="max-md:hidden" @click="save()">{{ t('editor.saveDraft') }}</UButton>
826
+ <UButton color="neutral" variant="outline" :loading="saving" class="max-md:hidden" @click="() => { save() }">{{ t('editor.saveDraft') }}</UButton>
827
827
  <!-- phones: with unsaved changes the bar offers Save (Publish waits in the menu), otherwise Publish -->
828
- <UButton v-if="phoneSave" class="md:hidden" :loading="saving" @click="save()">{{ t('common.save') }}</UButton>
829
- <UButton :disabled="saving" :class="phoneSave ? 'max-md:hidden' : ''" @click="reviewOpen = true">{{ t('editor.publishEllipsis') }}</UButton>
828
+ <UButton v-if="phoneSave" class="md:hidden" :loading="saving" @click="() => { save() }">{{ t('common.save') }}</UButton>
829
+ <UButton :disabled="saving" :class="phoneSave ? 'max-md:hidden' : ''" @click="() => { reviewOpen = true }">{{ t('editor.publishEllipsis') }}</UButton>
830
830
  </template>
831
831
  </template>
832
- <UButton v-else-if="isNew" :loading="saving" @click="save()">{{ publish ? t('editor.saveDraft') : t('common.create') }}</UButton>
833
- <UButton v-else :loading="saving" @click="save()">{{ publish ? t('editor.saveDraft') : t('common.save') }}</UButton>
832
+ <UButton v-else-if="isNew" :loading="saving" @click="() => { save() }">{{ publish ? t('editor.saveDraft') : t('common.create') }}</UButton>
833
+ <UButton v-else :loading="saving" @click="() => { save() }">{{ publish ? t('editor.saveDraft') : t('common.save') }}</UButton>
834
834
  <UDropdownMenu v-if="menuGroups.length" :items="menuGroups" :content="{ align: 'end' }">
835
835
  <UButton color="neutral" variant="ghost" icon="i-lucide-ellipsis" :aria-label="t('editor.moreActions')" />
836
836
  </UDropdownMenu>
@@ -469,7 +469,7 @@ const tabs = computed(() => [
469
469
  <div v-if="arranging" class="flex flex-wrap items-center justify-between gap-3 mb-3 min-h-8">
470
470
  <p class="text-sm text-muted">{{ t('list.arrangeHint') }}</p>
471
471
  <div class="flex gap-2">
472
- <UButton color="neutral" variant="ghost" size="sm" @click="arranging = false">{{ t('common.cancel') }}</UButton>
472
+ <UButton color="neutral" variant="ghost" size="sm" @click="() => { arranging = false }">{{ t('common.cancel') }}</UButton>
473
473
  <UButton size="sm" icon="i-lucide-check" :loading="savingOrder" :disabled="arrangeTooMany" @click="saveOrder">{{ t('list.saveOrder') }}</UButton>
474
474
  </div>
475
475
  </div>
@@ -477,7 +477,7 @@ const tabs = computed(() => [
477
477
  <span class="text-sm text-highlighted tabular-nums mr-2">{{ t('list.selected', { count: selected.size }) }}</span>
478
478
  <UButton v-if="canPublish && anyDraftSelected" size="sm" color="neutral" variant="outline" icon="i-lucide-globe" :loading="bulkBusy" @click="runBulk('publish')">{{ t('editor.publish') }}</UButton>
479
479
  <UButton v-if="canPublish && anyLiveSelected" size="sm" color="neutral" variant="outline" icon="i-lucide-eye-off" :disabled="bulkBusy" @click="runBulk('unpublish')">{{ t('editor.unpublish') }}</UButton>
480
- <UButton v-if="canDelete" size="sm" color="error" variant="ghost" icon="i-lucide-trash-2" :disabled="bulkBusy" @click="confirmBulkDelete = true">{{ t('common.delete') }}</UButton>
480
+ <UButton v-if="canDelete" size="sm" color="error" variant="ghost" icon="i-lucide-trash-2" :disabled="bulkBusy" @click="() => { confirmBulkDelete = true }">{{ t('common.delete') }}</UButton>
481
481
  <UButton size="sm" color="neutral" variant="link" @click="toggleAll(false)">{{ t('list.clearSelection') }}</UButton>
482
482
  </div>
483
483
  <div v-else class="flex flex-wrap items-center justify-between gap-x-3 gap-y-2 mb-3">
@@ -498,7 +498,7 @@ const tabs = computed(() => [
498
498
  size="sm" variant="ghost" class="w-full sm:w-64" :aria-label="t('common.search')"
499
499
  >
500
500
  <template v-if="q" #trailing>
501
- <UButton color="neutral" variant="link" size="xs" icon="i-lucide-x" :aria-label="t('common.clear')" @click="q = ''" />
501
+ <UButton color="neutral" variant="link" size="xs" icon="i-lucide-x" :aria-label="t('common.clear')" @click="() => { q = '' }" />
502
502
  </template>
503
503
  </UInput>
504
504
  <UDropdownMenu v-if="optionalCols.length && layout === 'table'" :items="columnItems" :content="{ align: 'end' }">
@@ -535,7 +535,7 @@ const tabs = computed(() => [
535
535
  :description="q ? t('list.noResultsDescription') : undefined"
536
536
  >
537
537
  <template v-if="q" #actions>
538
- <UButton color="neutral" variant="outline" @click="q = ''">{{ t('list.clearSearch') }}</UButton>
538
+ <UButton color="neutral" variant="outline" @click="() => { q = '' }">{{ t('list.clearSearch') }}</UButton>
539
539
  </template>
540
540
  </CmsEmptyState>
541
541
 
@@ -701,8 +701,8 @@ const tabs = computed(() => [
701
701
  <div v-if="!arranging && total > limit" class="flex items-center justify-between mt-3 text-sm text-muted">
702
702
  <span class="tabular-nums">{{ range }}</span>
703
703
  <div class="flex gap-1">
704
- <UButton size="sm" variant="ghost" color="neutral" icon="i-lucide-chevron-left" :aria-label="t('common.previous')" :disabled="page <= 1" @click="page--" />
705
- <UButton size="sm" variant="ghost" color="neutral" icon="i-lucide-chevron-right" :aria-label="t('common.next')" :disabled="page >= pages" @click="page++" />
704
+ <UButton size="sm" variant="ghost" color="neutral" icon="i-lucide-chevron-left" :aria-label="t('common.previous')" :disabled="page <= 1" @click="() => { page-- }" />
705
+ <UButton size="sm" variant="ghost" color="neutral" icon="i-lucide-chevron-right" :aria-label="t('common.next')" :disabled="page >= pages" @click="() => { page++ }" />
706
706
  </div>
707
707
  </div>
708
708
 
@@ -724,7 +724,7 @@ const tabs = computed(() => [
724
724
  </template>
725
725
  <template #footer>
726
726
  <div class="flex justify-end gap-2 w-full">
727
- <UButton color="neutral" variant="ghost" @click="confirmBulkDelete = false">{{ t('common.cancel') }}</UButton>
727
+ <UButton color="neutral" variant="ghost" @click="() => { confirmBulkDelete = false }">{{ t('common.cancel') }}</UButton>
728
728
  <UButton color="error" icon="i-lucide-trash-2" :loading="bulkBusy" @click="runBulk('delete')">{{ t('common.delete') }}</UButton>
729
729
  </div>
730
730
  </template>