|
| 1 | +{# |
| 2 | +MIT License |
| 3 | + |
| 4 | +Copyright (c) 2025, Direction interministérielle du numérique - Gouvernement |
| 5 | +Français |
| 6 | + |
| 7 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 8 | +of this software and associated documentation files (the "Software"), to |
| 9 | +deal in the Software without restriction, including without limitation the |
| 10 | +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
| 11 | +sell copies of the Software, and to permit persons to whom the Software is |
| 12 | +furnished to do so, subject to the following conditions: |
| 13 | + |
| 14 | +The above copyright notice and this permission notice shall be included in |
| 15 | +all copies or substantial portions of the Software. |
| 16 | + |
| 17 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 18 | +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 19 | +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 20 | +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
| 21 | +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR |
| 22 | +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE |
| 23 | +USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 24 | +-#} |
| 25 | + |
| 26 | +{# Must be kept in sync with frontend/index.html #} |
| 27 | +{% set _ = translator(lang) %} |
| 28 | + |
| 29 | +<!DOCTYPE html> |
| 30 | +<html lang="{{ lang }}"> |
| 31 | + <head> |
| 32 | + <meta charset="UTF-8" /> |
| 33 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 34 | + <title>{{ _("app.name") }}</title> |
| 35 | + <!-- :tchap: --> |
| 36 | + <link rel="icon" href="https://www.tchap.gouv.fr/vector-icons/favicon.e336df8.ico"> |
| 37 | + <!-- :tchap: --> |
| 38 | + {% set config = { |
| 39 | + 'graphqlEndpoint': app_config.graphqlEndpoint, |
| 40 | + 'root': app_config.root, |
| 41 | + } -%} |
| 42 | + <script> |
| 43 | + window.APP_CONFIG = JSON.parse("{{ config | tojson | add_slashes | safe }}"); |
| 44 | + </script> |
| 45 | + {{ include_asset('src/main.tsx') | indent(4) | safe }} |
| 46 | + </head> |
| 47 | + |
| 48 | + <body> |
| 49 | + <div id="root"></div> |
| 50 | + </body> |
| 51 | +</html> |
0 commit comments