From bcab4c7b261d1cb308a0272ef2179fff86e0f6ec Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 24 Oct 2022 15:19:32 +0200 Subject: [PATCH] refactor IC status page --- src/ic/ic.js | 56 +++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 45 insertions(+), 11 deletions(-) diff --git a/src/ic/ic.js b/src/ic/ic.js index ebb5f78..c2fafd3 100644 --- a/src/ic/ic.js +++ b/src/ic/ic.js @@ -124,23 +124,57 @@ class InfrastructureComponent extends React.Component { } static ICParamsTable(ic) { + let state = ic.state; + return ( - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropertyValue
Name{ic.name}
Description{ic.description}
UUID{ic.uuid}
State{ic.state}
Category{ic.category}
Type{ic.type}
Uptime{moment.duration(ic.uptime, "seconds").humanize()}
Location{ic.location}
Websocket URL{ic.websocketurl}
API URL{ic.apiurl}
Start parameter schema +
Name{ic.name}
Description{ic.description}
UUID{ic.uuid}
State{state}
Category{ic.category}
Type{ic.type}
Uptime{moment.duration(ic.uptime, "seconds").humanize()}
Location{ic.location}
Websocket URL{ic.websocketurl}
API URL{ic.apiurl}
Start parameter schema {InfrastructureComponent.isJSON(ic.startparameterschema) ?