Skip to content

Commit

Permalink
Merge pull request #1787 from yaklang/song/feat/newHome
Browse files Browse the repository at this point in the history
Song/feat/new home
  • Loading branch information
b1rdfree authored Jul 8, 2024
2 parents 33cfbb8 + d11334d commit 0e94b03
Show file tree
Hide file tree
Showing 36 changed files with 4,266 additions and 1,376 deletions.
20 changes: 20 additions & 0 deletions app/renderer/src/main/src/assets/icon/colors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -687,3 +687,23 @@ const IconSolidAIWhite = () => (
</defs>
</svg>
)

const SolidDocumenttext = () => (
<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'>
<path
fillRule='evenodd'
clipRule='evenodd'
d='M4.7998 4.7999C4.7998 3.47442 5.87432 2.3999 7.1998 2.3999H12.7027C13.3393 2.3999 13.9497 2.65276 14.3998 3.10285L18.4969 7.1999C18.9469 7.64999 19.1998 8.26044 19.1998 8.89696V19.1999C19.1998 20.5254 18.1253 21.5999 16.7998 21.5999H7.1998C5.87432 21.5999 4.7998 20.5254 4.7998 19.1999V4.7999Z'
fill='currentColor'
strokeLinejoin='round'
/>
<rect x='7.5' y='11.25' width='9' height='1.5' rx='0.75' fill='white' />
<rect x='7.5' y='15.75' width='9' height='1.5' rx='0.75' fill='white' />
</svg>
)
/**
* @description Icon/Solid/document-text
*/
export const SolidBorderDocumentTextIcon = (props: Partial<IconProps>) => {
return <Icon component={SolidDocumenttext} {...props} />
}
39 changes: 39 additions & 0 deletions app/renderer/src/main/src/assets/icon/outline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5332,3 +5332,42 @@ const OutlineTrashSecond = () => (
export const OutlineTrashSecondIcon = (props: Partial<IconProps>) => {
return <Icon component={OutlineTrashSecond} {...props} />
}

const OutlineModScanPortData = () => (
<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'>
<mask id='mask0_30057_207490' maskUnits='userSpaceOnUse' x='0' y='0' width='18' height='18'>
<rect width='18' height='18' fill='#D9D9D9' />
</mask>
<g mask='url(#mask0_30057_207490)'>
<path
d='M13.5 6H14.5C15.6046 6 16.5 6.89543 16.5 8V13C16.5 14.1046 15.6046 15 14.5 15H3.5C2.39543 15 1.5 14.1046 1.5 13V8C1.5 6.89543 2.39543 6 3.5 6H4.5'
stroke='currentColor'
strokeLinecap='round'
stroke-linejoin='round'
/>
<path
d='M13.5 6V4.75C13.5 4.19772 13.0523 3.75 12.5 3.75H12M4.5 6V4.75C4.5 4.19772 4.94772 3.75 5.5 3.75H6'
stroke='currentColor'
strokeLinecap='round'
strokeLinejoin='round'
/>
<path
d='M12 3.75V3.25C12 2.69772 11.5523 2.25 11 2.25H7C6.44772 2.25 6 2.69772 6 3.25V3.75'
stroke='currentColor'
strokeLinecap='round'
strokeLinejoin='round'
/>
<path d='M4.5 9V12' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />
<path d='M6.75 9V12' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />
<path d='M9 9V12' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />
<path d='M11.25 9V12' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />
<path d='M13.5 9V12' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' />
</g>
</svg>
)
/**
* @description UI Kit/Icon/Outline/端口资产
*/
export const OutlineModScanPortDataIcon = (props: Partial<CustomIconComponentProps>) => {
return <Icon component={OutlineModScanPortData} {...props} />
}
Binary file added app/renderer/src/main/src/assets/mitm-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

text-orientation: sideways-right;
writing-mode: vertical-rl;
border-top: 1px solid #fff;
svg {
width: 16px;
height: 16px;
Expand Down
2 changes: 1 addition & 1 deletion app/renderer/src/main/src/components/layout/FuncDomain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ const UIOpUpdateYakit: React.FC<UIOpUpdateProps> = React.memo((props) => {
<div className={styles["update-header-wrapper"]}>
<div className={styles["header-info"]}>
<div className={styles["update-icon"]}>
<img src={YakitLogo} width={30} />
<YakitWhiteSvgIcon />
</div>
{/* 等使用更新内容时,下面"当前版本"-div需要被删除 */}
<div>
Expand Down
43 changes: 26 additions & 17 deletions app/renderer/src/main/src/components/layout/UILayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1233,11 +1233,13 @@ const UILayout: React.FC<UILayoutProp> = (props) => {
>
{performanceSamplingInfo.log.map((item, index) => (
<div className={classNames(styles["sampling-info"])} key={index}>
<Tooltip title='点击打开所在目录' placement="top" align={{offset: [40, 0]}}>
<Tooltip
title='点击打开所在目录'
placement='top'
align={{targetOffset: [-10, -15]}}
>
<span
className={classNames(
styles["sampling-info-item"]
)}
className={classNames(styles["sampling-info-item"])}
onClick={() => {
ipcRenderer
.invoke("is-file-exists", item.path)
Expand All @@ -1251,7 +1253,12 @@ const UILayout: React.FC<UILayoutProp> = (props) => {
.catch(() => {})
}}
>
{item.path.substring(item.path.lastIndexOf("\\") + 1)}
{item.path.substring(
Math.max(
item.path.lastIndexOf("/"),
item.path.lastIndexOf("\\")
) + 1
)}
</span>
</Tooltip>
<CopyComponents copyText={item.path} />
Expand Down Expand Up @@ -1288,18 +1295,20 @@ const UILayout: React.FC<UILayoutProp> = (props) => {
if (!visible) setIsShowSamplingInfo(false)
}}
>
<YakitButton
type='primary'
colors='success'
className={styles["stop-screen-recorder"]}
size='middle'
onClick={() => setIsShowSamplingInfo(true)}
>
<div className={styles["stop-icon"]}>
<SolidCheckCircleIcon />
</div>
<span className={styles["stop-text"]}>采样完成</span>
</YakitButton>
<Tooltip title='采样完成' placement='bottom'>
<YakitButton
type='primary'
colors='success'
className={styles["stop-screen-recorder"]}
size='middle'
onClick={() => setIsShowSamplingInfo(true)}
>
<div className={styles["stop-icon"]}>
<SolidCheckCircleIcon />
</div>
<span className={styles["stop-text"]}>采样完成</span>
</YakitButton>
</Tooltip>
</YakitPopover>
) : (
<></>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
}
.wrench-icon {
svg {
color: #85899E;
width: 16px;
height: 16px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@

.sampling-popover {
width: 272px;
padding-top: 3px;
padding-top: 10px;
border-radius: 4px;
overflow: hidden;
border: 1px solid var(--yakit-border-color);
Expand Down
5 changes: 5 additions & 0 deletions app/renderer/src/main/src/defaultConstants/PluginHubPage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {PluginHubPageInfoProps} from "@/store/pageInfo"

export const defaultPluginHubPageInfo: PluginHubPageInfoProps = {
tabActive: "online"
}
5 changes: 5 additions & 0 deletions app/renderer/src/main/src/defaultConstants/RiskPage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {RiskPageInfoProps} from "@/store/pageInfo"

export const defaultRiskPageInfo: RiskPageInfoProps = {
SeverityList: []
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.enterprise-report-viewer{
.enterprise-report-viewer {
height: 100%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2079,7 +2079,7 @@ const SequenceResponse: React.FC<SequenceResponseProps> = React.memo(

// 序列动画演示
interface SequenceAnimationAemonstrationProps {}
const SequenceAnimationAemonstration: React.FC<SequenceAnimationAemonstrationProps> = React.memo((props) => {
export const SequenceAnimationAemonstration: React.FC<SequenceAnimationAemonstrationProps> = React.memo((props) => {
return (
<div className={styles["sequence-animation-aemonstration"]}>
<div className={styles["animation-cont-wrap"]}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,10 @@

.blasting-animation-aemonstration {
padding: 16px;
padding-top: 0;
.animation-cont-wrap {
margin-top: 16px;
width: 100%;
height: 310px;
border-radius: 10px;
border: 1px solid var(--yakit-border-color);
overflow: hidden;
Expand Down
56 changes: 31 additions & 25 deletions app/renderer/src/main/src/pages/fuzzer/HTTPFuzzerPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useEffect, useMemo, useRef, useState} from "react"
import React, {CSSProperties, useEffect, useMemo, useRef, useState} from "react"
import {Form, Modal, Result, Space, Popover, Tooltip, Divider, Descriptions} from "antd"
import {
IMonacoEditor,
Expand Down Expand Up @@ -3128,9 +3128,12 @@ const ResponseViewerSecondNode: React.FC<ResponseViewerSecondNodeProps> = React.
})

// 爆破动画演示
interface BlastingAnimationAemonstrationProps {}
const BlastingAnimationAemonstration: React.FC<BlastingAnimationAemonstrationProps> = React.memo((props) => {
const [animationType, setAnimationType] = useState<string>("id")
interface BlastingAnimationAemonstrationProps {
animationType?: string
videoStyle?: CSSProperties
}
export const BlastingAnimationAemonstration: React.FC<BlastingAnimationAemonstrationProps> = React.memo((props) => {
const [animationType, setAnimationType] = useState<string>(props.animationType || "id")

const [animationResources, setAnimationResources] = useState<string>(blastingIdmp4)

Expand All @@ -3146,28 +3149,31 @@ const BlastingAnimationAemonstration: React.FC<BlastingAnimationAemonstrationPro

return (
<div className={styles["blasting-animation-aemonstration"]}>
<YakitRadioButtons
size='large'
buttonStyle='solid'
value={animationType}
options={[
{
value: "id",
label: "爆破 ID"
},
{
value: "pwd",
label: "爆破密码"
},
{
value: "count",
label: "爆破账号"
}
]}
onChange={(e) => setAnimationType(e.target.value)}
/>
{!props.animationType && (
<YakitRadioButtons
size='large'
buttonStyle='solid'
value={animationType}
options={[
{
value: "id",
label: "爆破 ID"
},
{
value: "pwd",
label: "爆破密码"
},
{
value: "count",
label: "爆破账号"
}
]}
onChange={(e) => setAnimationType(e.target.value)}
/>
)}

<div className={styles["animation-cont-wrap"]}>
<video src={animationResources} autoPlay loop></video>
<video src={animationResources} autoPlay loop style={props.videoStyle}></video>
</div>
</div>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
color: var(--yakit-header-color);
cursor: pointer;
background-color: #f0f1f3;
border-bottom: 1px solid #fff;
&:hover {
background-color: rgba(204, 210, 222, 0.5);
}
Expand Down
Loading

0 comments on commit 0e94b03

Please sign in to comment.