From 06047a13185ade1005f0c4c4c4606a242f6a40fc Mon Sep 17 00:00:00 2001 From: Xavier Desoindre Date: Wed, 4 Dec 2024 14:13:58 +0100 Subject: [PATCH] feat: add alimentation infography --- .../outils/equivalents/infographies/list.ts | 16 ++++++++++++++++ src/utils/examples.ts | 1 + 2 files changed, 17 insertions(+) diff --git a/src/components/outils/equivalents/infographies/list.ts b/src/components/outils/equivalents/infographies/list.ts index 3607f1c58..d13b27a6d 100644 --- a/src/components/outils/equivalents/infographies/list.ts +++ b/src/components/outils/equivalents/infographies/list.ts @@ -31,4 +31,20 @@ export const infographies: Record = { poeleagranule: ['chauffagegaz', 'poeleagranule', 'chauffageelectrique'], poeleabois: ['poeleabois', 'poeleagranule', 'chauffageelectrique'], reseaudechaleur: ['reseaudechaleur', 'poeleagranule', 'pompeachaleur'], + crevettes: ['crevettes', 'saumon', 'fromagedure', 'tofu'], + saumon: ['crevettes', 'saumon', 'fromagedure', 'tofu'], + fromagedure: ['crevettes', 'saumon', 'fromagedure', 'tofu'], + tofu: ['crevettes', 'saumon', 'fromagepatedure', 'tofu'], + boeuf: ['boeuf', 'porc', 'poulet', 'haricotsrouges', 'tofu'], + porc: ['boeuf', 'porc', 'poulet', 'haricotsrouges', 'tofu'], + poulet: ['boeuf', 'porc', 'poulet', 'haricotsrouges', 'tofu'], + haricotsrouges: ['boeuf', 'porc', 'poulet', 'haricotsrouges', 'tofu'], + cheeseburger: ['cheeseburger', 'burgerpoulet', 'burgervegetarien'], + burgerpoulet: ['cheeseburger', 'burgerpoulet', 'burgervegetarien'], + burgervegetarien: ['cheeseburger', 'burgerpoulet', 'burgervegetarien'], + beurre: ['beurre', 'matieregrasse'], + matieregrasse: ['beurre', 'matieregrasse'], + painauchocolat: ['painauchocolat', 'croissant', 'pomme'], + croissant: ['painauchocolat', 'croissant', 'pomme'], + pomme: ['painauchocolat', 'croissant', 'pomme'], } diff --git a/src/utils/examples.ts b/src/utils/examples.ts index 6209c30c1..33796c63a 100644 --- a/src/utils/examples.ts +++ b/src/utils/examples.ts @@ -22,6 +22,7 @@ export const getExamples = unstable_cache( !result.properties.Nom.title[0] || !result.properties.Lien.rich_text[0] || !result.properties.Logo.files[0] || + !result.properties.Logo.files[0].file || !result.properties.Secteur.select ) { return