-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented Vue.js in the editShow.mako template. #3849
Merged
Merged
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
ad6875e
move quality-chooser to vue
OmgImAlexis 44d378f
add js libs
OmgImAlexis e5c7bf3
fix form submitting
OmgImAlexis 2dc8ced
Implemented Vue.js in the editShow.mako template.
p0psicles 9a5084f
Added anidb release group blacklist/whitelist dogpile caching.
p0psicles 1d13f3a
Added arrows for moving release groups to whitelist/blacklist.
p0psicles 1a9d3f6
Added ability to manually add release groups.
p0psicles 7c7d347
Fixed saving whitelist and blacklist
p0psicles f2c5021
Put back v-cloak.
p0psicles b4ebd68
Remove webHandler code for editShow.
p0psicles ebfa3b4
Fix the filebrowser.
p0psicles 8ae7b52
move new vue component to vue-components dir
OmgImAlexis 1b39e99
Moved the css To inline.
p0psicles 815eceb
Merge remote-tracking branch 'remotes/origin/develop' into feature/co…
p0psicles 62a431c
Removed classes on the file-browser component.
p0psicles 897128f
rename qualityChooser file
OmgImAlexis 4a8fc21
Merge remote-tracking branch 'remotes/origin/develop' into feature/co…
p0psicles 581ac33
Fixed app-link. Already fixed in develop.
p0psicles 30179fb
Updated the other themes.
p0psicles f9dd1be
Fix test
medariox 5ede245
Pin pycodestyle to version 2.3.1
medariox bc8ffa9
Merge remote-tracking branch 'remotes/origin/feature/quality-chooser-…
p0psicles 237d4ca
Added quality-chooser.mako include.
p0psicles 2561e30
Merge branch 'feature/convert-editshow-to-vue' of https://github.com/…
p0psicles b7db40d
Fix apiv2 tests
medariox 08a4094
Merge remote-tracking branch 'origin/feature/convert-editshow-to-vue'…
medariox 7f5d165
Remove the duplicate css for filebrowser component.
p0psicles 54c800a
Remove module key from the indexer_config.py to_json method.
p0psicles 1c21868
Merge branch 'feature/convert-editshow-to-vue' of https://github.com/…
p0psicles 4798f4d
Flake8
medariox 5f42c80
Merge remote-tracking branch 'origin/feature/convert-editshow-to-vue'…
medariox 71eecfe
Flake8 (2)
medariox 5a21fd9
fix typo
OmgImAlexis f7b0f20
Removed duplicate css from component directive.
p0psicles c8f247e
reviewed vue
OmgImAlexis ccfec58
fix typo
OmgImAlexis 799a9f3
Tried adding a saved animation / modal.
p0psicles f90ab76
Add saved-animation.mako
p0psicles 64a0265
Removed the data variables. Just use props.
p0psicles d0c5a5a
move quality-chooser to vue
OmgImAlexis 2fb1227
add js libs
OmgImAlexis 6d47906
fix form submitting
OmgImAlexis 3a9468f
move new vue component to vue-components dir
OmgImAlexis d2a8944
rename qualityChooser file
OmgImAlexis 0025309
Rename "preffered" to preferred
sharkykh f922905
Fix quality chooser (tested only on add new show page)
sharkykh e3f42b6
Remove imports of quality-chooser.js, remove map files
sharkykh a991017
Update files in the other themes
sharkykh 134097a
More fixes
sharkykh d040822
Added saving series info language through apiv2.
p0psicles b7d5dce
Fixed saved-messages component.
p0psicles 76e6e9b
Created jquery wrapper for the select languages select.
p0psicles ac94621
Removed files that where added by mistake.
p0psicles cf4c385
Merge remote-tracking branch 'remotes/origin/develop' into feature/co…
p0psicles 9c5fc0d
Merge remote-tracking branch 'remotes/origin/feature/quality-chooser-…
p0psicles ef33062
Added saving qualities.
p0psicles cc5b57d
Update test
medariox 42017fc
Remove session from indexer_config to_json method.
p0psicles 32fa448
Always initialize a BlackWhite list object. Also for non-anime.
p0psicles c98a9f1
Fixed indexerIdToName function.
p0psicles a59cdbb
Fixed app-link indexerId.
p0psicles 78baaff
remove series prop from anidb-release-group-ui.mako.
p0psicles 76b64fe
Merge branch 'feature/convert-editshow-to-vue' of https://github.com/…
p0psicles ab35fa9
Merge remote-tracking branch 'remotes/origin/develop' into feature/co…
p0psicles 565aaa0
Merge remote-tracking branch 'remotes/origin/develop' into feature/co…
p0psicles 0514853
Sync dark/light themes from slim.
p0psicles c6ef568
Delete mynzb.nzb
sharkykh e2fe1f6
Fix the quality event handler / saving changed values.
p0psicles d91c64d
Merge branch 'feature/convert-editshow-to-vue' of https://github.com/…
p0psicles 86ced83
Remove commented code.
p0psicles File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
"""Indexer config module.""" | ||
from __future__ import unicode_literals | ||
|
||
from six import text_type | ||
from medusa.app import BASE_PYMEDUSA_URL | ||
from medusa.indexers.tmdb.tmdb import Tmdb | ||
from medusa.indexers.tvdbv2.tvdbv2_api import TVDBv2 | ||
|
@@ -114,3 +115,43 @@ | |
'identifier': 'tmdb', # Also used as key for the custom scenename exceptions. (_get_custom_exceptions()) | ||
} | ||
} | ||
|
||
|
||
def create_config_json(indexer): | ||
"""Create a json (pickable) conpatible dict, for using as an apiv2 resource.""" | ||
return { | ||
'enabled': indexer['enabled'], | ||
'id': indexer['id'], | ||
'name': indexer['name'], | ||
'module': text_type(indexer['module']), | ||
'apiParams': { | ||
'language': indexer['api_params']['language'], | ||
'useZip': indexer['api_params']['use_zip'], | ||
'session': '', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no we can remove that |
||
}, | ||
'xemOrigin': indexer.get('xem_origin'), | ||
'icon': indexer.get('icon'), | ||
'scene_loc': indexer.get('scene_loc'), | ||
'baseUrl': indexer.get('base_url'), | ||
'showUrl': indexer.get('show_url'), | ||
'mappedTo': indexer.get('mapped_to'), # The attribute to which other indexers can map there thetvdb id to | ||
'identifier': indexer.get('identifier'), # Also used as key for the custom scenename exceptions. (_get_custom_exceptions()) | ||
'validLanguages': initConfig['valid_languages'], | ||
'langabbvToId': initConfig['langabbv_to_id'], | ||
} | ||
|
||
|
||
def get_indexer_config(): | ||
indexers = { | ||
indexerConfig[indexer]['identifier']: create_config_json(indexerConfig[indexer]) for indexer in indexerConfig.keys() | ||
} | ||
|
||
main = { | ||
'validLanguages': initConfig['valid_languages'], | ||
'langabbvToId': initConfig['langabbv_to_id'], | ||
'externalMappings': EXTERNAL_MAPPINGS, | ||
'traktIndexers': TRAKT_INDEXERS, | ||
'statusMap': STATUS_MAP | ||
} | ||
|
||
return {'indexers': indexers, 'main': main} |
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
15 changes: 15 additions & 0 deletions
15
themes-default/slim/static/css/vue/anidbreleasegroupui.css
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,15 @@ | ||
/* ========================================================================= | ||
Style for the anidbReleaseGroupUi.mako. | ||
Should be moved from here, when moving the .vue files. | ||
========================================================================== */ | ||
|
||
div#anidb_release_group_ui_wrapper { | ||
clear: both; | ||
} | ||
|
||
div#anidb_release_group_ui_wrapper ul { | ||
border-style: solid; | ||
border-width: thin; | ||
padding: 5px 2px 2px 5px; | ||
list-style: none; | ||
} |
Empty file.
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,13 @@ | ||
/* ========================================================================= | ||
Style for the selectList.mako. | ||
Should be moved from here, when moving the .vue files. | ||
========================================================================== */ | ||
|
||
div.select-list ul { | ||
padding-left: 0; | ||
} | ||
|
||
div.select-list li { | ||
list-style-type: none; | ||
display: flex; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@p0psicles What's the point of mapping the module? Can it be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think I started with just making 'it work', but I don't think we'll ever use that.