mirror of
https://github.com/rcon-web-admin/rcon-web-admin.git
synced 2026-12-06 01:38:16 +00:00
Widget development
Widgets are designed to have the best high level api so you can easily extend and use features of rcon web admin. There are already some core widgets from which you can start learning.
A new widget
Creating a new widget is straight forward. Just copy one of the existing widgets. Rename the copied folder. Modify the manifest.json to your needs. id must be the folder name. Restart the server and you should see the widget in the dashboard.
Documentation for widgets
The widget class itself have a good code documentation. Here you can see what functions you can use or override.
- For backend: https://github.com/rcon-web-admin/rcon-web-admin/blob/master/src/widget.js
- For frontend: https://github.com/rcon-web-admin/rcon-web-admin/blob/master/public/scripts/widget.js
Widget as core widget
If you've developed a widget and you think it's good for a core widget than you have to deal with following requirements for your widget.
- MIT License
- Public github repository
List of core widgets
- https://github.com/rcon-web-admin/rwa-autobot
- https://github.com/rcon-web-admin/rwa-console
- https://github.com/rcon-web-admin/rwa-rustboard
- https://github.com/rcon-web-admin/rwa-timedcommands
Tips
- Everytime you change something in the
backend.jsyou must restart the server. - Everytime you change something in the
frontend.jsyou must reload (F5) the frontend page.
More help coming soon
Currently there is no more help.