gristlabs_grist-core/app/common/UserConfig.ts
Paul Fitzpatrick 2edf64c132 (core) remove metrics
Summary: This removes some old metric code. There's also a user preference dialog that has a single option (whether to allow metrics) this is left in place with a dummy option. It could be ripped out as well, probably.

Test Plan: existing tests pass

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2622
2020-09-29 18:57:56 -04:00

31 lines
1001 B
TypeScript

/*
* Interface for the user's config found in config.json.
*/
export interface UserConfig {
docListSortBy?: string;
docListSortDir?: number;
features?: ISupportedFeatures;
/*
* The host serving the untrusted content: on dev environment could be
* "http://getgrist.localtest.me". Port is added at runtime and should not be included.
*/
untrustedContentOrigin?: string;
}
export interface ISupportedFeatures {
signin?: boolean;
sharing?: boolean;
proxy?: boolean; // If true, Grist will accept login information via http headers
// X-Forwarded-User and X-Forwarded-Email. Set to true only if
// Grist is behind a reverse proxy that is managing those headers,
// otherwise they could be spoofed.
formulaBar?: boolean;
// Plugin views, REPL, and Validations all need work, but are exposed here to allow existing
// tests to continue running. These only affect client-side code.
customViewPlugin?: boolean;
replTool?: boolean;
validationsTool?: boolean;
}