fix: lint

This commit is contained in:
wangcham
2026-02-09 00:36:30 +08:00
parent 6d858475d7
commit d2d7892325
3 changed files with 7 additions and 3 deletions

View File

@@ -74,7 +74,10 @@ export default function TrafficChart({
// <= 7 days: 4-hour buckets
bucketSize = 4 * 60 * 60 * 1000;
formatTime = (date) =>
`${date.toLocaleDateString([], { month: 'short', day: 'numeric' })} ${date.toLocaleTimeString([], { hour: '2-digit' })}`;
`${date.toLocaleDateString([], {
month: 'short',
day: 'numeric',
})} ${date.toLocaleTimeString([], { hour: '2-digit' })}`;
} else {
// > 7 days: 1-day buckets
bucketSize = 24 * 60 * 60 * 1000;

View File

@@ -389,7 +389,9 @@ const PluginInstalledComponent = forwardRef<PluginInstalledComponentRef>(
<DialogHeader className="px-6 pt-6 pb-2 border-b">
<DialogTitle>
{readmePlugin &&
`${readmePlugin.author}/${readmePlugin.name} - ${t('plugins.readme')}`}
`${readmePlugin.author}/${readmePlugin.name} - ${t(
'plugins.readme',
)}`}
</DialogTitle>
</DialogHeader>
<div className="flex-1 overflow-y-auto">