mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-05 21:47:48 +01:00
* Opnsense widget (#2) * OPNSense widget : initial version, memory usage is inaccurate. * OPNSense widget : code cleanup in widget.js. Firewall is no longer displayed, so it did not need to be queried. * Opnsense widget (#3) * OPNSense widget : initial version, memory usage is inaccurate. * OPNSense widget : code cleanup in widget.js. Firewall is no longer displayed, so it did not need to be queried. * OPNSense widget : fixing the CPU code to make it more reliable. * OPNSense widget : fixing the CPU code to make it more reliable. Removing uptime info * Update src/widgets/opnsense/component.jsx Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com> * Update public/locales/en/common.json Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com> * Update src/widgets/opnsense/component.jsx Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com> * Update src/widgets/opnsense/component.jsx Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
25 lines
436 B
JavaScript
25 lines
436 B
JavaScript
|
|
import genericProxyHandler from "utils/proxy/handlers/generic";
|
|
|
|
const widget = {
|
|
api: "{url}/api/{endpoint}",
|
|
proxyHandler: genericProxyHandler,
|
|
|
|
mappings: {
|
|
activity: {
|
|
endpoint: "diagnostics/activity/getActivity",
|
|
validate: [
|
|
"headers"
|
|
]
|
|
},
|
|
interface: {
|
|
endpoint: "diagnostics/traffic/interface",
|
|
validate: [
|
|
"interfaces"
|
|
]
|
|
}
|
|
},
|
|
};
|
|
|
|
export default widget;
|