From 54409e92fe9d526110b79d14e84a25b0d7ead82c Mon Sep 17 00:00:00 2001 From: alexdx-ca Date: Tue, 30 May 2023 17:03:06 -0400 Subject: [PATCH 1/4] Update docker.md added TRY_SEND_URL --- docs/docker.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docker.md b/docs/docker.md index 1eab4f3c4..8f12a3e47 100644 --- a/docs/docker.md +++ b/docs/docker.md @@ -99,6 +99,7 @@ See the table below for the variables and their default values. | UI_CUSTOM_CSS | | Allows you to define a custom CSS file for custom styling | | CUSTOM_FOOTER_TEXT | | Allows you to define a custom footer | | CUSTOM_FOOTER_URL | | Allows you to define a custom URL in your footer | +| TRY_SEND_URL | | Allows you to define a custom URL to link to after a successful download | Side note: If you define a custom URL and a custom footer, only the footer text will display, but will be hyperlinked to the URL. From 032bfc99b4832f4940f8e42748165fff3365c49b Mon Sep 17 00:00:00 2001 From: alexdx-ca Date: Tue, 30 May 2023 17:33:38 -0400 Subject: [PATCH 2/4] Update downloadCompleted.js ${WEB_UI.TRY_SEND_URL} --- app/ui/downloadCompleted.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/ui/downloadCompleted.js b/app/ui/downloadCompleted.js index acdd30448..20d0d36b0 100644 --- a/app/ui/downloadCompleted.js +++ b/app/ui/downloadCompleted.js @@ -2,6 +2,7 @@ const html = require('choo/html'); const assets = require('../../common/assets'); module.exports = function(state) { + const WEB_UI = state.WEB_UI; const btnText = state.user.loggedIn ? 'okButton' : 'sendYourFilesLink'; return html`

- ${state.translate(btnText)}

From 29d63ab0db1c833a20c37f057eb9ee840bbe65d8 Mon Sep 17 00:00:00 2001 From: alexdx-ca Date: Tue, 30 May 2023 17:35:06 -0400 Subject: [PATCH 3/4] Update clientConstants.js TRY_SEND_URL: config.try_send_url, --- server/clientConstants.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/clientConstants.js b/server/clientConstants.js index 37c69be96..14ed48162 100644 --- a/server/clientConstants.js +++ b/server/clientConstants.js @@ -15,6 +15,7 @@ module.exports = { FOOTER_SOURCE_URL: config.footer_source_url, CUSTOM_FOOTER_TEXT: config.custom_footer_text, CUSTOM_FOOTER_URL: config.custom_footer_url, + TRY_SEND_URL: config.try_send_url, COLORS: { PRIMARY: config.ui_color_primary, ACCENT: config.ui_color_accent From 9969c7ea8d21a938cd9a5db219b50cdb4d5a85e5 Mon Sep 17 00:00:00 2001 From: alexdx-ca Date: Tue, 30 May 2023 17:44:19 -0400 Subject: [PATCH 4/4] Update config.js try_send_url --- server/config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/config.js b/server/config.js index 7c0f43ccf..325380d5a 100644 --- a/server/config.js +++ b/server/config.js @@ -263,6 +263,11 @@ const conf = convict({ default: '', env: 'CUSTOM_FOOTER_URL' }, + try_send_url: { + format: String, + default: '/', + env: 'TRY_SEND_URL' + }, ui_color_primary: { format: String, default: '#0a84ff',