mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-13 02:26:36 +08:00
chore(prettier): format 并清理无用 import
make prettier 统一格式化,goimports 与 eslint unused-imports 自动移除未使用导入。
This commit is contained in:
@@ -17,12 +17,7 @@ import {
|
||||
AlertDialogTitle,
|
||||
} from '@/components/ui/alert-dialog';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from '@/components/ui/card';
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Spinner } from '@/components/ui/spinner';
|
||||
import { type PagesProject, PagesService } from '@/lib/services/openflare';
|
||||
|
||||
|
||||
@@ -73,9 +73,7 @@ function isActiveDeployment(
|
||||
deployment: PagesDeployment,
|
||||
activeDeploymentId?: number | null,
|
||||
) {
|
||||
return (
|
||||
deployment.id === activeDeploymentId || deployment.status === 'active'
|
||||
);
|
||||
return deployment.id === activeDeploymentId || deployment.status === 'active';
|
||||
}
|
||||
|
||||
function deploymentSnapshot(deployment: PagesDeployment) {
|
||||
@@ -151,7 +149,9 @@ function DeploymentRow({
|
||||
<span className='text-sm font-medium'>
|
||||
部署 #{deployment.deployment_number}
|
||||
</span>
|
||||
<Badge variant='secondary'>{deploymentSnapshot(deployment)}</Badge>
|
||||
<Badge variant='secondary'>
|
||||
{deploymentSnapshot(deployment)}
|
||||
</Badge>
|
||||
</div>
|
||||
<DeploymentMeta deployment={deployment} />
|
||||
</div>
|
||||
|
||||
@@ -108,7 +108,9 @@ export function GitHubSourceDetails({
|
||||
|
||||
<div className='rounded-lg border border-dashed bg-muted/15 px-5 py-5'>
|
||||
<div className='mb-4 flex flex-wrap items-center gap-2 border-b border-dashed pb-4'>
|
||||
<code className='text-sm font-medium'>{source.github_repository}</code>
|
||||
<code className='text-sm font-medium'>
|
||||
{source.github_repository}
|
||||
</code>
|
||||
<Badge variant='secondary' className='font-normal'>
|
||||
{source.asset_name}
|
||||
</Badge>
|
||||
|
||||
@@ -327,9 +327,7 @@ export function PagesSourceDialog({
|
||||
<DialogContent className='sm:max-w-xl'>
|
||||
<DialogHeader>
|
||||
<DialogTitle>部署源设置</DialogTitle>
|
||||
<DialogDescription>
|
||||
选择部署来源。
|
||||
</DialogDescription>
|
||||
<DialogDescription>选择部署来源。</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
<FieldGroup>
|
||||
|
||||
Reference in New Issue
Block a user