chore: clear low-risk lint warnings

This commit is contained in:
ejclaw
2026-04-29 13:31:11 +09:00
parent 7ffd4c65e1
commit 4dcd4037f1
40 changed files with 36 additions and 161 deletions

View File

@@ -18,9 +18,7 @@ import {
updateScheduledTask,
} from './api';
import {
LOCALES,
isLocale,
languageNames,
localeTags,
matchLocale,
messages,
@@ -206,16 +204,6 @@ const ROOM_BOARD_FORMATTERS = {
statusLabel,
};
function queueLabel(
pendingTasks: number,
pendingMessages: boolean,
t: Messages,
) {
const parts = [`${pendingTasks} ${t.units.task}`];
if (pendingMessages) parts.push(t.units.messageShort);
return parts.join(' · ');
}
function buildRoomOptions(snapshots: StatusSnapshot[]): RoomOption[] {
const rooms = new Map<string, RoomOption>();
for (const snapshot of snapshots) {
@@ -234,33 +222,6 @@ function buildRoomOptions(snapshots: StatusSnapshot[]): RoomOption[] {
);
}
function LanguageSelector({
locale,
onLocaleChange,
t,
}: {
locale: Locale;
onLocaleChange: (locale: Locale) => void;
t: Messages;
}) {
return (
<label className="language-select">
<span>{t.language.label}</span>
<select
aria-label={t.language.label}
onChange={(event) => onLocaleChange(event.target.value as Locale)}
value={locale}
>
{LOCALES.map((item) => (
<option key={item} value={item}>
{languageNames[item]}
</option>
))}
</select>
</label>
);
}
function LoadingSkeleton({ t }: { t: Messages }) {
return (
<main className="shell shell-loading" aria-busy="true">