5461 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
94883b3c92
setup.py: Remove files shipped in the past
- This only effects development environments where ./setup.py is run but not the
shipped product.

- Write log messages about removing the files only when actually removing the
file. This is so that the log output is quiet when no action is taken (typical).

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-20 14:00:02 -04:00
Sunil Mohan Adapa
6179d98a07
upgrades: Don't ship apt backport preferences file
- Don't ship the file preferences file as this is a violation of the Debian
policy. Lintian throws a hard error that can't be overridden. Remove the lintian
override. Remove this file using maintainer scripts when upgrading from all
version below 20.5.

- The preferences file is now renamed to 50freedombox4.pref.

- Instead write the file when the app is getting setup (on each new version).

- Don't run the setup code on daily timer, instead run the code when the app
upgrades. This ensures that as soon as freedombox package is upgraded and run,
the new preferences file is created instead of waiting for the daily timer to
run.

- From now on when the preferences change, we will increment the version number
of the upgrades app. Change the setup() for the app so that it does not
re-enable automatic upgrades every time setup() is run.

Closes: #1673.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-20 13:59:58 -04:00
Thomas Vincent
fcc69bdc06
Translated using Weblate (French)
Currently translated at 100.0% (1274 of 1274 strings)
2020-03-19 23:36:28 +01:00
Sunil Mohan Adapa
07296f3300
index: Reintroduce clients button in front page
Tests performed:

- Pick an app like Infonoted that does not have web client. Visit the front page
click on Infinoted. Clients button should show up. Clicking on it should expand
the clients information table.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-18 18:30:41 +02:00
Sunil Mohan Adapa
75bc011fe7
toolbar: Factor out the clients buttons into a separate template
- So that it can be reused in frontpage.

Tests performed:

- Go to an app like Gitweb. Both launch web client button and clients apps
button should be visible. Similarly, Deluge should only show launch button.
Infinoted should only show clients button.

- Go to an app like Gitweb where launch web client button is available. Enabling
the app should enable the launch web client button and disabling the app should
disable the launch web client button.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-18 18:30:16 +02:00
Veiko Aasa
4dc223d233
names: Fix Local Network Domain is not shown
Make avahi module depend on the names module.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-03-17 19:43:09 -07:00
Fred
a978b41aeb
Translated using Weblate (French)
Currently translated at 99.6% (1270 of 1274 strings)
2020-03-17 22:36:26 +01:00
Sunil Mohan Adapa
167f2304e9
pagekite: Don't allow non-unique custom services
- Change in any of the following is treated as unique: protocol, frontend port,
subdomains.

- Change in any of the following is not treated as unique: backend port.

Issue reported in
https://salsa.debian.org/freedombox-team/plinth/-/merge_requests/1742#note_147960

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-17 15:49:42 +02:00
Sunil Mohan Adapa
146db8344a
setup: Fix regression to force-upgrade caused by Info changes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>

Reviewed-by: Nektarios Katakis <iam@nektarioskatakis.xyz>
2020-03-17 10:08:04 +00:00
Sunil Mohan Adapa
476b0e966c
matrixsynapse: Handle release of matrix-synapse 1.11
- python3-signedjson >= 1.1.0 is needed by matrix-synapse-1.11.

- Force upgrade to version 1.11 is needed.

Closes: #1791.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>

Reviewed-by: Nektarios Katakis <iam@nektarioskatakis.xyz>
2020-03-17 10:07:20 +00:00
Fioddor Superconcentrado
79f369916d
Translated using Weblate (Spanish)
Currently translated at 100.0% (1274 of 1274 strings)
2020-03-16 19:36:23 +01:00
Luis A. Arizmendi
8f391166dc
Translated using Weblate (Spanish)
Currently translated at 100.0% (1274 of 1274 strings)
2020-03-15 19:03:58 +01:00
Fioddor Superconcentrado
dad1f49fb2
Translated using Weblate (Spanish)
Currently translated at 100.0% (1274 of 1274 strings)
2020-03-15 19:03:57 +01:00
Luis A. Arizmendi
9284b2b834
Translated using Weblate (Spanish)
Currently translated at 99.6% (1270 of 1274 strings)
2020-03-15 18:56:57 +01:00
Fioddor Superconcentrado
b3e260dcf5
Translated using Weblate (Spanish)
Currently translated at 99.6% (1270 of 1274 strings)
2020-03-15 18:56:57 +01:00
Luis A. Arizmendi
0b8170f127
Translated using Weblate (Spanish)
Currently translated at 99.6% (1269 of 1274 strings)
2020-03-15 18:55:44 +01:00
Fioddor Superconcentrado
6cc2d8cc6b
Translated using Weblate (Spanish)
Currently translated at 99.6% (1269 of 1274 strings)
2020-03-15 18:55:43 +01:00
Luis A. Arizmendi
c3231dc3be
Translated using Weblate (Spanish)
Currently translated at 99.3% (1266 of 1274 strings)
2020-03-15 18:51:09 +01:00
Fioddor Superconcentrado
790f16d1a9
Translated using Weblate (Spanish)
Currently translated at 99.3% (1266 of 1274 strings)
2020-03-15 18:51:09 +01:00
Sunil Mohan Adapa
c1e6787587
pagekite: Ensure transitioning for from old code
When app is disabled with older code, 'abort_not_configured' is present in the
configuration file. Wipe it when re-enabling with newer code.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:29:34 +02:00
Sunil Mohan Adapa
35732f6ca7
pagekite: Fix an error message in custom services form
There is no page called 'Standard Services' anymore.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:29:21 +02:00
Sunil Mohan Adapa
c9c4823ec3
pagekite: On enable/disable, add/remove domain from names module
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:28:24 +02:00
Sunil Mohan Adapa
312ad2800d
pagekite: Fix styling issues for custom services section
- Place the add button in a paragraph to remove unnecessary styling.

- De-emphasize the add button by making it default style instead of primary.

- Re-add a missing class on the custom services list to apply the intended style
properly.

- Drop horizontal rule.

- Remove the unnecessary title "Existing custom services". Emphasize the custom
services section by making it <h3> instead of <h4>. Also for consistency across
the interface.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:28:08 +02:00
Sunil Mohan Adapa
23454573e2
pagekite: Fix functional tests by submitting the right form
- Don't attempt to submit the diagnostics submit button's form instead.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:27:57 +02:00
Sunil Mohan Adapa
66b03a943b
pagekite: Remove app enabled checking from getting configuration
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:27:47 +02:00
Sunil Mohan Adapa
415452e730
pagekite: Don't attempt to notify about domain if app is disabled
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:27:35 +02:00
Sunil Mohan Adapa
67e4b28aee
pagekite: Simplify code notifying domain name changes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:27:26 +02:00
Sunil Mohan Adapa
b99472409c
pagekite: Don't signal new domain on init if app is disabled
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:27:15 +02:00
Sunil Mohan Adapa
98ecb6ea40
pagekite: Use Daemon component to simplify handling daemon actions
- Turn some methods in action script to private to improve abstraction.

- Always enable the predefined services when setting the configuration for the
first time.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:27:07 +02:00
Sunil Mohan Adapa
a1c1104a61
pagekite: Merge set-kite and set-frontend actions
- Simplifies the form submission code.

- When service is disabled, don't add the abort_not_configured configuration
flag. There is not need to change the configuration as disabling the daemon from
running is reliable enough.

- When the configuration is set for the first time, drop the
abort_not_configured flag and don't ever add it back.

- Set default values properly for frontend fields when no value is supplied.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:26:57 +02:00
Sunil Mohan Adapa
4247a0bd5d
pagekite: Merge all the configuration retrieval actions
- Merge actions is-disabled, get-frontend, get-kite and get-services into
get-config. This improves the initial startup time for FreedomBox service and
also the page load time for pagekite app. This also significantly simplifies the
code.

- Only use the pagekite service enabled status determine if pagekite is enabled.
Don't use the configuration setting.

- For custom services, provide additional data such as display URL from
get-config action. This removes the need for additional processing
prepare_service_for_display() and template tag create_pagekite_service_url.

- Also reduce the number of times configuration is retrieved to 1 when loading
the app view page and during startup of FreedomBox service.

- Ensure that all keys of the configuration always present and use that to
simplify some code.

- Remove ContextMixin from view DeleteServiceView that does not need it. Use
AppView and drop ContextMixin.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:26:30 +02:00
Sunil Mohan Adapa
ca907abb3d
pagekite: Minor cleanup
- Remove unused template tag loading.

- Fix white spacing.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:26:19 +02:00
Sunil Mohan Adapa
5b639884b6
pagekite: Drop ineffective base template
The base template simply tries to override the description and formats its
differently. However, since the introduction of app-header.html, this was
ineffective and did nothing because blocks from included templates can't be
overridden, apparently.

Also, the base template is being used only in template as all other templates
either don't use it or have been removed since.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:26:06 +02:00
Sunil Mohan Adapa
736e814477
pagekite: Remove unused templates
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:25:58 +02:00
Sunil Mohan Adapa
4156afa7cf
pagekite: Simplify code for form adding custom service
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:25:46 +02:00
Sunil Mohan Adapa
cd65c04719
views: Allow AppViews to set self.intial
If a derived view simply sets self.initial instead of overriding get_initial(),
honor it just like Django's FormView does.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:25:20 +02:00
Sunil Mohan Adapa
39b6592e92
app: Fix name of the block in templates, used for overriding
During the Info component changes, this change was accidentally made.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:25:04 +02:00
James Valleroy
2955057f4a
ci: Switch docker image to testing
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-13 18:21:44 -04:00
Joseph Nuthalapati
a8e2464b99
ci: Optimize refreshing Docker image for GitLabCI
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-13 18:20:33 -04:00
Joseph Nuthalapati
e383751728
ci: Add maintenance script for updating images
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-13 18:20:29 -04:00
Joseph Nuthalapati
001a69e3a2
ci: Use pre-built container image to speed up CI
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-13 18:20:26 -04:00
James Valleroy
af0cb34cd9
Release v20.4~bpo10+1 to buster-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v20.4bpo10+1
2020-03-12 07:13:37 -04:00
James Valleroy
55fd37304b Release v20.4 to unstable
-----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEEfWrbdQ+RCFWJSEvmd8DH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KxZGY7Vm9SkBR
 7bba3F7rE5eaIeeIL8H3o0MINBrhPmRLnS26wZa+GtIP3HqZyCUsOwf6mpLMW0du
 DVuimiWwQ+f/tuFtv2vVEObaA2Kvb5ZJxMruCB9ZRDxxnBvO8Cux0FkZRd1xsw7D
 vzbcAftA9YQyTwhZFSDCvgRM3VjAg3DF84i/CgGRfy0y7Qs5KdGPMMihc6M3Wnp7
 Vq5UTndfXdZOaQnw9bD5rAr77o+G0aEE8rtV1k7urmO/S+VFJMTj5p0TYvxpzKCz
 VilIEPp8bLcA3c8ycSuzoz5igACNO526uyMIV9S+6oxuF6gzGe+DwdlTvqu1p923
 w/ffrxhHMO2Li9WR1ZuQ2/g7CG4Tc+MIDjfmKQ54B56M/yA5WTOHT+OWj9b4bwTB
 /19jYtLnPfrZsHC9zQpqCoybJ6+KtIYtBX4/D7vHKmghaGAMgJpcS5oVxCp8Rf1r
 I3k7x3eo5jNEslcE0Hjpi3FQBmwRHNi4aRDnG41chP9uz3SR/0FgmySyv2HK813u
 rXCSxvUKmZgCTgH4HA==
 =Dhqd
 -----END PGP SIGNATURE-----

Merge tag 'v20.4' into debian/buster-backports

Release v20.4 to unstable

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-12 07:12:44 -04:00
James Valleroy
05fcfe2d12
Release v20.4 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v20.4
2020-03-09 20:18:29 -04:00
James Valleroy
18ab9ce975
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-09 20:01:16 -04:00
James Valleroy
ef9068a42d
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-09 19:15:43 -04:00
Joseph Nuthalapati
50e5608331
shadowsocks: Move user settings to state directory
Fixes #1775

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-09 18:55:11 -04:00
Veiko Aasa
0c1591324d
quassel: Fix unable to disable application without choosing a domain name
Closes #1700

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-03-09 18:12:27 -04:00
James Valleroy
53bf6e28a6
ci: Switch to testing image
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-03-09 11:35:08 -07:00
Michael Breidenbach
a673c06b59
Translated using Weblate (Swedish)
Currently translated at 98.8% (1251 of 1265 strings)
2020-03-08 18:32:52 +01:00