Commit Graph

5341 Commits

Author SHA1 Message Date
Stein Magnus Jodal
76d13b6efd docs: Document Mopidy.js settings (fixes #702) 2014-06-16 00:38:40 +02:00
Stein Magnus Jodal
13205bee5f js: Connect to /mopidy/ws without trailing slash
This is the recommended URL since the switch to Tornado as web server.
2014-06-15 23:43:44 +02:00
Stein Magnus Jodal
ee9d19fc6e js: Fix unhandled promise rejection in test 2014-06-15 23:43:44 +02:00
Stein Magnus Jodal
30471bab74 js: Add ServerError and ConnectionError types 2014-06-15 23:43:43 +02:00
Stein Magnus Jodal
026fdb38a3 js: Reject promises using Error objects
This is recommended to get proper stack traces, according to
https://github.com/cujojs/when/blob/master/docs/api.md#a-note-on-javascript-errors.

The new Error objects has the exact same properties as the objects we used to
reject promises previously, thus this should be fully backwards compatible, but
improve debuggability.
2014-06-15 23:43:39 +02:00
Stein Magnus Jodal
4a609ce95d js: Add TODOs for rejecting promises with Error
This is recommended to get proper stack traces, according to
https://github.com/cujojs/when/blob/master/docs/api.md#a-note-on-javascript-errors
2014-06-15 12:31:52 +02:00
Stein Magnus Jodal
cb04b81bf4 js: Simplify _send() rejections 2014-06-15 12:16:39 +02:00
Stein Magnus Jodal
eec51a1e83 js: Upgrade to when.js 3 2014-06-15 12:14:14 +02:00
Stein Magnus Jodal
c40c70a90b js: Update dev dependencies 2014-06-15 10:16:39 +02:00
Stein Magnus Jodal
0167986b98 js: Pass grunt-browserify errors on 2014-06-15 10:12:23 +02:00
Stein Magnus Jodal
7b71e64553 js: Update test deps 2014-06-12 20:52:53 +02:00
Stein Magnus Jodal
6cbb15bd15 js: Update dev env instructions 2014-06-12 20:47:15 +02:00
Stein Magnus Jodal
67b88b6992 docs: Add web app section to extensiondev guide 2014-06-04 21:58:03 +02:00
Stein Magnus Jodal
720a403439 http: Remove unused Router class 2014-06-04 21:32:54 +02:00
Stein Magnus Jodal
33228f2528 http: Simplify app registration 2014-06-04 21:32:19 +02:00
Stein Magnus Jodal
b6ab29eed4 http: Remove unused code 2014-06-04 21:02:33 +02:00
Stein Magnus Jodal
d13194dfa4 http: Remove static file serving from the Router 2014-06-04 20:55:28 +02:00
Stein Magnus Jodal
eea6138b3d http: Simplify static files serving 2014-06-04 20:47:49 +02:00
Stein Magnus Jodal
8e4fa48768 http: Fix reference to old config name 2014-06-03 00:42:35 +02:00
Stein Magnus Jodal
0e7c76db2e docs: Fix error 2014-06-03 00:42:24 +02:00
Stein Magnus Jodal
325ea976d8 docs: Add examples of using core from Tornado/WSGI 2014-05-30 22:52:46 +02:00
Stein Magnus Jodal
3354750921 docs: Add HTTP router docs
These docs reflects the current API usage.

I have plans to simplify the API, but I want to try out my ideas in
documentation first, so I need docs for existing API to have a starting point.
2014-05-30 16:13:13 +02:00
Nick Steel
a396387e10 Capital M for Mopidy 2014-05-26 13:38:24 +01:00
Nick Steel
15f9f78167 Link to Debian system service page in final step 2014-05-26 13:33:03 +01:00
Stein Magnus Jodal
6030807120 docs: New way of toggling the Debian system service 2014-05-25 23:13:44 +02:00
Stein Magnus Jodal
3422bad8db docs: Support linking to Pykka API docs 2014-05-25 08:46:22 +02:00
Stein Magnus Jodal
5526a500ab http: Rename variable 2014-05-22 21:03:42 +02:00
Stein Magnus Jodal
d03988e1f5 http: Update docs todos 2014-05-22 21:03:42 +02:00
Stein Magnus Jodal
684a64405d http: Move MopidyHttpRouter into handlers module 2014-05-22 21:03:42 +02:00
Stein Magnus Jodal
252eb4d735 http: Adjust log level 2014-05-22 20:47:49 +02:00
Stein Magnus Jodal
345bf5b418 http: Fix docs links 2014-05-21 00:43:56 +02:00
Stein Magnus Jodal
1223103e8f http: Test that routers can mount WSGI apps 2014-05-21 00:38:38 +02:00
Stein Magnus Jodal
fe9a126a2a http: Enforce router's URL namespace 2014-05-20 23:53:26 +02:00
Stein Magnus Jodal
4b383c1762 http: Move Mopidy request handlers to a MopidyHttpRouter 2014-05-20 23:49:22 +02:00
Stein Magnus Jodal
5d1f8f2203 http: Give routers access to the core API 2014-05-20 23:30:49 +02:00
Stein Magnus Jodal
b1d9e112fe http: Change registry key to match docs 2014-05-20 23:09:59 +02:00
Stein Magnus Jodal
5897675eab http: Split tests into three files 2014-05-20 23:07:28 +02:00
Stein Magnus Jodal
e9ff16fe63 http: Simplify test imports 2014-05-20 22:55:37 +02:00
Stein Magnus Jodal
6d04aaf3e4 http: More consistent use of 'request handler' 2014-05-20 22:50:45 +02:00
Stein Magnus Jodal
b44c9a6f9c http: Simplify extension loading
...and fix breakage I just made myself.
2014-05-20 22:42:32 +02:00
Stein Magnus Jodal
ea5a317b00 http: Avoid tornado import before extension is loaded, group all handlers 2014-05-20 22:36:15 +02:00
Stein Magnus Jodal
acad8ab7a2 http: Use single quotes 2014-05-20 22:35:38 +02:00
Stein Magnus Jodal
1a72f68707 http: Import modules, not attributes 2014-05-20 22:32:45 +02:00
Stein Magnus Jodal
a318fd8698 http: Improve router attribute docstrings 2014-05-20 22:28:18 +02:00
Stein Magnus Jodal
1838f10dcf http: Rename 'setup_routes()' to 'get_request_handlers()' 2014-05-20 22:28:18 +02:00
Stein Magnus Jodal
e8291d471e http: Rename 'linkify()' to 'get_root_url()' 2014-05-20 22:16:01 +02:00
Stein Magnus Jodal
c84a3fc349 http: Include registry name in docs 2014-05-20 22:13:14 +02:00
Stein Magnus Jodal
cad0207ef8 http: Rename 'path' to 'static_file_path' 2014-05-20 22:12:06 +02:00
Stein Magnus Jodal
4d7ab27836 docs: Support intersphinx linking 2014-05-20 21:33:29 +02:00
Stein Magnus Jodal
4562de5615 docs: Add references to new API docs 2014-05-20 21:11:30 +02:00