Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(handlers): refactor handlers to allow plugins development #32

Merged
merged 8 commits into from
Aug 26, 2023

Conversation

willianrod
Copy link
Owner

What's new

  • New handlers engine
  • Handlers are automatically registered
  • Add handlers config store
  • Handlers config page
  • Show on sidebar only handlers active
  • Add about page
  • Improve UX while editing the device (resizable panels added)

How the new handlers engine works?

Now each handler registers itself automatically. During initialization each handler starts listening for keys events. They can listen to it's own event or you can also listen to events to other listeners too. This gives us a lot of flexibility, and you can even have a handler that plays a sound on every website opened. Or an April fools day handler that when pressing any keys, has 1% chance of opening of opening the rick roll video.

There is also a new handler config mechanism too, that allows developers to specify what should be configurable in their handler (example: API Key). You can even say that the config is secret so you can only write it, and cannot read it from client side.

If a plugin is not initialized (active), they are hidden from the sidebar

Screenshots

image image image image

@willianrod willianrod merged commit 9625f72 into main Aug 26, 2023
@willianrod willianrod deleted the refactor/handlers branch August 26, 2023 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant