Skip to content

Commit

Permalink
zancun
Browse files Browse the repository at this point in the history
  • Loading branch information
song-xiao-lin committed Nov 6, 2024
1 parent fdde19f commit 4f5e04a
Showing 1 changed file with 19 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ export interface HTTPFlow {
ResponseString: string

HiddenIndex?:string

FromPlugin: string
}
/**获取请求包Request和响应包Response string */
export const getHTTPFlowReqAndResToString = (flow: HTTPFlow) => {
Expand Down Expand Up @@ -1090,6 +1092,7 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
const resData = rsp?.Data || []
const newData: HTTPFlow[] = getClassNameData(resData)
const copyData = newData.slice()
console.log(123, newData);
if (type === "top") {
if (newData.length <= 0) {
// 没有数据
Expand Down Expand Up @@ -1666,11 +1669,6 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
filterIcon: <OutlineSearchIcon className={style["filter-icon"]} />
}
}
const HtmlTitle: ColumnsTypeProps = {
title: "Title",
dataKey: "HtmlTitle",
width: 200
}
const WebPayloads: ColumnsTypeProps = {
title: "Payloads",
dataKey: "Payloads",
Expand Down Expand Up @@ -1826,6 +1824,16 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
)
}
}
const FromPlugin: ColumnsTypeProps = {
title: "相关插件",
dataKey: "FromPlugin",
width: 200,
filterProps: {
filterKey: "FromPlugin",
filtersType: "input",
filterIcon: <OutlineSearchIcon className={style["filter-icon"]} />
}
}
const GetParamsTotal: ColumnsTypeProps = {
title: "参数",
dataKey: "GetParamsTotal",
Expand Down Expand Up @@ -1975,12 +1983,12 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
Method,
StatusCode,
Url,
HtmlTitle,
WebPayloads,
Tags,
IPAddress,
DurationMs,
BodyLength,
FromPlugin,
GetParamsTotal,
ContentType,
UpdatedAt,
Expand All @@ -1994,11 +2002,11 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
Method,
StatusCode,
Url,
HtmlTitle,
Tags,
IPAddress,
DurationMs,
BodyLength,
FromPlugin,
GetParamsTotal,
ContentType,
UpdatedAt,
Expand Down Expand Up @@ -2307,10 +2315,6 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
title: "URL",
key: "url"
},
{
title: "Title",
key: "response"
},
{
title: "Payloads",
key: "payloads"
Expand All @@ -2327,6 +2331,10 @@ export const HTTPFlowTable = React.memo<HTTPFlowTableProp>((props) => {
title: "响应长度",
key: "body_length"
},
{
title: "相关插件",
key: "from_plugin"
},
{
title: "参数",
key: "get_params_total"
Expand Down

0 comments on commit 4f5e04a

Please sign in to comment.