MCPcopy Index your code
hub / github.com/dataease/SQLBot / render

Method render

frontend/public/swagger-ui-bundle.js:60587–60668  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60585 KO = __webpack_require__.n(HO)
60586 class OperationSummary extends Re.PureComponent {
60587 static defaultProps = { operationProps: null, specPath: (0, ze.List)(), summary: '' }
60588 render() {
60589 let {
60590 isShown: s,
60591 toggleShown: o,
60592 getComponent: i,
60593 authActions: a,
60594 authSelectors: u,
60595 operationProps: _,
60596 specPath: w,
60597 } = this.props,
60598 {
60599 summary: x,
60600 isAuthorized: C,
60601 method: j,
60602 op: L,
60603 showSummary: B,
60604 path: $,
60605 operationId: U,
60606 originalOperationId: V,
60607 displayOperationId: z,
60608 } = _.toJS(),
60609 { summary: Y } = L,
60610 Z = _.get('security')
60611 const ee = i('authorizeOperationBtn', !0),
60612 ie = i('OperationSummaryMethod'),
60613 ae = i('OperationSummaryPath'),
60614 ce = i('JumpToPath', !0),
60615 le = i('CopyToClipboardBtn', !0),
60616 pe = i('ArrowUpIcon'),
60617 de = i('ArrowDownIcon'),
60618 fe = Z && !!Z.count(),
60619 ye = fe && 1 === Z.size && Z.first().isEmpty(),
60620 be = !fe || ye
60621 return Re.createElement(
60622 'div',
60623 { className: `opblock-summary opblock-summary-${j}` },
60624 Re.createElement(
60625 'button',
60626 { 'aria-expanded': s, className: 'opblock-summary-control', onClick: o },
60627 Re.createElement(ie, { method: j }),
60628 Re.createElement(
60629 'div',
60630 { className: 'opblock-summary-path-description-wrapper' },
60631 Re.createElement(ae, { getComponent: i, operationProps: _, specPath: w }),
60632 B
60633 ? Re.createElement(
60634 'div',
60635 { className: 'opblock-summary-description' },
60636 KO()(Y || x)
60637 )
60638 : null
60639 ),
60640 z && (V || U)
60641 ? Re.createElement('span', { className: 'opblock-summary-operation-id' }, V || U)
60642 : null
60643 ),
60644 Re.createElement(le, { textToCopy: `${w.get(1)}` }),

Callers

nothing calls this directly

Calls 6

replaceMethod · 0.80
iFunction · 0.70
getMethod · 0.65
KOFunction · 0.50
isEmptyMethod · 0.45
firstMethod · 0.45

Tested by

no test coverage detected