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

Class OperationContainer

frontend/public/swagger-ui-bundle.js:60400–60582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60398 )
60399 }
60400 }
60401 class OperationContainer extends Re.PureComponent {
60402 constructor(s, o) {
60403 super(s, o)
60404 const { tryItOutEnabled: i } = s.getConfigs()
60405 this.state = { tryItOutEnabled: i, executeInProgress: !1 }
60406 }
60407 static defaultProps = {
60408 showSummary: !0,
60409 response: null,
60410 allowTryItOut: !0,
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,
60453 o = this.getResolvedSubtree()
60454 s && void 0 === o && this.requestResolvedSubtree()
60455 }
60456 componentDidUpdate(s) {
60457 const { response: o, isShown: i } = this.props,

Callers

nothing calls this directly

Calls 5

showMethod · 0.80
parseMethod · 0.45
forEachMethod · 0.45
isArrayMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected