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" %} {% extends "zerver/portico.html" %}
{% set entrypoint = "upgrade" %} {% set entrypoint = "billing_auth" %}
{% set PAGE_TITLE = "Authenticate server for Zulip plan management" %} {% set PAGE_TITLE = "Authenticate server for Zulip plan management" %}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -19,14 +19,21 @@
"./src/billing/sponsorship", "./src/billing/sponsorship",
"./styles/portico/billing.css" "./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": [ "upgrade": [
"./src/bundles/portico", "./src/bundles/portico",
"./src/portico/tippyjs", "./src/portico/tippyjs",
"./src/billing/helpers", "./src/billing/helpers",
"./src/billing/upgrade", "./src/billing/upgrade",
"jquery-validation", "jquery-validation",
"./src/billing/remote_billing_auth",
"./src/billing/deactivate_server",
"./styles/portico/billing.css" "./styles/portico/billing.css"
], ],
"billing-event-status": [ "billing-event-status": [