3336 Commits

Author SHA1 Message Date
James Valleroy
a869ef531c
Release v19.21 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-11-18 19:36:34 -05:00
James Valleroy
295a4804f6
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-11-18 18:48:43 -05:00
Joseph Nuthalapati
815d3ec0e8
firstboot: reading firstboot-wizard-secret file
Explain how to read the firstboot-wizard-secret file using shell
commands. Remove output of the cat command.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-11-18 18:10:24 -05:00
Alice Kile
fec995d7e0
app: Make the toggle-button responsive
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2019-11-19 00:02:16 +05:30
Alice Kile
1a65c88881
app: Use single form for app toggle and configuration
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2019-11-19 00:02:16 +05:30
Alice Kile
ec62f331b8
app: Implement toggle button in app page
- revamp the old form submission model to enable/disable apps into a
  simple toggle button
- provide backwards compatibility when javascript is disabled

Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2019-11-19 00:02:16 +05:30
Radek Pasiok
1504e182e4
Translated using Weblate (Polish)
Currently translated at 33.1% (366 of 1106 strings)
2019-11-18 19:04:35 +01:00
Joseph Nuthalpati
95709518eb
clients: Improve code readability
- Break up long lines multiple short lines
- Fix indentation and formatting

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
2019-11-18 19:41:41 +05:30
Alice Kile
8e3bbdb089
clients: implement launch button feature
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2019-11-18 19:41:14 +05:30
Radek Pasiok
42949bf212
Translated using Weblate (Polish)
Currently translated at 30.1% (333 of 1106 strings)
2019-11-17 14:04:30 +01:00
Sunil Mohan Adapa
ebe6a0ed02
tor: Listen on IPv6 for OrPort
- Fix regex for reading OrPort value from command port communication.

- Setup all new configurations for listening on IPv6 for OrPort.

- Upgrade existing configuration for listening on IPv6 for OrPort. Increment app
  version number force run setup again.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-11-15 20:14:49 -05:00
Sunil Mohan Adapa
ca9047104a
tor: Expect obfs service to be also available on IPv6
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-11-15 20:14:46 -05:00
Sunil Mohan Adapa
dcdd6a0988
tor: Fix port diagnostics by correcting port data type
Helps #472.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-11-15 20:14:44 -05:00
Veiko Aasa
955da6bee8
turbolinks: Disable turbolinks on links that don't point to /plinth/...
Fixes #1678

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2019-11-14 08:14:49 +05:30
Allan Nordhøy
3809051760
Translated using Weblate (Norwegian Bokmål)
Currently translated at 95.8% (1059 of 1106 strings)
2019-11-12 09:04:19 +01:00
Birger Schacht
47261ae79a
tor: Rename "Hidden Service" to "Onion Service"
Upstream does not use the term "Hidden Service" anymore.
https://2019.www.torproject.org/docs/onion-services.html.en

Closes #1624

Signed-off-by: Birger Schacht <birger@rantanplan.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2019-11-11 22:13:35 +05:30
Michael Breidenbach
4bbfc1a212
Translated using Weblate (Swedish)
Currently translated at 100.0% (1106 of 1106 strings)
2019-11-10 16:04:58 +01:00
Thomas Vincent
866e586742
Translated using Weblate (French)
Currently translated at 100.0% (1106 of 1106 strings)
2019-11-10 16:04:11 +01:00
Joseph Nuthalapati
cd1e7b649d
tahoe: Mark Tahoe-LAFS as an advanced app
Tahoe LAFS is an app requiring some technical knowledge to use and its support
in FreedomBox is experimental. The use case of a cluster of FreedomBoxes running
Tahoe-LAFS nodes isn't tested yet. It's intended use case as a backend for the
backups app isn't implemented yet.

- Fixed functional test implementation for advanced mode
- Did not fix failing Tahoe-LAFS tests, keeping them skipped for now.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-11-08 13:58:55 -08:00
Sunil Mohan Adapa
8e341a6c3b
backups: Simplify SSH fingerprint verification command
There is no need to access the private key of an SSH host to get it's public key
fingerprint. Use public key file instead. No need for 'sudo' privileges because
of this any non-admin users can also do this verification.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2019-11-08 22:42:42 +05:30
Sunil Mohan Adapa
a5d9736abc
backups: i18n for a string on verify ssh host page
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2019-11-08 22:42:24 +05:30
Joseph Nuthalapati
baa5a12c62
ejabberd: Handle case where domain name is not set
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-11-07 15:35:34 -08:00
Veiko Aasa
aaee9ec8a9
gitweb: Do not recursively scan for Git repositories
Temporary directories are now hidden when cloning remote repositories.

Fixes #1677

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-11-07 15:00:24 -08:00
Birger Schacht
7eb6d23e83
ssh: Add the error of ssh-keyscan to the verification view
This commit takes the stderr of `ssh-keyscan` (in case of a returncode thats not
zero) and stores it as as string in the form object. The view then displays the
information as preformatted text in a warning class.

Signed-off-by: Birger Schacht <birger@rantanplan.org>
[sunil: Cosmetic: variable name change for consistent naming]
[sunil: <pre> can't be inside <p>, keep it out]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-11-07 14:25:30 -08:00
Birger Schacht
25bcee6488
backups: Show proper error when SSH server is not reachable
The backup module is connecting to the remote backup host using ssh-keyscan to
get a list of SSH public keys. When the connection fails, the form should inform
the user that there was a problem, instead of simply not listing any SSH public
keys.

Closes: #1656.

Signed-off-by: Birger Schacht <birger@rantanplan.org>
[sunil: Minor indentation]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-11-07 14:25:26 -08:00
Allan Nordhøy
7cb7369ff4
Translated using Weblate (Swedish)
Currently translated at 35.9% (397 of 1106 strings)
2019-11-06 07:04:02 +01:00
Doma Gergő
35ebc80e57
Translated using Weblate (Hungarian)
Currently translated at 96.7% (1069 of 1106 strings)
2019-11-06 07:04:01 +01:00
nautilusx
3e5d67edfc
Translated using Weblate (German)
Currently translated at 100.0% (1106 of 1106 strings)
2019-11-06 07:03:59 +01:00
Veiko Aasa
c99b33b40e
gitweb: Allow to import from a remote repository
- Allow to enter either name or URL when creating repository

- Validate a repository URL, allow only http and https schemes

- Set autocomplete off on the name/URL field because URL may contain
  username:password

- Check whether the repository actually exists before cloning

- Show progress info while cloning

- Actions script: new subcommand check-repo-exists and new arguments
  for the create-repo: --url, --prepare-only and --skip-prepare

- Add test for invalid URLs

Closes #1670

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil: Fix validating repo name in edit form]
[sunil: Don't pipe stdin of clone process, it may lead to a hang]
[sunil: Always run clone process with 'C' locale since we are parsing output]
[sunil: Cosmetic changes]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-11-04 21:16:30 -08:00
James Valleroy
ca0c991562
Release v19.20 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-11-04 19:26:55 -05:00
James Valleroy
077c935b20
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-11-04 18:35:36 -05:00
James Valleroy
17cafd9594
coquelicot: Change quotes to ASCII
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-11-04 18:33:46 -05:00
Sunil Mohan Adapa
d5e6690019
Translated using Weblate (Swedish)
Currently translated at 36.1% (398 of 1101 strings)
2019-11-04 21:36:29 +01:00
Veiko Aasa
2c999899ea
sharing: Fix wrong links on Apache2 directory index page
For example, when visiting '/share/myshare' then shared test.txt file links
to a wrong url /share/text.txt, it should be /share/myshare/text.txt.

This is related to #1676

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-11-04 12:23:20 -08:00
James Valleroy
b338501778
config: Implement get_initial and form_valid
Fixes #1675.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-11-04 11:30:38 -08:00
Michael Breidenbach
da0325e4b5
Translated using Weblate (Swedish)
Currently translated at 36.1% (398 of 1101 strings)
2019-11-04 19:04:02 +01:00
Fred
2970d27551
Translated using Weblate (French)
Currently translated at 98.9% (1089 of 1101 strings)
2019-11-04 19:03:56 +01:00
Allan Nordhøy
3b447e026a
Translated using Weblate (French)
Currently translated at 98.9% (1089 of 1101 strings)
2019-11-04 19:03:54 +01:00
Sunil Mohan Adapa
1b218666f4
actions: Fix issue with docstring causing issues with Sphnix
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-11-02 13:51:18 -04:00
Allan Nordhøy
108f7b8d46
Translated using Weblate (French)
Currently translated at 97.6% (1075 of 1101 strings)
2019-11-02 15:17:58 +01:00
Fred
4cb48deed6
Translated using Weblate (French)
Currently translated at 97.6% (1075 of 1101 strings)
2019-11-02 15:17:58 +01:00
Michael Breidenbach
7bd4e60ba0
Translated using Weblate (Swedish)
Currently translated at 29.6% (326 of 1101 strings)
2019-11-01 00:03:57 +01:00
Thomas Vincent
d5144224e5
Translated using Weblate (French)
Currently translated at 78.1% (860 of 1101 strings)
2019-11-01 00:03:49 +01:00
Doma Gergő
2a33c87c4c
Translated using Weblate (Hungarian)
Currently translated at 94.9% (1045 of 1101 strings)
2019-11-01 00:03:47 +01:00
Sunil Mohan Adapa
030deaf4d9
app: Fix a pytest warning in tests
A class name that starts with 'Test' is considered for test case collection
resulting in the following warning:

plinth/tests/test_app.py:28
  /home/bunny/work/freedombox/plinth/plinth/tests/test_app.py:28: PytestWarning:
  cannot collect test class 'TestApp' because it has a __init__ constructor
  class TestApp(App):

Since this class does not contain test cases itself, rename it.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-31 06:57:36 -04:00
Sunil Mohan Adapa
121c1cf4ca
help: Fix showing manual pages in fallback cases
- When a manual page for a certain language is not found, redirect to 'en' for
  that manual page. Simply showing English content will cause issues with
  serving images.

- Don't use language preferences unless the URL language is not generic. The
  language of the page shown will always correspond to the language in the URL.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:25:15 -04:00
Joseph Nuthalapati
eb91938963
help: Respect language preference when showing user manual
Retrieve the manual page or download PDF manual in user's preferred language.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil@medhas.org Merge URL format since view is the same]
[sunil@medhas.org Refactor language extraction]
[sunil@medhas.org Minor refactorings]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:25:06 -04:00
Sunil Mohan Adapa
6a6983f39e
storage: Use AppView and cleanup custom code
- Follow common code so that extending becomes easier.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:43 -04:00
Sunil Mohan Adapa
dd1884e8ab
config: Use AppView and cleanup custom code
- Follow common code so that extending becomes easier.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:40 -04:00
Joseph Nuthalapati
62115dcd1e
infinoted: Add missing manual page link
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:36 -04:00