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

Method mapStateToProps

frontend/public/swagger-ui-bundle.js:60413–60449  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

60411 displayOperationId: !1,
60412 displayRequestDuration: !1,
60413 }
60414 mapStateToProps(s, o) {
60415 const { op: i, layoutSelectors: a, getConfigs: u } = o,
60416 {
60417 docExpansion: _,
60418 deepLinking: w,
60419 displayOperationId: x,
60420 displayRequestDuration: C,
60421 supportedSubmitMethods: j,
60422 } = u(),
60423 L = a.showSummary(),
60424 B =
60425 i.getIn(['operation', '__originalOperationId']) ||
60426 i.getIn(['operation', 'operationId']) ||
60427 opId(i.get('operation'), o.path, o.method) ||
60428 i.get('id'),
60429 $ = ['operations', o.tag, B],
60430 U =
60431 j.indexOf(o.method) >= 0 &&
60432 (void 0 === o.allowTryItOut
60433 ? o.specSelectors.allowTryItOutFor(o.path, o.method)
60434 : o.allowTryItOut),
60435 V = i.getIn(['operation', 'security']) || o.specSelectors.security()
60436 return {
60437 operationId: B,
60438 isDeepLinkingEnabled: w,
60439 showSummary: L,
60440 displayOperationId: x,
60441 displayRequestDuration: C,
60442 allowTryItOut: U,
60443 security: V,
60444 isAuthorized: o.authSelectors.isAuthorized(V),
60445 isShown: a.isShown($, 'full' === _),
60446 jumpToKey: `paths.${o.path}.${o.method}`,
60447 response: o.specSelectors.responseFor(o.path, o.method),
60448 request: o.specSelectors.requestFor(o.path, o.method),
60449 }
60450 }
60451 componentDidMount() {
60452 const { isShown: s } = this.props,

Callers

nothing calls this directly

Calls 4

opIdFunction · 0.85
uFunction · 0.70
getMethod · 0.65
securityMethod · 0.45

Tested by

no test coverage detected