set up the bones for the whitelabel, just need to generate the icons from a logo once we get it

This commit is contained in:
csawatzky 2026-04-02 11:43:43 -06:00
parent 3d1c11646f
commit 89a83d04dd
4 changed files with 40 additions and 7 deletions

View file

@ -180,6 +180,32 @@ export function IsAdaptiveAgriculture(): boolean {
);
}
const INTELLIFARMS_WHITE_LABEL: WhiteLabel = {
name: "Intellifarms",
primaryColour: "",
secondaryColour: "",
signatureColour: "",
signatureAccentColour: "",
auth0ClientId: import.meta.env.VITE_AUTH0_INTELLIFARMS_CLIENT_ID,
redirectOnLogout: true,
logoutRedirectTarget: "https://myintellifarms.com",
darkLogo: "",
lightLogo: "",
transparentLogoBG: true,
blacklist: [],
docs: "Platform",
protips: protips,
homePage: "/bins"
};
export function IsIntellifarms(): boolean {
return (
getName() === "Intellifarms"
// window.location.origin.includes("staging") ||
// window.location.origin.includes("localhost")
);
}
export function IsStreamline(): boolean {
return (
getName() === "Streamline"
@ -324,7 +350,8 @@ const whitelabels = new Map<string, WhiteLabel>([
["adaptiveconstruction", ADAPTIVE_CONSTRUCTION_WHITE_LABEL],
["omniair", OMNIAIR_WHITE_LABEL],
["mipca", MIPCA_WHITE_LABEL],
["mionetech", MIPCA_WHITE_LABEL]
["mionetech", MIPCA_WHITE_LABEL],
["intellifarms", INTELLIFARMS_WHITE_LABEL]
]);
export function getWhitelabel(): WhiteLabel {