diff --git a/app/index.html b/app/index.html index a89bb56..9778ae0 100644 --- a/app/index.html +++ b/app/index.html @@ -121,6 +121,12 @@ +
  • + + By Upload Speed + + +
  • diff --git a/app/langs/zh_CN.json b/app/langs/zh_CN.json index ba30802..2de719f 100644 --- a/app/langs/zh_CN.json +++ b/app/langs/zh_CN.json @@ -19,6 +19,7 @@ "By Completed Percent": "按进度", "By Remain Time": "按剩余时间", "By Download Speed": "按下载速度", + "By Upload Speed": "按上传速度", "Download": "下载", "Upload": "上传", "Downloading": "正在下载", diff --git a/app/scripts/config/defaultLanguage.js b/app/scripts/config/defaultLanguage.js index 09e2c77..bd8fc84 100644 --- a/app/scripts/config/defaultLanguage.js +++ b/app/scripts/config/defaultLanguage.js @@ -23,6 +23,7 @@ 'By Completed Percent': 'By Completed Percent', 'By Remain Time': 'By Remain Time', 'By Download Speed': 'By Download Speed', + 'By Upload Speed': 'By Upload Speed', 'Download': 'Download', 'Upload': 'Upload', 'Downloading': 'Downloading', diff --git a/app/scripts/filters/taskOrderBy.js b/app/scripts/filters/taskOrderBy.js index 99fb985..83fbbe6 100644 --- a/app/scripts/filters/taskOrderBy.js +++ b/app/scripts/filters/taskOrderBy.js @@ -23,6 +23,8 @@ return orderByFilter(array, ['idle', 'remainTime', 'remainLength'], orderType.reverse); } else if (orderType.type == 'dspeed') { return orderByFilter(array, ['downloadSpeed'], orderType.reverse); + } else if (orderType.type == 'uspeed') { + return orderByFilter(array, ['uploadSpeed'], orderType.reverse); } else { return array; }