From 5e6ffbc583163f0be7fb3207baf2964ae89f8b1d Mon Sep 17 00:00:00 2001
From: Xinfan Chen <2024111082@stu.hit.edu.cn>
Date: Tue, 12 May 2026 21:29:33 +0800
Subject: [PATCH] merge branch main of github repo
---
aigc-director/aigc-claw/frontend/components/AppShell.tsx | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/aigc-director/aigc-claw/frontend/components/AppShell.tsx b/aigc-director/aigc-claw/frontend/components/AppShell.tsx
index f3548f4..3a5d2c9 100644
--- a/aigc-director/aigc-claw/frontend/components/AppShell.tsx
+++ b/aigc-director/aigc-claw/frontend/components/AppShell.tsx
@@ -2,7 +2,7 @@
import Link from 'next/link';
import { usePathname } from 'next/navigation';
-import { ChevronLeft, ChevronRight, Clapperboard, Hexagon, Home, PanelLeftOpen, Repeat2, UserRound } from 'lucide-react';
+import { ChevronLeft, ChevronRight, Clapperboard, Hexagon, Home, PanelLeftOpen, Repeat2, Settings, UserRound } from 'lucide-react';
import clsx from 'clsx';
import { useState } from 'react';
@@ -13,6 +13,8 @@
{ href: '/pipelines/action-transfer', label: '动作迁移', icon: Repeat2 },
{ href: '/pipelines/digital-human', label: '数字人口播', icon: UserRound },
];
+
+const SETTINGS_ITEM = { href: '/settings', label: '设置', icon: Settings };
export default function AppShell({ children }: { children: React.ReactNode }) {
const pathname = usePathname();
@@ -33,7 +35,7 @@
<span className="text-sm font-semibold text-gray-800 truncate">AIGC-Claw</span>
</div>
</div>
- <nav className="p-3 space-y-1">
+ <nav className="p-3 pb-20 space-y-1">
{NAV_ITEMS.map(item => {
const Icon = item.icon;
const active = item.href === '/' ? pathname === '/' : pathname.startsWith(item.href);
@@ -54,6 +56,26 @@
);
})}
</nav>
+ <div className="absolute bottom-0 left-0 right-0 border-t border-gray-100 p-3">
+ {(() => {
+ const Icon = SETTINGS_ITEM.icon;
+ const active = pathname.startsWith(SETTINGS_ITEM.href);
+ return (
+ <Link
+ href={SETTINGS_ITEM.href}
+ className={clsx(
+ 'flex items-center gap-3 rounded-xl px-3 py-2.5 text-sm font-medium transition-colors',
+ active
+ ? 'bg-blue-50 text-blue-600'
+ : 'text-gray-500 hover:bg-gray-50 hover:text-gray-800'
+ )}
+ >
+ <Icon className="w-4 h-4 flex-shrink-0" />
+ <span className="truncate">{SETTINGS_ITEM.label}</span>
+ </Link>
+ );
+ })()}
+ </div>
</div>
</aside>
--
Gitblit v1.8.0