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

Method render

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

Source from the content-addressed store, hash-verified

60770 const { oas3Actions: i, path: a, method: u } = this.props
60771 s && i.setResponseContentType({ value: o, path: a, method: u })
60772 }
60773 render() {
60774 let {
60775 responses: s,
60776 tryItOutResponse: o,
60777 getComponent: i,
60778 getConfigs: a,
60779 specSelectors: u,
60780 fn: _,
60781 producesValue: w,
60782 displayRequestDuration: x,
60783 specPath: C,
60784 path: j,
60785 method: L,
60786 oas3Selectors: B,
60787 oas3Actions: $,
60788 } = this.props,
60789 U = (function defaultStatusCode(s) {
60790 let o = s.keySeq()
60791 return o.contains(jt)
60792 ? jt
60793 : o
60794 .filter((s) => '2' === (s + '')[0])
60795 .sort()
60796 .first()
60797 })(s)
60798 const V = i('contentType'),
60799 z = i('liveResponse'),
60800 Y = i('response')
60801 let Z =
60802 this.props.produces && this.props.produces.size
60803 ? this.props.produces
60804 : responses_Responses.defaultProps.produces
60805 const ee = u.isOAS3()
60806 ? (function getAcceptControllingResponse(s) {
60807 if (!We().OrderedMap.isOrderedMap(s)) return null
60808 if (!s.size) return null
60809 const o = s.find(
60810 (s, o) =>
60811 o.startsWith('2') && Object.keys(s.get('content') || {}).length > 0
60812 ),
60813 i = s.get('default') || We().OrderedMap(),
60814 a = (i.get('content') || We().OrderedMap()).keySeq().toJS().length ? i : null
60815 return o || a
60816 })(s)
60817 : null,
60818 ie = s.filter((s, o) => !isExtension(o)),
60819 ae = createHtmlReadyId(`${L}${j}_responses`),
60820 ce = `${ae}_select`
60821 return ie && ie.size
60822 ? Re.createElement(
60823 'div',
60824 { className: 'responses-wrapper' },
60825 Re.createElement(
60826 'div',
60827 { className: 'opblock-section-header' },
60828 Re.createElement('h4', null, 'Responses'),
60829 u.isOAS3()

Callers

nothing calls this directly

Calls 13

isExtensionFunction · 0.85
createHtmlReadyIdFunction · 0.85
containsMethod · 0.80
iFunction · 0.70
getMethod · 0.65
WeFunction · 0.50
firstMethod · 0.45
filterMethod · 0.45
findMethod · 0.45
keysMethod · 0.45
toArrayMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected