diff --git a/internal/apimodules/overlays/default/eventfeed.custom.js b/internal/apimodules/overlays/default/eventfeed.custom.js new file mode 100644 index 0000000..d1f541d --- /dev/null +++ b/internal/apimodules/overlays/default/eventfeed.custom.js @@ -0,0 +1,19 @@ +/** + * Allows to add filters for custom events created through the customHandler + * + * @returns {Object} Custom filter definitions as `filterKey: {name: "Name", visible: true}` + */ +const customFilters = () => ({}) + +/** + * Handles custom events and creates feed items from them + * + * @param {*} param0 Event-Object as returned by the websocket + * @returns {Object} Event to add to the event list of the feed + */ +const customHandler = eventObj => { + console.log('custom event unhandled:', eventObj) + return null +} + +export { customFilters, customHandler } diff --git a/internal/apimodules/overlays/default/eventfeed.html b/internal/apimodules/overlays/default/eventfeed.html new file mode 100644 index 0000000..a7d6ebd --- /dev/null +++ b/internal/apimodules/overlays/default/eventfeed.html @@ -0,0 +1,156 @@ + +
++ + {{ resolveSubtext(event.subtext) }} + +
+