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

Class Operations

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

Source from the content-addressed store, hash-verified

59982 : null
59983 }
59984 }
59985 class Operations extends Re.Component {
59986 render() {
59987 let { specSelectors: s } = this.props
59988 const o = s.taggedOperations()
59989 return 0 === o.size
59990 ? Re.createElement('h3', null, ' No operations defined in spec!')
59991 : Re.createElement(
59992 'div',
59993 null,
59994 o.map(this.renderOperationTag).toArray(),
59995 o.size < 1
59996 ? Re.createElement('h3', null, ' No operations defined in spec! ')
59997 : null
59998 )
59999 }
60000 renderOperationTag = (s, o) => {
60001 const {
60002 specSelectors: i,
60003 getComponent: a,
60004 oas3Selectors: u,
60005 layoutSelectors: _,
60006 layoutActions: w,
60007 getConfigs: x,
60008 } = this.props,
60009 C = i.validOperationMethods(),
60010 j = a('OperationContainer', !0),
60011 L = a('OperationTag'),
60012 B = s.get('operations')
60013 return Re.createElement(
60014 L,
60015 {
60016 key: 'operation-' + o,
60017 tagObj: s,
60018 tag: o,
60019 oas3Selectors: u,
60020 layoutSelectors: _,
60021 layoutActions: w,
60022 getConfigs: x,
60023 getComponent: a,
60024 specUrl: i.url(),
60025 },
60026 Re.createElement(
60027 'div',
60028 { className: 'operation-tag-content' },
60029 B.map((s) => {
60030 const i = s.get('path'),
60031 a = s.get('method'),
60032 u = We().List(['paths', i, a])
60033 return -1 === C.indexOf(a)
60034 ? null
60035 : Re.createElement(j, {
60036 key: `${i}-${a}`,
60037 specPath: u,
60038 op: s,
60039 path: i,
60040 method: a,
60041 tag: o,

Callers

nothing calls this directly

Calls 6

aFunction · 0.70
getMethod · 0.65
WeFunction · 0.50
urlMethod · 0.45
toArrayMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected