Skip to content

Commit 1df233b

Browse files
bjlaadependabot[bot]paulsoucheClemogincubateur-ademe-admin
authored
πŸ”– Release 2.34.0 (#1313)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Benjamin Arias <12382534+bjlaa@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Paul Souche <paul@bettercallpaul.fr> Co-authored-by: ClΓ©ment <55186402+Clemog@users.noreply.github.com> Co-authored-by: ClΓ©ment <clem.auger@hotmail.fr> Co-authored-by: Bot Incubateur Ademe <153178900+incubateur-ademe-admin@users.noreply.github.com>
1 parent 9bf7a4a commit 1df233b

File tree

46 files changed

+3696
-2968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3696
-2968
lines changed

β€Ž.husky/pre-push-defaultβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
yarn lint
3+
yarn lint || exit 1
44

55
# Run TypeScript type checks and exit if there are errors
66
yarn lint:types || exit 1

β€Žconfig/redirects.jsβ€Ž

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,124 @@ const redirects = [
293293
destination: '/themes/empreinte-carbone-transport',
294294
permanent: true,
295295
},
296+
{
297+
source: '/empreinte-carbone-transport',
298+
destination: '/themes/empreinte-carbone-transport',
299+
permanent: true,
300+
},
301+
{
302+
source: '/empreinte-carbone-logement',
303+
destination: '/themes/empreinte-carbone-logement',
304+
permanent: true,
305+
},
306+
// Guides fr
307+
{
308+
source: '/guide',
309+
destination: '/',
310+
permanent: true,
311+
},
312+
{
313+
source: '/guide/alimentation',
314+
destination: '/themes/empreinte-carbone-alimentation',
315+
permanent: true,
316+
},
317+
{
318+
source: '/guide/transport',
319+
destination: '/themes/empreinte-carbone-transport',
320+
permanent: true,
321+
},
322+
{
323+
source: '/guide/logement',
324+
destination: '/themes/empreinte-carbone-logement',
325+
permanent: true,
326+
},
327+
{
328+
source: '/guide/numerique',
329+
destination: '/',
330+
permanent: true,
331+
},
332+
{
333+
source: '/guide/divers',
334+
destination: '/',
335+
permanent: true,
336+
},
337+
{
338+
source: '/guide/services-societaux',
339+
destination: '/',
340+
permanent: true,
341+
},
342+
// Guides en
343+
{
344+
source: '/en/guide',
345+
destination: '/en',
346+
permanent: true,
347+
},
348+
{
349+
source: '/en/guide/alimentation',
350+
destination: '/en',
351+
permanent: true,
352+
},
353+
{
354+
source: '/en/guide/transport',
355+
destination: '/en',
356+
permanent: true,
357+
},
358+
{
359+
source: '/en/guide/logement',
360+
destination: '/en',
361+
permanent: true,
362+
},
363+
{
364+
source: '/en/guide/divers',
365+
destination: '/en',
366+
permanent: true,
367+
},
368+
{
369+
source: '/en/guide/numerique',
370+
destination: '/en',
371+
permanent: true,
372+
},
373+
{
374+
source: '/en/guide/services-societaux',
375+
destination: '/en',
376+
permanent: true,
377+
},
378+
// Guides es
379+
{
380+
source: '/es/guide',
381+
destination: '/es',
382+
permanent: true,
383+
},
384+
{
385+
source: '/es/guide/alimentation',
386+
destination: '/es',
387+
permanent: true,
388+
},
389+
{
390+
source: '/es/guide/transport',
391+
destination: '/es',
392+
permanent: true,
393+
},
394+
{
395+
source: '/es/guide/logement',
396+
destination: '/es',
397+
permanent: true,
398+
},
399+
{
400+
source: '/es/guide/divers',
401+
destination: '/es',
402+
permanent: true,
403+
},
404+
{
405+
source: '/es/guide/numerique',
406+
destination: '/es',
407+
permanent: true,
408+
},
409+
{
410+
source: '/es/guide/services-societaux',
411+
destination: '/es',
412+
permanent: true,
413+
},
296414
// Short URL for Brevo
297415
{
298416
source: '/infolettres',

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nosgestesclimat-site-nextjs",
33
"license": "MIT",
4-
"version": "2.33.0",
4+
"version": "2.34.0",
55
"description": "The leading open source climate footprint calculator",
66
"repository": {
77
"type": "git",
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import MDXContent from '@/components/mdx/MDXContent'
21
import { t } from '@/helpers/metadata/fakeMetadataT'
32
import { getCommonMetadata } from '@/helpers/metadata/getCommonMetadata'
4-
import GuideFr from '@/locales/guide-mode-groupe/fr/guide.mdx'
5-
import type { DefaultPageProps } from '@/types'
3+
import { redirect } from 'next/navigation'
64

75
export const generateMetadata = getCommonMetadata({
86
title: t('Le guide - Nos Gestes Climat'),
@@ -14,7 +12,6 @@ export const generateMetadata = getCommonMetadata({
1412
},
1513
})
1614

17-
export default async function GuidePage({ params }: DefaultPageProps) {
18-
const { locale } = await params
19-
return <MDXContent locale={locale} contentFr={GuideFr} />
15+
export default function GuidePage() {
16+
redirect('/')
2017
}

β€Žsrc/app/[locale]/(simulation)/(large-layout)/organisations/[orgaSlug]/campagnes/[pollSlug]/_components/AdminSection.tsxβ€Ž

Lines changed: 0 additions & 85 deletions
This file was deleted.

β€Žsrc/app/[locale]/(simulation)/(large-layout)/organisations/[orgaSlug]/campagnes/[pollSlug]/_components/FiltersProvider.tsxβ€Ž

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
Β (0)