Commit Graph

7199 Commits

Author SHA1 Message Date
MinRK
48eeee0946 add admin.js 2014-09-15 01:45:12 -07:00
MinRK
eef2aff22f simplify dialog HTML with template macros 2014-09-15 01:44:32 -07:00
MinRK
7f23c132f0 expand admin HTML page
can add/delete users, and start/stop user servers
2014-09-15 01:21:49 -07:00
MinRK
294fa8ceb6 add/remove users from whitelist when adding/deleting 2014-09-15 01:21:01 -07:00
Kyle Kelley
315accc4b9 Ensure python3 is aliased 2014-09-15 00:34:02 +00:00
Min RK
ac6b4788a5 Merge pull request #30 from minrk/restapi
getting started with REST API
2014-09-14 16:53:24 -07:00
MinRK
c93f17c324 add basic home, admin pages
- index no longer requires login, it's just a big fat login button
- home has stop, start, admin buttons
- admin doesn't do anything yet
- add jhapi javascript client for REST API
2014-09-14 16:47:10 -07:00
MinRK
b24e47d94a some updates to login redirects
/anything served by Hub redirects to /hub/anything

/hub/user/[user] spawns single-user server and redirects to it
2014-09-14 16:47:09 -07:00
MinRK
5cba7c50b2 update base page template
- no body params, just write jhapi globals instead
- baseUrl is static/js
2014-09-14 16:47:09 -07:00
MinRK
0a8759b0a5 flesh out REST API
can now list/view/add/create/modify users
and start/stop single-user servers
2014-09-14 16:47:09 -07:00
MinRK
a47e390aa0 add mock single-user server for testing 2014-09-14 16:47:09 -07:00
MinRK
833835b0f3 add user list handler, first of many 2014-09-14 11:54:37 -07:00
MinRK
970e4d2ce2 minor fixes to testing utils 2014-09-14 11:54:37 -07:00
MinRK
a245641886 simplify handler setup with default_handlers in modules
like IPython's, but a bit simpler since we don't have
so many services to deal with.
2014-09-14 11:54:37 -07:00
MinRK
53edc0b2f7 add a notion of admin users
and an @admin_only decorator for restricted methods
2014-09-14 11:54:05 -07:00
MinRK
6d753ec6ea use 302 not 301 on / 2014-09-14 11:53:10 -07:00
MinRK
3b6dc5a8ae install subpackages 2014-09-14 11:23:03 -07:00
Kyle Kelley
2f71b18deb [Docker] Make bower installation separate. 2014-09-14 17:09:20 +00:00
Min RK
0c7d9ad14e Merge pull request #29 from rgbkrk/py3docker
Switch to Python 3 in Dockerfile
2014-09-13 21:14:48 -07:00
Kyle Kelley
36ba03de74 Switch to Python 3, use python3 entry 2014-09-14 03:54:19 +00:00
MinRK
42f040c6a1 return orm.User from get_current_user
rather than name.

removes need for `get_user` wrapper
2014-09-13 17:19:34 -07:00
Min RK
91a412c095 Merge pull request #25 from rgbkrk/dockit
Dock it
2014-09-13 16:32:42 -07:00
Min RK
42e313836d Merge pull request #28 from minrk/mocking
add mock utils to tests
2014-09-13 16:31:49 -07:00
MinRK
5c87461605 add mock utils to tests
basic testing framework to get starting writing and testing the REST API

including tests for the authorizations API,
the only API URL defined so far.
2014-09-13 16:11:22 -07:00
MinRK
696b887b50 allow threaded access to sqlite by default 2014-09-13 16:05:43 -07:00
MinRK
e762a87241 fix IOLoop / subprocess cleanup
- use IOLoop.current
- don't stop loop in cleanup
2014-09-13 15:43:42 -07:00
MinRK
573f34a5b5 avoid KeyError in logging with IPython 2 2014-09-13 15:43:09 -07:00
MinRK
1a09bef767 relay --log-level debug to proxy 2014-09-13 15:42:31 -07:00
Min RK
8de500b452 Merge pull request #27 from minrk/auth_whitelist
add Authenticator.whitelist
2014-09-13 15:12:02 -07:00
Kyle Kelley
183e52dd01 Reorder Dockerfile, include Maintainer 2014-09-13 16:00:25 -05:00
Kyle Kelley
e5e605ca8e Take out bower and css commands 2014-09-13 15:45:30 -05:00
MinRK
5d701b7fd1 add Authenticator.whitelist
default behavior is to allow any user to attempt login
2014-09-13 13:45:05 -07:00
MinRK
0b677f8d51 fix imports in utils 2014-09-13 13:23:20 -07:00
MinRK
20faa5027c remove unintentional RedirectHandler 2014-09-13 13:21:09 -07:00
MinRK
67e12c1a5e use run_sync to run coroutines in sync contexts
allows using py.test stuff in spawner/auth tests
2014-09-12 15:58:48 -07:00
MinRK
236612a0aa use official (monochrome) jupyter logo 2014-09-12 12:09:46 -07:00
MinRK
714770d499 reorg handlers a bit
make room for API handlers
2014-09-12 12:09:26 -07:00
MinRK
3968cc0c28 clarify bower/css needed only for dev install
and after recent fixes, only needed on pull,
not on first install.
2014-09-12 11:50:16 -07:00
MinRK
96765eb681 check both src and sys.prefix for data_files
(catches `pip install`, run from src dir)
2014-09-12 11:47:01 -07:00
MinRK
bb02bbd858 run bower/css in develop
ensures js/css dependencies are installed after `pip install -e`
2014-09-12 11:37:37 -07:00
Kyle Kelley
0bfe1a4706 Merge pull request #24 from ellisonbg/readme
Adding more details to the README.
2014-09-12 01:00:53 -05:00
Kyle Kelley
f33cb43771 Expose 8000 2014-09-12 05:22:10 +00:00
Kyle Kelley
6b18b1ab41 Simple Dockerfile 2014-09-12 05:21:23 +00:00
MinRK
a87c21c2d4 avoid logging errors when running with IPython < 3 2014-09-11 22:11:06 -07:00
MinRK
6267b251bf public IP is all interfaces by default 2014-09-11 22:10:43 -07:00
Brian E. Granger
ee7e5749ec Adding more details to the README. 2014-09-11 20:10:45 -07:00
MinRK
a7116b32e2 fix login template
was leaving an empty page
2014-09-10 12:37:09 -07:00
MinRK
2e7463a894 add BaseCommand
adds missing `get_inputs` and `get_outputs`

used by pip.
2014-09-09 22:58:48 -07:00
MinRK
9c0f965e06 install less 2014-09-09 22:41:56 -07:00
MinRK
d3c35bbf6e validate port conflicts
closes #23
2014-09-09 22:38:48 -07:00