5200 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
fd210deae4
doc/dev: Update tutorial to use SPDX license indentifier
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:40:25 +02:00
Sunil Mohan Adapa
07180c2309
*: Update misc build related files to use SPDX license identifier
These files are not installed on the system and don't end up in the Debian
package. They pose not threat of causing a configuration file prompt.

Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:40:12 +02:00
Sunil Mohan Adapa
9ba3b93dac
*.css: Use SPDX license identifier
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:40:03 +02:00
Sunil Mohan Adapa
ca984a2b24
functional_tests: Use SPDX license identifier
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:39:56 +02:00
Sunil Mohan Adapa
eada506b23
actions/*: Use SPDX license identifier
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:39:36 +02:00
Sunil Mohan Adapa
e89e2b4a2a
*.html: Use SPDX license identifier
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:39:19 +02:00
Sunil Mohan Adapa
9368504da5
*.py: Use SPDX license identifier
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:38:55 +02:00
Sunil Mohan Adapa
92f6f8723c firewall: Use firewalld DBus API for most operations
- Significantly reduce the time taken to perform the operations in the following
  cases:

  - Enable/disable an app

  - list services in firewall page

  - Load app page when interfaces belonging to internal zone need to shown

  - First run setup of FreedomBox

- Install a polkit local authority configuration file to allow FreedomBox
service to perform: information queries and configuration changes.

- Drop unused actions.

- Alter the template for showing firewall port information since port/protocol
pairs are no longer pre-formatted.

- Handle errors when trying to get ports details of an unknown service.

Tests performed:

- Enable/disable an app. Ensure with firewall-cmd that ports are added/removed
properly.

- Temporarily modify code to call add_service() and remove_service() twice in a
row. Perform enable/disable operations and ensure that there are not error
thrown to test that add/remove services operations are idempotent.

- Visit the firewalld page and see the current state is reflected properly.

- Visit an app that shows the list of interfaces in firewall zone. Internal
interfaces should be listed properly.

- Reset the installed version of firewall app and disable all firewall services.
Start FreedomBox and ensure that when setup is re-run, default ports (http,
https, dns and dhcp) are opened properly. Run again but with ports already
enabled to check that the setup operation is idempotent.

- Visit diagnostics of an app that uses firewall components and see that ports
are listed properly in the port diagnostic test result.

- Remove some needed services such as those in /etc/firewalld/services and try
to visit the firewalld page. The page should show blank details against the
affected services.

Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-18 17:09:50 +02:00
Lev Lamberov
1e6b26a63a
debian: Update Russian translation for debconf (Closes: #951440) 2020-02-17 18:54:21 -08:00
Veiko Aasa
e073f0169c
config: Depends also on apache module
Closes #1778

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-02-17 18:37:57 -08:00
Sunil Mohan Adapa
d9fd71297e
Translated using Weblate (Italian)
Currently translated at 50.6% (632 of 1248 strings)
2020-02-18 01:45:49 +01:00
Allan Nordhøy
14cc21fbcc
Translated using Weblate (Norwegian Bokmål)
Currently translated at 84.9% (1060 of 1248 strings)
2020-02-17 21:32:59 +01:00
Dietmar
edf21ad4f1
Translated using Weblate (Italian)
Currently translated at 50.6% (632 of 1248 strings)
2020-02-17 21:32:58 +01:00
Doma Gergő
d212ec8de0
Translated using Weblate (Hungarian)
Currently translated at 83.8% (1046 of 1248 strings)
2020-02-17 21:32:52 +01:00
nautilusx
1f9dda0f26
Translated using Weblate (German)
Currently translated at 100.0% (1248 of 1248 strings)
2020-02-17 21:32:51 +01:00
Ralf Barkow
33608f0cff
Translated using Weblate (German)
Currently translated at 100.0% (1248 of 1248 strings)
2020-02-17 21:32:50 +01:00
Sunil Mohan Adapa
0597d991d9
monkeysphere: Fix regression with reading Apache configuration
Additional ')' got accidentally inserted into the augeas path to be read during
a commit for routine styling (ed646d84a51ae2c54ed7950ce60cb9e9662ada71).

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-16 18:22:24 -05:00
Sunil Mohan Adapa
2f536dd065
views: Document the AppView class properties
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-16 18:22:18 -05:00
Sunil Mohan Adapa
1dd40f5c7a
doc/dev: Include information on how to edit dev documentation
This also avoid the warning "README.rst: WARNING: document isn't included in any
toctree".

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-16 18:22:14 -05:00
Sunil Mohan Adapa
e36781af77
app: Document the app_id property for App class
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-16 18:22:10 -05:00
Sunil Mohan Adapa
b576a77c3d
app: Refactor all apps to use the Info component
- Remove the need to pass all the individual information elements to the AppView
  separately. This eliminates many issues with elements that were mistakenly not
  sent to AppView. Also reduces a lot of code duplication.

- Create App classes for power and sso for consistency.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-16 18:22:01 -05:00
Sunil Mohan Adapa
67a216ba18
app: Add info property as shortcut to access basic information
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-16 18:21:58 -05:00
Sunil Mohan Adapa
72ce23e377
app: Introduce Info component to store basic app information
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-16 18:21:53 -05:00
Sunil Mohan Adapa
7b05d7433d
functional_tests: cosmetic: Minor yapf chnage
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-15 15:36:11 -05:00
Sunil Mohan Adapa
45bd9d3905
jsxc: Fix functional test case failure
The optimization for not visiting FreedomBox pages again while on FreedomBox
pages fails as it assumes that all URLs starting with /plinth/ are part of
FreedomBox. /plinth/app/jsxc/jsxc/ is an exception. Fix the optimization
condition by adding a conditional check. Better ways can be found later.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-15 15:36:04 -05:00
Sunil Mohan Adapa
591ed5c4ae
jsxc: Bypass issue with stronghold to get the app working again
stronghold seems to have an issue with Django 2.1 decorators. A fix has not
been released yet.

Closes: #1697.

Tests:

- Functional tests for JSXC.

- Vist JSXC, login using FreedomBox account. Chat rooster becomes available.

- Log out, ensure that JSXC page is available.

- Log in, ensure that JSXC page is available.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-15 15:35:54 -05:00
James Valleroy
c78d96984b
bind: Bump version and handle upgrade
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-15 10:07:48 -05:00
Nektarios Katakis
3f0642109c
bind: create zones directory on setup action
Closes: #1571

Signed-off-by: Nektarios Katakis <iam@nektarioskatakis.xyz>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-15 10:07:46 -05:00
Nektarios Katakis
d0fcc179a7
bind: views show served domains in main view
Signed-off-by: Nektarios Katakis <iam@nektarioskatakis.xyz>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-15 10:07:43 -05:00
Nektarios Katakis
5826d35ce5
bind: test for parsing zones file with specific format
Signed-off-by: Nektarios Katakis <iam@nektarioskatakis.xyz>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-15 10:07:41 -05:00
Nektarios Katakis
19f9436457
bind: parse zones files
Signed-off-by: Nektarios Katakis <iam@nektarioskatakis.xyz>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-15 10:07:38 -05:00
Allan Nordhøy
4ac8e2c15f
openvpn: Fix spelling for Tunnelblick
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-02-14 16:38:42 -08:00
Joseph Nuthalapati
deb4adc4ab
l10n: Fix gettext not detecting no-python-format
Looks like the annotation provided by Django has to be literally on the
line above the line where the percent symbol is found.

https://docs.djangoproject.com/en/3.0/topics/i18n/translation/#troubleshooting-gettext-incorrectly-detects-python-format-in-strings-with-percent-signs
2020-02-15 00:57:52 +05:30
Sunil Mohan Adapa
e398f58ca9
system: Implement new style for cards
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2020-02-14 23:02:55 +05:30
Sunil Mohan Adapa
ca624e718a
cards: Remove the transition delay on hover effect
The cards react very fast to mouse movements give the feeling of more
responsiveness in the UI instead of feeling sluggish.

Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2020-02-14 23:02:25 +05:30
Petter Reinholdtsen
adbdd5814b
Translated using Weblate (Norwegian Bokmål)
Currently translated at 83.8% (1044 of 1246 strings)
2020-02-14 04:18:25 +01:00
Dietmar
a1c074f9c2
Translated using Weblate (Italian)
Currently translated at 44.5% (554 of 1246 strings)
2020-02-14 04:18:23 +01:00
Dietmar
137c065b0d
Translated using Weblate (German)
Currently translated at 100.0% (1246 of 1246 strings)
2020-02-14 04:18:11 +01:00
Veiko Aasa
87983461e0
apps: remove css filters and glow from app icons
Closes #1722

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-02-13 14:42:53 -08:00
James Valleroy
8f63590882
Release v20.2 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v20.2
2020-02-10 19:23:16 -05:00
James Valleroy
879927a290
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-10 19:22:39 -05:00
James Valleroy
85f40cba5b
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-10 18:36:45 -05:00
Sunil Mohan Adapa
9ef28c87c6
storage: In develop mode check for low disk space more frequently
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-10 18:13:42 -05:00
Sunil Mohan Adapa
db48e869a6
upgrades: Show notification when FreedomBox is updated
- Don't not show notification on first install/run.

- Shows notification when upgrading or downgrading.

- This also serves as an example of how to show more specific notifications when
  upgraded to a newer version. Closes: 1637.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-10 18:13:33 -05:00
Sunil Mohan Adapa
5714fc6f51
storage: Show low disk space warning using notifications API
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-10 18:13:31 -05:00
Sunil Mohan Adapa
8529022f63
notification: Show a drop down from main navbar for notifications
Closes: #1042.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-10 18:13:28 -05:00
Sunil Mohan Adapa
afe179d91d
views: A view to dismiss notifications
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-10 18:13:25 -05:00
Sunil Mohan Adapa
2a8c8c42ca
notification: Add tests for notification API
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-10 18:13:21 -05:00
Sunil Mohan Adapa
8e0a94282f
notification: New API for showing better notifications
Closes: #867.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-10 18:13:19 -05:00
Sunil Mohan Adapa
5c514e91d3
models: Add model for storing notifications
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-10 18:13:16 -05:00