From a43a5a25a6599ec84ac517cadcf27126d31ed106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Sadzi=C5=84ski?= Date: Sun, 21 Aug 2022 22:58:58 +0200 Subject: [PATCH] (core) Removing old billing landing page. Summary: Old landing page /docs/billing/signup is not used anymore. Test Plan: Updated tests Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3585 --- app/client/widgets/CheckBox.js | 1 - app/server/lib/FlexServer.ts | 18 ------------------ 2 files changed, 19 deletions(-) diff --git a/app/client/widgets/CheckBox.js b/app/client/widgets/CheckBox.js index 5ef7c7b8..1386f989 100644 --- a/app/client/widgets/CheckBox.js +++ b/app/client/widgets/CheckBox.js @@ -19,7 +19,6 @@ CheckBox.prototype.buildConfigDom = function() { CheckBox.prototype.buildDom = function(row) { var value = row[this.field.colId()]; - console.log(this); return dom('div.field_clip', dom('div.widget_checkbox', dom.on('click', () => { diff --git a/app/server/lib/FlexServer.ts b/app/server/lib/FlexServer.ts index 38ca3732..892cc191 100644 --- a/app/server/lib/FlexServer.ts +++ b/app/server/lib/FlexServer.ts @@ -1184,24 +1184,6 @@ export class FlexServer implements GristServer { } })); - /** - * Add landing page for creating pro team sites. Creates new org and redirect to Stripe Checkout Page. - * @param billingPlan Stripe plan/price id to use. Must be a standard plan that resolves to a billable product. - * @param planType Product type to use. Grist will look for a Stripe Product with a default price - * that has metadata 'gristProduct' parameter with this plan. If billingPlan is passed, this - * parameter is ignored. - */ - this.app.get('/billing/signup', ...middleware, expressWrap(async (req, resp, next) => { - const planType = optStringParam(req.query.planType) || ''; - const billingPlan = optStringParam(req.query.billingPlan) || ''; - if (!planType && !billingPlan) { - return this._sendAppPage(req, resp, {path: 'error.html', status: 404, config: {errPage: 'not-found'}}); - } - // Redirect to GET endpoint in the billing api to create a team site. - const url = `${getPrefix(req)}/api/billing/signup?planType=${planType}&billingPlan=${billingPlan}`; - return resp.redirect(url); - })); - // New landing page for the new NEW_DEAL. this.app.get('/billing/create-team', ...middleware, expressWrap(async (req, resp, next) => { const planType = optStringParam(req.query.planType) || '';