feat: 更新依赖版本,添加PWA更新组件,优化Sidebar组件,增加footer支持

This commit is contained in:
xiongxiao
2026-03-22 13:54:30 +08:00
committed by cnb
parent 518a3f2864
commit dd100fd7ef
9 changed files with 175 additions and 37 deletions

View File

@@ -33,7 +33,17 @@ const navItems: NavItem[] = [
export function SidebarLayout({ children }: { children: React.ReactNode }) {
return (
<Sidebar items={navItems} title='云原生' logo={<Logo className='w-6 h-6' />}>
<Sidebar items={navItems} title='云原生' logo={<Logo className='w-6 h-6' />}
footer={<div className="p-4 border-t text-sm text-gray-500 hover:text-gray-700">
<a
href="https://cnb.cool/kevisual/cnb-center"
target="_blank"
rel="noopener noreferrer"
>
CNB Center
</a>
</div>}
>
{children}
</Sidebar>
)