diff --git a/modules/core/client/app/trans-string-en.js b/modules/core/client/app/trans-string-en.js index c35fa398..09116cb8 100644 --- a/modules/core/client/app/trans-string-en.js +++ b/modules/core/client/app/trans-string-en.js @@ -533,11 +533,11 @@ TORRENT_DOWNLOADING_FILENAME: 'Downloading file name: ', UPLOAD_ACCESS_TOOLTIP: '{{site}} only accepts resource resources group to upload torrents, you can list and join them!', - SELECT_RESOURCE_TYPE: '2. Please select the resource type', - SELECT_TORRENT_FILE: '1. Please select the torrent file', + SELECT_RESOURCE_TYPE: '• Please select the resource type', + SELECT_TORRENT_FILE: '• Please select the torrent file', SELECT_FILE: 'Select file', DO_UPLOAD: 'Upload', - ENTER_TMDB_ID: '3 Please enter theMovieDB id', + ENTER_TMDB_ID: '• Please enter theMovieDB id', LOAD_TMDB_INFO: 'Load info', SEARCH_FROM_TMDB: 'Search From TMDB', TMDB_ID: 'TMDB ID', @@ -554,37 +554,38 @@ TMDB_ID_OK: 'TMDB ID is ok! Get info successfully', TMDB_ID_ERROR: 'TMDB ID is error! Get info failed', TMDB_ID_REQUIRED: 'Please enter TMDB ID', - TMDB_RESOURCE_INFO: '4. The resource info from TMDB', + TMDB_RESOURCE_INFO: '• The resource info from TMDB', TMDB_IS_LOADING: 'Loading the resource info, please wait...', - SELECT_SE: '4.1. Please select number of seasons and input number of episodes', - SELECT_TAGS: '5. Please select any tags for the resources', - ENTER_VIDEO_NFO: '6. Please enter video and audio NFO', - SELECT_MAKER_GROUP: '7. Please select resources group upload from and anonymous option', + SELECT_SE: '• Please select number of seasons and input number of episodes', + SELECT_TAGS: '• Please select any tags for the resources', + ENTER_VIDEO_NFO: '• Please enter video and audio NFO', + SELECT_MAKER_GROUP: '• Please select resources group upload from and anonymous option', MAKER_NULL: 'NULL', UPLOADER_ANONYMOUS: 'Anonymous Upload (The user wont see me as an uploader)', ANONYMOUS: 'Anonymous', - TORRENTS_SUBMIT_UPLOAD: '8. Agree the rules and submit your resources', + TORRENTS_SUBMIT_UPLOAD: '• Agree the rules and submit your resources', SUBMIT_BUTTON: 'OK, SUBMIT NOW', CANCEL_BUTTON: 'NO, CANCEL IT', AGREE_RULES: 'I agree and already read all the rules, read here', DOWNLOAD_TORRENT: 'Download Torrent', + NO_TAGS_LIST: 'No resources tags can be selected', - ENTER_MUSIC_TITLE: '3. Please enter the artist name and music/album title', + ENTER_MUSIC_TITLE: '• Please enter the artist name and music/album title', MUSIC_ARTIST: 'artist name', MUSIC_TITLE: 'music/album sub title', MUSIC_SUB_TITLE: 'music/album short desc', - SELECT_MUSIC_IMAGE: '3.1 Please select music/album cover image', + SELECT_MUSIC_IMAGE: '• Please select music/album cover image', COVER_UPLOAD_SUCCESSFULLY: 'Successfully upload cover image', COVER_UPLOAD_FAILED: 'Failed to upload cover image', - ENTER_MUSIC_DETAIL_INFO: '4. Please enter the music/album detail info', + ENTER_MUSIC_DETAIL_INFO: '• Please enter the music/album detail info', ERROR_ONLY_IMAGE: 'Only image files support(gif, png, bmp, jpg, jpeg)', FILE_TYPE_ERROR: 'File type that is not accepted', - ENTER_RESOURCE_TITLE: '4.1 Please enter the resource main title and sub title', + ENTER_RESOURCE_TITLE: '• Please enter the resource main title and sub title', RESOURCE_TITLE: 'resource main title', RESOURCE_SUB_TITLE: 'resource sub title', - SELECT_RESOURCE_IMAGE: '3.1 Please select resource cover image', - ENTER_RESOURCE_DETAIL_INFO: '4. Please enter the resource detail info', + SELECT_RESOURCE_IMAGE: '• Please select resource cover image', + ENTER_RESOURCE_DETAIL_INFO: '• Please enter the resource detail info', //ranking view PAGE_HEADER_RANKING_UPLOAD: 'Uploaded Ranking', diff --git a/modules/core/client/app/trans-string-zh-tw.js b/modules/core/client/app/trans-string-zh-tw.js index 41f4b6e0..56c9a88e 100644 --- a/modules/core/client/app/trans-string-zh-tw.js +++ b/modules/core/client/app/trans-string-zh-tw.js @@ -568,6 +568,7 @@ CANCEL_BUTTON: '算了,以後再說', AGREE_RULES: '我已閱讀並同意站內所有協議條款,協議條款', DOWNLOAD_TORRENT: '下載種子', + NO_TAGS_LIST: '沒有配置的資源標籤可供選擇', ENTER_MUSIC_TITLE: '3. 請輸入藝人名稱和音樂/專輯標題', MUSIC_ARTIST: '藝人名稱', diff --git a/modules/core/client/app/trans-string-zh.js b/modules/core/client/app/trans-string-zh.js index 780b5cf5..6f0f5bcb 100644 --- a/modules/core/client/app/trans-string-zh.js +++ b/modules/core/client/app/trans-string-zh.js @@ -568,6 +568,7 @@ CANCEL_BUTTON: '算了,以后再说', AGREE_RULES: '我已阅读并同意站内所有协议条款,协议条款', DOWNLOAD_TORRENT: '下载种子', + NO_TAGS_LIST: '没有配置的资源标签可供选择', ENTER_MUSIC_TITLE: '3. 请输入艺人名称和音乐/专辑标题', MUSIC_ARTIST: '艺人名称', diff --git a/modules/torrents/client/controllers/uploads.client.controller.js b/modules/torrents/client/controllers/uploads.client.controller.js index 57af7ae9..2b64c01f 100644 --- a/modules/torrents/client/controllers/uploads.client.controller.js +++ b/modules/torrents/client/controllers/uploads.client.controller.js @@ -396,6 +396,40 @@ return inc; }; + /** + * tagsFilter + * @param item + * @returns {boolean} + */ + vm.tagsFilter = function (item) { + var res = false; + + if (item.cats.includes(vm.selectedType)) { + res = true; + } + + return res; + }; + + /** + * getTagsFilterCount + * @returns {int} + */ + vm.getTagsFilterCount = function () { + var res = 0; + + angular.forEach(vm.resourcesTags.radio, function (t) { + if (t.cats.includes(vm.selectedType)) + res++; + }); + angular.forEach(vm.resourcesTags.checkbox, function (t) { + if (t.cats.includes(vm.selectedType)) + res++; + }); + + return res; + }; + /** * getMovieInfo * @param tmdbid diff --git a/modules/torrents/client/views/uploads-torrents.client.view.html b/modules/torrents/client/views/uploads-torrents.client.view.html index 52455244..01e1c4a0 100644 --- a/modules/torrents/client/views/uploads-torrents.client.view.html +++ b/modules/torrents/client/views/uploads-torrents.client.view.html @@ -309,11 +309,14 @@ -