From 5467fb3533bab85685e83212d59ac9ef251443e3 Mon Sep 17 00:00:00 2001 From: Prefex <31044091+DcZipPL@users.noreply.github.com> Date: Thu, 20 Mar 2025 16:18:09 +0100 Subject: [PATCH] Custom Title, Description and Help Email (#54) * Add configuration of Help email, Title, Description * Format configuration changes * Use fragments for help sections * Revert cleanup in misc.ts --- .env.sample | 4 ++++ islands/Settings.tsx | 9 +++++++-- lib/utils/misc.ts | 13 ++++++++++--- routes/login.tsx | 20 +++++++++++++------- routes/signup.tsx | 20 +++++++++++++------- 5 files changed, 47 insertions(+), 19 deletions(-) diff --git a/.env.sample b/.env.sample index 1d26394..de9f220 100644 --- a/.env.sample +++ b/.env.sample @@ -20,3 +20,7 @@ CONFIG_ENABLE_EMAILS="false" # if true, email verification will be required for CONFIG_ENABLE_FOREVER_SIGNUP="true" # if true, all signups become active for 100 years # CONFIG_ALLOWED_COOKIE_DOMAINS="example.com,example.net" # can be set to allow more than the BASE_URL's domain for session cookies # CONFIG_SKIP_COOKIE_DOMAIN_SECURITY="true" # if true, the cookie domain will not be strictly set and checked against. This skipping slightly reduces security, but is usually necessary for reverse proxies like Cloudflare Tunnel. + +# CUSTOM_TITLE="" +# CUSTOM_DESCRIPTION="" +HELP_EMAIL="help@bewcloud.com" # if empty, "need help" sections will be disabled \ No newline at end of file diff --git a/islands/Settings.tsx b/islands/Settings.tsx index 11f4003..64fea72 100644 --- a/islands/Settings.tsx +++ b/islands/Settings.tsx @@ -194,8 +194,13 @@ export default function Settings({ formData: formDataObject, error, notice, curr
- Deleting your account is instant and deletes all your data. If you need help, please{' '} - reach out. + Deleting your account is instant and deletes all your data. {helpEmail !== '' + ? ( + <> + If you need help, please reach out. + > + ) + : null}