mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +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:
parent
ca3cf0cd06
commit
8f34ba5157
@ -1,7 +1,7 @@
|
|||||||
import {GristLoadConfig} from 'app/common/gristUrls';
|
import {GristLoadConfig} from 'app/common/gristUrls';
|
||||||
import {styled} from 'grainjs';
|
import {styled} from 'grainjs';
|
||||||
|
|
||||||
export type ProductFlavor = 'grist' | 'efcr' | 'fieldlink';
|
export type ProductFlavor = 'grist' | 'fieldlink';
|
||||||
|
|
||||||
export interface CustomTheme {
|
export interface CustomTheme {
|
||||||
bodyClassName?: string;
|
bodyClassName?: string;
|
||||||
@ -20,8 +20,6 @@ export function getFlavor(org?: string): ProductFlavor {
|
|||||||
}
|
}
|
||||||
if (org === 'fieldlink') {
|
if (org === 'fieldlink') {
|
||||||
return 'fieldlink';
|
return 'fieldlink';
|
||||||
} else if (org && /^nioxus(-.*)?$/.test(org)) {
|
|
||||||
return 'efcr';
|
|
||||||
}
|
}
|
||||||
return 'grist';
|
return 'grist';
|
||||||
}
|
}
|
||||||
@ -33,25 +31,11 @@ export function getTheme(flavor: ProductFlavor): CustomTheme {
|
|||||||
wideLogo: true,
|
wideLogo: true,
|
||||||
bodyClassName: cssFieldLinkBody.className,
|
bodyClassName: cssFieldLinkBody.className,
|
||||||
};
|
};
|
||||||
case 'efcr':
|
|
||||||
return {bodyClassName: cssEfcrBody.className};
|
|
||||||
default:
|
default:
|
||||||
return {};
|
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', `
|
const cssFieldLinkBody = styled('body', `
|
||||||
--icon-GristLogo: url("icons/logo-fieldlink.png");
|
--icon-GristLogo: url("icons/logo-fieldlink.png");
|
||||||
--icon-GristWideLogo: 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",
|
helpTryingOutChanges: "https://support.getgrist.com/copying-docs/#trying-out-changes",
|
||||||
helpCustomWidgets: "https://support.getgrist.com/widget-custom",
|
helpCustomWidgets: "https://support.getgrist.com/widget-custom",
|
||||||
plans: "https://www.getgrist.com/pricing",
|
plans: "https://www.getgrist.com/pricing",
|
||||||
createTeamSite: "https://www.getgrist.com/create-team-site",
|
|
||||||
sproutsProgram: "https://www.getgrist.com/sprouts-program",
|
sproutsProgram: "https://www.getgrist.com/sprouts-program",
|
||||||
contact: "https://www.getgrist.com/contact",
|
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',
|
basicTutorial: 'https://templates.getgrist.com/woXtXUBmiN5T/Grist-Basics',
|
||||||
basicTutorialImage: 'https://www.getgrist.com/wp-content/uploads/2021/08/lightweight-crm.png',
|
basicTutorialImage: 'https://www.getgrist.com/wp-content/uploads/2021/08/lightweight-crm.png',
|
||||||
gristLabsCustomWidgets: 'https://gristlabs.github.io/grist-widget/',
|
gristLabsCustomWidgets: 'https://gristlabs.github.io/grist-widget/',
|
||||||
|
@ -1338,7 +1338,6 @@ export class FlexServer implements GristServer {
|
|||||||
|
|
||||||
public addNotifier() {
|
public addNotifier() {
|
||||||
if (this._check('notifier', 'start', 'homedb')) { return; }
|
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
|
// TODO: make Notifier aware of base domains, rather than sending emails with default
|
||||||
// base domain.
|
// base domain.
|
||||||
// Most notifications are ultimately triggered by requests with a base domain in them,
|
// Most notifications are ultimately triggered by requests with a base domain in them,
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 64 KiB |
Loading…
Reference in New Issue
Block a user