Skip to content

Commit

Permalink
test:开发测试入口
Browse files Browse the repository at this point in the history
  • Loading branch information
luoluoTH committed Oct 21, 2024
1 parent e4d98c1 commit b438a51
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions app/renderer/src/main/src/pages/layout/publicMenu/ExtraMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {YakitRoute} from "@/enums/yakitRoute"
import {onImportShare} from "@/pages/fuzzer/components/ShareImport"
import {useMemoizedFn} from "ahooks"
import {RouteToPageProps} from "./PublicMenu"
import { OutlineSaveIcon } from "@/assets/icon/outline"
import { SolidCodecIcon, SolidPayloadIcon, SolidTerminalIcon } from "@/assets/icon/solid"
import {OutlineSaveIcon} from "@/assets/icon/outline"
import {SolidCodecIcon, SolidPayloadIcon, SolidTerminalIcon} from "@/assets/icon/solid"

import styles from "./ExtraMenu.module.scss"
import { ImportLocalPlugin, LoadPluginMode } from "@/pages/mitm/MITMPage"
import {ImportLocalPlugin, LoadPluginMode} from "@/pages/mitm/MITMPage"

interface ExtraMenuProps {
onMenuSelect: (route: RouteToPageProps) => void
Expand Down Expand Up @@ -51,10 +51,10 @@ export const ExtraMenu: React.FC<ExtraMenuProps> = React.memo((props) => {
key: "import-plugin",
label: "导入插件",
children: [
{ key: 'local', label: "本地插件" },
{ key: 'uploadId', label: "插件 ID" },
{ key: 'giturl', label: "线上 Nuclei" },
{ key: 'local-nuclei', label: "本地 Nuclei" },
{key: "local", label: "本地插件"},
{key: "uploadId", label: "插件 ID"},
{key: "giturl", label: "线上 Nuclei"},
{key: "local-nuclei", label: "本地 Nuclei"}
]
},
{
Expand Down Expand Up @@ -102,7 +102,7 @@ export const ExtraMenu: React.FC<ExtraMenuProps> = React.memo((props) => {
onClick={() => {
onMenuSelect({route: YakitRoute.PayloadManager})
}}
icon={<SolidPayloadIcon/>}
icon={<SolidPayloadIcon />}
>
Payload
</YakitButton>
Expand All @@ -115,6 +115,15 @@ export const ExtraMenu: React.FC<ExtraMenuProps> = React.memo((props) => {
>
Yak Runner
</YakitButton>
<YakitButton
onClick={() =>
onMenuSelect({
route: YakitRoute.Modify_Notepad
})
}
>
记事本
</YakitButton>
<ImportLocalPlugin
visible={visibleImport}
setVisible={(v) => {
Expand Down

0 comments on commit b438a51

Please sign in to comment.