quintodrome/ui/src/actions/serverEvents.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
274 B
JavaScript
Raw Normal View History

export const EVENT_SCAN_STATUS = 'ACTIVITY_SCAN_STATUS_UPD'
const actionsMap = { scanStatus: EVENT_SCAN_STATUS }
export const processEvent = (data) => {
let type = actionsMap[data.name]
if (!type) type = 'EVENT_UNKNOWN'
return {
type,
data: data.data,
}
}