Skip to content

Commit

Permalink
frontend: Add headlamp-events example plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Joaquim Rocha <[email protected]>
  • Loading branch information
joaquimrocha committed Jan 22, 2024
1 parent 2aeb823 commit 13e4c89
Show file tree
Hide file tree
Showing 7 changed files with 40,080 additions and 0 deletions.
18 changes: 18 additions & 0 deletions plugins/examples/headlamp-events/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Example Plugin: Reacting to Headlamp events

Headlamp has the concept of Headlamp events, which are fired when something relevant happens in Headlamp.
For example, when a user chooses to apply the changes their changing for a resource, or when a
list/details view is loaded.

To run the plugin:

```bash
cd plugins/examples/change-logo
npm install
npm start
# Go to a list or details view to see one example of a Headlamp event.
```

- The plugin shows a notification whenever there is a Headlamp event, except for OBJECT_EVENTS type of
events (so checking the event type is demonstrated).
- For events that have a resource, the resource name is shown.
Loading

0 comments on commit 13e4c89

Please sign in to comment.