MCPcopy Create free account
hub / github.com/dataease/SQLBot / keywords_ExternalDocs

Function keywords_ExternalDocs

frontend/public/swagger-ui-bundle.js:71814–71950  ·  view source on GitHub ↗
({ schema: s, getSystem: o })

Source from the content-addressed store, hash-verified

71812 })
71813 )
71814 },
71815 keywords_ExternalDocs = ({ schema: s, getSystem: o }) => {
71816 const i = s?.externalDocs || {},
71817 { fn: a, getComponent: u, getConfigs: _ } = o(),
71818 { showExtensions: w } = _(),
71819 { useComponent: x, useIsExpanded: C, usePath: j, useLevel: L } = a.jsonSchema202012,
71820 B = 'externalDocs',
71821 { path: $ } = j(B),
71822 { isExpanded: U, setExpanded: V, setCollapsed: z } = C(B),
71823 [Y, Z] = L(),
71824 ee = w ? getExtensions(i) : [],
71825 ie = !!(i.description || i.url || ee.length > 0),
71826 ae = x('Accordion'),
71827 ce = x('ExpandDeepButton'),
71828 le = u('JSONSchema202012KeywordDescription'),
71829 pe = u('Link'),
71830 de = u('OpenAPI31Extensions'),
71831 fe = u('JSONSchema202012PathContext')(),
71832 ye = u('JSONSchema202012LevelContext')(),
71833 be = (0, Re.useCallback)(() => {
71834 U ? z() : V()
71835 }, [U, V, z]),
71836 _e = (0, Re.useCallback)(
71837 (s, o) => {
71838 o ? V({ deep: !0 }) : z({ deep: !0 })
71839 },
71840 [V, z]
71841 )
71842 return 0 === Object.keys(i).length
71843 ? null
71844 : Re.createElement(
71845 fe.Provider,
71846 { value: $ },
71847 Re.createElement(
71848 ye.Provider,
71849 { value: Z },
71850 Re.createElement(
71851 'div',
71852 {
71853 className:
71854 'json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs',
71855 'data-json-schema-level': Y,
71856 },
71857 ie
71858 ? Re.createElement(
71859 Re.Fragment,
71860 null,
71861 Re.createElement(
71862 ae,
71863 { expanded: U, onChange: be },
71864 Re.createElement(
71865 'span',
71866 {
71867 className:
71868 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary',
71869 },
71870 'External documentation'
71871 )

Callers

nothing calls this directly

Calls 13

getExtensionsFunction · 0.85
sanitizeUrlFunction · 0.85
oFunction · 0.70
_Function · 0.70
CFunction · 0.70
LFunction · 0.70
xFunction · 0.70
uFunction · 0.70
VFunction · 0.70
jFunction · 0.50
zFunction · 0.50
JnFunction · 0.50

Tested by

no test coverage detected