billing: Add separate entry point for billing login pages.

We just exclude upgrade.ts from the imports to avoid page_params
being imported which results in an error.

s
This commit is contained in:
Aman Agrawal 2024-02-20 17:56:01 +00:00 committed by Tim Abbott
parent 5803d4afec
commit 949379581e
7 changed files with 15 additions and 8 deletions

View File

@ -1,5 +1,5 @@
{% extends "zerver/portico.html" %}
{% set entrypoint = "upgrade" %}
{% set entrypoint = "billing_auth" %}
{% set PAGE_TITLE = "Authenticate server for Zulip plan management" %}

View File

@ -1,5 +1,5 @@
{% extends "zerver/portico_signup.html" %}
{% set entrypoint = "upgrade" %}
{% set entrypoint = "billing_auth" %}
{% block title %}
{% if remote_server_hostname %}

View File

@ -1,5 +1,5 @@
{% extends "zerver/portico_signup.html" %}
{% set entrypoint = "upgrade" %}
{% set entrypoint = "billing_auth" %}
{% block title %}
{% if remote_server_hostname %}

View File

@ -1,5 +1,5 @@
{% extends "zerver/portico.html" %}
{% set entrypoint = "upgrade" %}
{% set entrypoint = "billing_auth" %}
{% block title %}
<title>

View File

@ -1,5 +1,5 @@
{% extends "zerver/portico.html" %}
{% set entrypoint = "upgrade" %}
{% set entrypoint = "billing_auth" %}
{% block title %}
<title>{{ _("Deactivate server registration?") }} | Zulip</title>

View File

@ -1,5 +1,5 @@
{% extends "zerver/portico_signup.html" %}
{% set entrypoint = "upgrade" %}
{% set entrypoint = "billing_auth" %}
{% block title %}
<title>Server registration deactivated | Zulip</title>

View File

@ -19,14 +19,21 @@
"./src/billing/sponsorship",
"./styles/portico/billing.css"
],
"billing_auth": [
"./src/bundles/portico",
"./src/portico/tippyjs",
"./src/billing/helpers",
"jquery-validation",
"./src/billing/remote_billing_auth",
"./src/billing/deactivate_server",
"./styles/portico/billing.css"
],
"upgrade": [
"./src/bundles/portico",
"./src/portico/tippyjs",
"./src/billing/helpers",
"./src/billing/upgrade",
"jquery-validation",
"./src/billing/remote_billing_auth",
"./src/billing/deactivate_server",
"./styles/portico/billing.css"
],
"billing-event-status": [