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

Method render

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

Source from the content-addressed store, hash-verified

35995 this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(), o], s)
35996 }
35997 }
35998 render() {
35999 let {
36000 specSelectors: s,
36001 getComponent: o,
36002 layoutSelectors: i,
36003 layoutActions: a,
36004 getConfigs: u,
36005 } = this.props,
36006 _ = s.definitions(),
36007 { docExpansion: w, defaultModelsExpandDepth: x } = u()
36008 if (!_.size || x < 0) return null
36009 const C = this.getSchemaBasePath()
36010 let j = i.isShown(C, x > 0 && 'none' !== w)
36011 const L = s.isOAS3(),
36012 B = o('ModelWrapper'),
36013 $ = o('Collapse'),
36014 U = o('ModelCollapse'),
36015 V = o('JumpToPath', !0),
36016 z = o('ArrowUpIcon'),
36017 Y = o('ArrowDownIcon')
36018 return Re.createElement(
36019 'section',
36020 { className: j ? 'models is-open' : 'models', ref: this.onLoadModels },
36021 Re.createElement(
36022 'h4',
36023 null,
36024 Re.createElement(
36025 'button',
36026 { 'aria-expanded': j, className: 'models-control', onClick: () => a.show(C, !j) },
36027 Re.createElement('span', null, L ? 'Schemas' : 'Models'),
36028 j ? Re.createElement(z, null) : Re.createElement(Y, null)
36029 )
36030 ),
36031 Re.createElement(
36032 $,
36033 { isOpened: j },
36034 _.entrySeq()
36035 .map(([_]) => {
36036 const w = [...C, _],
36037 j = We().List(w),
36038 L = s.specResolvedSubtree(w),
36039 $ = s.specJson().getIn(w),
36040 z = ze.Map.isMap(L) ? L : We().Map(),
36041 Y = ze.Map.isMap($) ? $ : We().Map(),
36042 Z = z.get('title') || Y.get('title') || _,
36043 ee = i.isShown(w, !1)
36044 ee &&
36045 0 === z.size &&
36046 Y.size > 0 &&
36047 this.props.specActions.requestResolvedSubtree(w)
36048 const ie = Re.createElement(B, {
36049 name: _,
36050 expandDepth: x,
36051 schema: z || We().Map(),
36052 displayName: Z,
36053 fullPath: w,
36054 specPath: j,

Callers

nothing calls this directly

Calls 8

showMethod · 0.80
uFunction · 0.70
oFunction · 0.70
getMethod · 0.65
WeFunction · 0.50
definitionsMethod · 0.45
toArrayMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected