Switch to BiomeJS (#306)

This commit is contained in:
Gregory Schier
2025-11-23 08:38:13 -08:00
committed by GitHub
parent 2bac610efe
commit ec3e2e16a9
332 changed files with 3007 additions and 4097 deletions

View File

@@ -15,10 +15,13 @@ export async function deleteModelWithConfirm(
return false;
}
const models = Array.isArray(model) ? model : [model];
const firstModel = models[0];
if (firstModel == null) return false;
const descriptor =
models.length === 1 ? modelTypeLabel(models[0]!) : pluralizeCount('Item', models.length);
models.length === 1 ? modelTypeLabel(firstModel) : pluralizeCount('Item', models.length);
const confirmed = await showConfirmDelete({
id: 'delete-model-' + models.map((m) => m.id).join(','),
id: `delete-model-${models.map((m) => m.id).join(',')}`,
title: `Delete ${descriptor}`,
requireTyping: options.confirmName,
description: (
@@ -26,7 +29,7 @@ export async function deleteModelWithConfirm(
Permanently delete{' '}
{models.length === 1 ? (
<>
<InlineCode>{resolvedModelName(models[0]!)}</InlineCode>?
<InlineCode>{resolvedModelName(firstModel)}</InlineCode>?
</>
) : models.length < 10 ? (
<>