Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>matrix-authentication-service</title>
<!-- :tchap: -->
<title>Tchap</title>
<link rel="icon" href="https://www.tchap.gouv.fr/vector-icons/favicon.e336df8.ico">
<!-- :tchap: -->
<script type="application/javascript">
window.APP_CONFIG = JSON.parse(
'{"root": "/account/", "graphqlEndpoint": "/graphql"}',
Expand Down
34 changes: 34 additions & 0 deletions tchap/resources/templates/app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{#
Copyright 2024, 2025 New Vector Ltd.
Copyright 2023, 2024 The Matrix.org Foundation C.I.C.

SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE files in the repository root for full details.
-#}

{# Must be kept in sync with frontend/index.html #}
{% set _ = translator(lang) %}

<!DOCTYPE html>
<html lang="{{ lang }}">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ _("app.name") }}</title>
<!-- :tchap: -->
<link rel="icon" href="https://www.tchap.gouv.fr/vector-icons/favicon.e336df8.ico">
<!-- :tchap: -->
{% set config = {
'graphqlEndpoint': app_config.graphqlEndpoint,
'root': app_config.root,
} -%}
<script>
window.APP_CONFIG = JSON.parse("{{ config | tojson | add_slashes | safe }}");
</script>
{{ include_asset('src/main.tsx') | indent(4) | safe }}
</head>

<body>
<div id="root"></div>
</body>
</html>
1 change: 1 addition & 0 deletions tchap/resources/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
{{ include_asset('src/templates.css') | indent(4) | safe }}

<!-- :tchap: -->
<link rel="icon" href="https://www.tchap.gouv.fr/vector-icons/favicon.e336df8.ico">
{{ include_asset('tchap/css/tchap.css') | indent(4) | safe }}
{{ include_asset('node_modules/@gouvfr-lasuite/integration/dist/css/homepage-full.css') | indent(4) | safe }}
<script id="lasuite-gaufre-script" async defer src="https://integration.lasuite.numerique.gouv.fr/api/v1/gaufre.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions tchap/resources/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
}
},
"app": {
"human_name": "Matrix Authentication Service",
"human_name": "Tchap",
"@human_name": {
"context": "index.html:15:29-48, pages/index.html:15:29-48",
"description": "Human readable name of the application"
},
"name": "matrix-authentication-service",
"name": "Tchap",
"@name": {
"context": "app.html:17:14-27, base.html:25:31-44",
"description": "Name of the application"
Expand Down
4 changes: 2 additions & 2 deletions tchap/resources/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"submit": "Soumettre"
},
"app": {
"human_name": "Matrix Authentication Service",
"name": "matrix-authentication-service",
"human_name": "Tchap",
"name": "Tchap",
"technical_description": "Document de découverte OpenID Connect : <a class=\"cpd-link\" data-kind=\"primary\" href=\"%(discovery_url)s\">%(discovery_url)s</a>"
},
"branding": {
Expand Down
Loading