http: Move mopidy.{frontends => }.http
This commit is contained in:
parent
b367d032f1
commit
621aff22c9
@ -7,6 +7,6 @@ recursive-include docs *
|
|||||||
prune docs/_build
|
prune docs/_build
|
||||||
|
|
||||||
recursive-include mopidy *.conf
|
recursive-include mopidy *.conf
|
||||||
recursive-include mopidy/frontends/http/data *
|
recursive-include mopidy/http/data *
|
||||||
recursive-include tests *.py
|
recursive-include tests *.py
|
||||||
recursive-include tests/data *
|
recursive-include tests/data *
|
||||||
|
|||||||
@ -47,5 +47,5 @@ The following requirements applies to any frontend implementation:
|
|||||||
Frontend implementations
|
Frontend implementations
|
||||||
========================
|
========================
|
||||||
|
|
||||||
* :mod:`mopidy.frontends.http`
|
* :mod:`mopidy.http`
|
||||||
* :mod:`mopidy.frontends.mpd`
|
* :mod:`mopidy.frontends.mpd`
|
||||||
|
|||||||
@ -113,8 +113,8 @@ HTML file:
|
|||||||
If you don't use Mopidy to host your web client, you can find the JS files in
|
If you don't use Mopidy to host your web client, you can find the JS files in
|
||||||
the Git repo at:
|
the Git repo at:
|
||||||
|
|
||||||
- ``mopidy/frontends/http/data/mopidy.js``
|
- ``mopidy/http/data/mopidy.js``
|
||||||
- ``mopidy/frontends/http/data/mopidy.min.js``
|
- ``mopidy/http/data/mopidy.min.js``
|
||||||
|
|
||||||
|
|
||||||
Getting the library for Node.js use
|
Getting the library for Node.js use
|
||||||
|
|||||||
@ -9,12 +9,6 @@ from a web based client. See :ref:`http-api` for details on how to integrate
|
|||||||
with Mopidy over HTTP.
|
with Mopidy over HTTP.
|
||||||
|
|
||||||
|
|
||||||
Known issues
|
|
||||||
============
|
|
||||||
|
|
||||||
https://github.com/mopidy/mopidy/issues?labels=HTTP+frontend
|
|
||||||
|
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
============
|
============
|
||||||
|
|
||||||
@ -32,7 +26,7 @@ install Mopidy with the extra dependencies for required for Mopidy-HTTP::
|
|||||||
Default configuration
|
Default configuration
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
.. literalinclude:: ../../mopidy/frontends/http/ext.conf
|
.. literalinclude:: ../../mopidy/http/ext.conf
|
||||||
:language: ini
|
:language: ini
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -11,8 +11,8 @@ module.exports = function (grunt) {
|
|||||||
" * Licensed under the Apache License, Version 2.0 */\n",
|
" * Licensed under the Apache License, Version 2.0 */\n",
|
||||||
files: {
|
files: {
|
||||||
own: ["Gruntfile.js", "src/**/*.js", "test/**/*-test.js"],
|
own: ["Gruntfile.js", "src/**/*.js", "test/**/*-test.js"],
|
||||||
concat: "../mopidy/frontends/http/data/mopidy.js",
|
concat: "../mopidy/http/data/mopidy.js",
|
||||||
minified: "../mopidy/frontends/http/data/mopidy.min.js"
|
minified: "../mopidy/http/data/mopidy.min.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
buster: {
|
buster: {
|
||||||
|
|||||||
@ -21,8 +21,8 @@ You may need to adjust hostname and port for your local setup.
|
|||||||
|
|
||||||
In the source repo, you can find the files at:
|
In the source repo, you can find the files at:
|
||||||
|
|
||||||
- `mopidy/frontends/http/data/mopidy.js`
|
- `mopidy/http/data/mopidy.js`
|
||||||
- `mopidy/frontends/http/data/mopidy.min.js`
|
- `mopidy/http/data/mopidy.min.js`
|
||||||
|
|
||||||
|
|
||||||
Getting it for Node.js use
|
Getting it for Node.js use
|
||||||
@ -72,7 +72,7 @@ To run tests automatically when you save a file:
|
|||||||
npm start
|
npm start
|
||||||
|
|
||||||
To run tests, concatenate, minify the source, and update the JavaScript files
|
To run tests, concatenate, minify the source, and update the JavaScript files
|
||||||
in `mopidy/frontends/http/data/`:
|
in `mopidy/http/data/`:
|
||||||
|
|
||||||
npm run-script build
|
npm run-script build
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@ from mopidy.core import CoreListener
|
|||||||
from . import ws
|
from . import ws
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger('mopidy.frontends.http')
|
logger = logging.getLogger('mopidy.http')
|
||||||
|
|
||||||
|
|
||||||
class HttpFrontend(pykka.ThreadingActor, CoreListener):
|
class HttpFrontend(pykka.ThreadingActor, CoreListener):
|
||||||
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
@ -9,7 +9,7 @@ from mopidy import core, models
|
|||||||
from mopidy.utils import jsonrpc
|
from mopidy.utils import jsonrpc
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger('mopidy.frontends.http')
|
logger = logging.getLogger('mopidy.http')
|
||||||
|
|
||||||
|
|
||||||
class WebSocketResource(object):
|
class WebSocketResource(object):
|
||||||
2
setup.py
2
setup.py
@ -41,7 +41,7 @@ setup(
|
|||||||
'mopidy-convert-config = mopidy.config.convert:main',
|
'mopidy-convert-config = mopidy.config.convert:main',
|
||||||
],
|
],
|
||||||
'mopidy.ext': [
|
'mopidy.ext': [
|
||||||
'http = mopidy.frontends.http:Extension [http]',
|
'http = mopidy.http:Extension [http]',
|
||||||
'local = mopidy.backends.local:Extension',
|
'local = mopidy.backends.local:Extension',
|
||||||
'local-json = mopidy.backends.local.json:Extension',
|
'local-json = mopidy.backends.local.json:Extension',
|
||||||
'mpd = mopidy.frontends.mpd:Extension',
|
'mpd = mopidy.frontends.mpd:Extension',
|
||||||
|
|||||||
@ -15,7 +15,7 @@ except ImportError:
|
|||||||
ws4py = False
|
ws4py = False
|
||||||
|
|
||||||
if cherrypy and ws4py:
|
if cherrypy and ws4py:
|
||||||
from mopidy.frontends.http import actor
|
from mopidy.http import actor
|
||||||
|
|
||||||
|
|
||||||
@unittest.skipUnless(cherrypy, 'cherrypy not found')
|
@unittest.skipUnless(cherrypy, 'cherrypy not found')
|
||||||
Loading…
Reference in New Issue
Block a user