🔧(env) disable the DINUM-specific footer by default

the footer used is very specific to the DINUM/French gov instance so it
should not be enabled by default for everyone.

it's still a bit weird to keep this footer in the code here but at least
it removes the issue easily. any PR to clean the code is appreciated :)
This commit is contained in:
Emmanuel Pelletier
2025-06-03 10:26:22 +02:00
committed by aleb_the_flash
parent 4db3e205d2
commit 15330ad4e1
5 changed files with 12 additions and 0 deletions

View File

@@ -281,6 +281,7 @@ These are the environmental options available on meet backend.
| FRONTEND_SILENCE_LIVEKIT_DEBUG | Silence LiveKit debug logs | false |
| FRONTEND_IS_SILENT_LOGIN_ENABLED | Enable silent login feature | true |
| FRONTEND_FEEDBACK | Frontend feedback configuration | {} |
| FRONTEND_USE_FRENCH_GOV_FOOTER | Show the French government footer in the homepage | false |
| DJANGO_EMAIL_BACKEND | Email backend library | django.core.mail.backends.smtp.EmailBackend |
| DJANGO_EMAIL_HOST | Host of the email server | |
| DJANGO_EMAIL_HOST_USER | User to connect to the email server | |

View File

@@ -57,3 +57,5 @@ SCREEN_RECORDING_BASE_URL=http://localhost:3000/recordings
# Telephony
ROOM_TELEPHONY_ENABLED=True
FRONTEND_USE_FRENCH_GOV_FOOTER=False

View File

@@ -324,6 +324,9 @@ class Base(Configuration):
"feedback": values.DictValue(
{}, environ_name="FRONTEND_FEEDBACK", environ_prefix=None
),
"use_french_gov_footer": values.BooleanValue(
False, environ_name="FRONTEND_USE_FRENCH_GOV_FOOTER", environ_prefix=None
),
}
# Mail

View File

@@ -17,6 +17,7 @@ export interface ApiConfig {
silence_livekit_debug_logs?: boolean
is_silent_login_enabled?: boolean
custom_css_url?: string
use_french_gov_footer?: boolean
recording?: {
is_enabled?: boolean
available_modes?: RecordingMode[]

View File

@@ -1,6 +1,7 @@
import { styled } from '@/styled-system/jsx'
import { css } from '@/styled-system/css'
import { A, Link } from '@/primitives'
import { useConfig } from '@/api/useConfig'
import { useTranslation } from 'react-i18next'
const StyledLi = styled('li', {
@@ -120,6 +121,10 @@ const Marianne = () => {
export const Footer = () => {
const { t } = useTranslation('global', { keyPrefix: 'footer' })
const { data } = useConfig()
if (!data?.use_french_gov_footer) {
return null
}
return (
<footer