mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
lint: Ensure non-dev templates entrypoint name doesn't start with dev.
Only development-related templates entrypoint name should start with `dev`.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{% extends "zerver/base.html" %}
|
||||
{% set entrypoint = "email-log" %}
|
||||
{% set entrypoint = "dev-email-log" %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div style="position: fixed">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% extends "zerver/portico.html" %}
|
||||
{% set entrypoint = "integrations-dev-panel" %}
|
||||
{% set entrypoint = "dev-integrations-panel" %}
|
||||
|
||||
{% block customhead %}
|
||||
|
||||
|
||||
@@ -754,6 +754,11 @@ jinja2_rules = RuleList(
|
||||
"pattern": r"{{ _(.+) }}[\.\?!]",
|
||||
"description": "Period should be part of the translatable string.",
|
||||
},
|
||||
{
|
||||
"pattern": r'{% set entrypoint = "dev-',
|
||||
"exclude": {"templates/zerver/development/"},
|
||||
"description": "Development entrypoints (dev-) must not be imported in production.",
|
||||
},
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@@ -90,14 +90,14 @@
|
||||
"dev-login": ["./static/js/bundles/portico", "./static/js/portico/dev-login"],
|
||||
"desktop-login": ["./static/js/bundles/portico", "./static/js/portico/desktop-login"],
|
||||
"desktop-redirect": ["./static/js/bundles/portico", "./static/js/portico/desktop-redirect"],
|
||||
"integrations-dev-panel": [
|
||||
"dev-integrations-panel": [
|
||||
"./static/js/bundles/portico",
|
||||
"./static/js/portico/integrations_dev_panel",
|
||||
"./static/styles/portico/integrations_dev_panel.css",
|
||||
"./static/js/reload_state",
|
||||
"./static/js/channel"
|
||||
],
|
||||
"email-log": [
|
||||
"dev-email-log": [
|
||||
"./static/js/bundles/common",
|
||||
"./static/js/portico/email_log",
|
||||
"./static/js/reload_state",
|
||||
|
||||
Reference in New Issue
Block a user