@antelopejs/dms-lang 0.5.3 → 0.6.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 (38) hide show
  1. package/README.md +2 -2
  2. package/dist/routes/translations.d.ts +14 -13
  3. package/dist/routes/translations.js +31 -29
  4. package/dist/routes/translations.js.map +1 -1
  5. package/dist/utils/query.d.ts +2 -0
  6. package/dist/utils/query.js +7 -0
  7. package/dist/utils/query.js.map +1 -0
  8. package/frontend-vue/.prettierrc +5 -3
  9. package/frontend-vue/app/build/components/KeyAddModal.vue +5 -1
  10. package/frontend-vue/app/build/components/KeyEditorDrawer.vue +8 -2
  11. package/frontend-vue/app/build/components/KeyRenameModal.vue +4 -1
  12. package/frontend-vue/app/build/components/KeyStatus.vue +4 -1
  13. package/frontend-vue/app/build/components/LanguageAddModal.vue +21 -9
  14. package/frontend-vue/app/build/components/LanguagePicker.vue +23 -6
  15. package/frontend-vue/app/build/components/PlaceholderText.vue +9 -2
  16. package/frontend-vue/app/build/components/WorkspaceCreateModal.vue +5 -1
  17. package/frontend-vue/app/build/components/WorkspaceRenameModal.vue +15 -3
  18. package/frontend-vue/app/build/components/form/FormFieldRow.vue +12 -3
  19. package/frontend-vue/app/build/components/form/FormRows.vue +8 -2
  20. package/frontend-vue/app/build/components/matrix/MatrixCell.vue +76 -19
  21. package/frontend-vue/app/build/components/matrix/MatrixColumns.vue +4 -1
  22. package/frontend-vue/app/build/components/queue/QueueActions.vue +11 -2
  23. package/frontend-vue/app/build/components/queue/QueueEditor.vue +53 -13
  24. package/frontend-vue/app/build/components/queue/QueueHeader.vue +17 -4
  25. package/frontend-vue/app/build/drawer/KeyLanguageField.vue +37 -13
  26. package/frontend-vue/app/build/matrix/MatrixDoneBanner.vue +4 -1
  27. package/frontend-vue/app/build/matrix/MatrixLanguageHeader.vue +36 -36
  28. package/frontend-vue/app/build/matrix/MatrixNoRows.vue +48 -39
  29. package/frontend-vue/app/components/LanguageNamespaces.vue +29 -7
  30. package/frontend-vue/app/components/NamespaceCoverage.vue +26 -6
  31. package/frontend-vue/app/components/TranslationMatrix.vue +44 -12
  32. package/frontend-vue/app/components/TranslationQueue.vue +12 -3
  33. package/frontend-vue/app/components/WorkspaceGeneral.vue +23 -6
  34. package/frontend-vue/app/components/WorkspaceList.vue +29 -8
  35. package/frontend-vue/app/components/WorkspaceScope.vue +40 -10
  36. package/frontend-vue/eslint.config.mjs +0 -9
  37. package/frontend-vue/package.json +1 -1
  38. package/package.json +5 -5
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import type { ButtonProps } from '@nuxt/ui'
2
3
  import type { FlatTranslations } from '../../types/lang'
3
4
  import type { MatrixFilterState } from '../composables/useMatrixFilters'
4
5
 
@@ -6,7 +7,7 @@ import type { MatrixFilterState } from '../composables/useMatrixFilters'
6
7
  * The matrix with no row to show: no key matches the filters (show them all),
7
8
  * or the workspace has no key yet (add one).
8
9
  */
9
- defineProps<{
10
+ const props = defineProps<{
10
11
  flat: FlatTranslations
11
12
  filters: MatrixFilterState
12
13
  canManageKeys: boolean
@@ -14,6 +15,50 @@ defineProps<{
14
15
  resetFilters: () => void
15
16
  addKey: () => unknown
16
17
  }>()
18
+
19
+ const { t } = useI18n()
20
+
21
+ const description = computed(() => {
22
+ const count = props.flat.rows.length
23
+ if (!count) return t('dms_lang.matrix.no_keys_description')
24
+ return t(
25
+ 'dms_lang.matrix.no_match_description',
26
+ { count: props.formatCount(count) },
27
+ count,
28
+ )
29
+ })
30
+
31
+ const actions = computed((): ButtonProps[] => {
32
+ const count = props.flat.rows.length
33
+ const showAll: ButtonProps[] = count
34
+ ? [
35
+ {
36
+ label: t(
37
+ 'dms_lang.matrix.show_all',
38
+ { count: props.formatCount(count) },
39
+ count,
40
+ ),
41
+ color: 'neutral',
42
+ variant: 'outline',
43
+ onClick: props.resetFilters,
44
+ },
45
+ ]
46
+ : []
47
+ const addNew: ButtonProps[] = props.canManageKeys
48
+ ? [
49
+ {
50
+ label: props.filters.search
51
+ ? t('dms_lang.matrix.add_named', { key: props.filters.search })
52
+ : t('dms_lang.key_add.title'),
53
+ icon: 'i-ph-plus',
54
+ color: 'neutral',
55
+ variant: 'ghost',
56
+ onClick: () => props.addKey(),
57
+ },
58
+ ]
59
+ : []
60
+ return [...showAll, ...addNew]
61
+ })
17
62
  </script>
18
63
 
19
64
  <template>
@@ -26,43 +71,7 @@ defineProps<{
26
71
  ? $t('dms_lang.matrix.no_match', { search: filters.search })
27
72
  : $t('dms_lang.matrix.no_keys')
28
73
  "
29
- :description="
30
- flat.rows.length
31
- ? $t(
32
- 'dms_lang.matrix.no_match_description',
33
- { count: formatCount(flat.rows.length) },
34
- flat.rows.length,
35
- )
36
- : $t('dms_lang.matrix.no_keys_description')
37
- "
38
- :actions="[
39
- ...(flat.rows.length
40
- ? [
41
- {
42
- label: $t(
43
- 'dms_lang.matrix.show_all',
44
- { count: formatCount(flat.rows.length) },
45
- flat.rows.length,
46
- ),
47
- color: 'neutral',
48
- variant: 'outline',
49
- onClick: resetFilters,
50
- },
51
- ]
52
- : []),
53
- ...(canManageKeys
54
- ? [
55
- {
56
- label: filters.search
57
- ? $t('dms_lang.matrix.add_named', { key: filters.search })
58
- : $t('dms_lang.key_add.title'),
59
- icon: 'i-ph-plus',
60
- color: 'neutral',
61
- variant: 'ghost',
62
- onClick: () => addKey(),
63
- },
64
- ]
65
- : []),
66
- ]"
74
+ :description="description"
75
+ :actions="actions"
67
76
  />
68
77
  </template>
@@ -19,7 +19,10 @@ function scope(target: string) {
19
19
  :padded="false"
20
20
  :title="$t('dms_lang.language_namespaces.title')"
21
21
  >
22
- <template v-if="namespace" #actions>
22
+ <template
23
+ v-if="namespace"
24
+ #actions
25
+ >
23
26
  <UButton
24
27
  size="xs"
25
28
  color="neutral"
@@ -29,11 +32,24 @@ function scope(target: string) {
29
32
  @click="namespace = ''"
30
33
  />
31
34
  </template>
32
- <div v-if="!isLoaded" class="space-y-2 p-4">
33
- <USkeleton v-for="index in 5" :key="index" class="h-6 w-full" />
35
+ <div
36
+ v-if="!isLoaded"
37
+ class="space-y-2 p-4"
38
+ >
39
+ <USkeleton
40
+ v-for="index in 5"
41
+ :key="index"
42
+ class="h-6 w-full"
43
+ />
34
44
  </div>
35
- <ul v-else class="divide-default divide-y">
36
- <li v-for="entry in namespaceProgress" :key="entry.namespace">
45
+ <ul
46
+ v-else
47
+ class="divide-default divide-y"
48
+ >
49
+ <li
50
+ v-for="entry in namespaceProgress"
51
+ :key="entry.namespace"
52
+ >
37
53
  <button
38
54
  type="button"
39
55
  class="grid w-full grid-cols-[minmax(0,1fr)_5rem_3rem_3rem] items-center gap-3 px-4 py-2.5 text-left transition-colors"
@@ -67,9 +83,15 @@ function scope(target: string) {
67
83
  </button>
68
84
  </li>
69
85
  </ul>
70
- <template v-if="isLoaded" #footer>
86
+ <template
87
+ v-if="isLoaded"
88
+ #footer
89
+ >
71
90
  <p class="text-dimmed flex items-center gap-1.5 text-xs">
72
- <UIcon name="i-ph-info" class="size-3.5" />
91
+ <UIcon
92
+ name="i-ph-info"
93
+ class="size-3.5"
94
+ />
73
95
  {{ $t('dms_lang.language_namespaces.hint') }}
74
96
  </p>
75
97
  </template>
@@ -118,8 +118,15 @@ usePageHeaderActions(() => [
118
118
  />
119
119
  </template>
120
120
 
121
- <div v-if="!isLoaded" class="space-y-2 p-4">
122
- <USkeleton v-for="index in 4" :key="index" class="h-8 w-full" />
121
+ <div
122
+ v-if="!isLoaded"
123
+ class="space-y-2 p-4"
124
+ >
125
+ <USkeleton
126
+ v-for="index in 4"
127
+ :key="index"
128
+ class="h-8 w-full"
129
+ />
123
130
  </div>
124
131
 
125
132
  <DmsEmptyState
@@ -133,7 +140,10 @@ usePageHeaderActions(() => [
133
140
  "
134
141
  />
135
142
 
136
- <div v-else class="overflow-x-auto px-4 pt-3 pb-4">
143
+ <div
144
+ v-else
145
+ class="overflow-x-auto px-4 pt-3 pb-4"
146
+ >
137
147
  <div
138
148
  class="grid items-center gap-1.5"
139
149
  :style="{ gridTemplateColumns: gridTemplate }"
@@ -145,9 +155,16 @@ usePageHeaderActions(() => [
145
155
  class="flex justify-center"
146
156
  :title="`${nameAmong(code, targets)} · ${code}`"
147
157
  >
148
- <LocaleTile :code="code" :siblings="targets" size="sm" />
158
+ <LocaleTile
159
+ :code="code"
160
+ :siblings="targets"
161
+ size="sm"
162
+ />
149
163
  </span>
150
- <template v-for="entry in namespaces" :key="entry.namespace">
164
+ <template
165
+ v-for="entry in namespaces"
166
+ :key="entry.namespace"
167
+ >
151
168
  <span class="flex min-w-0 items-baseline gap-1.5">
152
169
  <span class="text-highlighted truncate font-mono text-xs">
153
170
  {{ entry.namespace }}
@@ -201,7 +218,10 @@ usePageHeaderActions(() => [
201
218
  </div>
202
219
  </div>
203
220
 
204
- <template v-if="isLoaded && namespaces.length && locales.length" #footer>
221
+ <template
222
+ v-if="isLoaded && namespaces.length && locales.length"
223
+ #footer
224
+ >
205
225
  <div class="text-dimmed flex flex-wrap items-center gap-3 text-xs">
206
226
  <span class="inline-flex items-center gap-1.5">
207
227
  <span class="bg-success size-2 rounded-sm" />
@@ -380,7 +380,12 @@ onBeforeUnmount(() => {
380
380
  </script>
381
381
 
382
382
  <template>
383
- <DmsCard v-if="!isUnknown" ref="root" :padded="false" class="overflow-hidden">
383
+ <DmsCard
384
+ v-if="!isUnknown"
385
+ ref="root"
386
+ :padded="false"
387
+ class="overflow-hidden"
388
+ >
384
389
  <MatrixToolbar
385
390
  v-model:filters="filters"
386
391
  :counts="counts"
@@ -401,7 +406,10 @@ onBeforeUnmount(() => {
401
406
  />
402
407
  </MatrixToolbar>
403
408
 
404
- <div v-if="isModules" class="p-3">
409
+ <div
410
+ v-if="isModules"
411
+ class="p-3"
412
+ >
405
413
  <DmsBanner
406
414
  tone="warning"
407
415
  size="sm"
@@ -437,7 +445,10 @@ onBeforeUnmount(() => {
437
445
  ]"
438
446
  />
439
447
 
440
- <div v-else-if="!isLoaded" class="divide-default divide-y">
448
+ <div
449
+ v-else-if="!isLoaded"
450
+ class="divide-default divide-y"
451
+ >
441
452
  <div
442
453
  v-for="index in SKELETON_ROWS"
443
454
  :key="index"
@@ -461,7 +472,10 @@ onBeforeUnmount(() => {
461
472
  />
462
473
 
463
474
  <div v-else-if="isCompact && compactColumn">
464
- <template v-for="group in view.rendered.value" :key="group.namespace">
475
+ <template
476
+ v-for="group in view.rendered.value"
477
+ :key="group.namespace"
478
+ >
465
479
  <div class="border-default border-b bg-(--dms-bg-muted) px-4 py-2">
466
480
  <MatrixGroupHeader
467
481
  :namespace="group.namespace"
@@ -491,7 +505,7 @@ onBeforeUnmount(() => {
491
505
  <p
492
506
  v-if="
493
507
  !compactColumn.isBase &&
494
- !editor.isEditing(row.key, compactColumn.code)
508
+ !editor.isEditing(row.key, compactColumn.code)
495
509
  "
496
510
  class="text-dimmed line-clamp-3 text-xs"
497
511
  >
@@ -511,10 +525,18 @@ onBeforeUnmount(() => {
511
525
  />
512
526
  </div>
513
527
  </template>
514
- <div v-if="view.hasMore.value" ref="sentinel" class="h-8" />
528
+ <div
529
+ v-if="view.hasMore.value"
530
+ ref="sentinel"
531
+ class="h-8"
532
+ />
515
533
  </div>
516
534
 
517
- <div v-else ref="scroller" class="max-h-[70vh] overflow-auto">
535
+ <div
536
+ v-else
537
+ ref="scroller"
538
+ class="max-h-[70vh] overflow-auto"
539
+ >
518
540
  <table
519
541
  role="grid"
520
542
  :aria-rowcount="rows.length"
@@ -523,19 +545,22 @@ onBeforeUnmount(() => {
523
545
  @keydown="onGridKeydown"
524
546
  >
525
547
  <colgroup>
526
- <col class="w-44 sm:w-64" />
548
+ <col class="w-44 sm:w-64">
527
549
  <col
528
550
  v-for="column in columns"
529
551
  :key="column.code"
530
552
  :class="todoLanguage ? 'w-[28rem]' : 'w-60'"
531
- />
553
+ >
532
554
  </colgroup>
533
555
  <thead class="sticky top-0 z-20 bg-(--dms-surface-card)">
534
556
  <tr>
535
557
  <th
536
558
  class="border-default sticky left-0 z-10 border-r border-b bg-(--dms-surface-card) px-4 py-2.5 text-left shadow-[4px_0_6px_-4px_rgb(0_0_0/0.25)]"
537
559
  >
538
- <DmsEyebrow :label="$t('dms_lang.matrix.key')" size="xs" />
560
+ <DmsEyebrow
561
+ :label="$t('dms_lang.matrix.key')"
562
+ size="xs"
563
+ />
539
564
  </th>
540
565
  <th
541
566
  v-for="column in columns"
@@ -550,7 +575,10 @@ onBeforeUnmount(() => {
550
575
  </th>
551
576
  </tr>
552
577
  </thead>
553
- <tbody v-for="group in view.rendered.value" :key="group.namespace">
578
+ <tbody
579
+ v-for="group in view.rendered.value"
580
+ :key="group.namespace"
581
+ >
554
582
  <tr>
555
583
  <td
556
584
  :colspan="columns.length + 1"
@@ -609,7 +637,11 @@ onBeforeUnmount(() => {
609
637
  </tr>
610
638
  </tbody>
611
639
  </table>
612
- <div v-if="view.hasMore.value" ref="sentinel" class="h-8" />
640
+ <div
641
+ v-if="view.hasMore.value"
642
+ ref="sentinel"
643
+ class="h-8"
644
+ />
613
645
  </div>
614
646
 
615
647
  <MatrixFooter
@@ -151,7 +151,10 @@ onBeforeUnmount(() => clearTimeout(urlTimer))
151
151
 
152
152
  <template>
153
153
  <template v-if="!isUnknown">
154
- <DmsCard v-if="view === 'loading'" padded>
154
+ <DmsCard
155
+ v-if="view === 'loading'"
156
+ padded
157
+ >
155
158
  <div class="space-y-4">
156
159
  <USkeleton class="h-5 w-1/3" />
157
160
  <USkeleton class="h-14 w-full" />
@@ -197,12 +200,18 @@ onBeforeUnmount(() => clearTimeout(urlTimer))
197
200
  ]"
198
201
  />
199
202
 
200
- <DmsCard v-else :padded="false">
203
+ <DmsCard
204
+ v-else
205
+ :padded="false"
206
+ >
201
207
  <div ref="root">
202
208
  <QueueHeader />
203
209
  <QueueDone v-if="isFinished || !current" />
204
210
  <template v-else>
205
- <QueueEditor ref="editor" :row="current" />
211
+ <QueueEditor
212
+ ref="editor"
213
+ :row="current"
214
+ />
206
215
  <QueueActions />
207
216
  <QueueUpNext />
208
217
  </template>
@@ -165,7 +165,10 @@ usePageHeaderActions(() =>
165
165
  @focus="isTypingDescription = true"
166
166
  @blur="saveDescription"
167
167
  />
168
- <p v-else class="text-highlighted text-sm">
168
+ <p
169
+ v-else
170
+ class="text-highlighted text-sm"
171
+ >
169
172
  {{ current?.description || '—' }}
170
173
  </p>
171
174
  <template #label-extra>
@@ -181,12 +184,15 @@ usePageHeaderActions(() =>
181
184
  >
182
185
  <DmsSegmentedSelect
183
186
  :model-value="current?.type"
184
- @update:model-value="pickType"
185
187
  :items="typeItems"
186
188
  :disabled="!canEditDetails"
189
+ @update:model-value="pickType"
187
190
  />
188
191
  <template #label-extra>
189
- <DmsSaveStatus :state="stateOf('type')" @retry="retries.type?.()" />
192
+ <DmsSaveStatus
193
+ :state="stateOf('type')"
194
+ @retry="retries.type?.()"
195
+ />
190
196
  </template>
191
197
  </DmsFieldRow>
192
198
  </template>
@@ -196,7 +202,10 @@ usePageHeaderActions(() =>
196
202
  :label="$t('dms_lang.workspace.base_label')"
197
203
  :description="$t('dms_lang.workspace.base_help')"
198
204
  >
199
- <USkeleton v-if="!current" class="h-8 w-64" />
205
+ <USkeleton
206
+ v-if="!current"
207
+ class="h-8 w-64"
208
+ />
200
209
  <USelect
201
210
  v-else-if="canManageLanguages"
202
211
  v-model="baseModel"
@@ -204,14 +213,22 @@ usePageHeaderActions(() =>
204
213
  class="w-full max-w-xs"
205
214
  >
206
215
  <template #leading>
207
- <LocaleTile :code="baseLocale" size="sm" is-base />
216
+ <LocaleTile
217
+ :code="baseLocale"
218
+ size="sm"
219
+ is-base
220
+ />
208
221
  </template>
209
222
  </USelect>
210
223
  <span
211
224
  v-else
212
225
  class="text-highlighted inline-flex items-center gap-2 text-sm"
213
226
  >
214
- <LocaleTile :code="baseLocale" size="sm" is-base />
227
+ <LocaleTile
228
+ :code="baseLocale"
229
+ size="sm"
230
+ is-base
231
+ />
215
232
  {{ fullName(baseLocale) }}
216
233
  <span class="text-dimmed font-mono text-xs">
217
234
  {{ baseLocale }}
@@ -242,7 +242,10 @@ watch(
242
242
  ]"
243
243
  />
244
244
 
245
- <div v-if="hasToolbar" class="flex flex-wrap items-center gap-2">
245
+ <div
246
+ v-if="hasToolbar"
247
+ class="flex flex-wrap items-center gap-2"
248
+ >
246
249
  <UInput
247
250
  v-model="search"
248
251
  icon="i-ph-magnifying-glass"
@@ -281,7 +284,11 @@ watch(
281
284
 
282
285
  <div class="grid gap-4 lg:grid-cols-2">
283
286
  <template v-if="!isLoaded && !hasError">
284
- <DmsCard v-for="index in 4" :key="index" padded>
287
+ <DmsCard
288
+ v-for="index in 4"
289
+ :key="index"
290
+ padded
291
+ >
285
292
  <div class="space-y-4">
286
293
  <USkeleton class="h-6 w-1/2" />
287
294
  <USkeleton class="h-10 w-full" />
@@ -314,8 +321,8 @@ watch(
314
321
  v-bind="kindPill(workspace)"
315
322
  />
316
323
  <DmsStatusPill
317
- dot="none"
318
324
  v-if="workspace.id === selectedWorkspace"
325
+ dot="none"
319
326
  tone="primary"
320
327
  size="sm"
321
328
  icon="i-ph-check"
@@ -325,7 +332,7 @@ watch(
325
332
  <p class="text-muted mt-0.5 line-clamp-2 text-xs">
326
333
  {{
327
334
  workspace.description ||
328
- $t(`dms_lang.workspace_kinds.${workspace.kind}.description`)
335
+ $t(`dms_lang.workspace_kinds.${workspace.kind}.description`)
329
336
  }}
330
337
  </p>
331
338
  </div>
@@ -340,8 +347,15 @@ watch(
340
347
  </div>
341
348
 
342
349
  <dl class="grid grid-cols-4 gap-3">
343
- <div v-for="stat in statsOf(workspace)" :key="stat.id">
344
- <DmsEyebrow as="dt" :label="stat.label" size="xs" />
350
+ <div
351
+ v-for="stat in statsOf(workspace)"
352
+ :key="stat.id"
353
+ >
354
+ <DmsEyebrow
355
+ as="dt"
356
+ :label="stat.label"
357
+ size="xs"
358
+ />
345
359
  <dd
346
360
  class="text-highlighted font-mono text-lg font-semibold"
347
361
  :class="stat.tone"
@@ -363,7 +377,10 @@ watch(
363
377
  :is-base="code === workspace.baseLocale"
364
378
  />
365
379
  {{ code }}
366
- <span v-if="code === workspace.baseLocale" class="text-dimmed">
380
+ <span
381
+ v-if="code === workspace.baseLocale"
382
+ class="text-dimmed"
383
+ >
367
384
  {{ $t('dms_lang.common.base') }}
368
385
  </span>
369
386
  <span
@@ -428,7 +445,11 @@ watch(
428
445
  class="border-default text-muted hover:border-primary/50 hover:text-highlighted flex min-h-56 flex-col items-center justify-center gap-3 rounded-(--dms-radius-card) border border-dashed p-6 text-center transition-colors"
429
446
  @click="create"
430
447
  >
431
- <DmsIconWell icon="i-ph-plus" tone="primary" size="lg" />
448
+ <DmsIconWell
449
+ icon="i-ph-plus"
450
+ tone="primary"
451
+ size="lg"
452
+ />
432
453
  <span class="text-highlighted text-sm font-semibold">
433
454
  {{ $t('dms_lang.workspaces.new') }}
434
455
  </span>
@@ -189,7 +189,10 @@ watch(
189
189
  </script>
190
190
 
191
191
  <template>
192
- <div v-if="!isUnknown" class="space-y-3">
192
+ <div
193
+ v-if="!isUnknown"
194
+ class="space-y-3"
195
+ >
193
196
  <div
194
197
  class="dms-card flex flex-wrap items-center gap-x-3.5 gap-y-2.5 py-2 pr-3.5 pl-2"
195
198
  >
@@ -233,8 +236,14 @@ watch(
233
236
  size="sm"
234
237
  />
235
238
  <span class="grid gap-px">
236
- <DmsEyebrow :label="$t('dms_lang.scope.workspace')" size="xs" />
237
- <USkeleton v-if="!current" class="h-4 w-24" />
239
+ <DmsEyebrow
240
+ :label="$t('dms_lang.scope.workspace')"
241
+ size="xs"
242
+ />
243
+ <USkeleton
244
+ v-if="!current"
245
+ class="h-4 w-24"
246
+ />
238
247
  <span
239
248
  v-else
240
249
  class="text-highlighted text-sm leading-tight font-semibold"
@@ -242,7 +251,10 @@ watch(
242
251
  {{ workspaceLabel(current) }}
243
252
  </span>
244
253
  </span>
245
- <UIcon name="i-ph-caret-up-down" class="text-dimmed ml-1 size-4" />
254
+ <UIcon
255
+ name="i-ph-caret-up-down"
256
+ class="text-dimmed ml-1 size-4"
257
+ />
246
258
  </button>
247
259
  </UDropdownMenu>
248
260
 
@@ -258,7 +270,10 @@ watch(
258
270
  <USkeleton class="h-4 w-16" />
259
271
  </div>
260
272
 
261
- <div v-else class="flex flex-wrap items-center gap-x-4 gap-y-1 text-sm">
273
+ <div
274
+ v-else
275
+ class="flex flex-wrap items-center gap-x-4 gap-y-1 text-sm"
276
+ >
262
277
  <DmsStatusPill
263
278
  dot="none"
264
279
  :tone="isEditable ? 'success' : 'warning'"
@@ -287,7 +302,10 @@ watch(
287
302
  :to="baseMissingLink"
288
303
  class="text-warning inline-flex items-center gap-1 hover:underline"
289
304
  >
290
- <UIcon name="i-ph-warning" class="size-4" />
305
+ <UIcon
306
+ name="i-ph-warning"
307
+ class="size-4"
308
+ />
291
309
  {{
292
310
  $t(
293
311
  'dms_lang.scope.base_missing',
@@ -301,12 +319,18 @@ watch(
301
319
  class="text-muted inline-flex items-center gap-1.5"
302
320
  >
303
321
  {{ $t('dms_lang.scope.base') }}
304
- <LocaleTile :code="scope.defaultLocale" size="sm" />
322
+ <LocaleTile
323
+ :code="scope.defaultLocale"
324
+ size="sm"
325
+ />
305
326
  <span class="font-mono text-xs">{{ scope.defaultLocale }}</span>
306
327
  </span>
307
328
  </div>
308
329
 
309
- <USkeleton v-if="!current" class="ml-auto h-3 w-40" />
330
+ <USkeleton
331
+ v-if="!current"
332
+ class="ml-auto h-3 w-40"
333
+ />
310
334
  <p
311
335
  v-else
312
336
  class="text-dimmed ml-auto min-w-0 truncate font-mono text-xs"
@@ -325,7 +349,10 @@ watch(
325
349
  :description="$t('dms_lang.scope.server_read_only_description')"
326
350
  />
327
351
 
328
- <DmsCard v-if="isFirstRun" :padded="false">
352
+ <DmsCard
353
+ v-if="isFirstRun"
354
+ :padded="false"
355
+ >
329
356
  <DmsEmptyState
330
357
  icon="i-ph-rocket-launch"
331
358
  tone="primary"
@@ -335,7 +362,10 @@ watch(
335
362
  :actions="firstRunActions"
336
363
  >
337
364
  <template #content>
338
- <DmsCheckList size="sm" :items="firstRunSteps" />
365
+ <DmsCheckList
366
+ size="sm"
367
+ :items="firstRunSteps"
368
+ />
339
369
  </template>
340
370
  </DmsEmptyState>
341
371
  </DmsCard>
@@ -26,10 +26,8 @@ export default [
26
26
  },
27
27
  plugins: { '@typescript-eslint': typescript },
28
28
  rules: {
29
- 'no-redeclare': 'off',
30
29
  'no-undef': 'off',
31
30
  'no-unused-vars': 'off',
32
- '@typescript-eslint/no-explicit-any': 'off',
33
31
  '@typescript-eslint/no-unused-vars': [
34
32
  'error',
35
33
  {
@@ -38,13 +36,6 @@ export default [
38
36
  caughtErrorsIgnorePattern: '^_',
39
37
  },
40
38
  ],
41
- 'vue/attributes-order': 'off',
42
- 'vue/html-indent': 'off',
43
- 'vue/html-self-closing': 'off',
44
- 'vue/max-attributes-per-line': 'off',
45
- 'vue/multi-word-component-names': 'off',
46
- 'vue/require-default-prop': 'off',
47
- 'vue/singleline-html-element-content-newline': 'off',
48
39
  },
49
40
  },
50
41
  ]
@@ -14,7 +14,7 @@
14
14
  "dev": "pnpm --dir ../playground frontend:dev",
15
15
  "prepare-frontend": "ajs dms prepare",
16
16
  "format": "prettier --write .",
17
- "lint": "eslint .",
17
+ "lint": "eslint . --max-warnings=0",
18
18
  "lint:fix": "eslint . --fix"
19
19
  },
20
20
  "devDependencies": {