Skip to content
Merged
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
51 changes: 51 additions & 0 deletions tchap/resources/templates/app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{#
MIT License

Copyright (c) 2025, Direction interministérielle du numérique - Gouvernement
Français

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
-#}

{# 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