forked from Flexget/Flexget
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Moving ui to old_ui and starting new ui * Missed a thing * Fixed a few bugs in the webpack configs, added some dependencies, updated dev_tools.py and __init__.py based on new webui * Added eslint * Trying to add support for ui linting and testing to travis * Fixing travis.yml hopefully * Third times the charm. Fixing .travis.yml * Info card made * Reorg. Also add support so that you can specify web_server version in config * Added the Navbar * Fixing .travis.yml after the reorg * Created the Sidebar. * Fix linter errors * Login Works * Started writing tests * reducer tests * Made the login page look better on mobile and fix the .travis.yml * Updates to reducer tests and middleware tests * Some re org. Lots of component tests. So many snapshots... * Added Version to the Sidenav * Log WIP * More WIP * Add highlighting to the log view * A whole bunch of tests * Update material-ui, fix snapshots * actions and reducers for the server stuff * Reload Server and Shutdown Server Work. Need to add a status bar * Added the Status Snackbar * Broken splash screen...wil figure that out later * Updating some verisons and what not * Update material-ui and simplify the createAction and loading functions * Change the get series endpoint to also be filterable by show name * Fix linting errors * Added Redux Saga in place of redux thunk * Fix linting errors: * Minor tweaks to the side bar, updated material-ui, started making series card * Rewrote the styles in Emotion and got the splash screen working * Update travis.yml * First part of reorg * Use the /api/cache for series images * Styled components over emotion. Also wrote some more tests * Update the default series parameters * Fix a few things with the status reducer and the fetch wrapper * Back to emotion because it's better * Rebuilt the Navbar using the new Material-ui drawer * Update side nav order * Started the history plugin * More tests * Update snapshots * History page * Linting * Component reorg * Update to react 16 * update emoiton * Fix linting * Update snapshots * Bump api version * Update travis.yml * Get v1 and v2 running along side each other
- Loading branch information
1 parent
7abdb9e
commit fb622fb
Showing
452 changed files
with
27,323 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
root = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +0,0 @@ | ||
from __future__ import unicode_literals, division, absolute_import | ||
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin | ||
|
||
import logging | ||
import os | ||
import fnmatch | ||
|
||
from flask import send_from_directory, Flask | ||
|
||
from flexget.webserver import register_app, register_home | ||
from flask_compress import Compress | ||
|
||
log = logging.getLogger('webui') | ||
|
||
manager = None | ||
debug = False | ||
app_base = None | ||
|
||
ui_base = os.path.dirname(os.path.realpath(__file__)) | ||
ui_src = os.path.join(ui_base, 'src') | ||
ui_dist = os.path.join(ui_base, 'app') | ||
bower_components = os.path.join(ui_base, 'bower_components') | ||
|
||
webui_app = Flask(__name__) | ||
Compress(webui_app) | ||
webui_app.url_path = '/' | ||
|
||
|
||
@webui_app.route('/<path:path>') | ||
def serve_app(path): | ||
if debug: | ||
if path.startswith('bower_components'): | ||
return send_from_directory(bower_components, path.lstrip('bower_components').lstrip('/')) | ||
|
||
if os.path.exists(os.path.join(ui_src, path)): | ||
return send_from_directory(ui_src, path) | ||
|
||
return send_from_directory(app_base, path) | ||
|
||
|
||
@webui_app.route('/') | ||
def root(): | ||
if not app_base: | ||
return send_from_directory(ui_base, 'load.failure.html') | ||
|
||
return send_from_directory(app_base, 'app.html') | ||
|
||
|
||
def _find(path, f): | ||
matches = [] | ||
for root_dir, _, file_names in os.walk(path): | ||
for filename in fnmatch.filter(file_names, f): | ||
matches.append(os.path.join(root_dir, filename)) | ||
return matches | ||
|
||
|
||
def _strip_trailing_sep(path): | ||
return path.rstrip('\\/') | ||
|
||
|
||
def register_web_ui(mgr): | ||
global manager, app_base, debug | ||
manager = mgr | ||
|
||
if 'debug' in manager.args: | ||
debug = True | ||
|
||
if debug: | ||
app_base = os.path.join(ui_base, '.tmp', 'serve') | ||
if not os.path.exists(app_base): | ||
log.warning('Unable to start web ui in debug mode. To enable debug mode please run the debug build, ' | ||
'see http://flexget.com/wiki/Web-UI for instructions') | ||
log.warning('Attempting to serve web ui from complied directory') | ||
app_base = None | ||
|
||
if not app_base: | ||
app_base = ui_dist | ||
if not os.path.exists(app_base): | ||
log.fatal('Failed to start web ui,' | ||
' this can happen if you are running from GitHub version and forgot to run the web ui build, ' | ||
'see http://flexget.com/wiki/Web-UI for instructions') | ||
|
||
app_base = None | ||
|
||
register_app(webui_app.url_path, webui_app) | ||
register_home('%s/' % webui_app.url_path) | ||
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
from __future__ import unicode_literals, division, absolute_import | ||
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin | ||
|
||
import logging | ||
import os | ||
import fnmatch | ||
|
||
from flask import send_from_directory, Flask | ||
|
||
from flexget.webserver import register_app, register_home | ||
from flask_compress import Compress | ||
|
||
log = logging.getLogger('webui') | ||
|
||
manager = None | ||
debug = False | ||
app_base = None | ||
|
||
ui_base = os.path.dirname(os.path.realpath(__file__)) | ||
ui_src = os.path.join(ui_base, 'src') | ||
ui_dist = os.path.join(ui_base, 'app') | ||
bower_components = os.path.join(ui_base, 'bower_components') | ||
|
||
webui_app = Flask(__name__) | ||
Compress(webui_app) | ||
webui_app.url_path = '/' | ||
|
||
|
||
@webui_app.route('/<path:path>') | ||
def serve_app(path): | ||
if debug: | ||
if path.startswith('bower_components'): | ||
return send_from_directory(bower_components, path.lstrip('bower_components').lstrip('/')) | ||
|
||
if os.path.exists(os.path.join(ui_src, path)): | ||
return send_from_directory(ui_src, path) | ||
|
||
return send_from_directory(app_base, path) | ||
|
||
|
||
@webui_app.route('/') | ||
def root(): | ||
if not app_base: | ||
return send_from_directory(ui_base, 'load.failure.html') | ||
|
||
return send_from_directory(app_base, 'app.html') | ||
|
||
|
||
def _find(path, f): | ||
matches = [] | ||
for root_dir, _, file_names in os.walk(path): | ||
for filename in fnmatch.filter(file_names, f): | ||
matches.append(os.path.join(root_dir, filename)) | ||
return matches | ||
|
||
|
||
def _strip_trailing_sep(path): | ||
return path.rstrip('\\/') | ||
|
||
|
||
def register_web_ui(mgr): | ||
global manager, app_base, debug | ||
manager = mgr | ||
|
||
if 'debug' in manager.args: | ||
debug = True | ||
|
||
if debug: | ||
app_base = os.path.join(ui_base, '.tmp', 'serve') | ||
if not os.path.exists(app_base): | ||
log.warning('Unable to start web ui in debug mode. To enable debug mode please run the debug build, ' | ||
'see http://flexget.com/wiki/Web-UI for instructions') | ||
log.warning('Attempting to serve web ui from complied directory') | ||
app_base = None | ||
|
||
if not app_base: | ||
app_base = ui_dist | ||
if not os.path.exists(app_base): | ||
log.fatal('Failed to start web ui,' | ||
' this can happen if you are running from GitHub version and forgot to run the web ui build, ' | ||
'see http://flexget.com/wiki/Web-UI for instructions') | ||
|
||
app_base = None | ||
|
||
register_app(webui_app.url_path, webui_app) | ||
register_home('%s/' % webui_app.url_path) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"presets": [ | ||
[ "env", { | ||
"loose": true, | ||
"modules": false | ||
}], | ||
"stage-0", | ||
"react" | ||
], | ||
"plugins": ["emotion", "syntax-dynamic-import"], | ||
"env": { | ||
"production": { | ||
"plugins": [ | ||
"emotion", | ||
"transform-react-remove-prop-types", | ||
] | ||
}, | ||
"test": { | ||
"plugins": [ | ||
"emotion", | ||
"transform-es2015-modules-commonjs", | ||
"dynamic-import-node", | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.