quintodrome/ui/src/actions/serverEvents.js

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

21 lines
387 B
JavaScript
Raw Normal View History

export const EVENT_SCAN_STATUS = 'scanStatus'
export const EVENT_SERVER_START = 'serverStart'
export const processEvent = (type, event) => {
const data = JSON.parse(event)
return {
type,
data: data,
}
}
2020-11-12 12:12:31 -09:00
2020-11-13 14:40:33 -09:00
export const scanStatusUpdate = (data) => ({
type: EVENT_SCAN_STATUS,
data: data,
})
export const serverDown = () => ({
type: EVENT_SERVER_START,
data: {},
})