OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
swagger-ui-5.17.14
/
src
/
core
/
plugins
/
layout
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:34:11 AM
rwxr-xr-x
📄
actions.js
801 bytes
08/07/2024 04:34:08 AM
rw-r--r--
📄
index.js
371 bytes
08/07/2024 04:34:08 AM
rw-r--r--
📄
reducers.js
958 bytes
08/07/2024 04:34:08 AM
rw-r--r--
📄
selectors.js
636 bytes
08/07/2024 04:34:08 AM
rw-r--r--
📁
spec-extensions
-
08/07/2024 04:34:36 AM
rwxr-xr-x
Editing: selectors.js
Close
import { createSelector } from "reselect" import { normalizeArray } from "core/utils" import { fromJS } from "immutable" const state = state => state export const current = state => state.get("layout") export const currentFilter = state => state.get("filter") export const isShown = (state, thing, def) => { thing = normalizeArray(thing) return state.get("shown", fromJS({})).get(fromJS(thing), def) } export const whatMode = (state, thing, def="") => { thing = normalizeArray(thing) return state.getIn(["modes", ...thing], def) } export const showSummary = createSelector( state, state => !isShown(state, "editor") )