Skip to content

Commit

Permalink
Merge pull request #151 from guanweiwang/main
Browse files Browse the repository at this point in the history
feat: menu add options
  • Loading branch information
phxa1 authored Aug 16, 2024
2 parents 280db4e + cd41ee3 commit 50c1e9d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ const MENU = [
title: 'WebShell 检测',
href: '/webShell',
},
{
title: '编码转化',
href: `/toolkit/cyberChef/Base64Encoder`,
},
{
title: '加密解密',
href: `/toolkit/cyberChef/AESEncrypt`,
},
{
title: '其他工具',
href: '/tools',
Expand Down Expand Up @@ -101,6 +109,7 @@ const Header = () => {
}}
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
if (item.type === 'menu') {
return;
} else {
Expand Down Expand Up @@ -154,6 +163,10 @@ const Header = () => {
fontSize: '14px',
'&:hover': {
color: 'primary.main',
backgroundColor: 'rgba(0, 0, 0, 0.12) !important',
},
'&:focus': {
backgroundColor: 'transparent',
},
}}
onClick={() => {
Expand Down

0 comments on commit 50c1e9d

Please sign in to comment.