From d1730b566891767ca7e50cebfde992344d1f5478 Mon Sep 17 00:00:00 2001 From: doolb Date: Tue, 15 Jan 2019 14:22:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E7=A3=81=E5=8A=9B=E9=93=BE=E6=8E=A5=E5=88=B0=E5=89=AA=E5=88=87?= =?UTF-8?q?=E6=9D=BF=20=E7=94=B1=E4=BA=8E=E6=98=AF=E5=BB=B6=E6=97=B6?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=EF=BC=8C=E6=89=80=E4=BB=A5=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E7=82=B9=E4=B8=A4=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tr-web-control/i18n/en.json | 3 +- src/tr-web-control/i18n/es.json | 3 +- src/tr-web-control/i18n/fr.json | 3 +- src/tr-web-control/i18n/hu.json | 3 +- src/tr-web-control/i18n/it.json | 3 +- src/tr-web-control/i18n/ko.json | 3 +- src/tr-web-control/i18n/nl.json | 3 +- src/tr-web-control/i18n/pl.json | 3 +- src/tr-web-control/i18n/pt_BR.json | 3 +- src/tr-web-control/i18n/pt_PT.json | 3 +- src/tr-web-control/i18n/ro.json | 3 +- src/tr-web-control/i18n/ru.json | 3 +- src/tr-web-control/i18n/uk.json | 3 +- src/tr-web-control/i18n/zh_CN.json | 3 +- src/tr-web-control/i18n/zh_TW.json | 3 +- src/tr-web-control/script/min/system.min.js | 112 +----------------- .../script/min/transmission.torrents.min.js | 14 +-- src/tr-web-control/script/system.js | 39 +++++- .../script/transmission.torrents.js | 44 +++++++ 19 files changed, 114 insertions(+), 140 deletions(-) diff --git a/src/tr-web-control/i18n/en.json b/src/tr-web-control/i18n/en.json index 249b243..4288722 100644 --- a/src/tr-web-control/i18n/en.json +++ b/src/tr-web-control/i18n/en.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Automatically matches data directory" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navigation", diff --git a/src/tr-web-control/i18n/es.json b/src/tr-web-control/i18n/es.json index 2a74721..da165df 100644 --- a/src/tr-web-control/i18n/es.json +++ b/src/tr-web-control/i18n/es.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Elegir automáticamente directorio de datos" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navegación", diff --git a/src/tr-web-control/i18n/fr.json b/src/tr-web-control/i18n/fr.json index df67d11..1c32c32 100644 --- a/src/tr-web-control/i18n/fr.json +++ b/src/tr-web-control/i18n/fr.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Correspondance auto des dossiers de données" }, - "setLabels": "Personnaliser les étiquettes" + "setLabels": "Personnaliser les étiquettes", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navigation", diff --git a/src/tr-web-control/i18n/hu.json b/src/tr-web-control/i18n/hu.json index 3ac67f0..d25a4d1 100644 --- a/src/tr-web-control/i18n/hu.json +++ b/src/tr-web-control/i18n/hu.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Könyvtárak automatikus felismerése" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navigáció", diff --git a/src/tr-web-control/i18n/it.json b/src/tr-web-control/i18n/it.json index 0b0db08..052373c 100644 --- a/src/tr-web-control/i18n/it.json +++ b/src/tr-web-control/i18n/it.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Associa automaticamente cartella dati" }, - "setLabels": "Imposta Etichette Utente" + "setLabels": "Imposta Etichette Utente", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navigazione", diff --git a/src/tr-web-control/i18n/ko.json b/src/tr-web-control/i18n/ko.json index 110fde9..75f0905 100644 --- a/src/tr-web-control/i18n/ko.json +++ b/src/tr-web-control/i18n/ko.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "자동으로 데이터 폴더 일치시키기" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "안내", diff --git a/src/tr-web-control/i18n/nl.json b/src/tr-web-control/i18n/nl.json index b98fc75..8eb0804 100644 --- a/src/tr-web-control/i18n/nl.json +++ b/src/tr-web-control/i18n/nl.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Automatically matches data directory" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navigatie", diff --git a/src/tr-web-control/i18n/pl.json b/src/tr-web-control/i18n/pl.json index f67ce44..a1667a2 100644 --- a/src/tr-web-control/i18n/pl.json +++ b/src/tr-web-control/i18n/pl.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Automatyczne dopasowanie katalogu" }, - "setLabels": "Ustaw własne etykiety" + "setLabels": "Ustaw własne etykiety", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Nawigacja", diff --git a/src/tr-web-control/i18n/pt_BR.json b/src/tr-web-control/i18n/pt_BR.json index 23052b6..f2f9c09 100644 --- a/src/tr-web-control/i18n/pt_BR.json +++ b/src/tr-web-control/i18n/pt_BR.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Combinar automaticamente diretório de dados" }, - "setLabels": "Definir Rótulos do Usuário" + "setLabels": "Definir Rótulos do Usuário", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navegação", diff --git a/src/tr-web-control/i18n/pt_PT.json b/src/tr-web-control/i18n/pt_PT.json index a595e5f..eaffb94 100644 --- a/src/tr-web-control/i18n/pt_PT.json +++ b/src/tr-web-control/i18n/pt_PT.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Combinar automaticamente o diretório de dados" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navegação", diff --git a/src/tr-web-control/i18n/ro.json b/src/tr-web-control/i18n/ro.json index c3411f9..cf060de 100644 --- a/src/tr-web-control/i18n/ro.json +++ b/src/tr-web-control/i18n/ro.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Automatically matches data directory" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Navigare", diff --git a/src/tr-web-control/i18n/ru.json b/src/tr-web-control/i18n/ru.json index 4d22fed..e05a07b 100644 --- a/src/tr-web-control/i18n/ru.json +++ b/src/tr-web-control/i18n/ru.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Автосопоставление путей" }, - "setLabels": "Присвоить метки" + "setLabels": "Присвоить метки", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Навигация", diff --git a/src/tr-web-control/i18n/uk.json b/src/tr-web-control/i18n/uk.json index 2ea766c..0cd1a25 100644 --- a/src/tr-web-control/i18n/uk.json +++ b/src/tr-web-control/i18n/uk.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "Авто-зіставлення шляхів" }, - "setLabels": "Set User Labels" + "setLabels": "Set User Labels", + "copyMagnetLink": "Copy magnetLink to clipboard" }, "title": { "left": "Навігація", diff --git a/src/tr-web-control/i18n/zh_CN.json b/src/tr-web-control/i18n/zh_CN.json index 303b709..4765c9c 100644 --- a/src/tr-web-control/i18n/zh_CN.json +++ b/src/tr-web-control/i18n/zh_CN.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "自动匹配数据目录" }, - "setLabels": "设置用户标签" + "setLabels": "设置用户标签", + "copyMagnetLink": "复制磁力链接到剪切板" }, "title": { "left": "导航", diff --git a/src/tr-web-control/i18n/zh_TW.json b/src/tr-web-control/i18n/zh_TW.json index 7735155..1d56ce6 100644 --- a/src/tr-web-control/i18n/zh_TW.json +++ b/src/tr-web-control/i18n/zh_TW.json @@ -85,7 +85,8 @@ "plugin": { "auto-match-data-folder": "自動配對資料夾" }, - "setLabels": "設置使用者標籤" + "setLabels": "設置使用者標籤", + "copyMagnetLink": "复制磁力链接到剪切板" }, "title": { "left": "分類資料夾", diff --git a/src/tr-web-control/script/min/system.min.js b/src/tr-web-control/script/min/system.min.js index 844ff55..9dec66e 100644 --- a/src/tr-web-control/script/min/system.min.js +++ b/src/tr-web-control/script/min/system.min.js @@ -1,111 +1 @@ -var system={version:"1.6.0 beta",rootPath:"tr-web-control/",codeupdate:"20180906",configHead:"transmission-web-control",config:{autoReload:true,reloadStep:5E3,pageSize:30,pagination:true,pageList:[10,20,30,40,50,100,150,200,250,300],defaultSelectNode:null,autoExpandAttribute:false,defaultLang:"",foldersShow:false,theme:"default",showBTServers:false,ui:{status:{tree:{},layout:{main:{},body:{},left:{}},panel:{},size:{nav:{},attribute:{}}}},hideSubfolders:false,simpleCheckMode:false,nav:{servers:true, -folders:true,statistics:true,labels:false},labels:[],labelMaps:{},ignoreVersion:[]},storageKeys:{dictionary:{folders:"dictionary.folders"}},dictionary:{folders:null},checkUpdateScript:"https://api.github.com/repos/ronggang/transmission-web-control/releases/latest",contextMenus:{},panel:null,lang:null,reloading:false,autoReloadTimer:null,downloadDir:"",islocal:false,B64:new Base64,currentTorrentId:0,control:{tree:null,torrentlist:null},userConfig:{torrentList:{fields:[],sortName:null,sortOrder:"asc"}}, -serverConfig:null,serverSessionStats:null,templates:{},checkedRows:[],uiIsInitialized:false,popoverCount:0,setlang:function(a,b){a||(a=this.config.defaultLang?this.config.defaultLang:navigator.language||navigator.browserLanguage);a||(a="zh-CN");if(a.indexOf("-")!=-1)a=a.split("-")[0].toLocaleLowerCase()+"-"+a.split("-")[1].toLocaleUpperCase();this.languages[a]||(a="en");a=a.replace("-","_");$.getJSON(system.rootPath+"i18n/"+a+".json",function(c){if(c)system.lang=$.extend(true,system.defaultLang,c); -system.resetLangText();$.getScript(system.rootPath+"script/easyui/locale/easyui-lang-"+a+".js").done(function(){b&&b()}).fail(function(){$.getScript(system.rootPath+"script/easyui/locale/easyui-lang-en.js",function(){b&&b()})})})},init:function(a,b){this.readConfig();this.lastUIStatus=JSON.parse(JSON.stringify(this.config.ui.status));this.islocal=b==1?true:false;this.panel={main:$("#main"),top:$("#m_top"),toolbar:$("#m_toolbar"),left_layout:$("#m_left_layout"),left:$("#m_left"),body:$("#m_body"), -layout_body:$("#layout_body"),layout_left:$("#layout_left"),list:$("#m_list"),attribute:$("#m_attribute"),bottom:$("#m_bottom"),title:$("#m_title"),status:$("#m_status"),statusbar:$("#m_statusbar"),status_text:$("#status_text"),droparea:$("#dropArea")};this.lang==null?this.setlang(a,function(){system.initdata()}):this.initdata();this.initThemes();this.clipboard=new ClipboardJS("#toolbar_copyPath")},resetLangText:function(a){a||(a=$);var b=a.find("*[system-lang]");$.each(b,function(c,d){var f=$(d).attr("system-lang"); -f.substr(0,1)=="["?$(d).html(eval("system.lang"+f)):$(d).html(eval("system.lang."+f))});b=a.find("*[system-tip-lang]");$.each(b,function(c,d){var f=$(d).attr("system-tip-lang");f.substr(0,1)=="["?$(d).attr("title",eval("system.lang"+f)):$(d).attr("title",eval("system.lang."+f))})},initdata:function(){$(document).attr("title",this.lang.system.title+" "+this.version);$.fn.switchbutton.defaults.onText=this.lang["public"]["text-on"];$.fn.switchbutton.defaults.offText=this.lang["public"]["text-off"];var a= -[],b=""+this.lang.title.left+"";if(a.length>1){b+=a.join("");this.panel.left_layout.panel("setTitle",b);for(var c in this.lang.tree.toolbar.nav){$("#tree-toolbar-nav-"+c).linkbutton();switch(c){case "folders":system.config.foldersShow?$("tree-toolbar-nav-"+c).linkbutton({iconCls:"icon-enabled"}).data("status",1):$("tree-toolbar-nav-"+c).linkbutton({iconCls:"icon-disabled"}).data("status",0)}}}else this.panel.left_layout.panel("setTitle",b);b=""+this.lang.title.list+"";a.length= -0;if(a.length>1){b+=a.join("");this.panel.body.panel("setTitle",b);for(c in this.lang["torrent-head"].buttons){$("#torrent-head-buttons-"+c).linkbutton();switch(c){case "autoExpandAttribute":system.config.autoExpandAttribute?$("#torrent-head-buttons-"+c).linkbutton({iconCls:"icon-enabled"}).data("status",1):$("#torrent-head-buttons-"+c).linkbutton({iconCls:"icon-disabled"}).data("status",0)}}}else this.panel.body.panel("setTitle",b);this.panel.status.panel("setTitle",this.lang.title.status);this.panel.attribute.panel({title:this.lang.title.attribute, -onExpand:function(){system.currentTorrentId!=0&&$(this).data("isload")?system.getTorrentInfos(system.currentTorrentId):system.clearTorrentAttribute()},onLoad:function(){if(!$(this).data("isload")){$(this).data("isload",true);system.currentTorrentId!=0&&setTimeout(function(){system.getTorrentInfos(system.currentTorrentId)},500)}}});$.each(this.languages,function(d,f){$("