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

Function sources_query

frontend/public/swagger-ui-bundle.js:75276–75294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75274 for (const [i, a] of Object.entries(s.initialState)) void 0 === a && delete o[i]
75275 return { system: { configs: s.configs }, plugins: s.presets, state: o }
75276 },
75277 sources_query = () => (s) => {
75278 const o = s.queryConfigEnabled
75279 ? (() => {
75280 const s = new URLSearchParams(lt.location.search)
75281 return Object.fromEntries(s)
75282 })()
75283 : {}
75284 return Object.entries(o).reduce(
75285 (s, [o, i]) => (
75286 'config' === o
75287 ? (s.configUrl = i)
75288 : 'urls.primaryName' === o
75289 ? (s[o] = i)
75290 : (s = co()(s, o, i)),
75291 s
75292 ),
75293 {}
75294 )
75295 },
75296 sources_url =
75297 ({ url: s, system: o }) =>

Callers 1

SwaggerUIFunction · 0.85

Calls 2

coFunction · 0.50
reduceMethod · 0.45

Tested by

no test coverage detected