From 9d5955da9a3dfa9ad609bd81e576bdd6b5b02a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Thu, 2 Mar 2023 17:16:34 +0100 Subject: [PATCH] Add comments --- .../source/pages/Simulateurs/configs/types.ts | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/site/source/pages/Simulateurs/configs/types.ts b/site/source/pages/Simulateurs/configs/types.ts index f6946d5d1..6ae666d10 100644 --- a/site/source/pages/Simulateurs/configs/types.ts +++ b/site/source/pages/Simulateurs/configs/types.ts @@ -56,6 +56,14 @@ export type SimulationConfig = Partial<{ 'unité par défaut'?: string }> +type Tracking = + | string + | { + chapter1?: string + chapter2?: string + chapter3?: string + } + export interface PageConfig { id: string path?: string @@ -64,13 +72,7 @@ export interface PageConfig { icône: string shortName: string title: string - tracking: - | string - | { - chapter1?: string - chapter2?: string - chapter3?: string - } + tracking: Tracking meta: { title: string description: string @@ -79,6 +81,9 @@ export interface PageConfig { ogImage?: string color?: string } + /** + * Hides the simulator in the iframe integration page + */ private?: boolean beta?: boolean tooltip?: string