OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
swagger-ui-5.17.14
/
src
/
core
/
config
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:34:11 AM
rwxr-xr-x
📄
defaults.js
2.02 KB
08/07/2024 04:33:54 AM
rw-r--r--
📁
factorization
-
08/07/2024 04:34:05 AM
rwxr-xr-x
📄
index.js
607 bytes
08/07/2024 04:33:54 AM
rw-r--r--
📄
merge.js
1.98 KB
08/07/2024 04:33:54 AM
rw-r--r--
📁
sources
-
08/07/2024 04:34:06 AM
rwxr-xr-x
📁
type-cast
-
08/07/2024 04:34:33 AM
rwxr-xr-x
Editing: defaults.js
Close
/** * @prettier */ import ApisPreset from "core/presets/apis" const defaultOptions = Object.freeze({ dom_id: null, domNode: null, spec: {}, url: "", urls: null, configUrl: null, layout: "BaseLayout", docExpansion: "list", maxDisplayedTags: -1, filter: false, validatorUrl: "https://validator.swagger.io/validator", oauth2RedirectUrl: undefined, persistAuthorization: false, configs: {}, displayOperationId: false, displayRequestDuration: false, deepLinking: false, tryItOutEnabled: false, requestInterceptor: (request) => { request.curlOptions = [] return request }, responseInterceptor: (a) => a, showMutatedRequest: true, defaultModelRendering: "example", defaultModelExpandDepth: 1, defaultModelsExpandDepth: 1, showExtensions: false, showCommonExtensions: false, withCredentials: false, requestSnippetsEnabled: false, requestSnippets: { generators: { curl_bash: { title: "cURL (bash)", syntax: "bash", }, curl_powershell: { title: "cURL (PowerShell)", syntax: "powershell", }, curl_cmd: { title: "cURL (CMD)", syntax: "bash", }, }, defaultExpanded: true, languages: null, // e.g. only show curl bash = ["curl_bash"] }, supportedSubmitMethods: [ "get", "put", "post", "delete", "options", "head", "patch", "trace", ], queryConfigEnabled: false, // Initial set of plugins ( TODO rename this, or refactor - we don't need presets _and_ plugins. Its just there for performance. // Instead, we can compile the first plugin ( it can be a collection of plugins ), then batch the rest. presets: [ApisPreset], // Plugins; ( loaded after presets ) plugins: [], initialState: {}, // Inline Plugin fn: {}, components: {}, syntaxHighlight: { activated: true, theme: "agate", }, operationsSorter: null, tagsSorter: null, onComplete: null, modelPropertyMacro: null, parameterMacro: null, }) export default defaultOptions