统一使用 public logo 资源
- 登录页、侧栏和 favicon 统一引用 public/logo.png 暴露的 /logo.png。 - 删除根目录 logo_square.png 和 Express 中单独提供该文件的路由。 - 同步更新组件测试、项目文档和历史工程分析说明,避免继续引用旧 logo_square。 - 同步整理 ../Seg_Server_Docker 部署包,仅保留 public/logo.png 并更新前端 Docker 构建配置。
This commit is contained in:
@@ -55,7 +55,7 @@ describe('Login', () => {
|
||||
it('uses the product logo and updated system title copy', () => {
|
||||
render(<Login />);
|
||||
|
||||
expect(screen.getByAltText('Logo')).toHaveAttribute('src', expect.stringContaining('logo_square'));
|
||||
expect(screen.getByAltText('Logo')).toHaveAttribute('src', expect.stringContaining('logo.png'));
|
||||
expect(screen.getByText('多模态影像及视频智能语义分割与标注系统')).toBeInTheDocument();
|
||||
expect(screen.getByText('智能语义分割系统')).toBeInTheDocument();
|
||||
expect(screen.queryByText('欢迎登录协同工作站')).not.toBeInTheDocument();
|
||||
|
||||
@@ -33,7 +33,7 @@ export function Login() {
|
||||
<div className="relative z-10 w-full max-w-md p-8 bg-[#111] border border-white/5 rounded-2xl shadow-2xl scale-in shadow-black/50">
|
||||
<div className="flex flex-col items-center mb-8">
|
||||
<div className="w-16 h-16 bg-white rounded-2xl flex items-center justify-center text-cyan-500 shadow-lg shadow-cyan-500/20 mb-4 overflow-hidden border border-white/10">
|
||||
<img src="/logo_square.png" alt="Logo" className="h-full w-full object-contain" />
|
||||
<img src="/logo.png" alt="Logo" className="h-full w-full object-contain" />
|
||||
</div>
|
||||
<h1 className="text-center text-2xl font-bold text-white tracking-wider mb-2">多模态影像及视频智能语义分割与标注系统</h1>
|
||||
<p className="text-sm text-gray-500">智能语义分割系统</p>
|
||||
|
||||
@@ -41,10 +41,10 @@ describe('Sidebar', () => {
|
||||
expect(screen.getByTitle('AI智能分割').querySelector('[data-testid="ai-segmentation-icon"]')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('uses the root logo_square asset for the sidebar logo', () => {
|
||||
it('uses the public logo asset for the sidebar logo', () => {
|
||||
render(<Sidebar activeModule="dashboard" setActiveModule={vi.fn()} />);
|
||||
|
||||
expect(screen.getByAltText('Logo')).toHaveAttribute('src', expect.stringContaining('logo_square'));
|
||||
expect(screen.getByAltText('Logo')).toHaveAttribute('src', expect.stringContaining('logo.png'));
|
||||
});
|
||||
|
||||
it('uses a logout icon and prevents the logout tooltip from catching workspace hover', () => {
|
||||
|
||||
@@ -26,7 +26,7 @@ export function Sidebar({ activeModule, setActiveModule }: SidebarProps) {
|
||||
return (
|
||||
<aside className="w-16 flex flex-col items-center py-6 bg-[#0d0d0d] border-r border-white/10 z-50 gap-8">
|
||||
<div className="w-10 h-10 rounded-lg overflow-hidden flex items-center justify-center bg-white">
|
||||
<img src="/logo_square.png" alt="Logo" className="h-full w-full object-contain" />
|
||||
<img src="/logo.png" alt="Logo" className="h-full w-full object-contain" />
|
||||
</div>
|
||||
<nav className="flex flex-col gap-6 w-full px-2">
|
||||
{navItems.map((item) => {
|
||||
|
||||
Reference in New Issue
Block a user