bluerobotics / cockpit

An intuitive and customizable cross-platform ground control station for remote vehicles of all types.
https://blueos.cloud/cockpit/docs
Other
72 stars 22 forks source link

Add Vanilla JavaScript actions #1438

Closed rafaellehmkuhl closed 1 week ago

rafaellehmkuhl commented 2 weeks ago

With this, the user can create vanilla JavaScript methods that can be called from anywhere in the application. This basically allows one to extend Cockpit capabilities to the infinite and beyond.

I also exposed the cockpit-actions and data-lake methods globally, so the user can call those from their functions. They are accessible under window.cockpit.

Once we merge the DIY widget, I will change the current v-text-field with a proper Monaco editor.

image

Fix #569