-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: Add headlamp-events example plugin
Signed-off-by: Joaquim Rocha <[email protected]>
- Loading branch information
1 parent
2aeb823
commit 13e4c89
Showing
7 changed files
with
40,080 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Oops, something went wrong.