OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
swagger-ui-5.17.14
/
src
/
core
/
config
/
factorization
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:34:06 AM
rwxr-xr-x
📄
inline-plugin.js
175 bytes
08/07/2024 04:34:06 AM
rw-r--r--
📄
system.js
888 bytes
08/07/2024 04:34:06 AM
rw-r--r--
Editing: system.js
Close
/** * @prettier */ import deepExtend from "deep-extend" const systemFactorization = (options) => { const state = deepExtend( { layout: { layout: options.layout, filter: options.filter, }, spec: { spec: "", url: options.url, }, requestSnippets: options.requestSnippets, }, options.initialState ) if (options.initialState) { /** * If the user sets a key as `undefined`, that signals to us that we * should delete the key entirely. * known usage: Swagger-Editor validate plugin tests */ for (const [key, value] of Object.entries(options.initialState)) { if (value === undefined) { delete state[key] } } } return { system: { configs: options.configs, }, plugins: options.presets, state, } } export default systemFactorization