-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 新增 LayoutFooter 组件,用于显示版权信息和 GitHub 相关链接 - 移除 MoonLayout、TeamMenu 和 Login 组件中的重复代码 - 优化 TeamMenu 组件中的团队列表获取和处理逻辑 - 更新 Login 组件,使用新的 LayoutFooter 组件替换原有的版权信息显示方式
- Loading branch information
1 parent
1730c41
commit 3bea91d
Showing
5 changed files
with
89 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { CopyrightOutlined } from '@ant-design/icons' | ||
|
||
const actionList = [ | ||
{ | ||
img: 'https://img.shields.io/github/license/aide-family/moon.svg?style=flat', | ||
url: 'https://github.com/aide-family/moon?tab=MIT-1-ov-file' | ||
}, | ||
{ | ||
img: 'https://img.shields.io/github/v/release/aide-family/moon?style=flat', | ||
url: 'https://github.com/aide-family/moon/releases' | ||
}, | ||
{ | ||
img: 'https://img.shields.io/github/stars/aide-family/moon?style=flat', | ||
url: 'https://github.com/aide-family/moon' | ||
}, | ||
{ | ||
img: 'https://img.shields.io/github/forks/aide-family/moon?style=flat', | ||
url: 'https://github.com/aide-family/moon/fork' | ||
} | ||
] | ||
|
||
export default function LayoutFooter() { | ||
return ( | ||
<div className='ml-2 flex items-center gap-2'> | ||
<div className='flex items-center gap-2 text-sm'> | ||
<CopyrightOutlined /> | ||
{window.location.host} | ||
</div> | ||
{actionList.map((item, index) => ( | ||
<div className='flex justify-center items-center h-[20px]' onClick={() => window.open(item.url)} key={index}> | ||
<img src={item.img} alt='' /> | ||
</div> | ||
))} | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters