mirror of
https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
synced 2025-10-29 01:12:19 +00:00
[WIFI-13380] Cybertan model images
Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
10
package-lock.json
generated
10
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ucentral-client",
|
||||
"version": "3.0.1(6)",
|
||||
"version": "3.0.2(1)",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ucentral-client",
|
||||
"version": "3.0.1(6)",
|
||||
"version": "3.0.2(1)",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@chakra-ui/anatomy": "^2.1.1",
|
||||
@@ -10442,9 +10442,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/vite": {
|
||||
"version": "4.5.1",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-4.5.1.tgz",
|
||||
"integrity": "sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==",
|
||||
"version": "4.5.2",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-4.5.2.tgz",
|
||||
"integrity": "sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==",
|
||||
"dependencies": {
|
||||
"esbuild": "^0.18.10",
|
||||
"postcss": "^8.4.27",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ucentral-client",
|
||||
"version": "3.0.1(6)",
|
||||
"version": "3.0.2(1)",
|
||||
"description": "",
|
||||
"private": true,
|
||||
"main": "index.tsx",
|
||||
|
||||
BIN
public/devices/cybertan_eww631-a1.png
Normal file
BIN
public/devices/cybertan_eww631-a1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 123 KiB |
BIN
public/devices/cybertan_eww631-b1.png
Normal file
BIN
public/devices/cybertan_eww631-b1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 79 KiB |
BIN
public/devices/cybertan_skf224-c1.png
Normal file
BIN
public/devices/cybertan_skf224-c1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
@@ -65,12 +65,6 @@ const DeviceSummary = ({ serialNumber }: Props) => {
|
||||
const getDeviceCompatible = () => {
|
||||
if (!getDevice.data?.compatible) return undefined;
|
||||
|
||||
if (!getDevice.data?.compatible.includes('-')) return getDevice.data?.compatible;
|
||||
|
||||
const split = getDevice.data?.compatible.split('-');
|
||||
|
||||
if (split[split.length - 1]?.length === 2) return split[0]?.trim();
|
||||
|
||||
return getDevice.data?.compatible;
|
||||
};
|
||||
|
||||
@@ -129,7 +123,7 @@ const DeviceSummary = ({ serialNumber }: Props) => {
|
||||
<Heading size="sm">{t('controller.stats.load')}:</Heading>
|
||||
</GridItem>
|
||||
<GridItem colSpan={1}>
|
||||
{getStats.data?.unit?.load?.map((l) => `${l.toFixed(2)}`).join(' | ') ?? ''}
|
||||
{getStats.data?.unit?.load ? getStats.data?.unit.load.map((l) => `${l.toFixed(2)}`).join(' | ') : ''}
|
||||
</GridItem>
|
||||
<GridItem colSpan={1} alignContent="center" alignItems="center">
|
||||
<Heading size="sm">{t('controller.devices.localtime')}:</Heading>
|
||||
@@ -180,7 +174,7 @@ const DeviceSummary = ({ serialNumber }: Props) => {
|
||||
</GridItem>
|
||||
<GridItem colSpan={1}>
|
||||
{getStatus.data?.connectReason && getStatus.data?.connectReason.length > 0
|
||||
? uppercaseFirstLetter(getStatus.data.connectReason)
|
||||
? uppercaseFirstLetter(getStatus.data?.connectReason)
|
||||
: '-'}
|
||||
</GridItem>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user