4555 Commits

Author SHA1 Message Date
James Valleroy
fb8ed2a700
tests: Test add custom shortcuts to frontpage
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-08-11 11:19:20 -07:00
ZeroAurora
4a36c68015
Translated using Weblate (Chinese (Simplified))
Currently translated at 66.3% (698 of 1052 strings)
2019-08-11 16:23:05 +02:00
Sunil Mohan Adapa
f3ccc416f0
upgrades: Set apt configuration to allow release info change
Helps #1601.

When release information such as 'Version' and 'Suite' change for a distribution
changes, apt requires an explicit confirmation from the user. apt-get(8)
specifies the reason for this prompt as ensuring that the user is prepared for
the change. On a FreedomBox installation, as the system administration agent of
the user, FreedomBox has to make this decision on whether the user is ready for
the change. FreedomBox works to keep the system up-to-date and manages
configuration changes for packages, data migration etc. Hence, accept all
release information changes without a prompt.

Without this, when a stable release is made, if the user was using that
code-name before the release, then the system stop receiving updates and no new
apps can be installed in FreedomBox. This happened in case of Buster release
although Debian itself had some part in this. See:
https://salsa.debian.org/freedombox-team/plinth/issues/1601

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-08-11 09:30:08 -04:00
Sunil Mohan Adapa
5caac243a2
frontpage: Log a message when loading custom shortcuts
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-08-11 07:46:09 -04:00
Sunil Mohan Adapa
063489c036
frontpage: Fix regression with loading custom shortcuts
Closes: #1621

This causes the freedombox service to fail to start (and restart continuously)
when a custom shortcuts are provided using JSON file.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-08-11 07:46:06 -04:00
Sunil Mohan Adapa
639fd71d88
firewall: Force upgrade to firewalld 0.7.x
Closes: #1608

Allow upgrade to any version of 0.7.x series. Use new configuration and apply
the two default configuration changes of FreedomBox.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-08-10 09:38:56 -04:00
Sunil Mohan Adapa
0cf099fe4f
Yapf changes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-08-10 09:38:53 -04:00
Sunil Mohan Adapa
acdcabcbed
setup: Clarify success log message when force upgrading
Currently, in cases of ignoring an upgrade and actually upgrading, the log
message says success which is somewhat confusing. Make the force_upgrade()
methods in apps return information about ignoring the upgrade and print log
message accordingly.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-08-10 09:38:49 -04:00
Allan Nordhøy
ecc28a72bd
Translated using Weblate (Norwegian Bokmål)
Currently translated at 98.7% (1038 of 1052 strings)
2019-08-08 02:23:03 +02:00
Anxin YI
fadb2dc50e
Translated using Weblate (Chinese (Simplified))
Currently translated at 63.0% (663 of 1052 strings)
2019-08-08 02:23:02 +02:00
Radek Pasiok
7e2dd7e497
Translated using Weblate (Polish)
Currently translated at 30.9% (325 of 1052 strings)
2019-08-08 02:23:00 +02:00
Mesut Akcan
76b879e2d0
Translated using Weblate (Turkish)
Currently translated at 81.7% (860 of 1052 strings)
2019-08-08 02:22:58 +02:00
Joseph Nuthalpati
7245518fbf
upgrades: Use reusable collapsible-button style for logs
+ Minor typo correction

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
[sunil@medhas.org Fix indentation]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-08-07 09:21:58 -07:00
Sunil Mohan Adapa
c3a3d80ea5
storage: yapf changes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-08-07 05:40:07 -04:00
Sunil Mohan Adapa
8b96ea0698
storage: Fix incorrect i18n when throwing and error
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-08-07 05:40:00 -04:00
Sunil Mohan Adapa
de6f437f1a
storage: Handle all device paths during eject
Closes: #1618.

When using RAID disk, the disks paths could look like /dev/dm-1. Current regular
expression does not allow for '-' in the device path.

Ensure that all characters in the device path are handled as part of eject
operation.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-08-07 05:39:57 -04:00
ZeroAurora
f6be55eaac
Translated using Weblate (Chinese (Simplified))
Currently translated at 60.0% (631 of 1052 strings)
2019-08-02 23:11:15 +02:00
pierre
1a731c605e
Translated using Weblate (French)
Currently translated at 76.1% (801 of 1052 strings)
2019-08-02 23:11:14 +02:00
Doma Gergő
3ee097891e
Translated using Weblate (Hungarian)
Currently translated at 100.0% (1052 of 1052 strings)
2019-08-02 23:11:13 +02:00
Pavel Borecki
24f6b33519
Translated using Weblate (Czech)
Currently translated at 99.3% (1045 of 1052 strings)
2019-08-02 23:11:12 +02:00
James Valleroy
a89190b700
functional_tests: Fix delete backup path
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-30 16:45:30 -07:00
James Valleroy
4901ad76f2
Release v19.13 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v19.13
2019-07-29 19:43:59 -04:00
James Valleroy
1df4f19801
security: Fixup refactoring
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-07-29 19:43:51 -04:00
James Valleroy
64eac18873
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-07-29 19:13:18 -04:00
James Valleroy
08a23b6416
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-07-29 18:41:21 -04:00
Anxin YI
1c35acb27f
Translated using Weblate (Chinese (Simplified))
Currently translated at 60.3% (628 of 1041 strings)
2019-07-30 00:36:59 +02:00
nautilusx
89a193f3a4
Translated using Weblate (German)
Currently translated at 100.0% (1041 of 1041 strings)
2019-07-30 00:36:57 +02:00
Sunil Mohan Adapa
229843cd1e
backups: Fix HTML template indentation, remove inline styling
Remove inline styling as it won't work with upcoming content security rules.
They should be re-added in CSS files.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-29 14:09:38 -07:00
Sunil Mohan Adapa
c64fea7746
backups: Fix issue with showing index page
Fix an exception when loading backups page:

Exception Value: 'functools.partial' object has no attribute '__name__'

Exception Location: /vagrant/plinth/modules/backups/decorators.py in
 delete_tmp_backup_file, line 38

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-29 14:09:35 -07:00
Joseph Nuthalapati
caf1e4b0bd
flake8: Remove unused import
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-29 14:09:31 -07:00
Joseph Nuthalapati
faac8cdd9c
backups: Make backup location tables collapsible
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
[sunil@medhas.org Fix incorrectly removed <tr> tag in <thead>]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-29 14:09:28 -07:00
Joseph Nuthalapati
c2cb187d91
backups: Make UI more consistent with other apps
- Replace subsubmenu with buttons
- Left align icons in table header (restore and delete)
- Replace the technical term "repository" with "location"
- Confirmation dialogs shouldn't have app name, description, manual etc.
- Confirmation dialogs don't need Cancel buttons

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
[sunil@medhas.org: Remove 'primary' for all but one button]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-29 14:09:12 -07:00
James Valleroy
22c00d5cd4
security: Show vulnerability counts
Show the number of vulnerabilities reported by debsecan for freedombox
package and for managed_packages of each installed app.

Essential apps are not included in the list. Also note that
dependencies of the managed_packages are not included yet.

The purpose of this information is to help users decide which apps to
use, and what level of personal information to store in each app.

Closes #1609.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil@medhas.org Show essential apps too]
[sunil@medhas.org Fix HTML tags]
[sunil@medhas.org Use setup_helper to get the installed state of an app]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-29 12:08:04 -07:00
James Valleroy
a0837be410
help: Show security notice when backports are in use
Closes #1611.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil@medhas.org: Fixed incorrect HTML nesting and inline styling]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-26 16:51:31 -07:00
Sunil Mohan Adapa
9d39225098
diaspora: Fix tests by reverting changes during flake8 clenaup
Revert diaspora changes from 86da6a894af23281042cb1fcc4644c2c9cd312c5

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-25 12:08:27 -07:00
Sunil Mohan Adapa
86da6a894a
Minor changes to flake8 related updates
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-25 11:46:14 -07:00
Nikolas Nyby
5439084c84
Add flake8 to gitlib-ci - closes #58
And fix the rest of the flake8 errors.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-25 11:07:06 -07:00
Nikolas Nyby
f81b1751ce
Fix typos in module init docs
Intialize -> Initialize

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-24 14:55:22 -07:00
Petter Reinholdtsen
bd951fbf2b Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (1041 of 1041 strings)
2019-07-24 23:03:33 +02:00
Nikolas Nyby
ace339eabf
Introduce flake8 checking - #58
This introduces flake8 and fixes a bunch of flake8 errors.

flake8 is run with: ./venv/bin/flake8 plinth
if you're using a python3 venv.

We can eventually further integrate this with gitlab ci.

https://salsa.debian.org/freedombox-team/plinth/issues/58

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-24 14:01:54 -07:00
Nikolas Nyby
d2e987ef3c
Fix a handful of typos in docs and comments
Found with [codespell](https://github.com/codespell-project/codespell/)

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-24 12:39:11 -07:00
James Valleroy
45614b198b
Release v19.12 to experimental
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v19.12
2019-07-22 19:23:45 -04:00
James Valleroy
d42338bf17
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-07-22 19:22:39 -04:00
James Valleroy
b9a6af4f6a
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-07-22 18:36:39 -04:00
James Valleroy
98a824bf80
Translated using Weblate (Chinese (Simplified))
Currently translated at 58.2% (618 of 1061 strings)
2019-07-23 00:31:47 +02:00
Joseph Nuthalapati
884b1c67fb
sharing: Indicate public shares in listing of shares
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-07-22 17:56:52 -04:00
Joseph Nuthalapati
654d69a389
sharing: Simplify --is-public option
Use store_true with default=False to toggle public status based on whether
'--is-public' argument is passed or not.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-07-22 17:56:50 -04:00
Joseph Nuthalapati
9fc8c3604c
sharing: Add JavaScript to hide user groups for public shares
- User groups will only be shown when the shares are not public.
- Checking the checkbox for public shares hides the user groups.
- Unchecking the checkbox for public shares shows the user groups.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-07-22 17:56:47 -04:00
Joseph Nuthalapati
6e0671e142
sharing: Add functional test for public shares
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-07-22 17:56:45 -04:00
Joseph Nuthalapati
1eec1cf9ce
sharing: Allow directories to be publicly shared
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-07-22 17:56:35 -04:00