diff --git a/package-lock.json b/package-lock.json index 3018052..4f88974 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,8 @@ "moment": "^2.30.1", "protobuf-ts": "git+https://gitlab+deploy-token-50627:hv8mB4WkyvtjBpJKU1rN@gitlab.com/brandx/protobuf-ts.git#staging", "react": "^18.3.1", - "react-dom": "^18.3.1" + "react-dom": "^18.3.1", + "react-router-dom": "^6.27.0" }, "devDependencies": { "@babel/types": "^7.25.8", @@ -1555,6 +1556,15 @@ "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", "license": "BSD-3-Clause" }, + "node_modules/@remix-run/router": { + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.20.0.tgz", + "integrity": "sha512-mUnk8rPJBI9loFDZ+YzPGdeniYK+FTmRD1TMCz7ev2SNIozyKKpnGgsxO34u6Z4z/t0ITuu7voi/AshfsGsgFg==", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.24.0", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.24.0.tgz", @@ -4101,6 +4111,38 @@ "node": ">=0.10.0" } }, + "node_modules/react-router": { + "version": "6.27.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.27.0.tgz", + "integrity": "sha512-YA+HGZXz4jaAkVoYBE98VQl+nVzI+cVI2Oj/06F5ZM+0u3TgedN9Y9kmMRo2mnkSK2nCpNQn0DVob4HCsY/WLw==", + "license": "MIT", + "dependencies": { + "@remix-run/router": "1.20.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, + "node_modules/react-router-dom": { + "version": "6.27.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.27.0.tgz", + "integrity": "sha512-+bvtFWMC0DgAFrfKXKG9Fc+BcXWRUO1aJIihbB79xaeq0v5UzfvnM5houGUm1Y461WVRcgAQ+Clh5rdb1eCx4g==", + "license": "MIT", + "dependencies": { + "@remix-run/router": "1.20.0", + "react-router": "6.27.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8", + "react-dom": ">=16.8" + } + }, "node_modules/react-transition-group": { "version": "4.4.5", "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", diff --git a/package.json b/package.json index 3b93df6..2a6ebee 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "moment": "^2.30.1", "protobuf-ts": "git+https://gitlab+deploy-token-50627:hv8mB4WkyvtjBpJKU1rN@gitlab.com/brandx/protobuf-ts.git#staging", "react": "^18.3.1", - "react-dom": "^18.3.1" + "react-dom": "^18.3.1", + "react-router-dom": "^6.27.0" }, "devDependencies": { "@babel/types": "^7.25.8", diff --git a/src/app/AuthHTTPWrapper.tsx b/src/app/AuthHTTPWrapper.tsx index 6b0533f..ef9f07a 100644 --- a/src/app/AuthHTTPWrapper.tsx +++ b/src/app/AuthHTTPWrapper.tsx @@ -16,10 +16,6 @@ function AuthHTTPWrapper() { let client_id = import.meta.env.VITE_AUTH0_DEV_CLIENT_ID; - console.log("Domain: ", url) - console.log("Audience: ", audience) - console.log("Client: ", client_id) - return ( ({ appBar: { - // zIndex: 10, // TODO: make variables to keep zIndex consistent zIndex: theme.zIndex.drawer + 1 }, toolbar: { marginLeft: theme.spacing(0.5), [theme.breakpoints.up("md")]: { - marginLeft: theme.spacing(1.5) + marginLeft: theme.spacing(1.5) } }, buttonContainer: { marginRight: theme.spacing(0.5), [theme.breakpoints.up("md")]: { - marginRight: theme.spacing(1.5) + marginRight: theme.spacing(1.5) } }, button: { @@ -27,6 +28,31 @@ const useStyles = makeStyles((theme: Theme) => ({ hide: { display: "none" }, + logoContainer: { + display: "flex", + alignItems: "flex-end", + justifyContent: "flex-start" + }, + logoLink: { + display: "flex", + justifyContent: "center", + alignItems: "center", + borderRadius: "5px", + backgroundColor: hasTransparentLogoBG() + ? "" + : theme.palette.mode === "light" + ? "#fff" + : "#323232" + }, + HeaderLogo: { + objectFit: "cover", + height: "56px", + width: "auto", + padding: theme.spacing(1), + [theme.breakpoints.up("md")]: { + height: "64px" + } + }, })); interface Props { @@ -40,6 +66,8 @@ interface Props { export default function Header(props: Props) { const { sideIsOpen, openSide} = props; + + const themeType = useThemeType(); const classes = useStyles() return ( @@ -53,9 +81,20 @@ export default function Header(props: Props) { onClick={openSide} className={classNames(classes.button, sideIsOpen && classes.hide)}> - + {/* )} */} + + {!hideLogo() && ( +
+ {import.meta.env.REACT_APP_WEBSITE_TITLE} +
+ )} +
) diff --git a/src/app/UserWrapper.tsx b/src/app/UserWrapper.tsx index ba8cdd6..2f87905 100644 --- a/src/app/UserWrapper.tsx +++ b/src/app/UserWrapper.tsx @@ -17,6 +17,7 @@ export default function UserWrapper() { const useAuth = useAuth0(); const hasFetched = useRef(false); const [user, setUser] = useState(undefined) + const [message, setMessage] = useState("Loading user profile...") let user_id = or(useAuth.user?.sub, "") @@ -24,8 +25,15 @@ export default function UserWrapper() { if (hasFetched.current) return; setLoading(true) userAPI.getUser(user_id).then(resp => { - setUser(resp) - }).finally(() => { + setUser(resp) + }).catch(err => { + if (err.toString().includes("CORS")) { + setMessage("CORS error") + } else { + setMessage("Loading failed, refresh may help") + } + }) + .finally(() => { setLoading(false) hasFetched.current = true; }) @@ -38,7 +46,7 @@ export default function UserWrapper() { if (!user || loading) return ( ) diff --git a/src/assets/common/contractBlack.png b/src/assets/common/contractBlack.png new file mode 100644 index 0000000..b5927dc Binary files /dev/null and b/src/assets/common/contractBlack.png differ diff --git a/src/assets/common/contractWhite.png b/src/assets/common/contractWhite.png new file mode 100644 index 0000000..cefd050 Binary files /dev/null and b/src/assets/common/contractWhite.png differ diff --git a/src/assets/common/dataDuckDark.png b/src/assets/common/dataDuckDark.png new file mode 100644 index 0000000..9a25135 Binary files /dev/null and b/src/assets/common/dataDuckDark.png differ diff --git a/src/assets/common/dataDuckLight.png b/src/assets/common/dataDuckLight.png new file mode 100644 index 0000000..5767b41 Binary files /dev/null and b/src/assets/common/dataDuckLight.png differ diff --git a/src/assets/common/graphDark.png b/src/assets/common/graphDark.png new file mode 100644 index 0000000..8df53c5 Binary files /dev/null and b/src/assets/common/graphDark.png differ diff --git a/src/assets/common/graphLight.png b/src/assets/common/graphLight.png new file mode 100644 index 0000000..1bf5482 Binary files /dev/null and b/src/assets/common/graphLight.png differ diff --git a/src/assets/components/aerationFanDark.png b/src/assets/components/aerationFanDark.png new file mode 100644 index 0000000..e557a76 Binary files /dev/null and b/src/assets/components/aerationFanDark.png differ diff --git a/src/assets/components/aerationFanLight.png b/src/assets/components/aerationFanLight.png new file mode 100644 index 0000000..21e4bd3 Binary files /dev/null and b/src/assets/components/aerationFanLight.png differ diff --git a/src/assets/components/binStickDark.png b/src/assets/components/binStickDark.png new file mode 100644 index 0000000..5d262c7 Binary files /dev/null and b/src/assets/components/binStickDark.png differ diff --git a/src/assets/components/binStickLight.png b/src/assets/components/binStickLight.png new file mode 100644 index 0000000..4693250 Binary files /dev/null and b/src/assets/components/binStickLight.png differ diff --git a/src/assets/components/co2Dark.png b/src/assets/components/co2Dark.png new file mode 100644 index 0000000..b625290 Binary files /dev/null and b/src/assets/components/co2Dark.png differ diff --git a/src/assets/components/co2Light.png b/src/assets/components/co2Light.png new file mode 100644 index 0000000..25d0898 Binary files /dev/null and b/src/assets/components/co2Light.png differ diff --git a/src/assets/components/directionDark.png b/src/assets/components/directionDark.png new file mode 100644 index 0000000..bd4824c Binary files /dev/null and b/src/assets/components/directionDark.png differ diff --git a/src/assets/components/directionLight.png b/src/assets/components/directionLight.png new file mode 100644 index 0000000..7535200 Binary files /dev/null and b/src/assets/components/directionLight.png differ diff --git a/src/assets/components/exhaustFanDark.png b/src/assets/components/exhaustFanDark.png new file mode 100644 index 0000000..19d3b05 Binary files /dev/null and b/src/assets/components/exhaustFanDark.png differ diff --git a/src/assets/components/exhaustFanLight.png b/src/assets/components/exhaustFanLight.png new file mode 100644 index 0000000..421abfa Binary files /dev/null and b/src/assets/components/exhaustFanLight.png differ diff --git a/src/assets/components/fuelDark.png b/src/assets/components/fuelDark.png new file mode 100644 index 0000000..50b3338 Binary files /dev/null and b/src/assets/components/fuelDark.png differ diff --git a/src/assets/components/fuelLight.png b/src/assets/components/fuelLight.png new file mode 100644 index 0000000..5b56b34 Binary files /dev/null and b/src/assets/components/fuelLight.png differ diff --git a/src/assets/components/fullCentrifugalFanDark.png b/src/assets/components/fullCentrifugalFanDark.png new file mode 100644 index 0000000..0538e44 Binary files /dev/null and b/src/assets/components/fullCentrifugalFanDark.png differ diff --git a/src/assets/components/fullCentrifugalFanLight.png b/src/assets/components/fullCentrifugalFanLight.png new file mode 100644 index 0000000..54dcc79 Binary files /dev/null and b/src/assets/components/fullCentrifugalFanLight.png differ diff --git a/src/assets/components/grainCableDark.png b/src/assets/components/grainCableDark.png new file mode 100644 index 0000000..f92d7cb Binary files /dev/null and b/src/assets/components/grainCableDark.png differ diff --git a/src/assets/components/grainCableLight.png b/src/assets/components/grainCableLight.png new file mode 100644 index 0000000..5f20f90 Binary files /dev/null and b/src/assets/components/grainCableLight.png differ diff --git a/src/assets/components/heaterDark.png b/src/assets/components/heaterDark.png new file mode 100644 index 0000000..3005337 Binary files /dev/null and b/src/assets/components/heaterDark.png differ diff --git a/src/assets/components/heaterLight.png b/src/assets/components/heaterLight.png new file mode 100644 index 0000000..4752281 Binary files /dev/null and b/src/assets/components/heaterLight.png differ diff --git a/src/assets/components/humidityDark.png b/src/assets/components/humidityDark.png new file mode 100644 index 0000000..731f57b Binary files /dev/null and b/src/assets/components/humidityDark.png differ diff --git a/src/assets/components/humidityLight.png b/src/assets/components/humidityLight.png new file mode 100644 index 0000000..62a3be6 Binary files /dev/null and b/src/assets/components/humidityLight.png differ diff --git a/src/assets/components/inLineAerationDark.png b/src/assets/components/inLineAerationDark.png new file mode 100644 index 0000000..26cd4f7 Binary files /dev/null and b/src/assets/components/inLineAerationDark.png differ diff --git a/src/assets/components/inLineAerationLight.png b/src/assets/components/inLineAerationLight.png new file mode 100644 index 0000000..d2edb36 Binary files /dev/null and b/src/assets/components/inLineAerationLight.png differ diff --git a/src/assets/components/lidarSensorDark.png b/src/assets/components/lidarSensorDark.png new file mode 100644 index 0000000..4d8bcc9 Binary files /dev/null and b/src/assets/components/lidarSensorDark.png differ diff --git a/src/assets/components/lidarSensorLight.png b/src/assets/components/lidarSensorLight.png new file mode 100644 index 0000000..38ff614 Binary files /dev/null and b/src/assets/components/lidarSensorLight.png differ diff --git a/src/assets/components/lowSpeedCentrifugalFanDark.png b/src/assets/components/lowSpeedCentrifugalFanDark.png new file mode 100644 index 0000000..9e0972e Binary files /dev/null and b/src/assets/components/lowSpeedCentrifugalFanDark.png differ diff --git a/src/assets/components/lowSpeedCentrifugalFanLight.png b/src/assets/components/lowSpeedCentrifugalFanLight.png new file mode 100644 index 0000000..4742007 Binary files /dev/null and b/src/assets/components/lowSpeedCentrifugalFanLight.png differ diff --git a/src/assets/components/mineIconDark.png b/src/assets/components/mineIconDark.png new file mode 100644 index 0000000..65da41b Binary files /dev/null and b/src/assets/components/mineIconDark.png differ diff --git a/src/assets/components/mineIconLight.png b/src/assets/components/mineIconLight.png new file mode 100644 index 0000000..a433afd Binary files /dev/null and b/src/assets/components/mineIconLight.png differ diff --git a/src/assets/components/modemDark.png b/src/assets/components/modemDark.png new file mode 100644 index 0000000..23697e4 Binary files /dev/null and b/src/assets/components/modemDark.png differ diff --git a/src/assets/components/modemLight.png b/src/assets/components/modemLight.png new file mode 100644 index 0000000..68c9ed6 Binary files /dev/null and b/src/assets/components/modemLight.png differ diff --git a/src/assets/components/pipeT.png b/src/assets/components/pipeT.png new file mode 100644 index 0000000..302beba Binary files /dev/null and b/src/assets/components/pipeT.png differ diff --git a/src/assets/components/powerDark.png b/src/assets/components/powerDark.png new file mode 100644 index 0000000..57b9da6 Binary files /dev/null and b/src/assets/components/powerDark.png differ diff --git a/src/assets/components/powerLight.png b/src/assets/components/powerLight.png new file mode 100644 index 0000000..d35b11b Binary files /dev/null and b/src/assets/components/powerLight.png differ diff --git a/src/assets/components/pressureDark.png b/src/assets/components/pressureDark.png new file mode 100644 index 0000000..7118999 Binary files /dev/null and b/src/assets/components/pressureDark.png differ diff --git a/src/assets/components/pressureLight.png b/src/assets/components/pressureLight.png new file mode 100644 index 0000000..66bbeeb Binary files /dev/null and b/src/assets/components/pressureLight.png differ diff --git a/src/assets/components/rainFallDark.png b/src/assets/components/rainFallDark.png new file mode 100644 index 0000000..b03f1b3 Binary files /dev/null and b/src/assets/components/rainFallDark.png differ diff --git a/src/assets/components/rainFallLight.png b/src/assets/components/rainFallLight.png new file mode 100644 index 0000000..f20c591 Binary files /dev/null and b/src/assets/components/rainFallLight.png differ diff --git a/src/assets/components/temperatureDark.png b/src/assets/components/temperatureDark.png new file mode 100644 index 0000000..570e64e Binary files /dev/null and b/src/assets/components/temperatureDark.png differ diff --git a/src/assets/components/temperatureHumidityDark.png b/src/assets/components/temperatureHumidityDark.png new file mode 100644 index 0000000..961eccd Binary files /dev/null and b/src/assets/components/temperatureHumidityDark.png differ diff --git a/src/assets/components/temperatureHumidityLight.png b/src/assets/components/temperatureHumidityLight.png new file mode 100644 index 0000000..f2649cc Binary files /dev/null and b/src/assets/components/temperatureHumidityLight.png differ diff --git a/src/assets/components/temperatureLight.png b/src/assets/components/temperatureLight.png new file mode 100644 index 0000000..6557d40 Binary files /dev/null and b/src/assets/components/temperatureLight.png differ diff --git a/src/assets/components/windSpeedDark.png b/src/assets/components/windSpeedDark.png new file mode 100644 index 0000000..bf6f4a4 Binary files /dev/null and b/src/assets/components/windSpeedDark.png differ diff --git a/src/assets/components/windSpeedLight.png b/src/assets/components/windSpeedLight.png new file mode 100644 index 0000000..92b9b36 Binary files /dev/null and b/src/assets/components/windSpeedLight.png differ diff --git a/src/assets/editor/addDark.png b/src/assets/editor/addDark.png new file mode 100644 index 0000000..ad32670 Binary files /dev/null and b/src/assets/editor/addDark.png differ diff --git a/src/assets/editor/addLight.png b/src/assets/editor/addLight.png new file mode 100644 index 0000000..b71bb64 Binary files /dev/null and b/src/assets/editor/addLight.png differ diff --git a/src/assets/editor/cursor.png b/src/assets/editor/cursor.png new file mode 100644 index 0000000..c089389 Binary files /dev/null and b/src/assets/editor/cursor.png differ diff --git a/src/assets/editor/cursorDark.png b/src/assets/editor/cursorDark.png new file mode 100644 index 0000000..581cdc0 Binary files /dev/null and b/src/assets/editor/cursorDark.png differ diff --git a/src/assets/editor/cursorLight.png b/src/assets/editor/cursorLight.png new file mode 100644 index 0000000..c710347 Binary files /dev/null and b/src/assets/editor/cursorLight.png differ diff --git a/src/assets/editor/delete.png b/src/assets/editor/delete.png new file mode 100644 index 0000000..fe252ee Binary files /dev/null and b/src/assets/editor/delete.png differ diff --git a/src/assets/editor/deleteDark.png b/src/assets/editor/deleteDark.png new file mode 100644 index 0000000..e3ccfab Binary files /dev/null and b/src/assets/editor/deleteDark.png differ diff --git a/src/assets/editor/deleteLight.png b/src/assets/editor/deleteLight.png new file mode 100644 index 0000000..85d65a7 Binary files /dev/null and b/src/assets/editor/deleteLight.png differ diff --git a/src/assets/editor/device.png b/src/assets/editor/device.png new file mode 100644 index 0000000..a004c37 Binary files /dev/null and b/src/assets/editor/device.png differ diff --git a/src/assets/editor/devices.png b/src/assets/editor/devices.png new file mode 100644 index 0000000..56788de Binary files /dev/null and b/src/assets/editor/devices.png differ diff --git a/src/assets/editor/ducting.png b/src/assets/editor/ducting.png new file mode 100644 index 0000000..56dc5b8 Binary files /dev/null and b/src/assets/editor/ducting.png differ diff --git a/src/assets/editor/ductingYellow.png b/src/assets/editor/ductingYellow.png new file mode 100644 index 0000000..6acec99 Binary files /dev/null and b/src/assets/editor/ductingYellow.png differ diff --git a/src/assets/editor/fan1.png b/src/assets/editor/fan1.png new file mode 100644 index 0000000..edb9f4a Binary files /dev/null and b/src/assets/editor/fan1.png differ diff --git a/src/assets/editor/fan2.png b/src/assets/editor/fan2.png new file mode 100644 index 0000000..c040297 Binary files /dev/null and b/src/assets/editor/fan2.png differ diff --git a/src/assets/editor/fan3.png b/src/assets/editor/fan3.png new file mode 100644 index 0000000..b97f43b Binary files /dev/null and b/src/assets/editor/fan3.png differ diff --git a/src/assets/editor/fans.png b/src/assets/editor/fans.png new file mode 100644 index 0000000..edb9f4a Binary files /dev/null and b/src/assets/editor/fans.png differ diff --git a/src/assets/editor/fansYellow.png b/src/assets/editor/fansYellow.png new file mode 100644 index 0000000..0f6b291 Binary files /dev/null and b/src/assets/editor/fansYellow.png differ diff --git a/src/assets/editor/fullCentrifugal.png b/src/assets/editor/fullCentrifugal.png new file mode 100644 index 0000000..0538e44 Binary files /dev/null and b/src/assets/editor/fullCentrifugal.png differ diff --git a/src/assets/editor/inlineCentrifugal.png b/src/assets/editor/inlineCentrifugal.png new file mode 100644 index 0000000..26cd4f7 Binary files /dev/null and b/src/assets/editor/inlineCentrifugal.png differ diff --git a/src/assets/editor/lowCentrifugal.png b/src/assets/editor/lowCentrifugal.png new file mode 100644 index 0000000..9e0972e Binary files /dev/null and b/src/assets/editor/lowCentrifugal.png differ diff --git a/src/assets/editor/move.png b/src/assets/editor/move.png new file mode 100644 index 0000000..b11db6b Binary files /dev/null and b/src/assets/editor/move.png differ diff --git a/src/assets/editor/moveDark.png b/src/assets/editor/moveDark.png new file mode 100644 index 0000000..107e1da Binary files /dev/null and b/src/assets/editor/moveDark.png differ diff --git a/src/assets/editor/moveLight.png b/src/assets/editor/moveLight.png new file mode 100644 index 0000000..c3800c4 Binary files /dev/null and b/src/assets/editor/moveLight.png differ diff --git a/src/assets/editor/redo.png b/src/assets/editor/redo.png new file mode 100644 index 0000000..d8f0279 Binary files /dev/null and b/src/assets/editor/redo.png differ diff --git a/src/assets/editor/sensors.png b/src/assets/editor/sensors.png new file mode 100644 index 0000000..4dba7ec Binary files /dev/null and b/src/assets/editor/sensors.png differ diff --git a/src/assets/editor/sensorsYellow.png b/src/assets/editor/sensorsYellow.png new file mode 100644 index 0000000..01ae32f Binary files /dev/null and b/src/assets/editor/sensorsYellow.png differ diff --git a/src/assets/editor/undo.png b/src/assets/editor/undo.png new file mode 100644 index 0000000..9e9de4e Binary files /dev/null and b/src/assets/editor/undo.png differ diff --git a/src/assets/external/datadog.png b/src/assets/external/datadog.png new file mode 100644 index 0000000..804223c Binary files /dev/null and b/src/assets/external/datadog.png differ diff --git a/src/assets/grain/barley.jpg b/src/assets/grain/barley.jpg new file mode 100644 index 0000000..d2e9697 Binary files /dev/null and b/src/assets/grain/barley.jpg differ diff --git a/src/assets/grain/canola.jpg b/src/assets/grain/canola.jpg new file mode 100644 index 0000000..591c259 Binary files /dev/null and b/src/assets/grain/canola.jpg differ diff --git a/src/assets/grain/corn.jpg b/src/assets/grain/corn.jpg new file mode 100644 index 0000000..b8456a9 Binary files /dev/null and b/src/assets/grain/corn.jpg differ diff --git a/src/assets/grain/flax.jpg b/src/assets/grain/flax.jpg new file mode 100644 index 0000000..006f2ec Binary files /dev/null and b/src/assets/grain/flax.jpg differ diff --git a/src/assets/grain/lentil.jpg b/src/assets/grain/lentil.jpg new file mode 100644 index 0000000..ff61469 Binary files /dev/null and b/src/assets/grain/lentil.jpg differ diff --git a/src/assets/grain/oat.jpg b/src/assets/grain/oat.jpg new file mode 100644 index 0000000..37ee21a Binary files /dev/null and b/src/assets/grain/oat.jpg differ diff --git a/src/assets/grain/pea.jpg b/src/assets/grain/pea.jpg new file mode 100644 index 0000000..fac68f4 Binary files /dev/null and b/src/assets/grain/pea.jpg differ diff --git a/src/assets/grain/peanut.jpg b/src/assets/grain/peanut.jpg new file mode 100644 index 0000000..3d637b3 Binary files /dev/null and b/src/assets/grain/peanut.jpg differ diff --git a/src/assets/grain/rice.jpg b/src/assets/grain/rice.jpg new file mode 100644 index 0000000..6ef75a9 Binary files /dev/null and b/src/assets/grain/rice.jpg differ diff --git a/src/assets/grain/sorghum.jpg b/src/assets/grain/sorghum.jpg new file mode 100644 index 0000000..577c88f Binary files /dev/null and b/src/assets/grain/sorghum.jpg differ diff --git a/src/assets/grain/soybean.jpg b/src/assets/grain/soybean.jpg new file mode 100644 index 0000000..74c66d4 Binary files /dev/null and b/src/assets/grain/soybean.jpg differ diff --git a/src/assets/grain/sunflower.jpg b/src/assets/grain/sunflower.jpg new file mode 100644 index 0000000..c6a7ee5 Binary files /dev/null and b/src/assets/grain/sunflower.jpg differ diff --git a/src/assets/grain/wheat.jpg b/src/assets/grain/wheat.jpg new file mode 100644 index 0000000..cb06196 Binary files /dev/null and b/src/assets/grain/wheat.jpg differ diff --git a/src/assets/hardware/buffleheadv2.png b/src/assets/hardware/buffleheadv2.png new file mode 100644 index 0000000..5396da5 Binary files /dev/null and b/src/assets/hardware/buffleheadv2.png differ diff --git a/src/assets/hardware/gadwallv1.png b/src/assets/hardware/gadwallv1.png new file mode 100644 index 0000000..3c8d448 Binary files /dev/null and b/src/assets/hardware/gadwallv1.png differ diff --git a/src/assets/hardware/gadwallv1_with_backpack.png b/src/assets/hardware/gadwallv1_with_backpack.png new file mode 100644 index 0000000..d12a697 Binary files /dev/null and b/src/assets/hardware/gadwallv1_with_backpack.png differ diff --git a/src/assets/hardware/magpiev1_visor.png b/src/assets/hardware/magpiev1_visor.png new file mode 100644 index 0000000..ade6b86 Binary files /dev/null and b/src/assets/hardware/magpiev1_visor.png differ diff --git a/src/assets/hardware/ruddy.png b/src/assets/hardware/ruddy.png new file mode 100644 index 0000000..11c0e42 Binary files /dev/null and b/src/assets/hardware/ruddy.png differ diff --git a/src/assets/marketplaceImages/CNHiBlack.png b/src/assets/marketplaceImages/CNHiBlack.png new file mode 100644 index 0000000..5cfc414 Binary files /dev/null and b/src/assets/marketplaceImages/CNHiBlack.png differ diff --git a/src/assets/marketplaceImages/CNHiWhite.png b/src/assets/marketplaceImages/CNHiWhite.png new file mode 100644 index 0000000..1fed907 Binary files /dev/null and b/src/assets/marketplaceImages/CNHiWhite.png differ diff --git a/src/assets/marketplaceImages/JDBlack.png b/src/assets/marketplaceImages/JDBlack.png new file mode 100644 index 0000000..415fd82 Binary files /dev/null and b/src/assets/marketplaceImages/JDBlack.png differ diff --git a/src/assets/marketplaceImages/JDWhite.png b/src/assets/marketplaceImages/JDWhite.png new file mode 100644 index 0000000..bcaf495 Binary files /dev/null and b/src/assets/marketplaceImages/JDWhite.png differ diff --git a/src/assets/marketplaceImages/TasksMPImage.png b/src/assets/marketplaceImages/TasksMPImage.png new file mode 100644 index 0000000..1103671 Binary files /dev/null and b/src/assets/marketplaceImages/TasksMPImage.png differ diff --git a/src/assets/marketplaceImages/TeamsMPImage.png b/src/assets/marketplaceImages/TeamsMPImage.png new file mode 100644 index 0000000..ae328ce Binary files /dev/null and b/src/assets/marketplaceImages/TeamsMPImage.png differ diff --git a/src/assets/marketplaceImages/VisualFarmMPImage.png b/src/assets/marketplaceImages/VisualFarmMPImage.png new file mode 100644 index 0000000..5393b0a Binary files /dev/null and b/src/assets/marketplaceImages/VisualFarmMPImage.png differ diff --git a/src/assets/marketplaceImages/marketplaceIconDark.png b/src/assets/marketplaceImages/marketplaceIconDark.png new file mode 100644 index 0000000..e88f4a6 Binary files /dev/null and b/src/assets/marketplaceImages/marketplaceIconDark.png differ diff --git a/src/assets/marketplaceImages/marketplaceIconLight.png b/src/assets/marketplaceImages/marketplaceIconLight.png new file mode 100644 index 0000000..021344c Binary files /dev/null and b/src/assets/marketplaceImages/marketplaceIconLight.png differ diff --git a/src/assets/mining/connectionDuct.png b/src/assets/mining/connectionDuct.png new file mode 100644 index 0000000..2a343b2 Binary files /dev/null and b/src/assets/mining/connectionDuct.png differ diff --git a/src/assets/mining/standardDuct.png b/src/assets/mining/standardDuct.png new file mode 100644 index 0000000..bdeea1f Binary files /dev/null and b/src/assets/mining/standardDuct.png differ diff --git a/src/assets/products/Ag/3BinsMap.png b/src/assets/products/Ag/3BinsMap.png new file mode 100644 index 0000000..18d1b44 Binary files /dev/null and b/src/assets/products/Ag/3BinsMap.png differ diff --git a/src/assets/products/Ag/FieldsIconDark.png b/src/assets/products/Ag/FieldsIconDark.png new file mode 100644 index 0000000..7e291f7 Binary files /dev/null and b/src/assets/products/Ag/FieldsIconDark.png differ diff --git a/src/assets/products/Ag/FieldsIconLight.png b/src/assets/products/Ag/FieldsIconLight.png new file mode 100644 index 0000000..68583d0 Binary files /dev/null and b/src/assets/products/Ag/FieldsIconLight.png differ diff --git a/src/assets/products/Ag/HomeIconDark.png b/src/assets/products/Ag/HomeIconDark.png new file mode 100644 index 0000000..2f40c19 Binary files /dev/null and b/src/assets/products/Ag/HomeIconDark.png differ diff --git a/src/assets/products/Ag/HomeIconLight.png b/src/assets/products/Ag/HomeIconLight.png new file mode 100644 index 0000000..96e14c0 Binary files /dev/null and b/src/assets/products/Ag/HomeIconLight.png differ diff --git a/src/assets/products/Ag/addFieldBlack.png b/src/assets/products/Ag/addFieldBlack.png new file mode 100644 index 0000000..455faf7 Binary files /dev/null and b/src/assets/products/Ag/addFieldBlack.png differ diff --git a/src/assets/products/Ag/addFieldWhite.png b/src/assets/products/Ag/addFieldWhite.png new file mode 100644 index 0000000..c1117be Binary files /dev/null and b/src/assets/products/Ag/addFieldWhite.png differ diff --git a/src/assets/products/Ag/addMarkerBlack.png b/src/assets/products/Ag/addMarkerBlack.png new file mode 100644 index 0000000..40d9d56 Binary files /dev/null and b/src/assets/products/Ag/addMarkerBlack.png differ diff --git a/src/assets/products/Ag/addMarkerWhite.png b/src/assets/products/Ag/addMarkerWhite.png new file mode 100644 index 0000000..9e6cfc2 Binary files /dev/null and b/src/assets/products/Ag/addMarkerWhite.png differ diff --git a/src/assets/products/Ag/binTop.png b/src/assets/products/Ag/binTop.png new file mode 100644 index 0000000..a5c6e08 Binary files /dev/null and b/src/assets/products/Ag/binTop.png differ diff --git a/src/assets/products/Ag/binTop2.png b/src/assets/products/Ag/binTop2.png new file mode 100644 index 0000000..ce75d0f Binary files /dev/null and b/src/assets/products/Ag/binTop2.png differ diff --git a/src/assets/products/Ag/deleteBlack.png b/src/assets/products/Ag/deleteBlack.png new file mode 100644 index 0000000..327126f Binary files /dev/null and b/src/assets/products/Ag/deleteBlack.png differ diff --git a/src/assets/products/Ag/deleteWhite.png b/src/assets/products/Ag/deleteWhite.png new file mode 100644 index 0000000..ed0c477 Binary files /dev/null and b/src/assets/products/Ag/deleteWhite.png differ diff --git a/src/assets/products/Ag/device 1.png b/src/assets/products/Ag/device 1.png new file mode 100644 index 0000000..341565d Binary files /dev/null and b/src/assets/products/Ag/device 1.png differ diff --git a/src/assets/products/Ag/device 2.png b/src/assets/products/Ag/device 2.png new file mode 100644 index 0000000..87f4f68 Binary files /dev/null and b/src/assets/products/Ag/device 2.png differ diff --git a/src/assets/products/Ag/diseaseDark.png b/src/assets/products/Ag/diseaseDark.png new file mode 100644 index 0000000..38bdec3 Binary files /dev/null and b/src/assets/products/Ag/diseaseDark.png differ diff --git a/src/assets/products/Ag/diseaseLight.png b/src/assets/products/Ag/diseaseLight.png new file mode 100644 index 0000000..b5ab123 Binary files /dev/null and b/src/assets/products/Ag/diseaseLight.png differ diff --git a/src/assets/products/Ag/dryingDark.png b/src/assets/products/Ag/dryingDark.png new file mode 100644 index 0000000..72bc24b Binary files /dev/null and b/src/assets/products/Ag/dryingDark.png differ diff --git a/src/assets/products/Ag/dryingLight.png b/src/assets/products/Ag/dryingLight.png new file mode 100644 index 0000000..79c5b0c Binary files /dev/null and b/src/assets/products/Ag/dryingLight.png differ diff --git a/src/assets/products/Ag/editBlack.png b/src/assets/products/Ag/editBlack.png new file mode 100644 index 0000000..2ab70b7 Binary files /dev/null and b/src/assets/products/Ag/editBlack.png differ diff --git a/src/assets/products/Ag/editWhite.png b/src/assets/products/Ag/editWhite.png new file mode 100644 index 0000000..e77b76b Binary files /dev/null and b/src/assets/products/Ag/editWhite.png differ diff --git a/src/assets/products/Ag/fieldListBlack.png b/src/assets/products/Ag/fieldListBlack.png new file mode 100644 index 0000000..0db2139 Binary files /dev/null and b/src/assets/products/Ag/fieldListBlack.png differ diff --git a/src/assets/products/Ag/fieldListWhite.png b/src/assets/products/Ag/fieldListWhite.png new file mode 100644 index 0000000..5d2318e Binary files /dev/null and b/src/assets/products/Ag/fieldListWhite.png differ diff --git a/src/assets/products/Ag/fieldMapBlack.png b/src/assets/products/Ag/fieldMapBlack.png new file mode 100644 index 0000000..5f1209c Binary files /dev/null and b/src/assets/products/Ag/fieldMapBlack.png differ diff --git a/src/assets/products/Ag/fieldMapWhite.png b/src/assets/products/Ag/fieldMapWhite.png new file mode 100644 index 0000000..dde668b Binary files /dev/null and b/src/assets/products/Ag/fieldMapWhite.png differ diff --git a/src/assets/products/Ag/fieldNamesBlack.png b/src/assets/products/Ag/fieldNamesBlack.png new file mode 100644 index 0000000..307164a Binary files /dev/null and b/src/assets/products/Ag/fieldNamesBlack.png differ diff --git a/src/assets/products/Ag/fieldNamesWhite.png b/src/assets/products/Ag/fieldNamesWhite.png new file mode 100644 index 0000000..1e0ab56 Binary files /dev/null and b/src/assets/products/Ag/fieldNamesWhite.png differ diff --git a/src/assets/products/Ag/gearMarkerDark.png b/src/assets/products/Ag/gearMarkerDark.png new file mode 100644 index 0000000..e90aee3 Binary files /dev/null and b/src/assets/products/Ag/gearMarkerDark.png differ diff --git a/src/assets/products/Ag/gearMarkerLight.png b/src/assets/products/Ag/gearMarkerLight.png new file mode 100644 index 0000000..e7029c0 Binary files /dev/null and b/src/assets/products/Ag/gearMarkerLight.png differ diff --git a/src/assets/products/Ag/markerMoveDark.png b/src/assets/products/Ag/markerMoveDark.png new file mode 100644 index 0000000..dc68366 Binary files /dev/null and b/src/assets/products/Ag/markerMoveDark.png differ diff --git a/src/assets/products/Ag/markerMoveLight.png b/src/assets/products/Ag/markerMoveLight.png new file mode 100644 index 0000000..f86f157 Binary files /dev/null and b/src/assets/products/Ag/markerMoveLight.png differ diff --git a/src/assets/products/Ag/pestsDark.png b/src/assets/products/Ag/pestsDark.png new file mode 100644 index 0000000..beb3ddf Binary files /dev/null and b/src/assets/products/Ag/pestsDark.png differ diff --git a/src/assets/products/Ag/pestsLight.png b/src/assets/products/Ag/pestsLight.png new file mode 100644 index 0000000..48de6aa Binary files /dev/null and b/src/assets/products/Ag/pestsLight.png differ diff --git a/src/assets/products/Ag/rocksDark.png b/src/assets/products/Ag/rocksDark.png new file mode 100644 index 0000000..2683c4f Binary files /dev/null and b/src/assets/products/Ag/rocksDark.png differ diff --git a/src/assets/products/Ag/rocksLight.png b/src/assets/products/Ag/rocksLight.png new file mode 100644 index 0000000..12879e3 Binary files /dev/null and b/src/assets/products/Ag/rocksLight.png differ diff --git a/src/assets/products/Ag/scoutDark.png b/src/assets/products/Ag/scoutDark.png new file mode 100644 index 0000000..ad71d2d Binary files /dev/null and b/src/assets/products/Ag/scoutDark.png differ diff --git a/src/assets/products/Ag/scoutLight.png b/src/assets/products/Ag/scoutLight.png new file mode 100644 index 0000000..885f38d Binary files /dev/null and b/src/assets/products/Ag/scoutLight.png differ diff --git a/src/assets/products/Ag/trendingDark.png b/src/assets/products/Ag/trendingDark.png new file mode 100644 index 0000000..321118b Binary files /dev/null and b/src/assets/products/Ag/trendingDark.png differ diff --git a/src/assets/products/Ag/trendingLight.png b/src/assets/products/Ag/trendingLight.png new file mode 100644 index 0000000..3807cb4 Binary files /dev/null and b/src/assets/products/Ag/trendingLight.png differ diff --git a/src/assets/products/Ag/waterContentDark.png b/src/assets/products/Ag/waterContentDark.png new file mode 100644 index 0000000..73ffca2 Binary files /dev/null and b/src/assets/products/Ag/waterContentDark.png differ diff --git a/src/assets/products/Ag/waterContentLight.png b/src/assets/products/Ag/waterContentLight.png new file mode 100644 index 0000000..b278098 Binary files /dev/null and b/src/assets/products/Ag/waterContentLight.png differ diff --git a/src/assets/products/Ag/weatherDark.png b/src/assets/products/Ag/weatherDark.png new file mode 100644 index 0000000..f4f3647 Binary files /dev/null and b/src/assets/products/Ag/weatherDark.png differ diff --git a/src/assets/products/Ag/weatherLight.png b/src/assets/products/Ag/weatherLight.png new file mode 100644 index 0000000..559a0d9 Binary files /dev/null and b/src/assets/products/Ag/weatherLight.png differ diff --git a/src/assets/products/Ag/weedsDark.png b/src/assets/products/Ag/weedsDark.png new file mode 100644 index 0000000..94a91ce Binary files /dev/null and b/src/assets/products/Ag/weedsDark.png differ diff --git a/src/assets/products/Ag/weedsLight.png b/src/assets/products/Ag/weedsLight.png new file mode 100644 index 0000000..020b340 Binary files /dev/null and b/src/assets/products/Ag/weedsLight.png differ diff --git a/src/assets/products/Aviation/AddPlaneIconBlack.png b/src/assets/products/Aviation/AddPlaneIconBlack.png new file mode 100644 index 0000000..914ade2 Binary files /dev/null and b/src/assets/products/Aviation/AddPlaneIconBlack.png differ diff --git a/src/assets/products/Aviation/AddPlaneIconWhite.png b/src/assets/products/Aviation/AddPlaneIconWhite.png new file mode 100644 index 0000000..ab03b01 Binary files /dev/null and b/src/assets/products/Aviation/AddPlaneIconWhite.png differ diff --git a/src/assets/products/Aviation/AirportMapBlack.png b/src/assets/products/Aviation/AirportMapBlack.png new file mode 100644 index 0000000..5035b8f Binary files /dev/null and b/src/assets/products/Aviation/AirportMapBlack.png differ diff --git a/src/assets/products/Aviation/AirportMapWhite.png b/src/assets/products/Aviation/AirportMapWhite.png new file mode 100644 index 0000000..98a1365 Binary files /dev/null and b/src/assets/products/Aviation/AirportMapWhite.png differ diff --git a/src/assets/products/Aviation/OmniAirDeviceIconBlack.png b/src/assets/products/Aviation/OmniAirDeviceIconBlack.png new file mode 100644 index 0000000..3ac74fa Binary files /dev/null and b/src/assets/products/Aviation/OmniAirDeviceIconBlack.png differ diff --git a/src/assets/products/Aviation/OmniAirDeviceIconWhite.png b/src/assets/products/Aviation/OmniAirDeviceIconWhite.png new file mode 100644 index 0000000..4647661 Binary files /dev/null and b/src/assets/products/Aviation/OmniAirDeviceIconWhite.png differ diff --git a/src/assets/products/Aviation/PlaneBlack.png b/src/assets/products/Aviation/PlaneBlack.png new file mode 100644 index 0000000..cfb8acb Binary files /dev/null and b/src/assets/products/Aviation/PlaneBlack.png differ diff --git a/src/assets/products/Aviation/PlaneWhite.png b/src/assets/products/Aviation/PlaneWhite.png new file mode 100644 index 0000000..1be7bac Binary files /dev/null and b/src/assets/products/Aviation/PlaneWhite.png differ diff --git a/src/assets/products/Construction/acHomeIconDark.png b/src/assets/products/Construction/acHomeIconDark.png new file mode 100644 index 0000000..ab08a09 Binary files /dev/null and b/src/assets/products/Construction/acHomeIconDark.png differ diff --git a/src/assets/products/Construction/acHomeIconLight.png b/src/assets/products/Construction/acHomeIconLight.png new file mode 100644 index 0000000..46df1a6 Binary files /dev/null and b/src/assets/products/Construction/acHomeIconLight.png differ diff --git a/src/assets/products/Construction/deviceGroupIconDark.png b/src/assets/products/Construction/deviceGroupIconDark.png new file mode 100644 index 0000000..7a999f5 Binary files /dev/null and b/src/assets/products/Construction/deviceGroupIconDark.png differ diff --git a/src/assets/products/Construction/deviceGroupIconLight.png b/src/assets/products/Construction/deviceGroupIconLight.png new file mode 100644 index 0000000..dcfdf0d Binary files /dev/null and b/src/assets/products/Construction/deviceGroupIconLight.png differ diff --git a/src/assets/products/Construction/jobSiteIconDark.png b/src/assets/products/Construction/jobSiteIconDark.png new file mode 100644 index 0000000..a7dfcad Binary files /dev/null and b/src/assets/products/Construction/jobSiteIconDark.png differ diff --git a/src/assets/products/Construction/jobSiteIconLight.png b/src/assets/products/Construction/jobSiteIconLight.png new file mode 100644 index 0000000..7bdcbab Binary files /dev/null and b/src/assets/products/Construction/jobSiteIconLight.png differ diff --git a/src/assets/products/Construction/nexusIconDark.png b/src/assets/products/Construction/nexusIconDark.png new file mode 100644 index 0000000..ce2e3c2 Binary files /dev/null and b/src/assets/products/Construction/nexusIconDark.png differ diff --git a/src/assets/products/Construction/nexusIconLight.png b/src/assets/products/Construction/nexusIconLight.png new file mode 100644 index 0000000..b6984bc Binary files /dev/null and b/src/assets/products/Construction/nexusIconLight.png differ diff --git a/src/assets/products/Construction/sitesIconDark.png b/src/assets/products/Construction/sitesIconDark.png new file mode 100644 index 0000000..7e291f7 Binary files /dev/null and b/src/assets/products/Construction/sitesIconDark.png differ diff --git a/src/assets/products/Construction/sitesIconLight.png b/src/assets/products/Construction/sitesIconLight.png new file mode 100644 index 0000000..0937d32 Binary files /dev/null and b/src/assets/products/Construction/sitesIconLight.png differ diff --git a/src/assets/products/Construction/tasksIconDark.png b/src/assets/products/Construction/tasksIconDark.png new file mode 100644 index 0000000..808ed46 Binary files /dev/null and b/src/assets/products/Construction/tasksIconDark.png differ diff --git a/src/assets/products/Construction/tasksIconLight.png b/src/assets/products/Construction/tasksIconLight.png new file mode 100644 index 0000000..ccea29b Binary files /dev/null and b/src/assets/products/Construction/tasksIconLight.png differ diff --git a/src/assets/products/bindapt/addBin.png b/src/assets/products/bindapt/addBin.png new file mode 100644 index 0000000..fb03c6d Binary files /dev/null and b/src/assets/products/bindapt/addBin.png differ diff --git a/src/assets/products/bindapt/addBinLight.png b/src/assets/products/bindapt/addBinLight.png new file mode 100644 index 0000000..3311daf Binary files /dev/null and b/src/assets/products/bindapt/addBinLight.png differ diff --git a/src/assets/products/bindapt/binContainer.svg b/src/assets/products/bindapt/binContainer.svg new file mode 100644 index 0000000..1d2e186 --- /dev/null +++ b/src/assets/products/bindapt/binContainer.svg @@ -0,0 +1 @@ +2 \ No newline at end of file diff --git a/src/assets/products/bindapt/binDark.png b/src/assets/products/bindapt/binDark.png new file mode 100644 index 0000000..a47c365 Binary files /dev/null and b/src/assets/products/bindapt/binDark.png differ diff --git a/src/assets/products/bindapt/binLight.png b/src/assets/products/bindapt/binLight.png new file mode 100644 index 0000000..107c2b7 Binary files /dev/null and b/src/assets/products/bindapt/binLight.png differ diff --git a/src/assets/products/bindapt/bindaptCellularDark.png b/src/assets/products/bindapt/bindaptCellularDark.png new file mode 100644 index 0000000..7bcc2a9 Binary files /dev/null and b/src/assets/products/bindapt/bindaptCellularDark.png differ diff --git a/src/assets/products/bindapt/bindaptCellularLight.png b/src/assets/products/bindapt/bindaptCellularLight.png new file mode 100644 index 0000000..fdb7c55 Binary files /dev/null and b/src/assets/products/bindapt/bindaptCellularLight.png differ diff --git a/src/assets/products/bindapt/bindaptPlusDark.png b/src/assets/products/bindapt/bindaptPlusDark.png new file mode 100644 index 0000000..b3d3b44 Binary files /dev/null and b/src/assets/products/bindapt/bindaptPlusDark.png differ diff --git a/src/assets/products/bindapt/bindaptPlusLight.png b/src/assets/products/bindapt/bindaptPlusLight.png new file mode 100644 index 0000000..87d9a85 Binary files /dev/null and b/src/assets/products/bindapt/bindaptPlusLight.png differ diff --git a/src/assets/products/bindapt/bindaptPlusProDark.png b/src/assets/products/bindapt/bindaptPlusProDark.png new file mode 100644 index 0000000..f98cf8e Binary files /dev/null and b/src/assets/products/bindapt/bindaptPlusProDark.png differ diff --git a/src/assets/products/bindapt/bindaptPlusProLight.png b/src/assets/products/bindapt/bindaptPlusProLight.png new file mode 100644 index 0000000..c1220d8 Binary files /dev/null and b/src/assets/products/bindapt/bindaptPlusProLight.png differ diff --git a/src/assets/products/bindapt/bindaptWifiDark.png b/src/assets/products/bindapt/bindaptWifiDark.png new file mode 100644 index 0000000..44e3f0f Binary files /dev/null and b/src/assets/products/bindapt/bindaptWifiDark.png differ diff --git a/src/assets/products/bindapt/bindaptWifiLight.png b/src/assets/products/bindapt/bindaptWifiLight.png new file mode 100644 index 0000000..cf75a13 Binary files /dev/null and b/src/assets/products/bindapt/bindaptWifiLight.png differ diff --git a/src/assets/products/bindapt/binsDark.png b/src/assets/products/bindapt/binsDark.png new file mode 100644 index 0000000..7c1b3d4 Binary files /dev/null and b/src/assets/products/bindapt/binsDark.png differ diff --git a/src/assets/products/bindapt/binsLight.png b/src/assets/products/bindapt/binsLight.png new file mode 100644 index 0000000..0086c50 Binary files /dev/null and b/src/assets/products/bindapt/binsLight.png differ diff --git a/src/assets/products/bindapt/flatBottomBin.svg b/src/assets/products/bindapt/flatBottomBin.svg new file mode 100644 index 0000000..4ffd5f7 --- /dev/null +++ b/src/assets/products/bindapt/flatBottomBin.svg @@ -0,0 +1 @@ +flat bottom bin 1 \ No newline at end of file diff --git a/src/assets/products/bindapt/hopperBin.svg b/src/assets/products/bindapt/hopperBin.svg new file mode 100644 index 0000000..d09c47e --- /dev/null +++ b/src/assets/products/bindapt/hopperBin.svg @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/src/assets/products/ventilation/ventIcon.svg b/src/assets/products/ventilation/ventIcon.svg new file mode 100644 index 0000000..69ce10f --- /dev/null +++ b/src/assets/products/ventilation/ventIcon.svg @@ -0,0 +1 @@ +28-4 \ No newline at end of file diff --git a/src/assets/products/ventilation/ventIconDark.png b/src/assets/products/ventilation/ventIconDark.png new file mode 100644 index 0000000..64aedaa Binary files /dev/null and b/src/assets/products/ventilation/ventIconDark.png differ diff --git a/src/assets/products/ventilation/ventIconLight.png b/src/assets/products/ventilation/ventIconLight.png new file mode 100644 index 0000000..90acb61 Binary files /dev/null and b/src/assets/products/ventilation/ventIconLight.png differ diff --git a/src/assets/whitelabels/AdaptiveAgriculture/AGLogoSquare.png b/src/assets/whitelabels/AdaptiveAgriculture/AGLogoSquare.png new file mode 100644 index 0000000..c92efbf Binary files /dev/null and b/src/assets/whitelabels/AdaptiveAgriculture/AGLogoSquare.png differ diff --git a/src/assets/whitelabels/AdaptiveAgriculture/AgLogoText.png b/src/assets/whitelabels/AdaptiveAgriculture/AgLogoText.png new file mode 100644 index 0000000..e5faa94 Binary files /dev/null and b/src/assets/whitelabels/AdaptiveAgriculture/AgLogoText.png differ diff --git a/src/assets/whitelabels/AdaptiveAgriculture/logo.png b/src/assets/whitelabels/AdaptiveAgriculture/logo.png new file mode 100644 index 0000000..d41846b Binary files /dev/null and b/src/assets/whitelabels/AdaptiveAgriculture/logo.png differ diff --git a/src/assets/whitelabels/AdaptiveAgriculture/thumbnail.jpg b/src/assets/whitelabels/AdaptiveAgriculture/thumbnail.jpg new file mode 100644 index 0000000..4fbb6ff Binary files /dev/null and b/src/assets/whitelabels/AdaptiveAgriculture/thumbnail.jpg differ diff --git a/src/assets/whitelabels/AdaptiveConstruction/AdConLogo.png b/src/assets/whitelabels/AdaptiveConstruction/AdConLogo.png new file mode 100644 index 0000000..8aaf46a Binary files /dev/null and b/src/assets/whitelabels/AdaptiveConstruction/AdConLogo.png differ diff --git a/src/assets/whitelabels/AdaptiveConstruction/AdConLogoWhite.png b/src/assets/whitelabels/AdaptiveConstruction/AdConLogoWhite.png new file mode 100644 index 0000000..1bcc7f8 Binary files /dev/null and b/src/assets/whitelabels/AdaptiveConstruction/AdConLogoWhite.png differ diff --git a/src/assets/whitelabels/AeroGrow/darkLogo.png b/src/assets/whitelabels/AeroGrow/darkLogo.png new file mode 100644 index 0000000..afb07d3 Binary files /dev/null and b/src/assets/whitelabels/AeroGrow/darkLogo.png differ diff --git a/src/assets/whitelabels/AeroGrow/lightLogo.png b/src/assets/whitelabels/AeroGrow/lightLogo.png new file mode 100644 index 0000000..afb07d3 Binary files /dev/null and b/src/assets/whitelabels/AeroGrow/lightLogo.png differ diff --git a/src/assets/whitelabels/BXT/darkLogo.png b/src/assets/whitelabels/BXT/darkLogo.png new file mode 100644 index 0000000..2328959 Binary files /dev/null and b/src/assets/whitelabels/BXT/darkLogo.png differ diff --git a/src/assets/whitelabels/BXT/lightLogo.png b/src/assets/whitelabels/BXT/lightLogo.png new file mode 100644 index 0000000..76ec7ca Binary files /dev/null and b/src/assets/whitelabels/BXT/lightLogo.png differ diff --git a/src/assets/whitelabels/MiVent/darkLogo.png b/src/assets/whitelabels/MiVent/darkLogo.png new file mode 100644 index 0000000..c2ad30b Binary files /dev/null and b/src/assets/whitelabels/MiVent/darkLogo.png differ diff --git a/src/assets/whitelabels/MiVent/lightLogo.png b/src/assets/whitelabels/MiVent/lightLogo.png new file mode 100644 index 0000000..60a00e8 Binary files /dev/null and b/src/assets/whitelabels/MiVent/lightLogo.png differ diff --git a/src/assets/whitelabels/OmniAir/MiPCALogo.png b/src/assets/whitelabels/OmniAir/MiPCALogo.png new file mode 100644 index 0000000..c828035 Binary files /dev/null and b/src/assets/whitelabels/OmniAir/MiPCALogo.png differ diff --git a/src/assets/whitelabels/OmniAir/OmniAirLogo.png b/src/assets/whitelabels/OmniAir/OmniAirLogo.png new file mode 100644 index 0000000..3dd5eff Binary files /dev/null and b/src/assets/whitelabels/OmniAir/OmniAirLogo.png differ diff --git a/src/assets/whitelabels/darkLogo.png b/src/assets/whitelabels/darkLogo.png new file mode 100644 index 0000000..dc4fd2f Binary files /dev/null and b/src/assets/whitelabels/darkLogo.png differ diff --git a/src/assets/whitelabels/lightLogo.png b/src/assets/whitelabels/lightLogo.png new file mode 100644 index 0000000..dc4fd2f Binary files /dev/null and b/src/assets/whitelabels/lightLogo.png differ diff --git a/src/hooks/useThemeType.ts b/src/hooks/useThemeType.ts new file mode 100644 index 0000000..369da82 --- /dev/null +++ b/src/hooks/useThemeType.ts @@ -0,0 +1,8 @@ +// import { useTheme, Theme } from "@material-ui/core"; + +import { Theme, useTheme } from "@mui/material"; + +export function useThemeType() { + const theme: Theme = useTheme(); + return theme.palette.mode; +} diff --git a/src/services/whiteLabel.ts b/src/services/whiteLabel.ts index 479a95b..9e1c90c 100644 --- a/src/services/whiteLabel.ts +++ b/src/services/whiteLabel.ts @@ -1,16 +1,17 @@ // import { isOffline } from "utils/environment"; -// import DefaultDarkLogo from "assets/whitelabels/darkLogo.png"; -// import DefaultLightLogo from "assets/whitelabels/lightLogo.png"; -// import AdapativeAgLogo from "assets/whitelabels/AdaptiveAgriculture/logo.png"; -// import AdaptiveAgThumbnail from "assets/whitelabels/AdaptiveAgriculture/thumbnail.jpg"; -// import AdConLogo from "assets/whitelabels/AdaptiveConstruction/AdConLogoWhite.png"; -// import BXTLightLogo from "assets/whitelabels/BXT/lightLogo.png"; -// import BXTDarkLogo from "assets/whitelabels/BXT/darkLogo.png"; -// import AeroGrowDarkLogo from "assets/whitelabels/AeroGrow/darkLogo.png"; -// import AeroGrowLightLogo from "assets/whitelabels/AeroGrow/lightLogo.png"; -// import MiVentLightLogo from "assets/whitelabels/MiVent/lightLogo.png"; -//import OmniAirLogo from "assets/whitelabels/OmniAir/OmniAirLogo.png"; -// import MiPCALogo from "assets/whitelabels/OmniAir/MiPCALogo.png"; +import DefaultDarkLogo from "../assets/whitelabels/darkLogo.png"; +import DefaultLightLogo from "../assets/whitelabels/lightLogo.png"; +import AdapativeAgLogo from "../assets/whitelabels/AdaptiveAgriculture/logo.png"; +import AdaptiveAgThumbnail from "../assets/whitelabels/AdaptiveAgriculture/thumbnail.jpg"; +import AdConLogo from "../assets/whitelabels/AdaptiveConstruction/AdConLogoWhite.png"; +import BXTLightLogo from "../assets/whitelabels/BXT/lightLogo.png"; +import BXTDarkLogo from "../assets/whitelabels/BXT/darkLogo.png"; +import AeroGrowDarkLogo from "../assets/whitelabels/AeroGrow/darkLogo.png"; +import AeroGrowLightLogo from "../assets/whitelabels/AeroGrow/lightLogo.png"; +import MiVentLightLogo from "../assets/whitelabels/MiVent/lightLogo.png"; +import OmniAirLogo from "../assets/whitelabels/OmniAir/OmniAirLogo.png"; +import MiPCALogo from "../assets/whitelabels/OmniAir/MiPCALogo.png"; +import { green, yellow } from "@mui/material/colors"; const protips: string[] = [ "You can see the latest measurements for a device by starring its components!", @@ -57,10 +58,8 @@ const DEFAULT_WHITELABEL: WhiteLabel = { auth0ClientId: import.meta.env.REACT_APP_AUTH0_CLIENT_ID, redirectOnLogout: false, logoutRedirectTarget: "", -// darkLogo: DefaultDarkLogo, -// lightLogo: DefaultLightLogo, - darkLogo: "", - lightLogo: "", + darkLogo: DefaultDarkLogo, + lightLogo: DefaultLightLogo, transparentLogoBG: false, blacklist: [], hotjarID: import.meta.env.REACT_APP_HOTJAR_ID_BXT, @@ -69,77 +68,77 @@ const DEFAULT_WHITELABEL: WhiteLabel = { tutorialPlaylistID: "" }; -// const STAGING_WHITELABEL: WhiteLabel = { -// name: process.env.REACT_APP_WEBSITE_TITLE, -// primaryColour: process.env.REACT_APP_PRIMARY_COLOUR, -// secondaryColour: process.env.REACT_APP_SECONDARY_COLOUR, -// signatureColour: process.env.REACT_APP_SIGNATURE_COLOUR, -// signatureAccentColour: "#fff", -// auth0ClientId: process.env.REACT_APP_AUTH0_STAGING_CLIENT_ID, -// redirectOnLogout: false, -// logoutRedirectTarget: "", -// darkLogo: DefaultDarkLogo, -// lightLogo: DefaultLightLogo, -// transparentLogoBG: false, -// blacklist: [], -// hotjarID: process.env.REACT_APP_HOTJAR_ID_BXT, -// docs: "Platform", -// protips: protips, -// tutorialPlaylistID: "" -// }; +const STAGING_WHITELABEL: WhiteLabel = { + name: import.meta.env.REACT_APP_WEBSITE_TITLE, + primaryColour: import.meta.env.REACT_APP_PRIMARY_COLOUR, + secondaryColour: import.meta.env.REACT_APP_SECONDARY_COLOUR, + signatureColour: import.meta.env.REACT_APP_SIGNATURE_COLOUR, + signatureAccentColour: "#fff", + auth0ClientId: import.meta.env.REACT_APP_AUTH0_STAGING_CLIENT_ID, + redirectOnLogout: false, + logoutRedirectTarget: "", + darkLogo: DefaultDarkLogo, + lightLogo: DefaultLightLogo, + transparentLogoBG: false, + blacklist: [], + hotjarID: import.meta.env.REACT_APP_HOTJAR_ID_BXT, + docs: "Platform", + protips: protips, + tutorialPlaylistID: "" +}; -// const BXT_WHITE_LABEL: WhiteLabel = { -// name: "Brand X Technologies", -// primaryColour: "blue", -// secondaryColour: "yellow", -// signatureColour: "#005bb0", -// signatureAccentColour: "#fff", -// auth0ClientId: process.env.REACT_APP_AUTH0_STAGING_CLIENT_ID, -// redirectOnLogout: false, -// logoutRedirectTarget: "", -// darkLogo: BXTDarkLogo, -// lightLogo: BXTLightLogo, -// transparentLogoBG: false, -// blacklist: [], -// hotjarID: process.env.REACT_APP_HOTJAR_ID_BXT, -// docs: "Platform", -// protips: protips -// }; +const BXT_WHITE_LABEL: WhiteLabel = { + name: "Brand X Technologies", + primaryColour: "blue", + secondaryColour: "yellow", + signatureColour: "#005bb0", + signatureAccentColour: "#fff", + auth0ClientId: import.meta.env.REACT_APP_AUTH0_STAGING_CLIENT_ID, + redirectOnLogout: false, + logoutRedirectTarget: "", + darkLogo: BXTDarkLogo, + lightLogo: BXTLightLogo, + transparentLogoBG: false, + blacklist: [], + hotjarID: import.meta.env.REACT_APP_HOTJAR_ID_BXT, + docs: "Platform", + protips: protips +}; export function isBXT(): boolean { return getName() === "Brand X Technologies"; } -// const ADAPTIVE_AGRICULTURE_WHITE_LABEL: WhiteLabel = { -// name: "Adaptive Agriculture", -// primaryColour: "green", -// secondaryColour: "yellow", -// signatureColour: "#272727", -// signatureAccentColour: "#fff", -// auth0ClientId: process.env.REACT_APP_AUTH0_ADAPTIVE_AGRICULTURE_CLIENT_ID, -// redirectOnLogout: true, -// logoutRedirectTarget: "https://adaptiveagriculture.ca", -// darkLogo: AdapativeAgLogo, -// lightLogo: AdapativeAgLogo, -// transparentLogoBG: true, -// blacklist: ["cost"], -// hotjarID: process.env.REACT_APP_HOTJAR_ID_ADAPTIVE_AGRICULTURE, -// docs: "AdaptiveAg", -// protips: protips.concat([]), -// tutorialPlaylistID: "PLpLmJnI66Jfl5FXME31ckGam-sD8gB1s2", -// thumbnail: AdaptiveAgThumbnail, -// tutorialFiles: [ -// { -// name: "Bindapt+", -// url: "https://adaptiveagriculture.ca/wp-content/uploads/2023/08/Bindapt-Set-Up-Guide.pdf" -// }, -// { -// name: "Adapter Plate", -// url: -// "https://adaptiveagriculture.ca/wp-content/uploads/2023/08/Bindapt-Adapter-Plate-Set-Up-Guide.pdf" -// } -// ] -// }; +const ADAPTIVE_AGRICULTURE_WHITE_LABEL: WhiteLabel = { + name: "Adaptive Agriculture", + primaryColour: green, + secondaryColour: yellow, + signatureColour: "#272727", + signatureAccentColour: "#fff", + auth0ClientId: import.meta.env.REACT_APP_AUTH0_ADAPTIVE_AGRICULTURE_CLIENT_ID, + redirectOnLogout: true, + logoutRedirectTarget: "https://adaptiveagriculture.ca", + darkLogo: AdapativeAgLogo, + lightLogo: AdapativeAgLogo, + transparentLogoBG: true, + blacklist: ["cost"], + hotjarID: import.meta.env.REACT_APP_HOTJAR_ID_ADAPTIVE_AGRICULTURE, + docs: "AdaptiveAg", + protips: protips.concat([]), + tutorialPlaylistID: "PLpLmJnI66Jfl5FXME31ckGam-sD8gB1s2", + thumbnail: AdaptiveAgThumbnail, + tutorialFiles: [ + { + name: "Bindapt+", + url: "https://adaptiveagriculture.ca/wp-content/uploads/2023/08/Bindapt-Set-Up-Guide.pdf" + }, + { + name: "Adapter Plate", + url: + "https://adaptiveagriculture.ca/wp-content/uploads/2023/08/Bindapt-Adapter-Plate-Set-Up-Guide.pdf" + } + ] +}; export function IsAdaptiveAgriculture(): boolean { return ( @@ -149,23 +148,23 @@ export function IsAdaptiveAgriculture(): boolean { ); } -// const AEROGROW_WHITE_LABEL: WhiteLabel = { -// name: "AeroGrow", -// primaryColour: "green", -// secondaryColour: "cyan", -// signatureColour: "#fff", -// signatureAccentColour: "#000", -// auth0ClientId: process.env.REACT_APP_AUTH0_AEROGROW_CLIENT_ID, -// redirectOnLogout: true, -// logoutRedirectTarget: "https://www.aerogrowmanufacturing.com", -// darkLogo: AeroGrowDarkLogo, -// lightLogo: AeroGrowLightLogo, -// transparentLogoBG: true, -// blacklist: [], -// hotjarID: process.env.REACT_APP_HOTJAR_ID_AEROGROW, -// docs: "Platform", -// protips: protips -// }; +const AEROGROW_WHITE_LABEL: WhiteLabel = { + name: "AeroGrow", + primaryColour: "green", + secondaryColour: "cyan", + signatureColour: "#fff", + signatureAccentColour: "#000", + auth0ClientId: import.meta.env.REACT_APP_AUTH0_AEROGROW_CLIENT_ID, + redirectOnLogout: true, + logoutRedirectTarget: "https://www.aerogrowmanufacturing.com", + darkLogo: AeroGrowDarkLogo, + lightLogo: AeroGrowLightLogo, + transparentLogoBG: true, + blacklist: [], + hotjarID: import.meta.env.REACT_APP_HOTJAR_ID_AEROGROW, + docs: "Platform", + protips: protips +}; export function IsMiVent(): boolean { return ( @@ -175,41 +174,41 @@ export function IsMiVent(): boolean { ); } -// const MIVENT_WHITE_LABEL: WhiteLabel = { -// name: "MiVent", -// primaryColour: "green", -// secondaryColour: "yellow", -// signatureColour: "#272727", -// signatureAccentColour: "#fff", -// auth0ClientId: process.env.REACT_APP_AUTH0_MIVENT_CLIENT_ID, -// redirectOnLogout: true, -// logoutRedirectTarget: "https://mivent.ca", -// darkLogo: MiVentLightLogo, -// lightLogo: MiVentLightLogo, -// transparentLogoBG: true, -// blacklist: ["cost"], -// hotjarID: process.env.REACT_APP_HOTJAR_ID_MIVENT, -// docs: "Platform", -// protips: protips.concat([]) -// }; +const MIVENT_WHITE_LABEL: WhiteLabel = { + name: "MiVent", + primaryColour: "green", + secondaryColour: "yellow", + signatureColour: "#272727", + signatureAccentColour: "#fff", + auth0ClientId: import.meta.env.REACT_APP_AUTH0_MIVENT_CLIENT_ID, + redirectOnLogout: true, + logoutRedirectTarget: "https://mivent.ca", + darkLogo: MiVentLightLogo, + lightLogo: MiVentLightLogo, + transparentLogoBG: true, + blacklist: ["cost"], + hotjarID: import.meta.env.REACT_APP_HOTJAR_ID_MIVENT, + docs: "Platform", + protips: protips.concat([]) +}; -// const ADAPTIVE_CONSTRUCTION_WHITE_LABEL: WhiteLabel = { -// name: "Adaptive Construction", -// primaryColour: "blue", -// secondaryColour: "blue", -// signatureColour: "#272727", -// signatureAccentColour: "#fff", -// auth0ClientId: process.env.REACT_APP_AUTH0_ADAPTIVE_CONSTRUCTION_CLIENT_ID, -// redirectOnLogout: true, -// logoutRedirectTarget: "https://adaptiveconstruction.ca", -// darkLogo: AdConLogo, -// lightLogo: AdConLogo, -// transparentLogoBG: true, -// blacklist: ["cost"], -// hotjarID: process.env.REACT_APP_HOTJAR_ID_ADAPTIVE_CONSTRUCTION, -// docs: "AdaptiveConstruction", -// protips: protips.concat([]) -// }; +const ADAPTIVE_CONSTRUCTION_WHITE_LABEL: WhiteLabel = { + name: "Adaptive Construction", + primaryColour: "blue", + secondaryColour: "blue", + signatureColour: "#272727", + signatureAccentColour: "#fff", + auth0ClientId: import.meta.env.REACT_APP_AUTH0_ADAPTIVE_CONSTRUCTION_CLIENT_ID, + redirectOnLogout: true, + logoutRedirectTarget: "https://adaptiveconstruction.ca", + darkLogo: AdConLogo, + lightLogo: AdConLogo, + transparentLogoBG: true, + blacklist: ["cost"], + hotjarID: import.meta.env.REACT_APP_HOTJAR_ID_ADAPTIVE_CONSTRUCTION, + docs: "AdaptiveConstruction", + protips: protips.concat([]) +}; export function IsAdCon(): boolean { return ( @@ -219,23 +218,23 @@ export function IsAdCon(): boolean { ); } -// const OMNIAIR_WHITE_LABEL: WhiteLabel = { -// name: "OmniAir", -// primaryColour: "#004f9b", -// secondaryColour: "yellow", -// signatureColour: "#272727", -// signatureAccentColour: "#fff", -// auth0ClientId: process.env.REACT_APP_AUTH0_OMNIAIR_CLIENT_ID, -// redirectOnLogout: true, -// logoutRedirectTarget: "https://omniairsystems.com", -// darkLogo: MiPCALogo, -// lightLogo: MiPCALogo, -// transparentLogoBG: true, -// blacklist: ["cost"], -// //hotjarID: process.env.REACT_APP_HOTJAR_ID_OMNIAIR, testing what happens if this is excluded -// docs: "OmniAir", -// protips: protips.concat([]) -// }; +const OMNIAIR_WHITE_LABEL: WhiteLabel = { + name: "OmniAir", + primaryColour: "#004f9b", + secondaryColour: "yellow", + signatureColour: "#272727", + signatureAccentColour: "#fff", + auth0ClientId: import.meta.env.REACT_APP_AUTH0_OMNIAIR_CLIENT_ID, + redirectOnLogout: true, + logoutRedirectTarget: "https://omniairsystems.com", + darkLogo: MiPCALogo, + lightLogo: MiPCALogo, + transparentLogoBG: true, + blacklist: ["cost"], + //hotjarID: import.meta.env.REACT_APP_HOTJAR_ID_OMNIAIR, testing what happens if this is excluded + docs: "OmniAir", + protips: protips.concat([]) +}; export function IsOmniAir(): boolean { return ( @@ -245,36 +244,36 @@ export function IsOmniAir(): boolean { ); } -// const whitelabels = new Map([ -// ["adaptiveag", ADAPTIVE_AGRICULTURE_WHITE_LABEL], -// ["adaptiveagriculture", ADAPTIVE_AGRICULTURE_WHITE_LABEL], -// ["brandxducks", BXT_WHITE_LABEL], -// ["brandxtech", BXT_WHITE_LABEL], -// ["aerogrowmanufacturing", AEROGROW_WHITE_LABEL], -// ["localhost", ADAPTIVE_AGRICULTURE_WHITE_LABEL], -// ["staging", STAGING_WHITELABEL], -// ["10.0", ADAPTIVE_CONSTRUCTION_WHITE_LABEL], -// ["mivent", MIVENT_WHITE_LABEL], -// ["adaptiveconstruction", ADAPTIVE_CONSTRUCTION_WHITE_LABEL], -// ["omniair", OMNIAIR_WHITE_LABEL] -// ]); +const whitelabels = new Map([ + ["adaptiveag", ADAPTIVE_AGRICULTURE_WHITE_LABEL], + ["adaptiveagriculture", ADAPTIVE_AGRICULTURE_WHITE_LABEL], + ["brandxducks", BXT_WHITE_LABEL], + ["brandxtech", BXT_WHITE_LABEL], + ["aerogrowmanufacturing", AEROGROW_WHITE_LABEL], + ["localhost", ADAPTIVE_AGRICULTURE_WHITE_LABEL], + ["staging", STAGING_WHITELABEL], + ["10.0", ADAPTIVE_CONSTRUCTION_WHITE_LABEL], + ["mivent", MIVENT_WHITE_LABEL], + ["adaptiveconstruction", ADAPTIVE_CONSTRUCTION_WHITE_LABEL], + ["omniair", OMNIAIR_WHITE_LABEL] +]); export function getWhitelabel(): WhiteLabel { // if (isOffline()) { // return DEFAULT_WHITELABEL; // } -// const hostname = window.location.hostname; -// if (window.location.origin.includes("staging") || process.env.REACT_APP_IS_STAGING) { -// return STAGING_WHITELABEL; -// } -// const whiteLabelKeys = Array.from(whitelabels.keys()); -// for (var i = 0; i < whiteLabelKeys.length; i++) { -// let key = whiteLabelKeys[i]; -// if (hostname.includes(key)) { -// return whitelabels.get(key) as WhiteLabel; -// } -// } + const hostname = window.location.hostname; + // if (window.location.origin.includes("staging") || import.meta.env.REACT_APP_IS_STAGING) { + // return STAGING_WHITELABEL; + // } + const whiteLabelKeys = Array.from(whitelabels.keys()); + for (var i = 0; i < whiteLabelKeys.length; i++) { + let key = whiteLabelKeys[i]; + if (hostname.includes(key)) { + return whitelabels.get(key) as WhiteLabel; + } + } return DEFAULT_WHITELABEL; } @@ -314,13 +313,13 @@ export function getLightLogo(): any { return getWhitelabel().lightLogo; } -// export function hideLogo(): boolean { -// if (isOffline()) { -// return false; -// } +export function hideLogo(): boolean { + // if (isOffline()) { + // return false; + // } -// return getWhitelabel().name === ""; -// } + return getWhitelabel().name === ""; +} export function hasTransparentLogoBG(): any { return getWhitelabel().transparentLogoBG;