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",
|
"name": "ucentral-client",
|
||||||
"version": "3.0.1(6)",
|
"version": "3.0.2(1)",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ucentral-client",
|
"name": "ucentral-client",
|
||||||
"version": "3.0.1(6)",
|
"version": "3.0.2(1)",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/anatomy": "^2.1.1",
|
"@chakra-ui/anatomy": "^2.1.1",
|
||||||
@@ -10442,9 +10442,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vite": {
|
"node_modules/vite": {
|
||||||
"version": "4.5.1",
|
"version": "4.5.2",
|
||||||
"resolved": "https://registry.npmjs.org/vite/-/vite-4.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/vite/-/vite-4.5.2.tgz",
|
||||||
"integrity": "sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==",
|
"integrity": "sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.18.10",
|
"esbuild": "^0.18.10",
|
||||||
"postcss": "^8.4.27",
|
"postcss": "^8.4.27",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ucentral-client",
|
"name": "ucentral-client",
|
||||||
"version": "3.0.1(6)",
|
"version": "3.0.2(1)",
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "index.tsx",
|
"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 = () => {
|
const getDeviceCompatible = () => {
|
||||||
if (!getDevice.data?.compatible) return undefined;
|
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;
|
return getDevice.data?.compatible;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -129,7 +123,7 @@ const DeviceSummary = ({ serialNumber }: Props) => {
|
|||||||
<Heading size="sm">{t('controller.stats.load')}:</Heading>
|
<Heading size="sm">{t('controller.stats.load')}:</Heading>
|
||||||
</GridItem>
|
</GridItem>
|
||||||
<GridItem colSpan={1}>
|
<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>
|
||||||
<GridItem colSpan={1} alignContent="center" alignItems="center">
|
<GridItem colSpan={1} alignContent="center" alignItems="center">
|
||||||
<Heading size="sm">{t('controller.devices.localtime')}:</Heading>
|
<Heading size="sm">{t('controller.devices.localtime')}:</Heading>
|
||||||
@@ -180,7 +174,7 @@ const DeviceSummary = ({ serialNumber }: Props) => {
|
|||||||
</GridItem>
|
</GridItem>
|
||||||
<GridItem colSpan={1}>
|
<GridItem colSpan={1}>
|
||||||
{getStatus.data?.connectReason && getStatus.data?.connectReason.length > 0
|
{getStatus.data?.connectReason && getStatus.data?.connectReason.length > 0
|
||||||
? uppercaseFirstLetter(getStatus.data.connectReason)
|
? uppercaseFirstLetter(getStatus.data?.connectReason)
|
||||||
: '-'}
|
: '-'}
|
||||||
</GridItem>
|
</GridItem>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Reference in New Issue
Block a user