mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
fix lint errors
This commit is contained in:
parent
90cb395dc6
commit
0ce5311b5f
@ -2,7 +2,6 @@ import Container from "components/services/widget/container";
|
||||
import Block from "components/services/widget/block";
|
||||
import useWidgetAPI from "utils/proxy/use-widget-api";
|
||||
|
||||
export default function Component({ service }) {
|
||||
|
||||
// @see https://github.com/AnalogJ/scrutiny/blob/d8d56f77f9e868127c4849dac74d65512db658e8/webapp/frontend/src/app/shared/device-status.pipe.ts
|
||||
const DeviceStatus = {
|
||||
@ -11,8 +10,8 @@ export default function Component({ service }) {
|
||||
failed_scrutiny: 2,
|
||||
failed_both: 3,
|
||||
|
||||
isFailed: function ( s ) { return s > this.passed && s <= this.failed_both},
|
||||
isUnknown: function ( s ) { return s < this.passed || s > this.failed_both}
|
||||
isFailed(s){ return s > this.passed && s <= this.failed_both},
|
||||
isUnknown(s){ return s < this.passed || s > this.failed_both}
|
||||
}
|
||||
|
||||
// @see https://github.com/AnalogJ/scrutiny/blob/d8d56f77f9e868127c4849dac74d65512db658e8/webapp/frontend/src/app/core/config/app.config.ts
|
||||
@ -22,6 +21,7 @@ export default function Component({ service }) {
|
||||
both: 3
|
||||
}
|
||||
|
||||
export default function Component({ service }) {
|
||||
const { widget } = service;
|
||||
|
||||
const { data: scrutinySettings, error: scrutinySettingsError } = useWidgetAPI(widget, "settings");
|
||||
@ -59,3 +59,4 @@ export default function Component({ service }) {
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user