mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Remove code for unused welcome flows
Summary: Removes code that was marked for removal. Test Plan: Existing tests still pass. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3289
This commit is contained in:
@@ -37,12 +37,18 @@ export class BaseAPI {
|
||||
};
|
||||
}
|
||||
|
||||
// Make a JSON request to the given URL, and read the esponse as JSON. Handles errors, and
|
||||
// Make a JSON request to the given URL, and read the response as JSON. Handles errors, and
|
||||
// counts pending requests in the same way as BaseAPI methods do.
|
||||
public static requestJson(url: string, init: RequestInit = {}): Promise<unknown> {
|
||||
return new BaseAPI().requestJson(url, init);
|
||||
}
|
||||
|
||||
// Make a request to the given URL, and read the response. Handles errors, and
|
||||
// counts pending requests in the same way as BaseAPI methods do.
|
||||
public static request(url: string, init: RequestInit = {}): Promise<Response> {
|
||||
return new BaseAPI().request(url, init);
|
||||
}
|
||||
|
||||
private static _numPendingRequests: number = 0;
|
||||
|
||||
protected fetch: typeof fetch;
|
||||
|
||||
@@ -20,7 +20,7 @@ export const HomePage = StringUnion('all', 'workspace', 'templates', 'trash');
|
||||
export type IHomePage = typeof HomePage.type;
|
||||
|
||||
// TODO: Remove 'user' and 'info', since those pages are no longer part of any flow.
|
||||
export const WelcomePage = StringUnion('user', 'info', 'teams', 'signup', 'verify', 'select-account');
|
||||
export const WelcomePage = StringUnion('teams', 'signup', 'verify', 'select-account');
|
||||
export type WelcomePage = typeof WelcomePage.type;
|
||||
|
||||
export const AccountPage = StringUnion('account');
|
||||
@@ -286,7 +286,7 @@ export function decodeUrl(gristConfig: Partial<GristLoadConfig>, location: Locat
|
||||
if (map.has('m')) { state.mode = OpenDocMode.parse(map.get('m')); }
|
||||
if (map.has('account')) { state.account = AccountPage.parse(map.get('account')) || 'account'; }
|
||||
if (map.has('billing')) { state.billing = BillingSubPage.parse(map.get('billing')) || 'billing'; }
|
||||
if (map.has('welcome')) { state.welcome = WelcomePage.parse(map.get('welcome')) || 'user'; }
|
||||
if (map.has('welcome')) { state.welcome = WelcomePage.parse(map.get('welcome')); }
|
||||
if (sp.has('billingPlan')) { state.params!.billingPlan = sp.get('billingPlan')!; }
|
||||
if (sp.has('billingTask')) {
|
||||
state.params!.billingTask = BillingTask.parse(sp.get('billingTask'));
|
||||
|
||||
Reference in New Issue
Block a user