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

Method render

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

Source from the content-addressed store, hash-verified

62524 }
62525 }
62526 class info_Info extends Re.Component {
62527 render() {
62528 const {
62529 info: s,
62530 url: o,
62531 host: i,
62532 basePath: a,
62533 getComponent: u,
62534 externalDocs: _,
62535 selectedServer: w,
62536 url: x,
62537 } = this.props,
62538 C = s.get('version'),
62539 j = s.get('description'),
62540 L = s.get('title'),
62541 B = safeBuildUrl(s.get('termsOfService'), x, { selectedServer: w }),
62542 $ = s.get('contact'),
62543 U = s.get('license'),
62544 V = safeBuildUrl(_ && _.get('url'), x, { selectedServer: w }),
62545 z = _ && _.get('description'),
62546 Y = u('Markdown', !0),
62547 Z = u('Link'),
62548 ee = u('VersionStamp'),
62549 ie = u('OpenAPIVersion'),
62550 ae = u('InfoUrl'),
62551 ce = u('InfoBasePath'),
62552 le = u('License'),
62553 pe = u('Contact')
62554 return Re.createElement(
62555 'div',
62556 { className: 'info' },
62557 Re.createElement(
62558 'hgroup',
62559 { className: 'main' },
62560 Re.createElement(
62561 'h1',
62562 { className: 'title' },
62563 L,
62564 Re.createElement(
62565 'span',
62566 null,
62567 C && Re.createElement(ee, { version: C }),
62568 Re.createElement(ie, { oasVersion: '2.0' })
62569 )
62570 ),
62571 i || a ? Re.createElement(ce, { host: i, basePath: a }) : null,
62572 o && Re.createElement(ae, { getComponent: u, url: o })
62573 ),
62574 Re.createElement(
62575 'div',
62576 { className: 'description' },
62577 Re.createElement(Y, { source: j })
62578 ),
62579 B &&
62580 Re.createElement(
62581 'div',
62582 { className: 'info__tos' },
62583 Re.createElement(

Callers

nothing calls this directly

Calls 4

safeBuildUrlFunction · 0.85
sanitizeUrlFunction · 0.85
uFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected