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:
parent
3d1c11646f
commit
89a83d04dd
4 changed files with 40 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue