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

Method render

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

Source from the content-addressed store, hash-verified

36161 }
36162 }
36163 class ObjectModel extends Re.Component {
36164 render() {
36165 let {
36166 schema: s,
36167 name: o,
36168 displayName: i,
36169 isRef: a,
36170 getComponent: u,
36171 getConfigs: _,
36172 depth: w,
36173 onToggle: x,
36174 expanded: C,
36175 specPath: j,
36176 ...L
36177 } = this.props,
36178 { specSelectors: B, expandDepth: $, includeReadOnly: U, includeWriteOnly: V } = L
36179 const { isOAS3: z } = B,
36180 Y = w > 2 || (2 === w && 'items' !== j.last())
36181 if (!s) return null
36182 const { showExtensions: Z } = _(),
36183 ee = Z ? getExtensions(s) : (0, ze.List)()
36184 let ie = s.get('description'),
36185 ae = s.get('properties'),
36186 ce = s.get('additionalProperties'),
36187 le = s.get('title') || i || o,
36188 pe = s.get('required'),
36189 de = s.filter(
36190 (s, o) =>
36191 -1 !== ['maxProperties', 'minProperties', 'nullable', 'example'].indexOf(o)
36192 ),
36193 fe = s.get('deprecated'),
36194 ye = s.getIn(['externalDocs', 'url']),
36195 be = s.getIn(['externalDocs', 'description'])
36196 const _e = u('JumpToPath', !0),
36197 Se = u('Markdown', !0),
36198 we = u('Model'),
36199 xe = u('ModelCollapse'),
36200 Pe = u('Property'),
36201 Te = u('Link'),
36202 $e = u('ModelExtensions'),
36203 JumpToPathSection = () =>
36204 Re.createElement(
36205 'span',
36206 { className: 'model-jump-to-path' },
36207 Re.createElement(_e, { path: j })
36208 ),
36209 qe = Re.createElement(
36210 'span',
36211 null,
36212 Re.createElement('span', null, '{'),
36213 '...',
36214 Re.createElement('span', null, '}'),
36215 a ? Re.createElement(JumpToPathSection, null) : ''
36216 ),
36217 We = B.isOAS3() ? s.get('allOf') : null,
36218 He = B.isOAS3() ? s.get('anyOf') : null,
36219 Ye = B.isOAS3() ? s.get('oneOf') : null,
36220 Xe = B.isOAS3() ? s.get('not') : null,

Callers

nothing calls this directly

Calls 14

getExtensionsFunction · 0.85
sanitizeUrlFunction · 0.85
lastMethod · 0.80
containsMethod · 0.80
_Function · 0.70
uFunction · 0.70
getMethod · 0.65
JnFunction · 0.50
zFunction · 0.50
MnFunction · 0.50
filterMethod · 0.45
toArrayMethod · 0.45

Tested by

no test coverage detected