},
};
-var getFileUrlFilesizes = rpc.declare({
+const getFileUrlFilesizes = rpc.declare({
object: "luci." + pkg.Name,
method: "getFileUrlFilesizes",
params: ["name", "url"],
});
-var getInitList = rpc.declare({
+const getInitList = rpc.declare({
object: "luci." + pkg.Name,
method: "getInitList",
params: ["name"],
});
-var getInitStatus = rpc.declare({
+const getInitStatus = rpc.declare({
object: "luci." + pkg.Name,
method: "getInitStatus",
params: ["name"],
});
-var getPlatformSupport = rpc.declare({
+const getPlatformSupport = rpc.declare({
object: "luci." + pkg.Name,
method: "getPlatformSupport",
params: ["name"],
});
-var _setInitAction = rpc.declare({
+const _setInitAction = rpc.declare({
object: "luci." + pkg.Name,
method: "setInitAction",
params: ["name", "action"],
'require validation';
'require view';
-var callServiceList = rpc.declare({
+const callServiceList = rpc.declare({
object: 'service',
method: 'list',
params: ['name'],
'require form';
'require poll';
-var callApingerStatus = rpc.declare({
+const callApingerStatus = rpc.declare({
object: 'apinger',
method: 'status',
expect: { },
'require dom';
'require fs';
-let callPackagelist = rpc.declare({
+const callPackagelist = rpc.declare({
object: 'rpc-sys',
method: 'packagelist',
});
-let callSystemBoard = rpc.declare({
+const callSystemBoard = rpc.declare({
object: 'system',
method: 'board',
});
-let callUpgradeStart = rpc.declare({
+const callUpgradeStart = rpc.declare({
object: 'rpc-sys',
method: 'upgrade_start',
params: ['keep'],
'require rpc';
'require view';
-var callServiceList = rpc.declare({
+const callServiceList = rpc.declare({
object: 'service',
method: 'list',
params: ['name'],
Declare the RPC call
```js
-var load_sample_yaml = rpc.declare({
+const load_sample_yaml = rpc.declare({
object: 'luci.example',
method: 'get_yaml_file_sample'
});
Permissions to make these calls must be granted in /usr/share/rpcd/acl.d
via a file named the same as the application package name (luci-app-example)
*/
-var load_sample2 = rpc.declare({
+const load_sample2 = rpc.declare({
object: 'luci.example',
method: 'get_sample2'
});
Permissions to make these calls must be granted in /usr/share/rpcd/acl.d
via a file named the same as the application package name (luci-app-example)
*/
-var load_sample2 = rpc.declare({
+const load_sample2 = rpc.declare({
object: 'luci.example',
method: 'get_sample2'
});
Permissions to make these calls must be granted in /usr/share/rpcd/acl.d
via a file named the same as the application package name (luci-app-example)
*/
-var load_sample1 = rpc.declare({
+const load_sample1 = rpc.declare({
object: 'luci.example',
method: 'get_sample1'
});
// Out of the box, this one will be blocked by the framework because there is
// no ACL granting permission.
-var load_sample3 = rpc.declare({
+const load_sample3 = rpc.declare({
object: 'luci.example',
method: 'get_sample3'
});
}
}
-var callServiceList = rpc.declare({
+const callServiceList = rpc.declare({
object: 'service',
method: 'list',
params: ['name'],
}
}
-var callServiceList = rpc.declare({
+const callServiceList = rpc.declare({
object: 'service',
method: 'list',
params: ['name'],
},
};
-var getInitList = rpc.declare({
+const getInitList = rpc.declare({
object: "luci." + pkg.Name,
method: "getInitList",
params: ["name"],
});
-var getInitStatus = rpc.declare({
+const getInitStatus = rpc.declare({
object: "luci." + pkg.Name,
method: "getInitStatus",
params: ["name"],
});
-var getPlatformSupport = rpc.declare({
+const getPlatformSupport = rpc.declare({
object: "luci." + pkg.Name,
method: "getPlatformSupport",
params: ["name"],
});
-var getProviders = rpc.declare({
+const getProviders = rpc.declare({
object: "luci." + pkg.Name,
method: "getProviders",
params: ["name"],
});
-var getRuntime = rpc.declare({
+const getRuntime = rpc.declare({
object: "luci." + pkg.Name,
method: "getRuntime",
params: ["name"],
});
-var _setInitAction = rpc.declare({
+const _setInitAction = rpc.declare({
object: "luci." + pkg.Name,
method: "setInitAction",
params: ["name", "action"],
'require rpc';
'require poll';
-var callKeepalivedStatus = rpc.declare({
+const callKeepalivedStatus = rpc.declare({
object: 'keepalived',
method: 'dump',
expect: { },
'require uci';
'require rpc';
-var callKeepalivedStatus = rpc.declare({
+const callKeepalivedStatus = rpc.declare({
object: 'keepalived',
method: 'dump',
expect: { },
'require uci';
'require form';
-var callUSB = rpc.declare({
+const callUSB = rpc.declare({
object: 'luci',
method: 'getUSBDevices',
expect: { 'ports': [] }
'require form';
'require poll';
-var callLibreswanStatus = rpc.declare({
+const callLibreswanStatus = rpc.declare({
object: 'libreswan',
method: 'status',
expect: { },
'require uci';
'require tools.widgets as widgets';
-var callInitList = rpc.declare({
+const callInitList = rpc.declare({
object: 'luci',
method: 'getInitList',
params: [ 'name' ],
}
});
-var callInitAction = rpc.declare({
+const callInitAction = rpc.declare({
object: 'luci',
method: 'setInitAction',
params: [ 'name', 'action' ],
'require dom';
'require poll';
-var callLLDPStatus = rpc.declare({
+const callLLDPStatus = rpc.declare({
object: 'luci.lldpd',
method: 'getStatus',
expect: {}
'require view';
'require rpc';
-var callMwan3Status = rpc.declare({
+const callMwan3Status = rpc.declare({
object: 'mwan3',
method: 'status',
expect: { },
'require baseclass';
'require rpc';
-var callMwan3Status = rpc.declare({
+const callMwan3Status = rpc.declare({
object: 'mwan3',
method: 'status',
expect: { },
'require view';
'require tools.widgets as widgets';
-var callServiceList = rpc.declare({
+const callServiceList = rpc.declare({
object: 'service',
method: 'list',
params: ['name'],
'require rpc';
'require dom';
-var callNetworkRrdnsLookup = rpc.declare({
+const callNetworkRrdnsLookup = rpc.declare({
object: 'network.rrdns',
method: 'lookup',
params: [ 'addrs', 'timeout', 'limit' ],
'require view';
'require poll';
-var getOlsrd4Services = rpc.declare({
+const getOlsrd4Services = rpc.declare({
object: 'olsr-services',
method: 'services4',
expect: {}
});
-var getOlsrd6Services = rpc.declare({
+const getOlsrd6Services = rpc.declare({
object: 'olsr-services',
method: 'services6',
expect: {}
var isReadonlyView = !L.hasViewPermission() || null;
-var callMountPoints = rpc.declare({
+const callMountPoints = rpc.declare({
object: 'luci',
method: 'getMountPoints',
expect: { result: [] }
},
};
-var getGateways = rpc.declare({
+const getGateways = rpc.declare({
object: "luci." + pkg.Name,
method: "getGateways",
params: ["name"],
});
-var getInitList = rpc.declare({
+const getInitList = rpc.declare({
object: "luci." + pkg.Name,
method: "getInitList",
params: ["name"],
});
-var getInitStatus = rpc.declare({
+const getInitStatus = rpc.declare({
object: "luci." + pkg.Name,
method: "getInitStatus",
params: ["name"],
});
-var getInterfaces = rpc.declare({
+const getInterfaces = rpc.declare({
object: "luci." + pkg.Name,
method: "getInterfaces",
params: ["name"],
});
-var getPlatformSupport = rpc.declare({
+const getPlatformSupport = rpc.declare({
object: "luci." + pkg.Name,
method: "getPlatformSupport",
params: ["name"],
});
-var _setInitAction = rpc.declare({
+const _setInitAction = rpc.declare({
object: "luci." + pkg.Name,
method: "setInitAction",
params: ["name", "action"],
'require tools.widgets as widgets';
'require view';
-var callHostHints = rpc.declare({
+const callHostHints = rpc.declare({
object: 'luci-rpc',
method: 'getHostHints',
expect: { '': {} }
'require ui';
var conf = 'smartdns';
-var callServiceList = rpc.declare({
+const callServiceList = rpc.declare({
object: 'service',
method: 'list',
params: ['name'],
'require uci';
'require view';
-var getCompileTimeOptions = rpc.declare({
+const getCompileTimeOptions = rpc.declare({
object: 'luci.squid',
method: 'getCompileTimeOptions',
expect: { options: [] }
'require rpc';
'require uci';
-var callTorHsList = rpc.declare({
+const callTorHsList = rpc.declare({
object: 'tor-hs-rpc',
method: 'list-hs',
});
'require form';
'require tools.widgets as widgets';
-var callServiceList = rpc.declare({
+const callServiceList = rpc.declare({
object: 'service',
method: 'list',
params: [ 'name' ],
}
};
-var callNetworkRrdnsLookup = rpc.declare({
+const callNetworkRrdnsLookup = rpc.declare({
object: 'network.rrdns',
method: 'lookup',
params: [ 'addrs', 'timeout', 'limit' ],
'require uci';
'require view';
-var callServiceList = rpc.declare({
+const callServiceList = rpc.declare({
object: 'service',
method: 'list',
params: ['name'],
var RefreshIfaces = "";
var RefreshTabs = ['s', 't', '5', 'h', 'd', 'm', 'y'];
-var callServiceList = rpc.declare({
+const callServiceList = rpc.declare({
object: 'service',
method: 'list',
params: [ 'name' ],
'require rpc';
'require tools.widgets as widgets';
-var callServiceList = rpc.declare({
+const callServiceList = rpc.declare({
object: 'service',
method: 'list',
params: ['name'],