@sfxcode/nuxt-ui-mongocamp 1.5.7 → 2.0.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.
- package/README.md +5 -5
- package/dist/module.d.mts +17 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -0
- package/dist/runtime/components/MongocampAccount.vue +12 -14
- package/dist/runtime/components/MongocampAggregationBuilder.d.vue.ts +1 -0
- package/dist/runtime/components/MongocampAggregationBuilder.vue +32 -45
- package/dist/runtime/components/MongocampAggregationBuilder.vue.d.ts +1 -0
- package/dist/runtime/components/MongocampAggregationChart.vue +7 -5
- package/dist/runtime/components/MongocampAggregationStagePreview.d.vue.ts +1 -0
- package/dist/runtime/components/MongocampAggregationStagePreview.vue +5 -3
- package/dist/runtime/components/MongocampAggregationStagePreview.vue.d.ts +1 -0
- package/dist/runtime/components/MongocampBucketFiles.vue +29 -40
- package/dist/runtime/components/MongocampBulkDelete.vue +8 -9
- package/dist/runtime/components/MongocampBulkEdit.vue +5 -4
- package/dist/runtime/components/MongocampChart.vue +1 -1
- package/dist/runtime/components/MongocampCollectionCharts.d.vue.ts +1 -0
- package/dist/runtime/components/MongocampCollectionCharts.vue +10 -7
- package/dist/runtime/components/MongocampCollectionCharts.vue.d.ts +1 -0
- package/dist/runtime/components/MongocampCollectionCopy.d.vue.ts +1 -0
- package/dist/runtime/components/MongocampCollectionCopy.vue +11 -9
- package/dist/runtime/components/MongocampCollectionCopy.vue.d.ts +1 -0
- package/dist/runtime/components/MongocampCollectionData.vue +97 -87
- package/dist/runtime/components/MongocampCollectionInfos.vue +34 -24
- package/dist/runtime/components/MongocampCollectionRename.vue +5 -4
- package/dist/runtime/components/MongocampCollections.vue +24 -33
- package/dist/runtime/components/MongocampCommandPalette.vue +3 -1
- package/dist/runtime/components/MongocampConfirmByName.vue +5 -4
- package/dist/runtime/components/MongocampDashboard.vue +5 -3
- package/dist/runtime/components/MongocampDatabases.vue +14 -8
- package/dist/runtime/components/MongocampDocumentCompare.vue +6 -4
- package/dist/runtime/components/MongocampDocumentView.vue +12 -9
- package/dist/runtime/components/MongocampEmptyState.vue +4 -1
- package/dist/runtime/components/MongocampErrorAlert.vue +8 -7
- package/dist/runtime/components/MongocampExportAll.d.vue.ts +1 -0
- package/dist/runtime/components/MongocampExportAll.vue +19 -7
- package/dist/runtime/components/MongocampExportAll.vue.d.ts +1 -0
- package/dist/runtime/components/MongocampFilePreview.vue +7 -6
- package/dist/runtime/components/MongocampFilterBuilder.vue +12 -16
- package/dist/runtime/components/MongocampGrantList.vue +6 -2
- package/dist/runtime/components/MongocampImport.vue +32 -28
- package/dist/runtime/components/MongocampIndexes.vue +21 -19
- package/dist/runtime/components/MongocampJobs.vue +20 -20
- package/dist/runtime/components/MongocampLogin.vue +2 -1
- package/dist/runtime/components/MongocampPermissionMatrix.vue +14 -11
- package/dist/runtime/components/MongocampQueryBar.vue +33 -32
- package/dist/runtime/components/MongocampRoleGrants.vue +21 -17
- package/dist/runtime/components/MongocampRoles.vue +28 -32
- package/dist/runtime/components/MongocampServerInfo.vue +17 -25
- package/dist/runtime/components/MongocampServerOverview.vue +16 -12
- package/dist/runtime/components/MongocampServerStatus.vue +9 -3
- package/dist/runtime/components/MongocampSettings.vue +15 -11
- package/dist/runtime/components/MongocampUserAccess.vue +11 -6
- package/dist/runtime/components/MongocampUsers.vue +32 -35
- package/dist/runtime/components/MongocampVersion.d.vue.ts +1 -1
- package/dist/runtime/components/MongocampVersion.vue +20 -11
- package/dist/runtime/components/MongocampVersion.vue.d.ts +1 -1
- package/dist/runtime/composables/useMongocampAdmin.js +6 -5
- package/dist/runtime/composables/useMongocampAggregation.d.ts +10 -1
- package/dist/runtime/composables/useMongocampAggregation.js +17 -5
- package/dist/runtime/composables/useMongocampBucket.d.ts +4 -0
- package/dist/runtime/composables/useMongocampBucket.js +7 -6
- package/dist/runtime/composables/useMongocampBulkByFilter.d.ts +6 -4
- package/dist/runtime/composables/useMongocampBulkByFilter.js +11 -6
- package/dist/runtime/composables/useMongocampCollectionCopy.d.ts +3 -1
- package/dist/runtime/composables/useMongocampCollectionCopy.js +4 -2
- package/dist/runtime/composables/useMongocampCollectionStats.js +2 -4
- package/dist/runtime/composables/useMongocampError.d.ts +1 -1
- package/dist/runtime/composables/useMongocampError.js +4 -1
- package/dist/runtime/composables/useMongocampExportAll.d.ts +10 -1
- package/dist/runtime/composables/useMongocampExportAll.js +4 -1
- package/dist/runtime/composables/useMongocampFetchAll.d.ts +11 -5
- package/dist/runtime/composables/useMongocampFetchAll.js +8 -8
- package/dist/runtime/composables/useMongocampJobs.js +3 -2
- package/dist/runtime/composables/useMongocampQuery.d.ts +26 -36
- package/dist/runtime/composables/useMongocampQuery.js +45 -48
- package/dist/runtime/composables/useMongocampSchema.js +2 -0
- package/dist/runtime/composables/useMongocampUi.d.ts +8 -0
- package/dist/runtime/composables/useMongocampUi.js +7 -0
- package/dist/runtime/locales/de.json +12 -4
- package/dist/runtime/locales/en.json +12 -4
- package/dist/runtime/plugin.js +8 -0
- package/dist/runtime/publicUtils.d.ts +1 -0
- package/dist/runtime/publicUtils.js +1 -0
- package/dist/runtime/server/handlers/mongocampProxy.d.ts +1 -1
- package/dist/runtime/server/handlers/mongocampProxy.js +12 -12
- package/dist/runtime/utils/aggregationPipeline.d.ts +2 -1
- package/dist/runtime/utils/aggregationPipeline.js +2 -3
- package/dist/runtime/utils/caseInsensitive.d.ts +10 -0
- package/dist/runtime/utils/caseInsensitive.js +8 -0
- package/dist/runtime/utils/collectionStats.d.ts +4 -1
- package/dist/runtime/utils/collectionStats.js +2 -2
- package/dist/runtime/utils/compactSession.d.ts +13 -0
- package/dist/runtime/utils/compactSession.js +12 -0
- package/dist/runtime/utils/configRows.d.ts +3 -3
- package/dist/runtime/utils/cursorPaging.d.ts +16 -0
- package/dist/runtime/utils/cursorPaging.js +17 -0
- package/dist/runtime/utils/documentCompare.js +2 -3
- package/dist/runtime/utils/documentPaths.d.ts +5 -5
- package/dist/runtime/utils/documentPaths.js +9 -2
- package/dist/runtime/utils/documentTree.js +3 -0
- package/dist/runtime/utils/fileFilter.d.ts +7 -0
- package/dist/runtime/utils/fileFilter.js +11 -0
- package/dist/runtime/utils/filterBuilder.d.ts +1 -1
- package/dist/runtime/utils/filterBuilder.js +5 -11
- package/dist/runtime/utils/filterSuggestions.js +1 -1
- package/dist/runtime/utils/indexForm.d.ts +7 -0
- package/dist/runtime/utils/indexForm.js +9 -0
- package/dist/runtime/utils/pagedFetch.d.ts +13 -0
- package/dist/runtime/utils/pagedFetch.js +44 -0
- package/dist/runtime/utils/queryState.d.ts +5 -0
- package/dist/runtime/utils/queryState.js +3 -2
- package/dist/runtime/utils/relaxedValues.d.ts +17 -0
- package/dist/runtime/utils/relaxedValues.js +51 -0
- package/dist/runtime/utils/requestLimits.d.ts +1 -1
- package/dist/runtime/utils/requestLimits.js +1 -1
- package/dist/runtime/utils/savedQueries.d.ts +2 -0
- package/dist/runtime/utils/savedQueries.js +1 -0
- package/dist/runtime/utils/schemaAnalysis.d.ts +4 -4
- package/dist/runtime/utils/schemaAnalysis.js +2 -2
- package/dist/runtime/utils/sensitiveFields.d.ts +20 -0
- package/dist/runtime/utils/sensitiveFields.js +63 -0
- package/dist/runtime/utils/serverError.d.ts +7 -0
- package/dist/runtime/utils/serverError.js +11 -0
- package/dist/runtime/utils/serverStatus.d.ts +2 -2
- package/dist/runtime/utils/uiTheme.d.ts +65 -0
- package/dist/runtime/utils/uiTheme.js +47 -0
- package/package.json +22 -16
- package/dist/runtime/utils/luceneExpression.d.ts +0 -15
- package/dist/runtime/utils/luceneExpression.js +0 -74
|
@@ -5,6 +5,7 @@ import { useMongocampImport } from "../composables/useMongocampImport";
|
|
|
5
5
|
import { DEFAULT_IMPORT_LIMITS } from "../utils/importRows";
|
|
6
6
|
import { detectImportFormat, prepareImport } from "../utils/importPipeline";
|
|
7
7
|
import { formatBytes } from "../utils/formatBytes";
|
|
8
|
+
import { useMongocampUi } from "../composables/useMongocampUi";
|
|
8
9
|
const props = defineProps({
|
|
9
10
|
collectionName: { type: String, required: true }
|
|
10
11
|
});
|
|
@@ -12,6 +13,7 @@ const emit = defineEmits(["imported"]);
|
|
|
12
13
|
const PREVIEW_ROWS = 5;
|
|
13
14
|
const ERROR_LIMIT = 10;
|
|
14
15
|
const { t } = useI18n();
|
|
16
|
+
const ui = useMongocampUi();
|
|
15
17
|
const { describeServerError } = useMongocampError();
|
|
16
18
|
const { importRows, importNdjson } = useMongocampImport();
|
|
17
19
|
const isOpen = ref(false);
|
|
@@ -269,12 +271,13 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
269
271
|
</script>
|
|
270
272
|
|
|
271
273
|
<template>
|
|
272
|
-
<UTooltip
|
|
274
|
+
<UTooltip
|
|
275
|
+
class="mongocamp-import"
|
|
276
|
+
:text="t('nuxtUiMongocamp.import.trigger')"
|
|
277
|
+
>
|
|
273
278
|
<UButton
|
|
274
279
|
icon="i-lucide-file-up"
|
|
275
|
-
|
|
276
|
-
variant="ghost"
|
|
277
|
-
size="sm"
|
|
280
|
+
v-bind="ui.iconButton"
|
|
278
281
|
:aria-label="t('nuxtUiMongocamp.import.trigger')"
|
|
279
282
|
@click="openModal"
|
|
280
283
|
/>
|
|
@@ -284,7 +287,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
284
287
|
v-model:open="isOpen"
|
|
285
288
|
:title="t('nuxtUiMongocamp.import.title')"
|
|
286
289
|
:dismissible="step !== 'importing'"
|
|
287
|
-
:ui="{ footer:
|
|
290
|
+
:ui="{ footer: ui.modal.footer, content: ui.modal.lg + ' mongocamp-import' }"
|
|
288
291
|
>
|
|
289
292
|
<template #body>
|
|
290
293
|
<div
|
|
@@ -313,7 +316,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
313
316
|
<UAlert
|
|
314
317
|
v-if="readError"
|
|
315
318
|
color="error"
|
|
316
|
-
variant="
|
|
319
|
+
:variant="ui.alert.variant"
|
|
317
320
|
icon="i-lucide-circle-alert"
|
|
318
321
|
:description="readError"
|
|
319
322
|
/>
|
|
@@ -327,14 +330,14 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
327
330
|
<span class="text-sm font-medium break-all">{{ fileName }} ({{ formatBytes(serverFile.size) }})</span>
|
|
328
331
|
<UAlert
|
|
329
332
|
color="info"
|
|
330
|
-
variant="
|
|
333
|
+
:variant="ui.alert.variant"
|
|
331
334
|
icon="i-lucide-info"
|
|
332
335
|
:description="t('nuxtUiMongocamp.import.ndjsonNote')"
|
|
333
336
|
/>
|
|
334
337
|
<UAlert
|
|
335
338
|
v-if="serverPreview.unreadable > 0"
|
|
336
339
|
color="warning"
|
|
337
|
-
variant="
|
|
340
|
+
:variant="ui.alert.variant"
|
|
338
341
|
icon="i-lucide-triangle-alert"
|
|
339
342
|
:description="t('nuxtUiMongocamp.import.ndjsonUnreadable', { count: serverPreview.unreadable }, serverPreview.unreadable)"
|
|
340
343
|
/>
|
|
@@ -343,6 +346,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
343
346
|
{{ t("nuxtUiMongocamp.import.previewTitle", { count: serverPreview.rows.length }) }}
|
|
344
347
|
</p>
|
|
345
348
|
<UTable
|
|
349
|
+
data-mongocamp-part="table"
|
|
346
350
|
:data="serverPreview.rows"
|
|
347
351
|
:columns="serverPreview.columns.map((column2) => ({ id: column2, header: column2, accessorFn: (row) => row[column2] }))"
|
|
348
352
|
class="max-h-64"
|
|
@@ -359,7 +363,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
359
363
|
<USelect
|
|
360
364
|
:model-value="format"
|
|
361
365
|
:items="formatItems"
|
|
362
|
-
size="
|
|
366
|
+
:size="ui.controlSize"
|
|
363
367
|
class="w-28"
|
|
364
368
|
:aria-label="t('nuxtUiMongocamp.import.format')"
|
|
365
369
|
@update:model-value="onFormatChange"
|
|
@@ -368,7 +372,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
368
372
|
v-if="format === 'csv'"
|
|
369
373
|
:model-value="delimiter"
|
|
370
374
|
:items="delimiterItems"
|
|
371
|
-
size="
|
|
375
|
+
:size="ui.controlSize"
|
|
372
376
|
class="w-40"
|
|
373
377
|
:aria-label="t('nuxtUiMongocamp.import.delimiter')"
|
|
374
378
|
@update:model-value="onDelimiterChange"
|
|
@@ -379,7 +383,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
379
383
|
v-for="error in fileErrors"
|
|
380
384
|
:key="error.code"
|
|
381
385
|
color="error"
|
|
382
|
-
variant="
|
|
386
|
+
:variant="ui.alert.variant"
|
|
383
387
|
icon="i-lucide-circle-alert"
|
|
384
388
|
:description="errorText(error)"
|
|
385
389
|
/>
|
|
@@ -391,7 +395,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
391
395
|
<UAlert
|
|
392
396
|
v-if="prepared.truncated"
|
|
393
397
|
color="warning"
|
|
394
|
-
variant="
|
|
398
|
+
:variant="ui.alert.variant"
|
|
395
399
|
icon="i-lucide-triangle-alert"
|
|
396
400
|
:description="t('nuxtUiMongocamp.import.truncated', { maxRows: limitsText.maxRows })"
|
|
397
401
|
/>
|
|
@@ -413,7 +417,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
413
417
|
<USelect
|
|
414
418
|
:model-value="columnTypes[column]"
|
|
415
419
|
:items="typeItems"
|
|
416
|
-
size="
|
|
420
|
+
:size="ui.controlSize"
|
|
417
421
|
class="w-32"
|
|
418
422
|
:aria-label="column"
|
|
419
423
|
@update:model-value="setColumnType(column, $event)"
|
|
@@ -429,7 +433,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
429
433
|
<UAlert
|
|
430
434
|
v-if="rowErrors.length > 0"
|
|
431
435
|
color="warning"
|
|
432
|
-
variant="
|
|
436
|
+
:variant="ui.alert.variant"
|
|
433
437
|
icon="i-lucide-triangle-alert"
|
|
434
438
|
:title="t('nuxtUiMongocamp.import.problems', { count: rowErrors.length }, rowErrors.length)"
|
|
435
439
|
>
|
|
@@ -456,6 +460,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
456
460
|
{{ t("nuxtUiMongocamp.import.previewTitle", { count: previewRows.length }) }}
|
|
457
461
|
</p>
|
|
458
462
|
<UTable
|
|
463
|
+
data-mongocamp-part="table"
|
|
459
464
|
:data="previewRows"
|
|
460
465
|
:columns="previewColumns"
|
|
461
466
|
class="max-h-64"
|
|
@@ -498,24 +503,27 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
498
503
|
class="flex flex-col gap-3"
|
|
499
504
|
data-test="ndjson-result"
|
|
500
505
|
>
|
|
506
|
+
<!-- server 2.0 imports all or nothing: an aborted import removes what earlier batches stored -->
|
|
501
507
|
<UAlert
|
|
502
508
|
v-if="serverError"
|
|
503
509
|
color="error"
|
|
504
|
-
variant="
|
|
510
|
+
:variant="ui.alert.variant"
|
|
505
511
|
icon="i-lucide-circle-alert"
|
|
512
|
+
data-test="ndjson-aborted"
|
|
513
|
+
:title="t('nuxtUiMongocamp.import.ndjsonAborted')"
|
|
506
514
|
:description="serverError"
|
|
507
515
|
/>
|
|
508
516
|
<template v-else-if="serverResult">
|
|
509
517
|
<UAlert
|
|
510
518
|
:color="serverResult.inserted > 0 ? 'success' : 'neutral'"
|
|
511
|
-
variant="
|
|
519
|
+
:variant="ui.alert.variant"
|
|
512
520
|
:icon="serverResult.inserted > 0 ? 'i-lucide-circle-check' : 'i-lucide-info'"
|
|
513
521
|
:title="t('nuxtUiMongocamp.import.result', { count: serverResult.inserted }, serverResult.inserted)"
|
|
514
522
|
/>
|
|
515
523
|
<UAlert
|
|
516
524
|
v-if="serverResult.failed > 0"
|
|
517
525
|
color="error"
|
|
518
|
-
variant="
|
|
526
|
+
:variant="ui.alert.variant"
|
|
519
527
|
icon="i-lucide-circle-alert"
|
|
520
528
|
:title="t('nuxtUiMongocamp.import.ndjsonFailed', { failed: serverResult.failed, read: serverResult.read })"
|
|
521
529
|
>
|
|
@@ -545,21 +553,21 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
545
553
|
>
|
|
546
554
|
<UAlert
|
|
547
555
|
:color="totalInserted > 0 ? 'success' : 'neutral'"
|
|
548
|
-
variant="
|
|
556
|
+
:variant="ui.alert.variant"
|
|
549
557
|
:icon="totalInserted > 0 ? 'i-lucide-circle-check' : 'i-lucide-info'"
|
|
550
558
|
:title="t('nuxtUiMongocamp.import.result', { count: totalInserted }, totalInserted)"
|
|
551
559
|
/>
|
|
552
560
|
<UAlert
|
|
553
561
|
v-if="skipped > 0"
|
|
554
562
|
color="warning"
|
|
555
|
-
variant="
|
|
563
|
+
:variant="ui.alert.variant"
|
|
556
564
|
icon="i-lucide-triangle-alert"
|
|
557
565
|
:description="t('nuxtUiMongocamp.import.aborted', { count: skipped })"
|
|
558
566
|
/>
|
|
559
567
|
<UAlert
|
|
560
568
|
v-if="failures.length > 0"
|
|
561
569
|
color="error"
|
|
562
|
-
variant="
|
|
570
|
+
:variant="ui.alert.variant"
|
|
563
571
|
icon="i-lucide-circle-alert"
|
|
564
572
|
>
|
|
565
573
|
<template #description>
|
|
@@ -586,8 +594,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
586
594
|
<template v-if="step === 'preview'">
|
|
587
595
|
<UButton
|
|
588
596
|
:label="t('nuxtUiMongocamp.import.back')"
|
|
589
|
-
|
|
590
|
-
variant="ghost"
|
|
597
|
+
v-bind="ui.dialogCancel"
|
|
591
598
|
@click="backToSelect"
|
|
592
599
|
/>
|
|
593
600
|
<UButton
|
|
@@ -606,8 +613,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
606
613
|
<template v-else-if="step === 'importing'">
|
|
607
614
|
<UButton
|
|
608
615
|
:label="t('nuxtUiMongocamp.import.stop')"
|
|
609
|
-
|
|
610
|
-
variant="subtle"
|
|
616
|
+
v-bind="ui.secondaryAction"
|
|
611
617
|
@click="stopImport"
|
|
612
618
|
/>
|
|
613
619
|
</template>
|
|
@@ -615,8 +621,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
615
621
|
<UButton
|
|
616
622
|
v-if="failures.length > 0 && !serverFile"
|
|
617
623
|
:label="t('nuxtUiMongocamp.import.retryFailed')"
|
|
618
|
-
|
|
619
|
-
variant="subtle"
|
|
624
|
+
v-bind="ui.secondaryAction"
|
|
620
625
|
@click="retryFailed"
|
|
621
626
|
/>
|
|
622
627
|
<UButton
|
|
@@ -627,8 +632,7 @@ const limitsText = computed(() => ({ maxRows: DEFAULT_IMPORT_LIMITS.maxRows, max
|
|
|
627
632
|
<template v-else>
|
|
628
633
|
<UButton
|
|
629
634
|
:label="t('nuxtUiMongocamp.common.cancel')"
|
|
630
|
-
|
|
631
|
-
variant="ghost"
|
|
635
|
+
v-bind="ui.dialogCancel"
|
|
632
636
|
@click="isOpen = false"
|
|
633
637
|
/>
|
|
634
638
|
</template>
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
buildIndexRequest,
|
|
9
9
|
canDropIndex,
|
|
10
10
|
classifyIndexError,
|
|
11
|
+
collationLocale,
|
|
11
12
|
describeKey,
|
|
12
13
|
formatBytes,
|
|
13
14
|
indexKeys,
|
|
@@ -15,10 +16,12 @@ import {
|
|
|
15
16
|
isTextIndex,
|
|
16
17
|
isUnusedIndex,
|
|
17
18
|
MAX_INDEX_FIELDS,
|
|
19
|
+
partialFilterText,
|
|
18
20
|
validateIndexForm
|
|
19
21
|
} from "../utils/indexForm";
|
|
20
22
|
import { shortenLabel } from "../utils/chartData";
|
|
21
23
|
import MongocampConfirmByName from "./MongocampConfirmByName.vue";
|
|
24
|
+
import { useMongocampUi } from "../composables/useMongocampUi";
|
|
22
25
|
const props = defineProps({
|
|
23
26
|
collectionName: { type: String, required: true },
|
|
24
27
|
canManage: { type: Boolean, required: false, default: true },
|
|
@@ -26,6 +29,7 @@ const props = defineProps({
|
|
|
26
29
|
});
|
|
27
30
|
const emit = defineEmits(["changed"]);
|
|
28
31
|
const { t } = useI18n();
|
|
32
|
+
const ui = useMongocampUi();
|
|
29
33
|
const toast = useToast();
|
|
30
34
|
const { describeServerError } = useMongocampError();
|
|
31
35
|
const { listIndexDetails, createOrderedIndex, createExpiringIndex, deleteIndex } = useMongocampIndex();
|
|
@@ -72,7 +76,9 @@ const rows = computed(
|
|
|
72
76
|
sparse: idx.sparse,
|
|
73
77
|
hidden: idx.hidden,
|
|
74
78
|
partial: idx.partialFilterExpression != null,
|
|
79
|
+
partialFilter: partialFilterText(idx.partialFilterExpression),
|
|
75
80
|
collation: idx.collation != null,
|
|
81
|
+
collationLocale: collationLocale(idx.collation),
|
|
76
82
|
language: idx.defaultLanguage ?? void 0,
|
|
77
83
|
expireAfterSeconds: isExpiringIndex(idx) ? idx.expireAfterSeconds : void 0,
|
|
78
84
|
size: storage.value?.indexSizes[idx.name],
|
|
@@ -105,12 +111,12 @@ const columns = computed(() => [
|
|
|
105
111
|
if (row.original.text) flags.push({ label: "text", color: "info" });
|
|
106
112
|
if (row.original.expireAfterSeconds !== void 0) flags.push({ label: `expire ${row.original.expireAfterSeconds}s`, color: "secondary" });
|
|
107
113
|
if (row.original.sparse) flags.push({ label: "sparse", color: "secondary" });
|
|
108
|
-
if (row.original.partial) flags.push({ label: "partial", color: "secondary" });
|
|
114
|
+
if (row.original.partial) flags.push({ label: "partial", color: "secondary", title: row.original.partialFilter });
|
|
109
115
|
if (row.original.hidden) flags.push({ label: "hidden", color: "warning" });
|
|
110
|
-
if (row.original.collation) flags.push({ label: "collation", color: "secondary" });
|
|
116
|
+
if (row.original.collation) flags.push({ label: row.original.collationLocale ? `collation ${row.original.collationLocale}` : "collation", color: "secondary" });
|
|
111
117
|
if (row.original.text && row.original.language) flags.push({ label: row.original.language, color: "info" });
|
|
112
|
-
const badges = flags.map((flag) => h(UBadge, { label: flag.label, color: flag.color, variant:
|
|
113
|
-
if (badges.length === 0) badges.push(h(UBadge, { label: t("nuxtUiMongocamp.collectionInfos.typeStandard"), color: "neutral", variant:
|
|
118
|
+
const badges = flags.map((flag) => h(UBadge, { label: flag.label, color: flag.color, variant: ui.value.badge.variant, size: "sm", title: flag.title, ...flag.title ? { "data-partial-filter": flag.title } : {} }));
|
|
119
|
+
if (badges.length === 0) badges.push(h(UBadge, { label: t("nuxtUiMongocamp.collectionInfos.typeStandard"), color: "neutral", variant: ui.value.badge.variant, size: "sm" }));
|
|
114
120
|
return h("div", { class: "flex flex-wrap gap-1" }, badges);
|
|
115
121
|
}
|
|
116
122
|
},
|
|
@@ -129,7 +135,7 @@ const columns = computed(() => [
|
|
|
129
135
|
return withTooltip(t("nuxtUiMongocamp.indexes.neverUsedHint"), h(UBadge, {
|
|
130
136
|
label: t("nuxtUiMongocamp.indexes.neverUsed", { date: dateText(since) }),
|
|
131
137
|
color: "warning",
|
|
132
|
-
variant:
|
|
138
|
+
variant: ui.value.badge.variant,
|
|
133
139
|
size: "sm"
|
|
134
140
|
}));
|
|
135
141
|
}
|
|
@@ -145,13 +151,12 @@ const columns = computed(() => [
|
|
|
145
151
|
cell: ({ row }) => {
|
|
146
152
|
if (!props.canManage) return null;
|
|
147
153
|
if (!canDropIndex(row.original.name)) {
|
|
148
|
-
return h("div", { class: "flex justify-end" }, withTooltip(t("nuxtUiMongocamp.indexes.protectedHint"), h("span", { class: "text-dimmed text-xs" }, "\u2014")));
|
|
154
|
+
return h("div", { "class": "flex justify-end", "data-mongocamp-part": "row-actions" }, withTooltip(t("nuxtUiMongocamp.indexes.protectedHint"), h("span", { class: "text-dimmed text-xs" }, "\u2014")));
|
|
149
155
|
}
|
|
150
|
-
return h("div", { class: "flex justify-end" }, withTooltip(t("nuxtUiMongocamp.collectionInfos.deleteIndexTooltip"), h(UButton, {
|
|
156
|
+
return h("div", { "class": "flex justify-end", "data-mongocamp-part": "row-actions" }, withTooltip(t("nuxtUiMongocamp.collectionInfos.deleteIndexTooltip"), h(UButton, {
|
|
151
157
|
"icon": "i-lucide-trash-2",
|
|
158
|
+
...ui.value.iconButton,
|
|
152
159
|
"color": "error",
|
|
153
|
-
"variant": "ghost",
|
|
154
|
-
"size": "sm",
|
|
155
160
|
"aria-label": t("nuxtUiMongocamp.collectionInfos.deleteIndexTooltip"),
|
|
156
161
|
"onClick": () => askDrop(row.original.name)
|
|
157
162
|
})));
|
|
@@ -236,7 +241,7 @@ async function runDrop() {
|
|
|
236
241
|
</script>
|
|
237
242
|
|
|
238
243
|
<template>
|
|
239
|
-
<UCard>
|
|
244
|
+
<UCard class="mongocamp-indexes">
|
|
240
245
|
<template #header>
|
|
241
246
|
<div class="flex items-center justify-between gap-2">
|
|
242
247
|
<div class="flex items-center gap-2">
|
|
@@ -247,7 +252,7 @@ async function runDrop() {
|
|
|
247
252
|
<span class="font-semibold">{{ t("nuxtUiMongocamp.collectionInfos.indexes") }}</span>
|
|
248
253
|
<UBadge
|
|
249
254
|
:label="t('nuxtUiMongocamp.collectionInfos.indexesCount', { count: rows.length })"
|
|
250
|
-
variant="
|
|
255
|
+
:variant="ui.badge.variant"
|
|
251
256
|
color="neutral"
|
|
252
257
|
size="sm"
|
|
253
258
|
/>
|
|
@@ -256,9 +261,7 @@ async function runDrop() {
|
|
|
256
261
|
v-if="canManage"
|
|
257
262
|
icon="i-lucide-plus"
|
|
258
263
|
:label="t('nuxtUiMongocamp.collectionInfos.createIndex')"
|
|
259
|
-
|
|
260
|
-
variant="ghost"
|
|
261
|
-
size="sm"
|
|
264
|
+
v-bind="ui.iconButton"
|
|
262
265
|
@click="openCreate"
|
|
263
266
|
/>
|
|
264
267
|
</div>
|
|
@@ -275,6 +278,7 @@ async function runDrop() {
|
|
|
275
278
|
{{ t("nuxtUiMongocamp.indexes.usageUnavailable") }}
|
|
276
279
|
</p>
|
|
277
280
|
<UTable
|
|
281
|
+
data-mongocamp-part="table"
|
|
278
282
|
:data="rows"
|
|
279
283
|
:columns="columns"
|
|
280
284
|
:loading="loading"
|
|
@@ -354,8 +358,7 @@ async function runDrop() {
|
|
|
354
358
|
<UButton
|
|
355
359
|
v-if="!singleField && !textKind"
|
|
356
360
|
:icon="row.descending ? 'i-lucide-arrow-down-wide-narrow' : 'i-lucide-arrow-up-narrow-wide'"
|
|
357
|
-
|
|
358
|
-
variant="ghost"
|
|
361
|
+
v-bind="ui.toolbarButton"
|
|
359
362
|
:label="row.descending ? t('nuxtUiMongocamp.indexes.directionDesc') : t('nuxtUiMongocamp.indexes.directionAsc')"
|
|
360
363
|
:aria-label="t('nuxtUiMongocamp.indexes.directionLabel', { position: index + 1 })"
|
|
361
364
|
@click="row.descending = !row.descending"
|
|
@@ -363,8 +366,7 @@ async function runDrop() {
|
|
|
363
366
|
<UButton
|
|
364
367
|
v-if="!singleField && form.fields.length > 1"
|
|
365
368
|
icon="i-lucide-x"
|
|
366
|
-
|
|
367
|
-
variant="ghost"
|
|
369
|
+
v-bind="ui.toolbarButton"
|
|
368
370
|
:aria-label="t('nuxtUiMongocamp.indexes.removeField', { position: index + 1 })"
|
|
369
371
|
@click="removeField(index)"
|
|
370
372
|
/>
|
|
@@ -381,7 +383,7 @@ async function runDrop() {
|
|
|
381
383
|
icon="i-lucide-plus"
|
|
382
384
|
color="neutral"
|
|
383
385
|
variant="soft"
|
|
384
|
-
size="
|
|
386
|
+
:size="ui.controlSize"
|
|
385
387
|
class="self-start"
|
|
386
388
|
:label="t('nuxtUiMongocamp.indexes.addField')"
|
|
387
389
|
:disabled="form.fields.length >= MAX_INDEX_FIELDS"
|
|
@@ -4,6 +4,7 @@ import { useI18n, useMongocampError, useMongocampJobs, useToast } from "#imports
|
|
|
4
4
|
import { useMongocampAutoRefresh } from "../composables/useMongocampAutoRefresh";
|
|
5
5
|
import { useMongocampAdminGate } from "../composables/useMongocampAdminGate";
|
|
6
6
|
import { createListPagination } from "../utils/listPagination";
|
|
7
|
+
import { useMongocampUi } from "../composables/useMongocampUi";
|
|
7
8
|
const props = defineProps({
|
|
8
9
|
autoRefresh: { type: Number, required: false, default: 0 },
|
|
9
10
|
hideHeading: { type: Boolean, required: false, default: false },
|
|
@@ -11,6 +12,7 @@ const props = defineProps({
|
|
|
11
12
|
});
|
|
12
13
|
const emit = defineEmits(["changed"]);
|
|
13
14
|
const { t } = useI18n();
|
|
15
|
+
const ui = useMongocampUi();
|
|
14
16
|
const { describeServerError } = useMongocampError();
|
|
15
17
|
const { listJobs, listPossibleJobs, registerJob, updateJob, executeJob, deleteJob } = useMongocampJobs();
|
|
16
18
|
const toast = useToast();
|
|
@@ -226,8 +228,7 @@ function withTooltip(text, node) {
|
|
|
226
228
|
function sortHeader(column, label) {
|
|
227
229
|
const isSorted = column.getIsSorted();
|
|
228
230
|
return h(UButton, {
|
|
229
|
-
|
|
230
|
-
variant: "ghost",
|
|
231
|
+
...ui.value.sortHeader,
|
|
231
232
|
label,
|
|
232
233
|
icon: isSorted === "asc" ? "i-lucide-arrow-up-narrow-wide" : isSorted === "desc" ? "i-lucide-arrow-down-wide-narrow" : "i-lucide-arrow-up-down",
|
|
233
234
|
class: "-mx-2.5",
|
|
@@ -262,29 +263,24 @@ const columns = computed(() => [
|
|
|
262
263
|
header: "",
|
|
263
264
|
cell: ({ row }) => {
|
|
264
265
|
const key = jobKey(row.original.group, row.original.name);
|
|
265
|
-
return h("div", { class: "flex gap-1 justify-end" }, [
|
|
266
|
+
return h("div", { "class": "flex gap-1 justify-end", "data-mongocamp-part": "row-actions" }, [
|
|
266
267
|
withTooltip(t("nuxtUiMongocamp.jobs.executeNowTooltip"), h(UButton, {
|
|
267
268
|
"icon": "i-lucide-play",
|
|
268
|
-
|
|
269
|
-
"variant": "ghost",
|
|
270
|
-
"size": "sm",
|
|
269
|
+
...ui.value.iconButton,
|
|
271
270
|
"aria-label": t("nuxtUiMongocamp.jobs.executeNowTooltip"),
|
|
272
271
|
"loading": executingJobs.value.has(key),
|
|
273
272
|
"onClick": () => handleExecuteJob(row.original.group, row.original.name)
|
|
274
273
|
})),
|
|
275
274
|
withTooltip(t("nuxtUiMongocamp.jobs.editJobTooltip"), h(UButton, {
|
|
276
275
|
"icon": "i-lucide-pencil",
|
|
277
|
-
|
|
278
|
-
"variant": "ghost",
|
|
279
|
-
"size": "sm",
|
|
276
|
+
...ui.value.iconButton,
|
|
280
277
|
"aria-label": t("nuxtUiMongocamp.jobs.editJobTooltip"),
|
|
281
278
|
"onClick": () => openEdit(row.original)
|
|
282
279
|
})),
|
|
283
280
|
withTooltip(t("nuxtUiMongocamp.jobs.deleteJobTooltip"), h(UButton, {
|
|
284
281
|
"icon": "i-lucide-trash-2",
|
|
282
|
+
...ui.value.iconButton,
|
|
285
283
|
"color": "error",
|
|
286
|
-
"variant": "ghost",
|
|
287
|
-
"size": "sm",
|
|
288
284
|
"aria-label": t("nuxtUiMongocamp.jobs.deleteJobTooltip"),
|
|
289
285
|
"onClick": () => confirmDelete(row.original.group, row.original.name)
|
|
290
286
|
}))
|
|
@@ -299,30 +295,34 @@ defineExpose({ refresh: fetchJobs });
|
|
|
299
295
|
<template>
|
|
300
296
|
<MongocampEmptyState
|
|
301
297
|
v-if="blocked"
|
|
298
|
+
class="mongocamp-jobs"
|
|
302
299
|
icon="i-lucide-shield-alert"
|
|
303
300
|
:title="message"
|
|
304
301
|
data-test="admin-only"
|
|
305
302
|
/>
|
|
306
303
|
<div
|
|
307
304
|
v-else
|
|
308
|
-
class="flex flex-col gap-4"
|
|
305
|
+
class="mongocamp-jobs flex flex-col gap-4"
|
|
309
306
|
>
|
|
310
307
|
<div class="flex items-center justify-between gap-4">
|
|
311
308
|
<h2
|
|
312
309
|
v-if="!hideHeading"
|
|
310
|
+
data-mongocamp-part="heading"
|
|
313
311
|
class="text-xl font-semibold"
|
|
314
312
|
>
|
|
315
313
|
{{ t("nuxtUiMongocamp.jobs.heading") }}
|
|
316
314
|
</h2>
|
|
317
|
-
<div
|
|
315
|
+
<div
|
|
316
|
+
data-mongocamp-part="toolbar"
|
|
317
|
+
class="ml-auto flex items-center gap-2"
|
|
318
|
+
>
|
|
318
319
|
<UTooltip
|
|
319
320
|
v-if="!hideRefresh"
|
|
320
321
|
:text="t('nuxtUiMongocamp.common.refresh')"
|
|
321
322
|
>
|
|
322
323
|
<UButton
|
|
323
324
|
icon="i-lucide-refresh-cw"
|
|
324
|
-
|
|
325
|
-
variant="ghost"
|
|
325
|
+
v-bind="ui.toolbarButton"
|
|
326
326
|
:loading="loading"
|
|
327
327
|
:aria-label="t('nuxtUiMongocamp.common.refresh')"
|
|
328
328
|
@click="fetchJobs"
|
|
@@ -345,6 +345,7 @@ defineExpose({ refresh: fetchJobs });
|
|
|
345
345
|
<UTable
|
|
346
346
|
v-model:sorting="sorting"
|
|
347
347
|
v-model:pagination="pagination"
|
|
348
|
+
data-mongocamp-part="table"
|
|
348
349
|
:pagination-options="paginationOptions"
|
|
349
350
|
:data="jobs"
|
|
350
351
|
:columns="columns"
|
|
@@ -413,7 +414,7 @@ defineExpose({ refresh: fetchJobs });
|
|
|
413
414
|
<UModal
|
|
414
415
|
v-model:open="isDeleteModalOpen"
|
|
415
416
|
:title="t('nuxtUiMongocamp.jobs.deleteJobTitle')"
|
|
416
|
-
:ui="{ footer:
|
|
417
|
+
:ui="{ footer: ui.modal.footer }"
|
|
417
418
|
>
|
|
418
419
|
<template #body>
|
|
419
420
|
<p>{{ t("nuxtUiMongocamp.jobs.confirmDelete", { name: jobToDelete.name }) }}</p>
|
|
@@ -421,7 +422,7 @@ defineExpose({ refresh: fetchJobs });
|
|
|
421
422
|
v-if="deleteError"
|
|
422
423
|
class="mt-3"
|
|
423
424
|
color="error"
|
|
424
|
-
variant="
|
|
425
|
+
:variant="ui.alert.variant"
|
|
425
426
|
icon="i-lucide-circle-alert"
|
|
426
427
|
:description="deleteError"
|
|
427
428
|
/>
|
|
@@ -429,14 +430,13 @@ defineExpose({ refresh: fetchJobs });
|
|
|
429
430
|
<template #footer>
|
|
430
431
|
<UButton
|
|
431
432
|
:label="t('nuxtUiMongocamp.common.cancel')"
|
|
432
|
-
|
|
433
|
-
variant="ghost"
|
|
433
|
+
v-bind="ui.dialogCancel"
|
|
434
434
|
:disabled="deleting"
|
|
435
435
|
@click="isDeleteModalOpen = false"
|
|
436
436
|
/>
|
|
437
437
|
<UButton
|
|
438
438
|
:label="t('nuxtUiMongocamp.common.delete')"
|
|
439
|
-
|
|
439
|
+
v-bind="ui.dangerAction"
|
|
440
440
|
icon="i-lucide-trash-2"
|
|
441
441
|
:loading="deleting"
|
|
442
442
|
@click="handleDeleteJob"
|
|
@@ -18,6 +18,7 @@ const schema = reactive(
|
|
|
18
18
|
[
|
|
19
19
|
...props.hideHeading ? [] : [{
|
|
20
20
|
$el: "h3",
|
|
21
|
+
attrs: { "data-mongocamp-part": "heading" },
|
|
21
22
|
children: t("nuxtUiMongocamp.login.heading")
|
|
22
23
|
}],
|
|
23
24
|
{
|
|
@@ -52,7 +53,7 @@ async function actionLogin() {
|
|
|
52
53
|
</script>
|
|
53
54
|
|
|
54
55
|
<template>
|
|
55
|
-
<div class="flex flex-col items-center justify-center gap-4 p-4 w-full">
|
|
56
|
+
<div class="mongocamp-login flex flex-col items-center justify-center gap-4 p-4 w-full">
|
|
56
57
|
<UPageCard class="w-full max-w-md">
|
|
57
58
|
<!-- above the form: a logo, a title, a hint -->
|
|
58
59
|
<slot name="header" />
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
} from "../utils/permissionMatrix";
|
|
14
14
|
import { downloadTextFile, rowsToCsv } from "../utils/exportRows";
|
|
15
15
|
import { isBucketMemberCollection } from "../utils/collectionProtection";
|
|
16
|
+
import { useMongocampUi } from "../composables/useMongocampUi";
|
|
16
17
|
const props = defineProps({
|
|
17
18
|
grantsPath: { type: String, required: false },
|
|
18
19
|
maxCollections: { type: Number, required: false, default: 60 },
|
|
@@ -21,6 +22,7 @@ const props = defineProps({
|
|
|
21
22
|
hideRefresh: { type: Boolean, required: false }
|
|
22
23
|
});
|
|
23
24
|
const { t } = useI18n();
|
|
25
|
+
const ui = useMongocampUi();
|
|
24
26
|
const paths = useMongocampPaths();
|
|
25
27
|
const { listUsers, listRoles, listCollections } = useMongocampAdmin();
|
|
26
28
|
const matrix = ref(null);
|
|
@@ -97,12 +99,13 @@ defineExpose({ refresh: load });
|
|
|
97
99
|
|
|
98
100
|
<template>
|
|
99
101
|
<div
|
|
100
|
-
class="flex flex-col gap-4"
|
|
102
|
+
class="mongocamp-permission-matrix flex flex-col gap-4"
|
|
101
103
|
data-test="permission-matrix"
|
|
102
104
|
>
|
|
103
105
|
<div class="flex flex-wrap items-start justify-between gap-2">
|
|
104
106
|
<div
|
|
105
107
|
v-if="!hideHeading"
|
|
108
|
+
data-mongocamp-part="heading"
|
|
106
109
|
class="flex flex-col gap-1"
|
|
107
110
|
>
|
|
108
111
|
<h2 class="text-xl font-semibold">
|
|
@@ -112,11 +115,13 @@ defineExpose({ refresh: load });
|
|
|
112
115
|
{{ t("nuxtUiMongocamp.permissionMatrix.subtitle") }}
|
|
113
116
|
</p>
|
|
114
117
|
</div>
|
|
115
|
-
<div
|
|
118
|
+
<div
|
|
119
|
+
data-mongocamp-part="toolbar"
|
|
120
|
+
class="ml-auto flex items-center gap-1"
|
|
121
|
+
>
|
|
116
122
|
<UButton
|
|
117
123
|
icon="i-lucide-arrow-left-right"
|
|
118
|
-
|
|
119
|
-
variant="ghost"
|
|
124
|
+
v-bind="ui.toolbarButton"
|
|
120
125
|
:aria-pressed="swapped"
|
|
121
126
|
:aria-label="t('nuxtUiMongocamp.permissionMatrix.swap')"
|
|
122
127
|
:disabled="!matrix"
|
|
@@ -124,8 +129,7 @@ defineExpose({ refresh: load });
|
|
|
124
129
|
/>
|
|
125
130
|
<UButton
|
|
126
131
|
icon="i-lucide-download"
|
|
127
|
-
|
|
128
|
-
variant="ghost"
|
|
132
|
+
v-bind="ui.toolbarButton"
|
|
129
133
|
:aria-label="t('nuxtUiMongocamp.permissionMatrix.exportCsv')"
|
|
130
134
|
:disabled="!shown || users.length === 0 || collections.length === 0"
|
|
131
135
|
@click="exportCsv"
|
|
@@ -133,8 +137,7 @@ defineExpose({ refresh: load });
|
|
|
133
137
|
<UButton
|
|
134
138
|
v-if="!hideRefresh"
|
|
135
139
|
icon="i-lucide-refresh-cw"
|
|
136
|
-
|
|
137
|
-
variant="ghost"
|
|
140
|
+
v-bind="ui.toolbarButton"
|
|
138
141
|
:loading="loading"
|
|
139
142
|
:aria-label="t('nuxtUiMongocamp.permissionMatrix.refresh')"
|
|
140
143
|
@click="load"
|
|
@@ -153,7 +156,7 @@ defineExpose({ refresh: load });
|
|
|
153
156
|
<UInput
|
|
154
157
|
v-model="text"
|
|
155
158
|
icon="i-lucide-search"
|
|
156
|
-
size="
|
|
159
|
+
:size="ui.controlSize"
|
|
157
160
|
class="w-64"
|
|
158
161
|
:placeholder="t('nuxtUiMongocamp.permissionMatrix.filterPlaceholder')"
|
|
159
162
|
:aria-label="t('nuxtUiMongocamp.permissionMatrix.filterPlaceholder')"
|
|
@@ -161,7 +164,7 @@ defineExpose({ refresh: load });
|
|
|
161
164
|
<USelect
|
|
162
165
|
v-model="role"
|
|
163
166
|
:items="roleItems"
|
|
164
|
-
size="
|
|
167
|
+
:size="ui.controlSize"
|
|
165
168
|
class="w-44"
|
|
166
169
|
:aria-label="t('nuxtUiMongocamp.permissionMatrix.roleLabel')"
|
|
167
170
|
/>
|
|
@@ -264,7 +267,7 @@ defineExpose({ refresh: load });
|
|
|
264
267
|
v-if="userByName.get(row).admin"
|
|
265
268
|
:label="t('nuxtUiMongocamp.permissionMatrix.adminBadge')"
|
|
266
269
|
color="primary"
|
|
267
|
-
variant="
|
|
270
|
+
:variant="ui.badge.variant"
|
|
268
271
|
size="sm"
|
|
269
272
|
/>
|
|
270
273
|
<NuxtLink
|