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 ? (