(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
pull/511/head
Dmitry S 1 year ago
parent ca3cf0cd06
commit 8f34ba5157

@ -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");

@ -72,12 +72,9 @@ export const commonUrls = {
helpTryingOutChanges: "https://support.getgrist.com/copying-docs/#trying-out-changes",
helpCustomWidgets: "https://support.getgrist.com/widget-custom",
plans: "https://www.getgrist.com/pricing",
createTeamSite: "https://www.getgrist.com/create-team-site",
sproutsProgram: "https://www.getgrist.com/sprouts-program",
contact: "https://www.getgrist.com/contact",
efcrConnect: 'https://efc-r.com/connect',
efcrHelp: 'https://www.nioxus.info/eFCR-Help',
basicTutorial: 'https://templates.getgrist.com/woXtXUBmiN5T/Grist-Basics',
basicTutorialImage: 'https://www.getgrist.com/wp-content/uploads/2021/08/lightweight-crm.png',
gristLabsCustomWidgets: 'https://gristlabs.github.io/grist-widget/',

@ -1338,7 +1338,6 @@ export class FlexServer implements GristServer {
public addNotifier() {
if (this._check('notifier', 'start', 'homedb')) { return; }
// TODO: Disable notifications for Nioxus orgs, until they are ready to deal with them.
// TODO: make Notifier aware of base domains, rather than sending emails with default
// base domain.
// Most notifications are ultimately triggered by requests with a base domain in them,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Loading…
Cancel
Save