🔧(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:
committed by
aleb_the_flash
parent
4db3e205d2
commit
15330ad4e1
@@ -281,6 +281,7 @@ These are the environmental options available on meet backend.
|
|||||||
| FRONTEND_SILENCE_LIVEKIT_DEBUG | Silence LiveKit debug logs | false |
|
| FRONTEND_SILENCE_LIVEKIT_DEBUG | Silence LiveKit debug logs | false |
|
||||||
| FRONTEND_IS_SILENT_LOGIN_ENABLED | Enable silent login feature | true |
|
| FRONTEND_IS_SILENT_LOGIN_ENABLED | Enable silent login feature | true |
|
||||||
| FRONTEND_FEEDBACK | Frontend feedback configuration | {} |
|
| 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_BACKEND | Email backend library | django.core.mail.backends.smtp.EmailBackend |
|
||||||
| DJANGO_EMAIL_HOST | Host of the email server | |
|
| DJANGO_EMAIL_HOST | Host of the email server | |
|
||||||
| DJANGO_EMAIL_HOST_USER | User to connect to the email server | |
|
| DJANGO_EMAIL_HOST_USER | User to connect to the email server | |
|
||||||
|
|||||||
@@ -57,3 +57,5 @@ SCREEN_RECORDING_BASE_URL=http://localhost:3000/recordings
|
|||||||
|
|
||||||
# Telephony
|
# Telephony
|
||||||
ROOM_TELEPHONY_ENABLED=True
|
ROOM_TELEPHONY_ENABLED=True
|
||||||
|
|
||||||
|
FRONTEND_USE_FRENCH_GOV_FOOTER=False
|
||||||
|
|||||||
@@ -324,6 +324,9 @@ class Base(Configuration):
|
|||||||
"feedback": values.DictValue(
|
"feedback": values.DictValue(
|
||||||
{}, environ_name="FRONTEND_FEEDBACK", environ_prefix=None
|
{}, 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
|
# Mail
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ export interface ApiConfig {
|
|||||||
silence_livekit_debug_logs?: boolean
|
silence_livekit_debug_logs?: boolean
|
||||||
is_silent_login_enabled?: boolean
|
is_silent_login_enabled?: boolean
|
||||||
custom_css_url?: string
|
custom_css_url?: string
|
||||||
|
use_french_gov_footer?: boolean
|
||||||
recording?: {
|
recording?: {
|
||||||
is_enabled?: boolean
|
is_enabled?: boolean
|
||||||
available_modes?: RecordingMode[]
|
available_modes?: RecordingMode[]
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { styled } from '@/styled-system/jsx'
|
import { styled } from '@/styled-system/jsx'
|
||||||
import { css } from '@/styled-system/css'
|
import { css } from '@/styled-system/css'
|
||||||
import { A, Link } from '@/primitives'
|
import { A, Link } from '@/primitives'
|
||||||
|
import { useConfig } from '@/api/useConfig'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
const StyledLi = styled('li', {
|
const StyledLi = styled('li', {
|
||||||
@@ -120,6 +121,10 @@ const Marianne = () => {
|
|||||||
|
|
||||||
export const Footer = () => {
|
export const Footer = () => {
|
||||||
const { t } = useTranslation('global', { keyPrefix: 'footer' })
|
const { t } = useTranslation('global', { keyPrefix: 'footer' })
|
||||||
|
const { data } = useConfig()
|
||||||
|
if (!data?.use_french_gov_footer) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<footer
|
<footer
|
||||||
|
|||||||
Reference in New Issue
Block a user