Files
ota-admin-portal/src/services/commands.js
John Wu a8fff2f85c CEC-227, CEC-244 Add dashboard page, update car command control (#46)
* Create multiselect car table control
Remove table overflow containers

* Include trim to add car form

* CEC-252 Replace modal status with link to car details page

* Remove send command from car status page
Fix menu key warning

* Change car command control data
Add Grafana menu items

* Revert
2021-06-02 09:47:48 -07:00

77 lines
1.2 KiB
JavaScript

const Locks = [
{
value: "right_front",
label: "Front right door",
},{
value: "left_front",
label: "Front left door",
},{
value: "right_rear",
label: "Rear right door",
},{
value: "left_rear",
label: "Rear left door",
},{
value: "trunk",
label: "Trunk",
},
];
const Windows = [
{
value: "right_front",
label: "Front right window",
},{
value: "left_front",
label: "Front left window",
},{
value: "right_rear",
label: "Rear right window",
},{
value: "left_rear",
label: "Rear left window",
},
];
const Commands = [{
value: "lock",
label: "Lock door",
parameters: Locks,
},
{
value: "unlock",
label: "Unlock door",
parameters: Locks,
},{
value: "open",
label: "Open window",
parameters: Windows,
},
{
value: "close",
label: "Close window",
parameters: Windows,
},{
value: "log",
label: "Log level",
parameters: [
{
value: "info",
label: "Info",
},
{
value: "debug",
label: "Debug",
},
{
value: "trace",
label: "Trace",
},
],
},{
value: "headlights",
label: "Flash headlights",
}];
export default Commands;