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

Function model_example

frontend/public/swagger-ui-bundle.js:35491–35600  ·  view source on GitHub ↗
({
            schema: s,
            example: o,
            isExecute: i = !1,
            specPath: a,
            includeWriteOnly: u = !1,
            includeReadOnly: _ = !1,
            getComponent: w,
            getConfigs: x,
            specSelectors: C,
          })

Source from the content-addressed store, hash-verified

35489 { activeTab: x, onTabChange: j, tabs: u }
35490 )
35491 },
35492 model_example = ({
35493 schema: s,
35494 example: o,
35495 isExecute: i = !1,
35496 specPath: a,
35497 includeWriteOnly: u = !1,
35498 includeReadOnly: _ = !1,
35499 getComponent: w,
35500 getConfigs: x,
35501 specSelectors: C,
35502 }) => {
35503 const { defaultModelRendering: j, defaultModelExpandDepth: L } = x(),
35504 B = w('ModelWrapper'),
35505 $ = w('HighlightCode', !0),
35506 U = xt()(5).toString('base64'),
35507 V = xt()(5).toString('base64'),
35508 z = xt()(5).toString('base64'),
35509 Y = xt()(5).toString('base64'),
35510 Z = C.isOAS3(),
35511 {
35512 activeTab: ee,
35513 tabs: ie,
35514 onTabChange: ae,
35515 } = useTabs({ initialTab: j, isExecute: i, schema: s, example: o })
35516 return Re.createElement(
35517 'div',
35518 { className: 'model-example' },
35519 Re.createElement(
35520 'ul',
35521 { className: 'tab', role: 'tablist' },
35522 Re.createElement(
35523 'li',
35524 {
35525 className: Jn()('tabitem', { active: ee === ie.example }),
35526 role: 'presentation',
35527 },
35528 Re.createElement(
35529 'button',
35530 {
35531 'aria-controls': V,
35532 'aria-selected': ee === ie.example,
35533 className: 'tablinks',
35534 'data-name': 'example',
35535 id: U,
35536 onClick: ae,
35537 role: 'tab',
35538 },
35539 i ? 'Edit Value' : 'Example Value'
35540 )
35541 ),
35542 s &&
35543 Re.createElement(
35544 'li',
35545 {
35546 className: Jn()('tabitem', { active: ee === ie.model }),
35547 role: 'presentation',
35548 },

Callers

nothing calls this directly

Calls 6

useTabsFunction · 0.85
xFunction · 0.70
wFunction · 0.70
xtFunction · 0.50
JnFunction · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected