From 9263f4b316b5d393562cf1c85e5badc7161bd592 Mon Sep 17 00:00:00 2001 From: Louis Grasset Date: Tue, 21 Nov 2023 01:59:15 +0100 Subject: [PATCH] fix(generator): add missing SYNC_* env variables output --- .../environment-generator/generator.js | 98 +++++++++++-------- 1 file changed, 57 insertions(+), 41 deletions(-) diff --git a/docs/src/components/environment-generator/generator.js b/docs/src/components/environment-generator/generator.js index 5c4535d..0207a74 100644 --- a/docs/src/components/environment-generator/generator.js +++ b/docs/src/components/environment-generator/generator.js @@ -95,6 +95,13 @@ const Generator = ({ setConfiguration }) => { value: "", env: "MASTODON_ACCESS_TOKEN", }, + { + name: "enabled", + type: "boolean", + value: true, + hidden: true, + env: "SYNC_MASTODON", + }, ], }, bluesky: { @@ -122,6 +129,13 @@ const Generator = ({ setConfiguration }) => { value: "", env: "BLUESKY_PASSWORD", }, + { + name: "enabled", + type: "boolean", + value: true, + hidden: true, + env: "SYNC_BLUESKY", + }, ], }, sync: { @@ -294,50 +308,52 @@ const Generator = ({ setConfiguration }) => { ) : null} {category.enabled !== false - ? category.fields.map((field) => ( -
- {field.warning ? ( - - - - - - - - - ) : null} + ? category.fields.map((field) => + field?.hidden !== true ? ( +
+ {field.warning ? ( + + + + + + + + + ) : null} - {field.type === "boolean" ? ( - - ) : null} + {field.type === "boolean" ? ( + + ) : null} - {field.type === "string" || field.type === "number" ? ( - - ) : null} + {field.type === "string" || field.type === "number" ? ( + + ) : null} - {field.type === "select" ? ( - - ) : null} -
- )) + {field.type === "select" ? ( + + ) : null} +
+ ) : null, + ) : null} {index !== entries.length - 1 ? (