Commit Graph
2697 Commits
Author SHA1 Message Date
Sunil Mohan Adapa acd248e506 clients: Cleanup framework
- Move all utilities to a separate clients.py module. Tests too.

- Use fewer custom template tags. Actually only one tag is really required.
  Keeping custom tags minimal is a goal.

- Merge the methods to generate app store URLs.

- Implement a validator for validating client information and use that instead
  of enums.

- Internationalize the text on template page.

- Add missing RPM package case.

- Cleanup CSS. Remove unused styles, minimize the styles set.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-13 18:56:30 -05:00
Sunil Mohan Adapa 13c4c687da api: Update for clarity (API breaking change)
- Change the term 'service' to 'shortcut' as what we want to present is actually
  shortcuts and not services. Services is already a confused term between
  firewall service and a service daemon.

- Fix icon paths containing relative URLs.

- Make the access information API extensible in future.

- Send full list of domains in access information and not just one domain per
  domain type.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-13 18:56:23 -05:00
Sunil Mohan Adapa ed25449711 clients: Update icons to be 32x32 consistently
- Avoid serving large PNG files to improve performance.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-13 18:56:14 -05:00
Sunil Mohan Adapa 1200020a0e clients: Minor styling fixes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-13 18:56:08 -05:00
Sunil Mohan Adapa b542d43175 Update HACKING file about coding standard tools
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-13 18:56:01 -05:00
Sunil Mohan Adapa 3e644f7afa Update yapf configuration for simplicity
- Currently set spaces_before_comment is default, don't set explicitly.

- Currently set split_before_logical_operator is default, don't set explicitly.

- Current set each_dict_entry_on_separate_line is default, don't set explicitly.
  Also this is not a configuration available on yapf in stretch making this
  configuration unusable on stretch machines.

- coalesce_backets is only effective when dedent_closing_brackets is set which
  is off by default. So this has no effect.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-13 18:55:38 -05:00
John McCann cb55b87660 ejabberd: Use dynamic reload after enabling/disabling MAM
After a user enables/disables MAM, use ejabberd's reload_config instead
of restarting ejabberd.

Please let me know how this looks? Could reload_config also be of use
when adding/dropping a Let's Encrypt certificate?

Fixes #1010

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-13 08:48:16 -05:00
Allan Nordhøy 0c3f08c082 Translated using Weblate (Norwegian Bokmål)
Currently translated at 90.9% (766 of 842 strings)
2017-12-13 01:49:27 +01:00
Joseph Nuthalapati 32b2ef38c7 Fixes for user groups
- Edit user form fails because a 'wiki' group entry exists in the database
  though the ikiwiki app hasn't been installed yet.
- Register group when a user group is created by an application, so that a
  plinth restart can be avoided.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-10 19:09:58 -05:00
Joseph Nuthalapati 7ce5d1f636 groups: User permissions for access to apps based on LDAP groups
- More user-friendly treatment of groups and their permissions

Closes #690

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-10 19:09:55 -05:00
Joseph Nuthalapati 2f67fb49d4 Add framework for user groups per application
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-10 19:09:17 -05:00
Johannes Keyser 462d8549ea Translated using Weblate (German)
Currently translated at 100.0% (842 of 842 strings)
2017-12-10 19:46:51 +01:00
James Valleroy a274b11f4a Release v0.18.1
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v0.18.1
2017-12-04 23:11:19 -05:00
James Valleroy 885ffd8b11 Release v0.18.0
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v0.18.0
2017-12-04 20:15:40 -05:00
James Valleroy 2af30f04cc Fetch latest manual from wiki
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 20:14:25 -05:00
James Valleroy f997cbe5a7 Update changelog
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 19:35:07 -05:00
James Valleroy 7e3e0bee80 Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 19:16:36 -05:00
Joseph Nuthalapati d59de1d098 Change icon background from white to transparent
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:16:41 -05:00
Joseph Nuthalapati 7e2b96577c Uniform and consistent buttons and icons for clients apps
- New icons for the mobile app stores
- Both desktop and mobile icons now have the same style
- Launch button has a new glyphicon
- Client app buttons flow into multiple lines in mobile view

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:16:32 -05:00
Joseph Nuthalapati 423c94fa6d noscript fallback for the table dropdown
- Used .no-js based on Modernizr
- Beautified clients.html with 2-space indentation

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:16:23 -05:00
Joseph Nuthalapati 6b9bbc8acc Fix failing non-root tests
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:16:18 -05:00
Joseph Nuthalapati 590ba78f89 Create an enum for different package types
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:16:12 -05:00
Joseph Nuthalapati 0b1b8157e4 Add package names (Debian and Homebrew) as a client entry
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:16:07 -05:00
hritesh 9ac7ff10ce Reduce OS icons size for clients
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:16:00 -05:00
Joseph Nuthalapati 4c69935e7a Remove unnecessary attributes in manifest files
- Other minor refactoring
- Fix ejabberd and jsxc Client Apps listing

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:15:54 -05:00
Joseph Nuthalapati 82e739d80e Merge header columns for client rows of one type
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:15:48 -05:00
Joseph Nuthalapati 57c44f32e6 Add support for iOS AppStore
- iSorted Python imports in all the manifest files
- Some refactoring in plinth_extras

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:15:36 -05:00
Joseph Nuthalapati bf33a1a492 Make naming convention consistent using enums
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:15:31 -05:00
Joseph Nuthalapati aaf5d6dbe1 Convert collapsible list to collapsible table
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:15:26 -05:00
Joseph Nuthalapati 5165f5a414 consistent naming convention for icons
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:15:20 -05:00
Joseph Nuthalapati efa575b204 Add clients to ServiceView
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:15:12 -05:00
Joseph Nuthalapati d3cddfa68c Add icons for desktop applications and Apple App store.
- Add yapf style file for consistency of formatting
- Some minor changes and renaming
- Add template tag filters for checking conditions
- Move icons from img directory to icons directory

Currently the client listing is in both the SetupView and ServceView for ease of
development. Have to remove from ServiceView.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:15:03 -05:00
Joseph Nuthalapati defcb37472 Remove duplicate client information from __init__.py of modules
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:14:57 -05:00
Joseph Nuthalapati 64b4d1ffc1 Rename store_type to store_name
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:14:49 -05:00
Joseph Nuthalapati d403782b77 Add client information for Matrix Synapse and Syncthing
- Add logos for desktop operating systems

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:14:42 -05:00
Prachi 823e06271f Add client information for modules
Added information for the following:
-diaspora
-ejabbered
-infinoted
-ikiwiki
-jsxc
-matrixsynapse
-minetest
-mumble
-quassel
-radicale
-repro
-restore
-roundcube
-shaarli
-synchting
-tor
-shaarli
-transmission
-ttrss

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:14:34 -05:00
Prachi 98186e2c72 Add fields to the api response
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:14:15 -05:00
Joseph Nuthalapati 890da32aa1 transmission: fix sso not being enabled
- Transmission version wasn't updated, so the new configuration didn't take
  effect.
- The new configuration disabled Transmission's own auth and an apache reload is
  required for SSO auth to be enabled for Transmission. This was not happening
  because webserver_enable command finds that webserver is already enabled for
  Transmission. It cannot detect upgrades. Hence disabled that check for
  reloads. We're still avoiding restarts if there's no config change, just like
  before.

Fixes #1139

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-02 19:35:35 -05:00
Pavel Borecki 031ab5c6d6 Translated using Weblate (Czech)
Currently translated at 93.9% (755 of 804 strings)
2017-12-03 01:25:33 +01:00
Joseph Nuthalapati 5aabac036c sso: Fix conflict between urls of sso and captcha
django-simple-captcha's /refresh url's regex was matching anything that ends
with the word "refresh". This was clashing with sso/refresh. Changed the regex
for captcha's url to captcha/refresh.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-02 17:03:18 -05:00
Joseph Nuthalapati 111f8f9145 sso: Fixes for regressions after adding captcha and axes
- Change sso refresh url to refresh-pubtkt since refresh was conflicting with
  captcha's image refresh url.
- Fix datetime.timedelta calculation for refresh interval. Now validity of
  ticket is 30 seconds as it was intended to be. It was wrongly set to 30 days
  earlier.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-02 17:03:07 -05:00
Sunil Mohan Adapa 1fe9bb317a avahi: Remove duplicate service installation code
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-12-01 15:59:58 +05:30
Sunil Mohan Adapa 2236f3c0b9 avahi: Update FreedomBox service file
- Make the service a subtype of _http._tcp.
- Remove incorrect host tag.
- Add text record to indicate the patch to use.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-12-01 15:44:38 +05:30
Prachi Srivastava bf9af37d17 avahi: Add service for freedombox discovery
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-12-01 15:44:29 +05:30
Joseph Nuthalapati e4f053af17 Make Plinth depend on django-axes 3.0.3 or later
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-11-30 20:22:20 -05:00
Joseph Nuthalapati fc9ce8e6dd Override monkey-patched LoginView from django-axes 3.0.3
- Fixes #1154
- Fixes #1138

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-11-30 20:22:01 -05:00
Алексей Докучаев 4e3216ce7c Translated using Weblate (Russian)
Currently translated at 100.0% (804 of 804 strings)
2017-11-30 15:49:27 +01:00
Sunil Mohan Adapa 6927e12f54 service: Add missing restart action
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-11-29 17:53:43 +05:30
Sunil Mohan Adapa 2ee82e4b5a shadowsocks: Add more ciphers
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-11-29 17:53:35 +05:30
Sunil Mohan Adapa c61d61ec66 shadowsocks: Restart service instead of reload
- The service file does not support reloading

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-11-29 17:53:25 +05:30