mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-06 23:56:37 +08:00
[优化] 界面优化
This commit is contained in:
@@ -159,16 +159,6 @@ export function PagesProjectDetailPage({ projectId }: { projectId: string }) {
|
|||||||
<AppCard
|
<AppCard
|
||||||
title="部署历史"
|
title="部署历史"
|
||||||
description="部署不可变;激活后发布配置,Agent 才会拉取并切换静态资源。"
|
description="部署不可变;激活后发布配置,Agent 才会拉取并切换静态资源。"
|
||||||
action={
|
|
||||||
(deploymentsQuery.data ?? []).length > 0 ? (
|
|
||||||
<PrimaryButton
|
|
||||||
type="button"
|
|
||||||
onClick={() => setUploadModalOpen(true)}
|
|
||||||
>
|
|
||||||
上传部署包
|
|
||||||
</PrimaryButton>
|
|
||||||
) : null
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
{deploymentsQuery.isLoading ? (
|
{deploymentsQuery.isLoading ? (
|
||||||
<p className="text-sm text-[var(--foreground-secondary)]">
|
<p className="text-sm text-[var(--foreground-secondary)]">
|
||||||
@@ -183,12 +173,6 @@ export function PagesProjectDetailPage({ projectId }: { projectId: string }) {
|
|||||||
title="暂无部署"
|
title="暂无部署"
|
||||||
description="上传 zip 部署包后,可以在这里激活某个部署版本。"
|
description="上传 zip 部署包后,可以在这里激活某个部署版本。"
|
||||||
>
|
>
|
||||||
<PrimaryButton
|
|
||||||
type="button"
|
|
||||||
onClick={() => setUploadModalOpen(true)}
|
|
||||||
>
|
|
||||||
上传部署包
|
|
||||||
</PrimaryButton>
|
|
||||||
</EmptyState>
|
</EmptyState>
|
||||||
) : (
|
) : (
|
||||||
<div className="overflow-hidden rounded-2xl border border-[var(--border-default)]">
|
<div className="overflow-hidden rounded-2xl border border-[var(--border-default)]">
|
||||||
|
|||||||
@@ -61,14 +61,6 @@ export function PagesPage() {
|
|||||||
<AppCard
|
<AppCard
|
||||||
title="还没有 Pages 项目"
|
title="还没有 Pages 项目"
|
||||||
description="先创建一个项目,再上传静态资源包。"
|
description="先创建一个项目,再上传静态资源包。"
|
||||||
action={
|
|
||||||
<SecondaryButton
|
|
||||||
type="button"
|
|
||||||
onClick={() => setCreateModalOpen(true)}
|
|
||||||
>
|
|
||||||
新建 Pages 项目
|
|
||||||
</SecondaryButton>
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
(projectsQuery.data ?? []).map((project) => (
|
(projectsQuery.data ?? []).map((project) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user