1039 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
03049b666a network: Minor fix when getting connection and styling 2015-05-21 23:42:11 +05:30
James Valleroy
333599ba24 Merge remote-tracking branch 'sunil/deluge-systemd' 2015-05-16 15:56:27 -04:00
James Valleroy
b00a634647 Update network tests, minor fixes to network.py.
Return UUID when adding a connection.
Have get_connection raise an exception instead of returning None.
2015-05-16 15:39:26 -04:00
James Valleroy
1055787be2 Merge remote-tracking branch 'sunil/network-manager-glib' 2015-05-16 13:18:20 -04:00
James Valleroy
44b045fef7 Merge remote-tracking branch 'fonfon/pagekite-augeas-new' 2015-05-16 10:35:58 -04:00
Sunil Mohan Adapa
939f330816 deluge: Auto start deluge-web using systemd 2015-05-10 14:57:20 +05:30
Sunil Mohan Adapa
a6fa7abbad deluge: Minor fixes and styling
- Updated comments

- Start the daemon before enabling Apache configuration.

- Warn the user about editing the Apache configuration for Deluge.

- Other minor updates.
2015-05-10 13:44:33 +05:30
Sunil Mohan Adapa
6a57dc78f3 deluge: Make starting/stopping daemon safer
- Match the daemon using uid, name and a pidfile for a safer match.

- Make start process idempotent.
2015-05-10 13:40:15 +05:30
Sunil Mohan Adapa
51e6aa3df6 deluge: Rename from bittorrent to deluge
- There could be multiple applications for the same functions.  Although
  in the interface we should we show generic names like 'BitTorrent', we
  could use specific names in the backend.

- There is already a bittorrent client: Transmission.
2015-05-10 10:08:06 +05:30
James Valleroy
55a8b445ad Add BitTorrent module (deluge-web). 2015-05-07 19:37:58 +05:30
Sunil Mohan Adapa
d5e484a6b4 networks: Update dependencies list 2015-05-05 16:10:33 +05:30
Sunil Mohan Adapa
ef17bd8306 networks: Use libnm instead of python-networkmanager 2015-05-05 16:00:25 +05:30
fonfon
32e94058f6 More consistent renaming from default to standard services 2015-05-04 11:04:35 +02:00
fonfon
5cca1f99cf removed/skipped deprecated unit-test 2015-05-04 10:52:29 +02:00
fonfon
702dbf5e61 Renamed default services to standard services 2015-05-04 10:32:53 +02:00
fonfon
0ffaaa3da7 Use JSON as pagekite action-script arguments
This allows to safe some conversions
2015-05-04 10:20:37 +02:00
James Valleroy
e5275e6239 Release 0.4.5 v0.4.5 2015-05-03 18:31:55 -04:00
Sunil Mohan Adapa
9752ab8188 Use modernizr & CSS for user menu without JS
Modernizr adds a class called 'js' to the <html> element when javascript
is available.  We, as a part of basic modernizr setup, add a class
called 'no-js' to <html> element by default.  Use this fact to show/hide
elements when javascript is not available.
2015-05-04 00:56:37 +05:30
fonfon
4561c3bcd9 Removed quote-checking functionality from pagekite
actions.py doesn't use shlex.quote anymore so I don't
have to check for accidentially quoted things anymore.
2015-05-03 19:27:12 +02:00
fonfon
7af92d9e65 Updated unit- and doctests 2015-05-03 19:27:12 +02:00
fonfon
7a4486fadf pagekite: restart service when config is changed
so the changed config gets applied immediately, and
not only after enabling/disabling the service manually.
2015-05-03 16:53:47 +02:00
fonfon
ef08f40447 minor layout cleanup 2015-05-03 15:28:45 +02:00
fonfon
3cc0cb74a6 Prevent adding existing or predefined services
and improved form error handling
2015-05-03 09:44:46 +02:00
fonfon
b3da314560 use util.service_is_running for tor also 2015-05-03 09:44:46 +02:00
fonfon
3f2c9ff2c8 cleaned up actions and configuration form 2015-05-03 09:44:46 +02:00
fonfon
99bfda3b69 removed default frontend stuff from actions
it's all handled via get-frontend and set-frontend now.
and there are now some doctests in actions/pagekite_util.py
2015-05-03 09:44:46 +02:00
fonfon
e0fa113a9c updated tests 2015-05-03 09:44:46 +02:00
fonfon
bab54aa26d removed old configobj pagekite action 2015-05-03 09:44:46 +02:00
fonfon
b96c89b0ab make pagekite login-required;
restart pagekite after adding/deleting a service so the changes take
effect;
improved warnings in the UI
2015-05-03 09:44:46 +02:00
fonfon
0b2b8ba51a Removing a service limited to removing 1 service
before it could happen that more services were removed
2015-05-03 09:44:46 +02:00
fonfon
d5d9e2df2e renamed variables for consistency
there are only 'service' and 'service_string' now, no more 'params'
2015-05-03 09:44:46 +02:00
fonfon
c04897be8b Moved pagekit url creation to pagekite module
plus some minor cleanup
2015-05-03 09:44:46 +02:00
fonfon
8955e41f15 pagekite is required to be installed via package now 2015-05-03 09:44:46 +02:00
fonfon
1fc0064fd0 refactoring pagekite: configuration form works
splitting the services to a separate page is not yet finished
2015-05-03 09:44:46 +02:00
fonfon
cf96797040 pagekite action: Use augeas pagekite lens
And allow setting any server as pagekite frontend.
2015-05-03 09:44:45 +02:00
James Valleroy
22a020e63b User dropdown menu links to user edit page when javascript is disabled.
Fix indentation.
2015-05-02 10:39:19 -04:00
James Valleroy
62c4eb8f1e Add logout button that is only shown when javascript is disabled. 2015-05-02 10:32:06 -04:00
Sunil Mohan Adapa
07ee03941f Redirect to apps page always from index page
- Plinth will become the home page for FreedomBox.  So it has to serve
  the purpose the directing users to available services.  This will
  happen most often and should also work when users are not logged in.

- Soon we will have a resigned 'front page'/'apps' section which is
  expected to be shown to user who are not logged in too.

- Apps menus has been removed.  Index page is now the only way to reach
  Apps section.
2015-05-01 21:14:04 -04:00
Sunil Mohan Adapa
7e3a7ad53c Implement a simpler navigation bar
- Add a login menu for 'edit' user, 'change password' and 'logout'
  items.

- Move settings to right and remove label.

- Move documention to right, remove label and change icon.

- Remove apps menu.  User is expected to use the brand icon for reaching
  apps.  It is also the home page and the main focus of entire
  interface.
2015-05-01 21:14:04 -04:00
Sunil Mohan Adapa
d22b0d4185 Don't use inverted look for navigation bar
This contribute to a flatter and simple appearance.
2015-05-01 21:14:04 -04:00
Sunil Mohan Adapa
53b0f5aca8 Don't use wells for placing all the content 2015-05-01 21:14:04 -04:00
James Valleroy
d185e88022 transmission: minor comment updates 2015-05-01 19:38:49 -04:00
Sunil Mohan Adapa
69adf1cfc5 transmission: Run from behind Apache
- Introduce Apache configuration for plinth.

- Remove Transmission service file for firewalld.

- Enable transmission on install.

- Enable/disable Apache configuration on Transmission on enable/disable.

- Remove IP address whilelisting as 127.0.0.1 is the default setting and
  is sufficient for Apache to reverse proxy.

- Update UI URL.
2015-05-01 19:00:56 +05:30
Sunil Mohan Adapa
f94d0d5414 transmission: New module for BitTorrent downloads 2015-05-01 18:52:17 +05:30
Sunil Mohan Adapa
b62f6746f4 Handle arguments to actions properly
- Don't allow strings to be sent as arguments.  The mixup with
  lists/tuples could be dangerous.

- Don't escape arguments.  subprocess.Popen takes care that arguments
  are passed on nicely to the actions.

- Update tests.
2015-05-01 18:52:17 +05:30
Sunil Mohan Adapa
4e42486822 ikiwiki: Data in /var/lib & setup after install
- It is conventional to store application data in /var/lib/APPDIR
  instead of /var/APPDIR.  Change ikiwiki data folder to
  /var/lib/ikiwiki.

- After installing and before enabling and setting up basic
  configuration, performing any operation such as 'create' wiki/blog
  lead to silent errors.  Do avoid this situation, perform a separate
  setup() operation soon after the package is installed.
2015-04-18 21:09:44 +05:30
Sunil Mohan Adapa
cc97304925 ikiwiki: Don't error out when listing before setup
- After a ikiwiki module is installed but not yet enabled, visting the
  'manage' page throws an error.  Fix this.
2015-04-18 21:07:08 +05:30
Sunil Mohan Adapa
9b674292c8 ikiwiki: Update UI messages and minor refactoring
- In manage page, show a message to create new blog/wiki when there are
  none.

- Elaborate on what gets deleted in delete page.

- Add Ikiwiki in menu item label.  This is in order to allow for other
  Wiki/Blog modules.

- Indentation changes.
2015-04-18 20:59:24 +05:30
James Valleroy
57e5799880 PEP8 fixes 2015-04-13 20:43:07 +05:30
James Valleroy
35dcde00de ikiwiki: Create admin account for new wiki/blog. 2015-04-13 20:43:07 +05:30