mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
mvc: Turn camelCase into snake_case in missing javascript, ACL and volt files. (#4796)
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<wol>
|
||||
<filename>WakeOnLan.js</filename>
|
||||
<endpoints>
|
||||
<endpoint>/api/diagnostics/interface/getArp*</endpoint>
|
||||
<endpoint>/api/wol/wol/searchHost</endpoint>
|
||||
<endpoint>/api/diagnostics/interface/get_arp*</endpoint>
|
||||
<endpoint>/api/wol/wol/search_host</endpoint>
|
||||
<endpoint>/api/wol/wol/set</endpoint>
|
||||
</endpoints>
|
||||
<translations>
|
||||
|
||||
@@ -47,7 +47,7 @@ export default class WakeOnLan extends BaseTableWidget {
|
||||
}
|
||||
|
||||
async onWidgetTick() {
|
||||
const data = await this.ajaxCall('/api/wol/wol/searchHost');
|
||||
const data = await this.ajaxCall('/api/wol/wol/search_host');
|
||||
|
||||
let rows = [];
|
||||
if (data.total == 0) {
|
||||
@@ -62,7 +62,7 @@ export default class WakeOnLan extends BaseTableWidget {
|
||||
|
||||
//NOTE: this ARP list call is the most expensive one and can grow substantialy in big networks
|
||||
//With previous widget it had been done on the backend side with direct exec of 'arp -an | grep ...'
|
||||
const arp = await this.ajaxCall(`/api/diagnostics/interface/getArp${''}`);
|
||||
const arp = await this.ajaxCall(`/api/diagnostics/interface/get_arp${''}`);
|
||||
|
||||
for(let it = 0; it < data.rows.length; it++){
|
||||
const item = data.rows[it];
|
||||
|
||||
@@ -50,7 +50,7 @@ export default class ApcUpsd extends BaseTableWidget {
|
||||
}
|
||||
|
||||
async onWidgetTick() {
|
||||
const data = await this.ajaxCall('/api/apcupsd/service/getUpsStatus');
|
||||
const data = await this.ajaxCall('/api/apcupsd/service/get_ups_status');
|
||||
|
||||
if (data.error) {
|
||||
this.displayError(data.error);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<apcupsd>
|
||||
<filename>Apcupsd.js</filename>
|
||||
<endpoints>
|
||||
<endpoint>/api/apcupsd/service/getUpsStatus</endpoint>
|
||||
<endpoint>/api/apcupsd/service/get_ups_status</endpoint>
|
||||
</endpoints>
|
||||
<translations>
|
||||
<title>Apcupsd</title>
|
||||
|
||||
Reference in New Issue
Block a user