From d5e64e2dc065fc38dc24a785961db4cf23f2ebf3 Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Wed, 4 Jan 2023 22:12:28 -0500 Subject: [PATCH] Adding session timeout settings, branding. --- htdocs/css/openwebrx.css | 1 + htdocs/include/header.include.html | 10 ++++++++++ htdocs/index.html | 5 +++-- htdocs/openwebrx.js | 1 + owrx/controllers/settings/general.py | 15 +++++++++++++++ owrx/details.py | 2 ++ 6 files changed, 32 insertions(+), 2 deletions(-) diff --git a/htdocs/css/openwebrx.css b/htdocs/css/openwebrx.css index 706f412..acb6c1d 100644 --- a/htdocs/css/openwebrx.css +++ b/htdocs/css/openwebrx.css @@ -4,6 +4,7 @@ an open-source SDR receiver software with a web UI. Copyright (c) 2013-2015 by Andras Retzler Copyright (c) 2019-2021 by Jakob Ketterl + Copyright (c) 2022-2023 by Marat Fayzullin This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as diff --git a/htdocs/include/header.include.html b/htdocs/include/header.include.html index 8ae0811..bbd6490 100644 --- a/htdocs/include/header.include.html +++ b/htdocs/include/header.include.html @@ -12,6 +12,16 @@

Receiver

Map

Settings
+ + +

+
diff --git a/htdocs/index.html b/htdocs/index.html index a98dbf6..c9dd651 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -5,6 +5,7 @@ an open-source SDR receiver software with a web UI. Copyright (c) 2013-2015 by Andras Retzler Copyright (c) 2019-2021 by Jakob Ketterl + Copyright (c) 2022-2023 by Marat Fayzullin This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as @@ -22,7 +23,7 @@ --> - OpenWebRX | Open Source SDR Web App for Everyone! + OpenWebRX+ | Open Source SDR Web App for Everyone! @@ -146,7 +147,7 @@
OpenWebRX client log
- Author contact: Jakob Ketterl, DD5JFK | + Author contact: Marat Fayzullin | OpenWebRX homepage
Support and information: Groups.io Mailinglist
diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 74cc3ee..a12480d 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -4,6 +4,7 @@ an open-source SDR receiver software with a web UI. Copyright (c) 2013-2015 by Andras Retzler Copyright (c) 2019-2021 by Jakob Ketterl + Copyright (c) 2022-2023 by Marat Fayzullin This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as diff --git a/owrx/controllers/settings/general.py b/owrx/controllers/settings/general.py index 7958368..430558a 100644 --- a/owrx/controllers/settings/general.py +++ b/owrx/controllers/settings/general.py @@ -176,6 +176,21 @@ class GeneralSettingsController(SettingsFormController): + "is supposed to be.", ), ), + Section( + "Session Timeout", + TextInput( + "usage_policy_url", + "Usage policy URL", + infotext="Specifies web page describing receiver usage policy " + + "and shown when the user session times out.", + ), + NumberInput( + "session_timeout", + "Session Timeout", + infotext="User session timeout in seconds (0 to disable timeout).", + append="secs", + ), + ), ] def remove_existing_image(self, image_id): diff --git a/owrx/details.py b/owrx/details.py index 4d853cb..5d979b9 100644 --- a/owrx/details.py +++ b/owrx/details.py @@ -18,6 +18,8 @@ class ReceiverDetails(PropertyFilter): "receiver_gps", "photo_title", "photo_desc", + "usage_policy_url", + "session_timeout", ) )