mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-24 16:38:38 +00:00
🎨 chore(web): apply ESLint and Prettier auto-fixes (baseline)
- Ran: bun run eslint:fix && bun run lint:fix - Inserted AGPL license header via eslint-plugin-header - Enforced no-multiple-empty-lines and other lint rules - Formatted code using Prettier v3 (@so1ve/prettier-config) - No functional changes; formatting-only baseline across JS/JSX files
This commit is contained in:
@@ -36,20 +36,22 @@ const MjLogsActions = ({
|
||||
const showSkeleton = useMinimumLoadingTime(loading);
|
||||
|
||||
const placeholder = (
|
||||
<div className="flex items-center mb-2 md:mb-0">
|
||||
<IconEyeOpened className="mr-2" />
|
||||
<div className='flex items-center mb-2 md:mb-0'>
|
||||
<IconEyeOpened className='mr-2' />
|
||||
<Skeleton.Title style={{ width: 300, height: 21, borderRadius: 6 }} />
|
||||
</div>
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full">
|
||||
<div className='flex flex-col md:flex-row justify-between items-start md:items-center gap-2 w-full'>
|
||||
<Skeleton loading={showSkeleton} active placeholder={placeholder}>
|
||||
<div className="flex items-center mb-2 md:mb-0">
|
||||
<IconEyeOpened className="mr-2" />
|
||||
<div className='flex items-center mb-2 md:mb-0'>
|
||||
<IconEyeOpened className='mr-2' />
|
||||
<Text>
|
||||
{isAdminUser && showBanner
|
||||
? t('当前未开启Midjourney回调,部分项目可能无法获得绘图结果,可在运营设置中开启。')
|
||||
? t(
|
||||
'当前未开启Midjourney回调,部分项目可能无法获得绘图结果,可在运营设置中开启。',
|
||||
)
|
||||
: t('Midjourney 任务记录')}
|
||||
</Text>
|
||||
</div>
|
||||
@@ -64,4 +66,4 @@ const MjLogsActions = ({
|
||||
);
|
||||
};
|
||||
|
||||
export default MjLogsActions;
|
||||
export default MjLogsActions;
|
||||
|
||||
Reference in New Issue
Block a user