mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Remove a defunct URL constant and a product flavor.
Summary: The URL /create-team-site on marketing site is unused, and no longer pointing to anything functional. The "efcr" product flavor has been defunct for a long time. Remove references to it. Test Plan: No tests should be affected Reviewers: JakubSerafin Reviewed By: JakubSerafin Subscribers: JakubSerafin Differential Revision: https://phab.getgrist.com/D3890
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {GristLoadConfig} from 'app/common/gristUrls';
|
||||
import {styled} from 'grainjs';
|
||||
|
||||
export type ProductFlavor = 'grist' | 'efcr' | 'fieldlink';
|
||||
export type ProductFlavor = 'grist' | 'fieldlink';
|
||||
|
||||
export interface CustomTheme {
|
||||
bodyClassName?: string;
|
||||
@@ -20,8 +20,6 @@ export function getFlavor(org?: string): ProductFlavor {
|
||||
}
|
||||
if (org === 'fieldlink') {
|
||||
return 'fieldlink';
|
||||
} else if (org && /^nioxus(-.*)?$/.test(org)) {
|
||||
return 'efcr';
|
||||
}
|
||||
return 'grist';
|
||||
}
|
||||
@@ -33,25 +31,11 @@ export function getTheme(flavor: ProductFlavor): CustomTheme {
|
||||
wideLogo: true,
|
||||
bodyClassName: cssFieldLinkBody.className,
|
||||
};
|
||||
case 'efcr':
|
||||
return {bodyClassName: cssEfcrBody.className};
|
||||
default:
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
const cssEfcrBody = styled('body', `
|
||||
--icon-GristLogo: url("icons/logo-efcr.png");
|
||||
--grist-logo-bg: #009975;
|
||||
--grist-color-light-green: #009975;
|
||||
--grist-color-dark-green: #007F61;
|
||||
--grist-primary-fg: #009975;
|
||||
--grist-primary-fg-hover: #007F61;
|
||||
--grist-control-fg: #009975;
|
||||
--grist-color-darker-green: #004C38;
|
||||
--grist-color-dark-bg: #004C38;
|
||||
`);
|
||||
|
||||
const cssFieldLinkBody = styled('body', `
|
||||
--icon-GristLogo: url("icons/logo-fieldlink.png");
|
||||
--icon-GristWideLogo: url("icons/logo-fieldlink.png");
|
||||
|
||||
Reference in New Issue
Block a user