Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/cbf72eedab97f82ed5c4aac7d0dceccb1d383818
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
3 additions and
9 deletions
@ -14,16 +14,10 @@ export default function Component({ service }) {
/ / @ s e e h t t p s : / / g i t h u b . c o m / A n a l o g J / s c r u t i n y / b l o b / d 8 d 5 6 f 7 7 f 9 e 8 6 8 1 2 7 c 4 8 4 9 d a c 7 4 d 6 5 5 1 2 d b 6 5 8 e 8 / w e b a p p / f r o n t e n d / s r c / a p p / c o r e / c o n f i g / a p p . c o n f i g . t s
const DeviceStatusThreshold = {
smart : 1 ,
smart : 1 ,
scrutiny : 2 ,
both : 3
}
const thresholdStatusMapping = new Map ( [
[ DeviceStatusThreshold . smart , DeviceStatus . failed _smart ] ,
[ DeviceStatusThreshold . scrutiny , DeviceStatus . failed _scrutiny ] ,
[ DeviceStatusThreshold . both , DeviceStatus . both ]
] )
const { widget } = service ;
@ -48,9 +42,9 @@ export default function Component({ service }) {
const deviceIds = Object . values ( scrutinyData . data . summary ) ;
const statusThreshold = scrutinySettings . settings . metrics . status _threshold ;
const failed = deviceIds . filter ( deviceId => [thresholdStatusMapping . get ( statusThreshold ) , DeviceStatus . failed _both ] . includes ( deviceId . device . device _status ) ) ? . length || 0 ;
const failed = deviceIds . filter ( deviceId => (deviceId . device . device _status > 0 && statusThreshold === DeviceStatusThreshold . both ) || [ statusThreshold , DeviceStatus . failed _both ] . includes ( deviceId . device . device _status ) ) ? . length || 0 ;
const unknown = deviceIds . filter ( deviceId => deviceId . device . device _status < DeviceStatus . passed || deviceId . device . device _status > DeviceStatus . failed _both ) ? . length || 0 ;
const passed = deviceIds . filter ( deviceId => deviceId . device . device _status === 0 ) ? . length || 0 ;
const passed = deviceIds . filter ( deviceId => deviceId . device . device _status === 0 || ( deviceId . device . device _status > statusThreshold && deviceId . device . device _status < DeviceStatus . failed _both ) ) ? . length || 0 ;
return (
< Container service = { service } >