MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / quickactions

Function quickactions

web/src/js/components/FlowTable/FlowColumns.tsx:157–188  ·  view source on GitHub ↗
({ flow })

Source from the content-addressed store, hash-verified

155timestamp.headerName = "Start time";
156
157export const quickactions: FlowColumn = ({ flow }) => {
158 const dispatch = useAppDispatch();
159
160 let resume_or_replay: ReactElement<any> | null = null;
161 if (flow.intercepted) {
162 resume_or_replay = (
163 <a
164 href="#"
165 className="quickaction"
166 onClick={() => dispatch(flowActions.resume([flow]))}
167 >
168 <i className="fa fa-fw fa-play text-success" />
169 </a>
170 );
171 } else if (canReplay(flow)) {
172 resume_or_replay = (
173 <a
174 href="#"
175 className="quickaction"
176 onClick={() => dispatch(flowActions.replay([flow]))}
177 >
178 <i className="fa fa-fw fa-repeat text-primary" />
179 </a>
180 );
181 }
182
183 return (
184 <td className="col-quickactions">
185 {resume_or_replay ? <div>{resume_or_replay}</div> : <></>}
186 </td>
187 );
188};
189quickactions.headerName = "";
190
191export const comment: FlowColumn = ({ flow }) => {

Callers

nothing calls this directly

Calls 5

useAppDispatchFunction · 0.90
canReplayFunction · 0.90
dispatchFunction · 0.85
replayMethod · 0.80
resumeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…