mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
fix: lint
This commit is contained in:
@@ -15,7 +15,6 @@ const config = {
|
|||||||
singleQuote: true,
|
singleQuote: true,
|
||||||
// 大括号前后空格
|
// 大括号前后空格
|
||||||
bracketSpacing: true,
|
bracketSpacing: true,
|
||||||
attributeVerticalAlignment: 'auto',
|
|
||||||
trailingComma: 'all',
|
trailingComma: 'all',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,10 @@ export default function TrafficChart({
|
|||||||
// <= 7 days: 4-hour buckets
|
// <= 7 days: 4-hour buckets
|
||||||
bucketSize = 4 * 60 * 60 * 1000;
|
bucketSize = 4 * 60 * 60 * 1000;
|
||||||
formatTime = (date) =>
|
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 {
|
} else {
|
||||||
// > 7 days: 1-day buckets
|
// > 7 days: 1-day buckets
|
||||||
bucketSize = 24 * 60 * 60 * 1000;
|
bucketSize = 24 * 60 * 60 * 1000;
|
||||||
|
|||||||
@@ -389,7 +389,9 @@ const PluginInstalledComponent = forwardRef<PluginInstalledComponentRef>(
|
|||||||
<DialogHeader className="px-6 pt-6 pb-2 border-b">
|
<DialogHeader className="px-6 pt-6 pb-2 border-b">
|
||||||
<DialogTitle>
|
<DialogTitle>
|
||||||
{readmePlugin &&
|
{readmePlugin &&
|
||||||
`${readmePlugin.author}/${readmePlugin.name} - ${t('plugins.readme')}`}
|
`${readmePlugin.author}/${readmePlugin.name} - ${t(
|
||||||
|
'plugins.readme',
|
||||||
|
)}`}
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<div className="flex-1 overflow-y-auto">
|
<div className="flex-1 overflow-y-auto">
|
||||||
|
|||||||
Reference in New Issue
Block a user