diff --git a/src/pages/config/gitea/page.tsx b/src/pages/config/gitea/page.tsx index d54847d..c2bba6a 100644 --- a/src/pages/config/gitea/page.tsx +++ b/src/pages/config/gitea/page.tsx @@ -1,5 +1,4 @@ import { useGiteaConfigStore } from './store'; -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Button } from '@/components/ui/button'; @@ -39,15 +38,15 @@ export const GiteaConfigPage = () => { }; return ( -
- - - Gitea 配置 - +
+
+
+

Gitea 配置

+

配置您的 Gitea API 设置。这些设置会保存在浏览器的本地存储中。 - - - +

+
+
@@ -71,24 +70,24 @@ export const GiteaConfigPage = () => { />
-
- - + {layoutStore.me && <> - - }
- - +
+
); }; diff --git a/src/pages/config/page.tsx b/src/pages/config/page.tsx index c9d15cc..6a76ec2 100644 --- a/src/pages/config/page.tsx +++ b/src/pages/config/page.tsx @@ -1,5 +1,4 @@ import { useConfigStore } from './store'; -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Button } from '@/components/ui/button'; @@ -19,15 +18,15 @@ export const ConfigPage = () => { return ( -
- - - CNB 配置 - +
+
+
+

CNB 配置

+

配置您的 CNB API 设置。这些设置会保存在浏览器的本地存储中。 - - - +

+
+
@@ -91,17 +90,17 @@ export const ConfigPage = () => { />
-
- -
- - +
+
); diff --git a/src/pages/repos/components/BuildConfig.tsx b/src/pages/repos/components/BuildConfig.tsx index af93ca3..907764c 100644 --- a/src/pages/repos/components/BuildConfig.tsx +++ b/src/pages/repos/components/BuildConfig.tsx @@ -59,23 +59,24 @@ export const BuildConfig = () => { return
Loading...
} return ( -
+
{/* 左侧边栏 - 配置信息 */} -
-
+
+
- 构建配置 + 构建配置
@@ -105,19 +106,19 @@ export const BuildConfig = () => {
{/* 右侧 - 编辑器 */} -
-
+
+
配置文件
diff --git a/src/pages/repos/components/RepoCard.tsx b/src/pages/repos/components/RepoCard.tsx index 5b40991..a23fea1 100644 --- a/src/pages/repos/components/RepoCard.tsx +++ b/src/pages/repos/components/RepoCard.tsx @@ -84,20 +84,20 @@ export function RepoCard({ showReturn = false, repo }: RepoCardProps) { } return ( <> - -
-
+ +
+
{showReturn && ( )}
{ openInCNB() }} @@ -127,7 +127,7 @@ export function RepoCard({ showReturn = false, repo }: RepoCardProps) { )}
-
+
{isWorkspaceActive && ( @@ -288,7 +288,7 @@ export function RepoCard({ showReturn = false, repo }: RepoCardProps) {
-
+
{repo.topics && (<> { repo.topics.split(',').map((topic: string, idx: number) => ( @@ -306,7 +306,7 @@ export function RepoCard({ showReturn = false, repo }: RepoCardProps) { }}> {repo.site && (
{ window.open(repo.site, '_blank') e.stopPropagation() @@ -319,27 +319,27 @@ export function RepoCard({ showReturn = false, repo }: RepoCardProps) {
)} {repo.description && ( -

+

{repo.description}

)}
-
- +
+ {repo.star_count} - + {repo.fork_count} - + {repo.open_issue_count} - {isWorkspaceActive && { store.getWorkspaceDetail(workspace) }}> @@ -348,7 +348,7 @@ export function RepoCard({ showReturn = false, repo }: RepoCardProps) { } {isMine && ( { store.setSelectedSyncRepo(repo) store.setSyncDialogOpen(true) diff --git a/src/pages/repos/modules/CreateRepoDialog.tsx b/src/pages/repos/modules/CreateRepoDialog.tsx index b826091..ea62f87 100644 --- a/src/pages/repos/modules/CreateRepoDialog.tsx +++ b/src/pages/repos/modules/CreateRepoDialog.tsx @@ -64,7 +64,7 @@ export function CreateRepoDialog({ open, onOpenChange }: CreateRepoDialogProps) return ( - + 新建仓库 @@ -87,7 +87,7 @@ export function CreateRepoDialog({ open, onOpenChange }: CreateRepoDialogProps)