diff --git a/safari2aria.safariextension/Info.plist b/safari2aria.safariextension/Info.plist index b3fe6a1..9307074 100644 --- a/safari2aria.safariextension/Info.plist +++ b/safari2aria.safariextension/Info.plist @@ -5,7 +5,7 @@ Author Miniers Builder Version - 13604.5.2 + 13604.5.6 CFBundleDisplayName safari2aria CFBundleIdentifier @@ -13,9 +13,9 @@ CFBundleInfoDictionaryVersion 1.0 CFBundleShortVersionString - 2.9.3 + 2.9.5 CFBundleVersion - 2.9.3 + 2.9.5 Chrome Database Quota diff --git a/safari2aria.safariextension/global.html b/safari2aria.safariextension/global.html index 3f5ea81..a83c283 100644 --- a/safari2aria.safariextension/global.html +++ b/safari2aria.safariextension/global.html @@ -8,5 +8,5 @@
- + diff --git a/safari2aria.safariextension/options.html b/safari2aria.safariextension/options.html index 54df2b5..fc25cd3 100644 --- a/safari2aria.safariextension/options.html +++ b/safari2aria.safariextension/options.html @@ -8,5 +8,5 @@
- + diff --git a/safari2aria.safariextension/popover.html b/safari2aria.safariextension/popover.html index aa19298..0bcdf3e 100644 --- a/safari2aria.safariextension/popover.html +++ b/safari2aria.safariextension/popover.html @@ -8,5 +8,5 @@
- + diff --git a/safari2aria.safariextension/static/js/global.0a92eb14563f41b09973.js b/safari2aria.safariextension/static/js/global.0a92eb14563f41b09973.js new file mode 100644 index 0000000..4bb3bb5 --- /dev/null +++ b/safari2aria.safariextension/static/js/global.0a92eb14563f41b09973.js @@ -0,0 +1 @@ +webpackJsonp([4],{159:function(t,e,n){"use strict";function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=D.language||navigator.language;return x()(O,[n,t],e.notfailback?"":[t," "].join(""))}function a(){var t={};D.rpcList.forEach(function(e,n){var o=e.url.match(/^(http|ws)(s)?(?:\:\/\/)(token\:[^@]*)?@?([^\:\/]*)\:?(\d*)(\/[^\/]*)/),a={host:o[4],port:o[5]||6800,secure:!(!o||!o[2]),secret:o[3]?o[3].split(":")[1]:"",path:o[6]||"/jsonrpc"};if(E[e.url])t[e.url]=E[e.url],t[e.url].rpc.name=e.name,delete E[e.url];else{var r=new C.Aria2(a);t[e.url]={aria2:r,rpc:e,push:e.push}}e.push&&i(t[e.url],e.name)});for(var e in E){var n=E[e].aria2;n&&n.socket&&1===n.socket.readyState&&E[e].aria2.close()}E=t}function i(t,e){var n=t.aria2;return!(!t.aria2||!t.aria2.socket||1!==n.socket.readyState)||(n.open().then(function(){s(t,e),t.reconnect&&(delete t.reconnect,T.success([o("Successful links to"),e]))}).catch(function(n){x()(safari,"application.activeBrowserWindow.activeTab.url")&&(!t.reconnect&&T.error([o("Make sure the aria2 is running, every 10 seconds will automatically retry")],[e,o("Connection fail")]),t.reconnect=!0),M=M||setInterval(function(){var t=0;S()(E,function(e){e.push&&(t+=i(e)?0:1)}),t||clearInterval(M)},1e4)}),!1)}function r(){x()(safari,"extension.popovers[0].contentWindow.tlwin.refreshTaskList")&&safari.extension.popovers[0].contentWindow.tlwin.refreshTaskList()}function s(t,e){var n=t.aria2,a=function(t){},i=function(t){r()},s=function(t,e){r(),c(n,t.gid).then(function(t){T.show(e?"error":"success",[t,o("Download"),o(e?"error":"success")])})};n.onDownloadStart=a,n.onDownloadPause=i,n.onDownloadStop=i,n.onDownloadComplete=s,n.onBtDownloadComplete=s,n.onDownloadError=function(t){s(t,!0)}}function c(t,e){return t.tellStatus(e,["bittorrent"]).then(function(n){return t.getFiles(e).then(function(t){return{files:t,bt:n}})}).then(function(t){var e=t.files[0].path,n=e.split("/").pop();return t.bt&&t.bt.info?bt.bittorrent.info.name:n}).catch(function(t){T.error([o("Failed to get task information")])})}function l(t){var e={},n=E[t[0].url],a=!!n&&n.aria2,i=D.enableCookie?"Cookie: "+t[3]:"";D.baiduPanCookie&&(i=[i,D.baiduPanCookie].join("; ")),D.downloadPath&&(e.dir=D.downloadPath),a&&t[1]?a.addUri([t[1]],A({header:i,timeout:10,"content-disposition-default-utf8":!0,"user-agent":D.userAgent},e)).then(function(){T.success([o("Successfully added to the"),n.rpc.name,D.enableCookie?"":"(with cookie)"]),r()}).catch(function(t){T.error([o("Fail to Added to the"),n.rpc.name,D.enableCookie?"":"(without cookie)","("+t.message+")"]),console.log(t)}):T.error(["添加任务失败:没有url或者没有连接aria2"])}function u(t){"showOptions"===t.key&&f()}function f(){safari.application.activeBrowserWindow.openTab().url=safari.extension.baseURI+"options.html"}function d(){D=localStorage.getItem("safari2aria");try{D=JSON.parse(D||"{}")}catch(t){D={defaultRpcIndex:0}}j=D.filetypes?D.filetypes.split(" "):[];for(var t=0;t=0){var n=t.userInfo;n&&n.length&&n[0]||(t.target.disabled=!0)}}function g(t){n.i(I.a)(t.url,D,L)&&(t.preventDefault(),p("getCookie",function(e){l([P[D.defaultRpcIndex],t.url,t.target.url,e.cookie])}))}function w(t){P.forEach(function(e,n){t.contextMenu.appendContextMenuItem(["DownloadWithAria2",n].join("."),[o("Downloaded to"),e.name].join(""))}),D.enableXunleiLixian&&t.contextMenu.appendContextMenuItem("DownloadWithXunleilixian",[o("Import to thunder lixian")].join("")),D.enableBaiduLixian&&t.contextMenu.appendContextMenuItem("DownloadWithBaidulixian",[o("Import to baidu lixian")].join(""))}function y(t){R[t.name]&&R[t.name](t.message,t)}Object.defineProperty(e,"__esModule",{value:!0});var b=n(18),x=n.n(b),k=n(55),S=n.n(k),C=n(54),I=n(36),A=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t&&!n[82]&&e.enableTypefiles?!n.isCommandPressed:n.isCommandPressed){if(t.match(/magnet:[^\\"]+/))return!0;var o=t.substr(t.lastIndexOf(".")+1);o=o.toLowerCase();var a=e.filetypes?e.filetypes.split(" "):[];if(n.isShiftPressd)return!0;for(var i=0;i0&&(o.params=t.params);var a="http"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path;fetch(a,{method:"POST",body:JSON.stringify(o),headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(t){return t.json()}).then(function(t){n._onmessage(t)}).catch(e)},i.prototype.send=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof e[e.length-1]?e.pop():null;return this.exec(t,e,n)},i.prototype.exec=function(t,e,n){if("string"!=typeof t)throw new TypeError(t+" is not a string");0!==t.indexOf("system.")&&0!==t.indexOf("aria2.")&&(t="aria2."+t);var a={method:t,"json-rpc":"2.0",id:this.lastId++},i=this.secret?["token:"+this.secret]:[];Array.isArray(e)&&("system.multicall"===t?(Array.isArray(e[0])&&e[0].forEach(function(t){t.params||(t.params=[]),t.params=i.concat(t.params)}),i=e):i=i.concat(e)),i.length>0&&(a.params=i),this.onsend(a);var r=this;return this.socket&&1===this.socket.readyState?this.socket.send(JSON.stringify(a)):this.http(a,function(t){r.callbacks[a.id](t),delete r.callbacks[a.id]}),o()(function(t){r.callbacks[a.id]=t},n)},i.prototype._onmessage=function(t){if(this.onmessage(t),void 0!==t.id){var e=this.callbacks[t.id];e&&(t.error?e(t.error):e(null,t.result),delete this.callbacks[t.id])}else if(t.method){var n=t.method.split("aria2.")[1];0===n.indexOf("on")&&"function"==typeof this[n]&&i.notifications.indexOf(n)>-1&&this[n].apply(this,t.params)}},i.prototype.open=function(t){var e="ws"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path,n=this.socket=new WebSocket(e),a=this,i=!1;return n.onmessage=function(t){a._onmessage(JSON.parse(t.data))},o()(function(t){n.onopen=function(){i||(t(),i=!0),a.onopen()},n.onclose=function(e){a.onclose(),1006==e.code&&(i||(t(e),i=!0))},n.onerror=function(e){i||(t(e),i=!0)}},t)},i.prototype.close=function(t){var e=this.socket;return o()(function(t){e?(e.addEventListener("close",function(){t()}),e.close()):t()},t)},i.methods=["addUri","addTorrent","addMetalink","remove","forceRemove","pause","pauseAll","forcePause","forcePauseAll","unpause","unpauseAll","tellStatus","getUris","getFiles","getPeers","getServers","tellActive","tellWaiting","tellStopped","changePosition","changeUri","getOption","changeOption","getGlobalOption","changeGlobalOption","getGlobalStat","purgeDownloadResult","removeDownloadResult","getVersion","getSessionInfo","shutdown","forceShutdown","saveSession","system.multicall","system.listMethods","system.listNotifications"],i.notifications=["onDownloadStart","onDownloadPause","onDownloadStop","onDownloadComplete","onDownloadError","onBtDownloadComplete"],i.events=["onopen","onclose","onsend","onmessage"],i.options={secure:!1,host:"localhost",port:6800,secret:"",path:"/jsonrpc"},i.methods.forEach(function(t){var e=t.indexOf(".")>-1?t.split(".")[1]:t;i.prototype[e]=function(){return this.send.apply(this,[t].concat(Array.prototype.slice.call(arguments)))}}),i.notifications.forEach(function(t){i.prototype[t]=function(){}}),i.events.forEach(function(t){i.prototype[t]=function(){}}),n?t.exports=i:e.Aria2=i}(this)}).call(e,n(132)(t))}},[159]); \ No newline at end of file diff --git a/safari2aria.safariextension/static/js/global.9d70ea3a71522dcaeb1f.js b/safari2aria.safariextension/static/js/global.9d70ea3a71522dcaeb1f.js deleted file mode 100644 index d59707c..0000000 --- a/safari2aria.safariextension/static/js/global.9d70ea3a71522dcaeb1f.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([4],{159:function(t,e,n){"use strict";function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=D.language||navigator.language;return x()(O,[n,t],e.notfailback?"":[t," "].join(""))}function a(){var t={};D.rpcList.forEach(function(e,n){var o=e.url.match(/^(http|ws)(s)?(?:\:\/\/)(token\:[^@]*)?@?([^\:\/]*)\:?(\d*)(\/[^\/]*)/),a={host:o[4],port:o[5]||6800,secure:!(!o||!o[2]),secret:o[3]?o[3].split(":")[1]:"",path:o[6]||"/jsonrpc"};if(P[e.url])t[e.url]=P[e.url],t[e.url].rpc.name=e.name,delete P[e.url];else{var r=new I.Aria2(a);t[e.url]={aria2:r,rpc:e,push:e.push}}e.push&&i(t[e.url],e.name)});for(var e in P){var n=P[e].aria2;n&&n.socket&&1===n.socket.readyState&&P[e].aria2.close()}P=t}function i(t,e){var n=t.aria2;return!(!t.aria2||!t.aria2.socket||1!==n.socket.readyState)||(n.open().then(function(){s(t,e),t.reconnect&&(delete t.reconnect,T.success([o("Successful links to"),e]))}).catch(function(n){x()(safari,"application.activeBrowserWindow.activeTab.url")&&(!t.reconnect&&T.error([o("Make sure the aria2 is running, every 10 seconds will automatically retry")],[e,o("Connection fail")]),t.reconnect=!0),M=M||setInterval(function(){var t=0;S()(P,function(e){e.push&&(t+=i(e)?0:1)}),t||clearInterval(M)},1e4)}),!1)}function r(){x()(safari,"extension.popovers[0].contentWindow.tlwin.refreshTaskList")&&safari.extension.popovers[0].contentWindow.tlwin.refreshTaskList()}function s(t,e){var n=t.aria2,a=function(t){},i=function(t){r()},s=function(t,e){r(),c(n,t.gid).then(function(t){T.show(e?"error":"success",[t,o("Download"),o(e?"error":"success")])})};n.onDownloadStart=a,n.onDownloadPause=i,n.onDownloadStop=i,n.onDownloadComplete=s,n.onBtDownloadComplete=s,n.onDownloadError=function(t){s(t,!0)}}function c(t,e){return t.tellStatus(e,["bittorrent"]).then(function(n){return t.getFiles(e).then(function(t){return{files:t,bt:n}})}).then(function(t){var e=t.files[0].path,n=e.split("/").pop();return t.bt&&t.bt.info?bt.bittorrent.info.name:n}).catch(function(t){T.error([o("Failed to get task information")])})}function l(t){var e={},n=P[t[0].url],a=!!n&&n.aria2,i=D.enableCookie?"Cookie: "+t[3]:"";D.downloadPath&&(e.dir=D.downloadPath),a&&t[1]?a.addUri([t[1]],C({header:i,timeout:10,"content-disposition-default-utf8":!0,"user-agent":D.userAgent},e)).then(function(){T.success([o("Successfully added to the"),n.rpc.name,D.enableCookie?"":"(with cookie)"]),r()}).catch(function(t){T.error([o("Fail to Added to the"),n.rpc.name,D.enableCookie?"":"(without cookie)","("+t.message+")"]),console.log(t)}):T.error(["添加任务失败:没有url或者没有连接aria2"])}function u(t){"showOptions"===t.key&&f()}function f(){safari.application.activeBrowserWindow.openTab().url=safari.extension.baseURI+"options.html"}function d(){D=localStorage.getItem("safari2aria");try{D=JSON.parse(D||"{}")}catch(t){D={defaultRpcIndex:0}}j=D.filetypes?D.filetypes.split(" "):[];for(var t=0;t=0){var n=t.userInfo;n&&n.length&&n[0]||(t.target.disabled=!0)}}function g(t){n.i(A.a)(t.url,D,L)&&(t.preventDefault(),p("getCookie",function(e){l([E[D.defaultRpcIndex],t.url,t.target.url,e.cookie])}))}function w(t){E.forEach(function(e,n){t.contextMenu.appendContextMenuItem(["DownloadWithAria2",n].join("."),[o("Downloaded to"),e.name].join(""))}),D.enableXunleiLixian&&t.contextMenu.appendContextMenuItem("DownloadWithXunleilixian",[o("Import to thunder lixian")].join("")),D.enableBaiduLixian&&t.contextMenu.appendContextMenuItem("DownloadWithBaidulixian",[o("Import to baidu lixian")].join(""))}function y(t){R[t.name]&&R[t.name](t.message,t)}Object.defineProperty(e,"__esModule",{value:!0});var b=n(18),x=n.n(b),k=n(55),S=n.n(k),I=n(54),A=n(36),C=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t&&!n[82]&&e.enableTypefiles?!n.isCommandPressed:n.isCommandPressed){if(t.match(/magnet:[^\\"]+/))return!0;var o=t.substr(t.lastIndexOf(".")+1);o=o.toLowerCase();var a=e.filetypes?e.filetypes.split(" "):[];if(n.isShiftPressd)return!0;for(var i=0;i0&&(o.params=t.params);var a="http"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path;fetch(a,{method:"POST",body:JSON.stringify(o),headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(t){return t.json()}).then(function(t){n._onmessage(t)}).catch(e)},i.prototype.send=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof e[e.length-1]?e.pop():null;return this.exec(t,e,n)},i.prototype.exec=function(t,e,n){if("string"!=typeof t)throw new TypeError(t+" is not a string");0!==t.indexOf("system.")&&0!==t.indexOf("aria2.")&&(t="aria2."+t);var a={method:t,"json-rpc":"2.0",id:this.lastId++},i=this.secret?["token:"+this.secret]:[];Array.isArray(e)&&("system.multicall"===t?(Array.isArray(e[0])&&e[0].forEach(function(t){t.params||(t.params=[]),t.params=i.concat(t.params)}),i=e):i=i.concat(e)),i.length>0&&(a.params=i),this.onsend(a);var r=this;return this.socket&&1===this.socket.readyState?this.socket.send(JSON.stringify(a)):this.http(a,function(t){r.callbacks[a.id](t),delete r.callbacks[a.id]}),o()(function(t){r.callbacks[a.id]=t},n)},i.prototype._onmessage=function(t){if(this.onmessage(t),void 0!==t.id){var e=this.callbacks[t.id];e&&(t.error?e(t.error):e(null,t.result),delete this.callbacks[t.id])}else if(t.method){var n=t.method.split("aria2.")[1];0===n.indexOf("on")&&"function"==typeof this[n]&&i.notifications.indexOf(n)>-1&&this[n].apply(this,t.params)}},i.prototype.open=function(t){var e="ws"+(this.secure?"s":"")+"://"+this.host+":"+this.port+this.path,n=this.socket=new WebSocket(e),a=this,i=!1;return n.onmessage=function(t){a._onmessage(JSON.parse(t.data))},o()(function(t){n.onopen=function(){i||(t(),i=!0),a.onopen()},n.onclose=function(e){a.onclose(),1006==e.code&&(i||(t(e),i=!0))},n.onerror=function(e){i||(t(e),i=!0)}},t)},i.prototype.close=function(t){var e=this.socket;return o()(function(t){e?(e.addEventListener("close",function(){t()}),e.close()):t()},t)},i.methods=["addUri","addTorrent","addMetalink","remove","forceRemove","pause","pauseAll","forcePause","forcePauseAll","unpause","unpauseAll","tellStatus","getUris","getFiles","getPeers","getServers","tellActive","tellWaiting","tellStopped","changePosition","changeUri","getOption","changeOption","getGlobalOption","changeGlobalOption","getGlobalStat","purgeDownloadResult","removeDownloadResult","getVersion","getSessionInfo","shutdown","forceShutdown","saveSession","system.multicall","system.listMethods","system.listNotifications"],i.notifications=["onDownloadStart","onDownloadPause","onDownloadStop","onDownloadComplete","onDownloadError","onBtDownloadComplete"],i.events=["onopen","onclose","onsend","onmessage"],i.options={secure:!1,host:"localhost",port:6800,secret:"",path:"/jsonrpc"},i.methods.forEach(function(t){var e=t.indexOf(".")>-1?t.split(".")[1]:t;i.prototype[e]=function(){return this.send.apply(this,[t].concat(Array.prototype.slice.call(arguments)))}}),i.notifications.forEach(function(t){i.prototype[t]=function(){}}),i.events.forEach(function(t){i.prototype[t]=function(){}}),n?t.exports=i:e.Aria2=i}(this)}).call(e,n(132)(t))}},[159]); \ No newline at end of file diff --git a/safari2aria.safariextension/static/js/manifest.js b/safari2aria.safariextension/static/js/manifest.js index 6078a3b..f948ecd 100644 --- a/safari2aria.safariextension/static/js/manifest.js +++ b/safari2aria.safariextension/static/js/manifest.js @@ -1 +1 @@ -!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var i,u,f,s=0,l=[];s1?i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.delRpc(a)}}},[e._v(e._s(e.$t("Delete")))]):e._e()],1)})],2)]),e._v(" "),i("group",{attrs:{title:e.$t("Auxiliary Settings")}},[i("x-switch",{attrs:{title:e.$t("Enable cookie")},model:{value:e.enableCookie,callback:function(t){e.enableCookie=t},expression:"enableCookie"}}),e._v(" "),i("x-switch",{attrs:{title:e.$t("Catch iframe")},model:{value:e.catchIframe,callback:function(t){e.catchIframe=t},expression:"catchIframe"}})],1),e._v(" "),i("group",{attrs:{title:"User-Agent"}},[i("div",{staticClass:"cell rpcList"},[i("flexbox",{staticClass:"header"},[i("flexbox-item",{attrs:{span:.05}},[e._v("\n "+e._s(e.$t("Default"))+"\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.1}},[e._v("\n "+e._s(e.$t("Name"))+"\n ")]),e._v(" "),i("flexbox-item",[e._v("\n User-agent\n ")]),e._v(" "),i("div",{staticClass:"action"},[i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.addUa(t)}}},[e._v(e._s(e.$t("Add")))])],1)],1),e._v(" "),e._l(e.uaList,function(t,a){return i("flexbox",{key:a},[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:t.content,value:e.userAgent},on:{"update:value":function(t){e.userAgent=t}}})],1),e._v(" "),i("flexbox-item",{staticClass:"name",attrs:{span:.1}},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.name,callback:function(e){t.name=e},expression:"ua.name"}})],1),e._v(" "),i("flexbox-item",{staticClass:"content"},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.content,callback:function(e){t.content=e},expression:"ua.content"}})],1),e._v(" "),e.uaList.length>1?i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.delUa(a)}}},[e._v(e._s(e.$t("Delete")))]):e._e()],1)})],2)]),e._v(" "),i("group",{attrs:{title:e.$t("Download Path")}},[i("div",{staticClass:"cell pathList"},[i("flexbox",{staticClass:"header"},[i("flexbox-item",{attrs:{span:.05}},[e._v("\n "+e._s(e.$t("Default"))+"\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.1}},[e._v("\n "+e._s(e.$t("Name"))+"\n ")]),e._v(" "),i("flexbox-item",[e._v("\n "+e._s(e.$t("Path"))+"\n ")]),e._v(" "),i("div",{staticClass:"action"},[i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.addPath(t)}}},[e._v(e._s(e.$t("Add")))])],1)],1),e._v(" "),i("flexbox",[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:"",value:e.downloadPath},on:{"update:value":function(t){e.downloadPath=t}}})],1),e._v(" "),i("flexbox-item",{staticClass:"name",attrs:{span:.1}},[i("x-input",{attrs:{"show-clear":!1,value:e.$t("Default")}})],1),e._v(" "),i("flexbox-item",{staticClass:"content"},[i("x-input",{attrs:{"show-clear":!1,value:""}})],1)],1),e._v(" "),e._l(e.pathList,function(t,a){return i("flexbox",{key:a},[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:t.content,value:e.downloadPath},on:{"update:value":function(t){e.downloadPath=t}}})],1),e._v(" "),i("flexbox-item",{staticClass:"name",attrs:{span:.1}},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.name,callback:function(e){t.name=e},expression:"path.name"}})],1),e._v(" "),i("flexbox-item",{staticClass:"content"},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.content,callback:function(e){t.content=e},expression:"path.content"}})],1),e._v(" "),e.pathList.length>1?i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.delPath(a)}}},[e._v(e._s(e.$t("Delete")))]):e._e()],1)})],2)]),e._v(" "),i("group",{attrs:{title:e.$t("Download popover")}},[i("x-input",{staticClass:"right_input",attrs:{title:e.$t("Refresh interval"),type:"number","show-clear":!1},model:{value:e.refreshTime,callback:function(t){e.refreshTime=t},expression:"refreshTime"}},[i("span",{slot:"right"},[e._v(e._s(e.$t("s")))])]),e._v(" "),i("x-switch",{attrs:{title:e.$t("Enable bitfield chart")},model:{value:e.enableChart,callback:function(t){e.enableChart=t},expression:"enableChart"}})],1),e._v(" "),i("group",{attrs:{title:e.$t("Offline download")}},[i("x-switch",{attrs:{title:e.$t("xunlei")},model:{value:e.enableXunleiLixian,callback:function(t){e.enableXunleiLixian=t},expression:"enableXunleiLixian"}}),e._v(" "),i("x-switch",{attrs:{title:e.$t("baidu")},model:{value:e.enableBaiduLixian,callback:function(t){e.enableBaiduLixian=t},expression:"enableBaiduLixian"}})],1),e._v(" "),i("group",{attrs:{title:e.$t("other")}},[i("x-switch",{attrs:{title:e.$t("baidu pan check disable")},model:{value:e.disableBaiduLimit,callback:function(t){e.disableBaiduLimit=t},expression:"disableBaiduLimit"}})],1),e._v(" "),i("group",[i("x-button",{nativeOn:{click:function(t){e.save(e.index)}}},[e._v(e._s(e.$t("Save")))])],1)],1)},staticRenderFns:[]}},313:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-selector weui-cell",class:{"weui-cell_select":!e.readonly,"weui-cell_select-after":e.title}},[e.title?i("div",{staticClass:"weui-cell__hd"},[i("label",{staticClass:"weui-label",style:{width:e.$parent.labelWidth,textAlign:e.$parent.labelAlign,marginRight:e.$parent.labelMarginRight},attrs:{for:"vux-selector-"+e.uuid}},[e._v(e._s(e.title))])]):e._e(),e._v(" "),e.readonly?i("div",{staticClass:"weui-cell__ft vux-selector-readonly"},[e._v("\n "+e._s(e._f("findByKey")(e.value,e.processOptions))+"\n ")]):i("div",{staticClass:"weui-cell__bd"},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"weui-select",staticStyle:{color:"red"},style:{direction:e.direction,color:e.color},attrs:{id:"vux-selector-"+e.uuid,ddd:e.color,name:e.name},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.currentValue=t.target.multiple?i:i[0]}}},[e.showPlaceholder?i("option",{attrs:{value:""},domProps:{selected:void 0===e.value&&e.placeholder}},[e._v(e._s(e.placeholder))]):e._e(),e._v(" "),e.fixIos?i("option",{attrs:{disabled:""}}):e._e(),e._v(" "),e._l(e.processOptions,function(t){return i("option",{domProps:{value:t.key}},[e._v(e._s(t.value))])})],2)])])},staticRenderFns:[]}},32:function(e,t,i){i(84);var a=i(1)(i(68),i(100),null,null);e.exports=a.exports},323:function(e,t,i){i(235);var a=i(1)(i(167),i(313),null,null);e.exports=a.exports},327:function(e,t,i){i(234);var a=i(1)(i(172),i(312),null,null);e.exports=a.exports},58:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(7),n=i.n(a),l=i(20),s=i(108);t.default={components:{InlineDesc:n.a},props:i.i(s.a)(),beforeMount:function(){this.hasTitleSlot=!!this.$slots.title},computed:{valueClass:function(){return{"vux-cell-primary":"content"===this.primary||"left"===this.valueAlign,"vux-cell-align-left":"left"===this.valueAlign,"vux-cell-arrow-transition":!!this.arrowDirection,"vux-cell-arrow-up":"up"===this.arrowDirection,"vux-cell-arrow-down":"down"===this.arrowDirection}}},methods:{getLabelStyles:function(){return{width:this.$parent.labelWidth||this.$parent.$parent.labelWidth,textAlign:this.$parent.labelAlign||this.$parent.$parent.labelAlign,marginRight:this.$parent.labelMarginRight||this.$parent.$parent.labelMarginRight}},onClick:function(){!this.disabled&&i.i(l.a)(this.link,this.$router)}},data:function(){return{hasTitleSlot:!1}}}},59:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(15),n=i.n(a);t.default={components:{Icon:n.a},methods:{updateValue:function(){this.$emit("update:value",!this.value)}},props:{value:{type:Boolean,default:!1},type:{type:String,default:"default"}}}},60:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=["-moz-box-","-webkit-box-",""];t.default={props:{span:[Number,String],order:[Number,String]},beforeMount:function(){this.bodyWidth=document.documentElement.offsetWidth},methods:{buildWidth:function(e){return"number"==typeof e?e<1?e:e/12:"string"==typeof e?e.replace("px","")/this.bodyWidth:void 0}},computed:{style:function(){var e={};if(e["horizontal"===this.$parent.orient?"marginLeft":"marginTop"]=this.$parent.gutter+"px",this.span)for(var t=0;t=2&&e.length<=6},msg:"中文姓名"}};t.default={created:function(){var e=this;this.currentValue=this.value||"",this.title||this.placeholder||this.currentValue||console.warn("no title and no placeholder?"),this.required&&!this.currentValue&&(this.valid=!1),this.handleChangeEvent=!0,this.debounce&&(this._debounce=i.i(p.a)(function(){e.$emit("on-change",e.currentValue)},this.debounce))},mounted:function(){this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0)},beforeDestroy:function(){this._debounce&&this._debounce.cancel()},mixins:[a.a],components:{Icon:l.a,InlineDesc:r.a},props:{title:{type:String,default:""},type:{type:String,default:"text"},placeholder:String,value:[String,Number],name:String,readonly:Boolean,disabled:Boolean,keyboard:String,inlineDesc:String,isType:[String,Function],min:Number,max:Number,showClear:{type:Boolean,default:!0},equalWith:String,textAlign:String,autocomplete:{type:String,default:"off"},autocapitalize:{type:String,default:"off"},autocorrect:{type:String,default:"off"},spellcheck:{type:String,default:"false"},novalidate:{type:Boolean,default:!1},iconType:String,debounce:Number,placeholderAlign:String,labelWidth:String},computed:{labelStyles:function(){return{width:this.labelWidthComputed||this.$parent.labelWidth||this.labelWidthComputed,textAlign:this.$parent.labelAlign,marginRight:this.$parent.labelMarginRight}},pattern:function(){if("number"===this.keyboard||"china-mobile"===this.isType)return"[0-9]*"},labelWidthComputed:function(){var e=this.title.replace(/[^x00-xff]/g,"00").length/2+1;if(e<10)return e+"em"},hasErrors:function(){return Object.keys(this.errors).length>0},inputStyle:function(){if(this.textAlign)return{textAlign:this.textAlign}},showWarn:function(){return!this.novalidate&&!this.equalWith&&!this.valid&&this.firstError&&(this.touched||this.forceShowError)}},methods:{reset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dirty=!1,this.currentValue=e,this.firstError="",this.valid=!0},clear:function(){this.currentValue="",this.focus()},focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},focusHandler:function(){this.$emit("on-focus",this.currentValue)},onBlur:function(){this.setTouched(),this.validate(),this.$emit("on-blur",this.currentValue)},onKeyUp:function(e){"Enter"===e.key&&(e.target.blur(),this.$emit("on-enter",this.currentValue))},getError:function(){var e=Object.keys(this.errors)[0];this.firstError=this.errors[e]},validate:function(){if(void 0!==this.equalWith)return void this.validateEqual();if(this.errors={},!this.currentValue&&!this.required)return void(this.valid=!0);if(!this.currentValue&&this.required)return this.valid=!1,this.errors.required="必填哦",void this.getError();if("string"==typeof this.isType){var e=h[this.isType];if(e){if(this.valid=e.fn(this.currentValue),!this.valid)return void(this.errors.format=e.msg+"格式不对哦~");delete this.errors.format}}if("function"==typeof this.isType){var t=this.isType(this.currentValue);if(this.valid=t.valid,!this.valid)return this.errors.format=t.msg,this.forceShowError=!0,void(this.firstError||this.getError());delete this.errors.format}if(this.min){if(this.currentValue.lengththis.max)return this.errors.max="最多可以输入"+this.max+"个字符哦",this.valid=!1,void(this.forceShowError=!0);this.forceShowError=!1,delete this.errors.max}this.valid=!0},validateEqual:function(){return!this.equalWith&&this.currentValue?(this.valid=!1,void(this.errors.equal="输入不一致")):(this.dirty||this.currentValue.length>=this.equalWith.length)&&this.currentValue!==this.equalWith?(this.valid=!1,void(this.errors.equal="输入不一致")):void(!this.currentValue&&this.required?this.valid=!1:(this.valid=!0,delete this.errors.equal))}},data:function(){return{hasRestrictedLabel:!1,firstError:"",forceShowError:!1,hasLengthEqual:!1,valid:!0,currentValue:""}},watch:{valid:function(){this.getError()},value:function(e){this.currentValue=e},equalWith:function(e){e&&this.equalWith?(e.length===this.equalWith.length&&(this.hasLengthEqual=!0),this.validateEqual()):this.validate()},currentValue:function(e){!this.equalWith&&e&&this.validateEqual(),e&&this.equalWith?(e.length===this.equalWith.length&&(this.hasLengthEqual=!0),this.validateEqual()):this.validate(),this.$emit("input",e),this._debounce?this._debounce():this.$emit("on-change",e)}}}},67:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(7),n=i.n(a);t.default={components:{InlineDesc:n.a},computed:{labelStyle:function(){var e=/<\/?[^>]*>/.test(this.title);return{display:"block",width:Math.min(e?5:this.title.length+1,14)+"em"}}},props:{title:{type:String,required:!0},disabled:Boolean,value:{type:Boolean,default:!1},inlineDesc:[String,Boolean,Number]},data:function(){return{currentValue:this.value}},watch:{currentValue:function(e){this.$emit("input",e),this.$emit("on-change",e)},value:function(e){this.currentValue=e}}}},68:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(19),n=i(7),l=i.n(n),s=i(106),r=i.n(s);t.default={minxins:[a.a],mounted:function(){var e=this;this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0),this.$nextTick(function(){e.autosize&&e.bindAutosize()})},components:{InlineDesc:l.a},props:{title:String,inlineDesc:String,showCounter:{type:Boolean,default:!0},max:Number,value:String,name:String,placeholder:String,readonly:Boolean,rows:{type:Number,default:3},cols:{type:Number,default:30},height:Number,autocomplete:{type:String,default:"off"},autocapitalize:{type:String,default:"off"},autocorrect:{type:String,default:"off"},spellcheck:{type:String,default:"false"},autosize:Boolean},created:function(){this.currentValue=this.value},watch:{autosize:function(e){this.unbindAutosize(),e&&this.bindAutosize()},value:function(e){this.currentValue=e},currentValue:function(e){this.max&&e&&e.length>this.max&&(this.currentValue=e.slice(0,this.max)),this.$emit("input",this.currentValue),this.$emit("on-change",this.currentValue)}},data:function(){return{hasRestrictedLabel:!1,currentValue:""}},computed:{count:function(){var e=0;return this.currentValue&&(e=this.currentValue.replace(/\n/g,"aa").length),e>this.max?this.max:e},textareaStyle:function(){if(this.height)return{height:this.height+"px"}},labelStyles:function(){return{width:this.$parent.labelWidth||this.labelWidth+"em",textAlign:this.$parent.labelAlign,marginRight:this.$parent.labelMarginRight}},labelWidth:function(){return this.title.replace(/[^x00-xff]/g,"00").length/2+1}},methods:{bindAutosize:function(){r()(this.$refs.textarea)},unbindAutosize:function(){r.a.destroy(this.$refs.textarea)},focus:function(){this.$refs.textarea.focus()}},beforeDestroy:function(){this.unbindAutosize()}}},69:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(15),n=i.n(a);t.default={components:{Icon:n.a},methods:{updateValue:function(){this.$emit("update:value",this.val)}},props:{value:[String,Number],val:[String,Number],type:{type:String,default:"default"}}}},7:function(e,t,i){i(81);var a=i(1)(null,i(97),null,null);e.exports=a.exports},73:function(e,t){},74:function(e,t){},75:function(e,t){},76:function(e,t){},77:function(e,t){},78:function(e,t){},79:function(e,t){},80:function(e,t){},81:function(e,t){},82:function(e,t){},83:function(e,t){},84:function(e,t){},88:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",{staticClass:"weui-btn",class:e.classes,attrs:{disabled:e.disabled,type:e.actionType},on:{click:e.onClick}},[e.showLoading?i("i",{staticClass:"weui-loading"}):e._e(),e._v(" "),e._t("default",[e._v(e._s(e.text))])],2)},staticRenderFns:[]}},89:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"vux-flexbox",class:{"vux-flex-col":"vertical"===e.orient,"vux-flex-row":"horizontal"===e.orient},style:e.styles},[e._t("default")],2)},staticRenderFns:[]}},90:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-header"},[i("div",{staticClass:"vux-header-left"},[e._t("overwrite-left",[i("transition",{attrs:{name:e.transition}},[i("a",{directives:[{name:"show",rawName:"v-show",value:e._leftOptions.showBack,expression:"_leftOptions.showBack"}],staticClass:"vux-header-back",on:{click:[function(t){if(!("button"in t)&&e._k(t.keyCode,"preventDefault"))return null},e.onClickBack]}},[e._v(e._s(void 0===e._leftOptions.backText?"返回":e._leftOptions.backText))])]),e._v(" "),i("transition",{attrs:{name:e.transition}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e._leftOptions.showBack,expression:"_leftOptions.showBack"}],staticClass:"left-arrow",on:{click:e.onClickBack}})])]),e._v(" "),e._t("left")],2),e._v(" "),i("h1",{staticClass:"vux-header-title",on:{click:function(t){e.$emit("on-click-title")}}},[e._t("default",[i("transition",{attrs:{name:e.transition}},[i("span",{directives:[{name:"show",rawName:"v-show",value:e.title,expression:"title"}]},[e._v(e._s(e.title))])])])],2),e._v(" "),i("div",{staticClass:"vux-header-right"},[e.rightOptions.showMore?i("a",{staticClass:"vux-header-more",on:{click:[function(t){if(!("button"in t)&&e._k(t.keyCode,"preventDefault"))return null},function(t){e.$emit("on-click-more")}]}}):e._e(),e._v(" "),e._t("right")],2)])},staticRenderFns:[]}},91:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"weui-cell",class:{"vux-tap-active":e.isLink||!!e.link,"weui-cell_access":e.isLink||!!e.link,"vux-cell-no-border-intent":!e.borderIntent,"vux-cell-disabled":e.disabled},on:{click:e.onClick}},[i("div",{staticClass:"weui-cell__hd"},[e._t("icon")],2),e._v(" "),i("div",{staticClass:"vux-cell-bd",class:{"vux-cell-primary":"title"===e.primary&&"left"!==e.valueAlign}},[i("p",[e.title||e.hasTitleSlot?i("label",{staticClass:"vux-label",style:e.getLabelStyles()},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e._v(" "),e._t("after-title")],2),e._v(" "),i("inline-desc",[e._t("inline-desc",[e._v(e._s(e.inlineDesc))])],2)],1),e._v(" "),i("div",{staticClass:"weui-cell__ft",class:e.valueClass},[e._t("value"),e._v(" "),e._t("default",[e._v(e._s(e.value))]),e._v(" "),e.isLoading?i("i",{staticClass:"weui-loading"}):e._e()],2),e._v(" "),e._t("child")],2)},staticRenderFns:[]}},92:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-check-icon",on:{click:e.updateValue}},[i("icon",{directives:[{name:"show",rawName:"v-show",value:"default"===e.type&&e.value===e.val,expression:"type === 'default' && value === val"}],attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:"plain"===e.type&&e.value===e.val,expression:"type === 'plain' && value === val"}],attrs:{type:"success_circle"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.value!==e.val,expression:"value !== val"}],attrs:{type:"circle"}}),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"radio",attrs:{type:"radio"},domProps:{value:e.val,checked:e._q(e.value,e.val)},on:{__c:function(t){e.value=e.val}}}),e._v(" "),i("span",[e._t("default")],2)],1)},staticRenderFns:[]}},93:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-x-switch weui-cell weui-cell_switch"},[i("div",{staticClass:"weui-cell__bd"},[i("label",{staticClass:"weui-label",style:e.labelStyle,domProps:{innerHTML:e._s(e.title)}}),e._v(" "),e.inlineDesc?i("inline-desc",[e._v(e._s(e.inlineDesc))]):e._e()],1),e._v(" "),i("div",{staticClass:"weui-cell__ft"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"weui-switch",attrs:{type:"checkbox",disabled:e.disabled},domProps:{checked:Array.isArray(e.currentValue)?e._i(e.currentValue,null)>-1:e.currentValue},on:{__c:function(t){var i=e.currentValue,a=t.target,n=!!a.checked;if(Array.isArray(i)){var l=e._i(i,null);n?l<0&&(e.currentValue=i.concat(null)):l>-1&&(e.currentValue=i.slice(0,l).concat(i.slice(l+1)))}else e.currentValue=n}}})])])},staticRenderFns:[]}},94:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"vux-flexbox-item",style:e.style},[e._t("default")],2)},staticRenderFns:[]}},95:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-check-icon",on:{click:e.updateValue}},[i("icon",{directives:[{name:"show",rawName:"v-show",value:"default"===e.type&&e.value,expression:"type === 'default' && value"}],attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:"plain"===e.type&&e.value,expression:"type === 'plain' && value"}],attrs:{type:"success_circle"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:!e.value,expression:"!value"}],attrs:{type:"circle"}}),e._v(" "),i("span",[e._t("default")],2)],1)},staticRenderFns:[]}},96:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-x-input weui-cell",class:{"weui-cell_warn":e.showWarn}},[i("div",{staticClass:"weui-cell__hd"},[e.hasRestrictedLabel?i("div",{style:e.labelStyles},[e._t("restricted-label")],2):e._e(),e._v(" "),e._t("label",[e.title?i("label",{staticClass:"weui-label",style:{width:e.labelWidth||e.$parent.labelWidth||e.labelWidthComputed,textAlign:e.$parent.labelAlign,marginRight:e.$parent.labelMarginRight},domProps:{innerHTML:e._s(e.title)}}):e._e(),e._v(" "),e.inlineDesc?i("inline-desc",[e._v(e._s(e.inlineDesc))]):e._e()])],2),e._v(" "),i("div",{staticClass:"weui-cell__bd weui-cell__primary",class:e.placeholderAlign?"vux-x-input-placeholder-"+e.placeholderAlign:""},[e.type&&"text"!==e.type?e._e():i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"text",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e._v(" "),"number"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"number",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:[e.onBlur,function(t){e.$forceUpdate()}],keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e(),e._v(" "),"email"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"email",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e(),e._v(" "),"password"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"password",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e(),e._v(" "),"tel"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"tel",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e()]),e._v(" "),i("div",{staticClass:"weui-cell__ft"},[i("icon",{directives:[{name:"show",rawName:"v-show",value:!e.equalWith&&e.showClear&&e.currentValue&&!e.readonly&&!e.disabled,expression:"!equalWith && showClear && currentValue && !readonly && !disabled"}],attrs:{type:"clear"},nativeOn:{click:function(t){e.clear(t)}}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.showWarn,expression:"showWarn"}],staticClass:"vux-input-icon",attrs:{type:"warn",title:e.valid?"":e.firstError}}),e._v(" "),!e.novalidate&&e.hasLengthEqual&&e.dirty&&e.equalWith&&!e.valid?i("icon",{staticClass:"vux-input-icon",attrs:{type:"warn"}}):e._e(),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:!e.novalidate&&e.equalWith&&e.equalWith===e.currentValue&&e.valid,expression:"!novalidate && equalWith && equalWith === currentValue && valid"}],attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.novalidate&&"success"===e.iconType,expression:"novalidate && iconType === 'success'"}],staticClass:"vux-input-icon",attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.novalidate&&"error"===e.iconType,expression:"novalidate && iconType === 'error'"}],staticClass:"vux-input-icon",attrs:{type:"warn"}}),e._v(" "),e._t("right")],2)])},staticRenderFns:[]}},97:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"vux-label-desc"},[e._t("default")],2)},staticRenderFns:[]}},98:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("i",{class:[e.className,e.isMsg?"weui-icon_msg":""]})},staticRenderFns:[]}},99:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.title?i("div",{staticClass:"weui-cells__title",style:{color:e.titleColor},domProps:{innerHTML:e._s(e.title)}}):e._e(),e._v(" "),i("div",{staticClass:"weui-cells",class:{"vux-no-group-title":!e.title},style:{marginTop:"number"==typeof e.gutter?e.gutter+"px":e.gutter}},[e._t("after-title"),e._v(" "),e._t("default")],2)])},staticRenderFns:[]}}},[160]); \ No newline at end of file diff --git a/safari2aria.safariextension/static/js/options.94f969bf94838d901352.js b/safari2aria.safariextension/static/js/options.94f969bf94838d901352.js new file mode 100644 index 0000000..4457ccc --- /dev/null +++ b/safari2aria.safariextension/static/js/options.94f969bf94838d901352.js @@ -0,0 +1 @@ +webpackJsonp([2],{100:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"weui-cell vux-x-textarea"},[i("div",{staticClass:"weui-cell__hd"},[e.hasRestrictedLabel?i("div",{style:e.labelStyles},[e._t("restricted-label")],2):e._e(),e._v(" "),e._t("label",[e.title?i("label",{staticClass:"weui-label",style:{width:e.$parent.labelWidth||e.labelWidth+"em",textAlign:e.$parent.labelAlign,marginRight:e.$parent.labelMarginRight},domProps:{innerHTML:e._s(e.title)}}):e._e(),e._v(" "),e.inlineDesc?i("inline-desc",[e._v(e._s(e.inlineDesc))]):e._e()])],2),e._v(" "),i("div",{staticClass:"weui-cell__bd"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"textarea",staticClass:"weui-textarea",style:e.textareaStyle,attrs:{autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,placeholder:e.placeholder,readonly:e.readonly,name:e.name,rows:e.rows,cols:e.cols,maxlength:e.max},domProps:{value:e.currentValue},on:{focus:function(t){e.$emit("on-focus")},blur:function(t){e.$emit("on-blur")},input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showCounter&&e.max,expression:"showCounter && max"}],staticClass:"weui-textarea-counter",on:{click:e.focus}},[i("span",[e._v(e._s(e.count))]),e._v("/"+e._s(e.max)+"\n ")])])])},staticRenderFns:[]}},101:function(e,t,i){i(77);var a=i(1)(i(69),i(92),null,null);e.exports=a.exports},147:function(e,t,i){"use strict";var a=i(12),n=i(131),l=i(327),s=i.n(l);a.a.use(n.a),t.a=new n.a({routes:[{path:"/",name:"options",component:s.a}]})},15:function(e,t,i){i(82);var a=i(1)(i(63),i(98),null,null);e.exports=a.exports},154:function(e,t,i){i(229);var a=i(1)(i(171),i(307),null,null);e.exports=a.exports},160:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(12),n=i(154),l=i.n(n),s=i(147),r=i(56);a.a.use(r.a);var o=new r.a({locale:navigator.language});a.a.config.productionTip=!1,new a.a({router:s.a,i18n:o,render:function(e){return e(l.a)}}).$mount("#app-box")},167:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(156),n=i.n(a),l=i(183),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){var i=n()(t,function(t){return t.key===e});return i?i.value:e};t.default={mixins:[l.a],created:function(){void 0!==this.value&&(this.currentValue=this.value)},computed:{fixIos:function(){return!this.placeholder&&s("undefined"===this.value||""===this.value)&&this.isIOS&&this.title},color:function(){return this.showPlaceholder?"#A9A9A9":""},processOptions:function(){return this.options.length&&{}.hasOwnProperty.call(this.options[0],"key")?this.options:this.options.map(function(e){return{key:e,value:e}})},showPlaceholder:function(){return!(void 0!==this.value&&""!==this.value||!this.placeholder)}},filters:{findByKey:r},watch:{value:function(e){this.currentValue=e},currentValue:function(e){this.$emit("input",e),this.$emit("on-change",e)}},props:{title:String,direction:String,options:{type:Array,required:!0},name:String,placeholder:String,readonly:Boolean,value:[Boolean,String,Number,Object]},data:function(){return{currentValue:"",isIOS:/iPad|iPhone|iPod/.test(window.navigator.userAgent)}}}},171:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"app"}},172:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(101),n=i.n(a),l=i(29),s=i.n(l),r=i(323),o=i.n(r),u=i(27),c=i.n(u),d=i(30),p=i.n(d),h=i(32),v=i.n(h),f=i(24),m=i.n(f),_=i(26),x=i.n(_),b=i(25),g=i.n(b),y=i(28),w=i.n(y),k=i(31),$=i.n(k),C=i(23),S=i.n(C);t.default={components:{XHeader:s.a,Group:c.a,Selector:o.a,XInput:p.a,XTextarea:v.a,CheckIcon:m.a,Flexbox:x.a,FlexboxItem:g.a,XButton:w.a,XSwitch:$.a,Cell:S.a,Radio:n.a},i18n:{messages:{"zh-CN":{Setting:"设置","Auto intercept":"自动拦截","File type":"文件类型","Aria2 Address":"aria2服务器地址",Add:"新增",Default:"默认",Push:"推送",Name:"名称",Url:"地址",Path:"路径","Download Path":"下载路径",Action:"操作",Delete:"删除","Auxiliary Settings":"辅助设置","Enable cookie":"启用cookie","Catch iframe":"启用iframe拦截","Download popover":"下载队列浮窗","Refresh interval":"列表刷新间隔",s:"秒",Save:"保存","baidu pan check disable":"屏蔽百度云大文件检测","baidu pan extend cookie":"百度盘扩展cookie",xunlei:"迅雷离线",baidu:"百度离线","Offline download":"右键离线下载菜单","Enable bitfield chart":"启用文件分块图表"}}},data:function(){var e=localStorage.getItem("safari2aria");try{e=JSON.parse(e||"{}")}catch(t){e={}}return e.language&&(this.$i18n.locale=e.language),Object.assign({enableCookie:!0,userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4",catchIframe:!0,enableTypefiles:!0,enableXunleiLixian:!0,downloadPath:"",languageList:[{key:"en",value:"English"},{key:"zh-CN",value:"中文"}],language:navigator.language,enableBaiduLixian:!0,disableBaiduLimit:!0,enableChart:!1,baidupanAutoRestart:!1,baidupanLimitSpeed:1e3,baiduPanCookie:"",defaultRpcIndex:0,refreshTime:5,uaList:[{name:"safari 10",content:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4"}],pathList:[],filetypes:"mp4 flv m4v asf mpeg mkv mpg divx div 3gp wmv avi mov vob ogg ogv webm flac m4a mp3 aac wma wav ape exe app pkg zip rar dmg iso 7z jpg png jpeg tiff gif bmp pdf epub pages pptx keynote rtf doc docx",rpcList:[{name:"localhost",push:!1,url:"http://127.0.0.1:6800/jsonrpc"}]},e)},watch:{language:function(e){this.$i18n.locale=e}},methods:{addRpc:function(){this.rpcList.push({name:"localhost",push:!1,url:"http://127.0.0.1:6800/jsonrpc"})},delRpc:function(e){this.rpcList.splice(e,1)},addUa:function(){this.uaList.push({name:"",content:""})},delUa:function(e){this.uaList.splice(e,1)},addPath:function(){this.pathList.push({name:"",content:""})},delPath:function(e){this.pathList.splice(e,1)},save:function(){var e=JSON.parse(JSON.stringify(this.$data));safari.self.tab.dispatchMessage("updateSafari2Aria",e),localStorage.setItem("safari2aria",JSON.stringify(e)),window.close()}}}},229:function(e,t){},23:function(e,t,i){i(76);var a=i(1)(i(58),i(91),null,null);e.exports=a.exports},234:function(e,t){},235:function(e,t){},24:function(e,t,i){i(79);var a=i(1)(i(59),i(95),null,null);e.exports=a.exports},25:function(e,t,i){var a=i(1)(i(60),i(94),null,null);e.exports=a.exports},26:function(e,t,i){i(74);var a=i(1)(i(61),i(89),null,null);e.exports=a.exports},27:function(e,t,i){i(83);var a=i(1)(i(62),i(99),null,null);e.exports=a.exports},28:function(e,t,i){i(73);var a=i(1)(i(64),i(88),null,null);e.exports=a.exports},29:function(e,t,i){i(75);var a=i(1)(i(65),i(90),null,null);e.exports=a.exports},30:function(e,t,i){i(80);var a=i(1)(i(66),i(96),null,null);e.exports=a.exports},307:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"app"}},[i("router-view")],1)},staticRenderFns:[]}},31:function(e,t,i){i(78);var a=i(1)(i(67),i(93),null,null);e.exports=a.exports},312:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("x-header",{attrs:{"left-options":{showBack:!1}}},[e._v(e._s(e.$t("Setting")))]),e._v(" "),i("group",[i("selector",{attrs:{title:e.$t("Language"),options:e.languageList},model:{value:e.language,callback:function(t){e.language=t},expression:"language"}})],1),e._v(" "),i("group",[i("x-switch",{attrs:{title:e.$t("Auto intercept")},model:{value:e.enableTypefiles,callback:function(t){e.enableTypefiles=t},expression:"enableTypefiles"}}),e._v(" "),i("x-textarea",{directives:[{name:"show",rawName:"v-show",value:e.enableTypefiles,expression:"enableTypefiles"}],attrs:{title:e.$t("File type")},model:{value:e.filetypes,callback:function(t){e.filetypes=t},expression:"filetypes"}})],1),e._v(" "),i("group",{attrs:{title:e.$t("Aria2 Address")}},[i("div",{staticClass:"cell rpcList"},[i("flexbox",{staticClass:"header"},[i("flexbox-item",{attrs:{span:.05}},[e._v("\n "+e._s(e.$t("Default"))+"\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.05}},[e._v("\n "+e._s(e.$t("Push"))+"\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.1}},[e._v("\n "+e._s(e.$t("Name"))+"\n ")]),e._v(" "),i("flexbox-item",[e._v("\n "+e._s(e.$t("Url"))+"\n ")]),e._v(" "),i("div",{staticClass:"action"},[i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.addRpc(t)}}},[e._v(e._s(e.$t("Add")))])],1)],1),e._v(" "),e._l(e.rpcList,function(t,a){return i("flexbox",{key:a},[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:a,value:e.defaultRpcIndex},on:{"update:value":function(t){e.defaultRpcIndex=t}}})],1),e._v(" "),i("flexbox-item",{attrs:{span:.05}},[i("check-icon",{attrs:{value:t.push},on:{"update:value":function(e){t.push=e}}})],1),e._v(" "),i("flexbox-item",{staticClass:"name",attrs:{span:.1}},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.name,callback:function(e){t.name=e},expression:"rpc.name"}})],1),e._v(" "),i("flexbox-item",{staticClass:"url"},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.url,callback:function(e){t.url=e},expression:"rpc.url"}})],1),e._v(" "),e.rpcList.length>1?i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.delRpc(a)}}},[e._v(e._s(e.$t("Delete")))]):e._e()],1)})],2)]),e._v(" "),i("group",{attrs:{title:e.$t("Auxiliary Settings")}},[i("x-switch",{attrs:{title:e.$t("Enable cookie")},model:{value:e.enableCookie,callback:function(t){e.enableCookie=t},expression:"enableCookie"}}),e._v(" "),i("x-switch",{attrs:{title:e.$t("Catch iframe")},model:{value:e.catchIframe,callback:function(t){e.catchIframe=t},expression:"catchIframe"}})],1),e._v(" "),i("group",{attrs:{title:"User-Agent"}},[i("div",{staticClass:"cell rpcList"},[i("flexbox",{staticClass:"header"},[i("flexbox-item",{attrs:{span:.05}},[e._v("\n "+e._s(e.$t("Default"))+"\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.1}},[e._v("\n "+e._s(e.$t("Name"))+"\n ")]),e._v(" "),i("flexbox-item",[e._v("\n User-agent\n ")]),e._v(" "),i("div",{staticClass:"action"},[i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.addUa(t)}}},[e._v(e._s(e.$t("Add")))])],1)],1),e._v(" "),e._l(e.uaList,function(t,a){return i("flexbox",{key:a},[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:t.content,value:e.userAgent},on:{"update:value":function(t){e.userAgent=t}}})],1),e._v(" "),i("flexbox-item",{staticClass:"name",attrs:{span:.1}},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.name,callback:function(e){t.name=e},expression:"ua.name"}})],1),e._v(" "),i("flexbox-item",{staticClass:"content"},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.content,callback:function(e){t.content=e},expression:"ua.content"}})],1),e._v(" "),e.uaList.length>1?i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.delUa(a)}}},[e._v(e._s(e.$t("Delete")))]):e._e()],1)})],2)]),e._v(" "),i("group",{attrs:{title:e.$t("Download Path")}},[i("div",{staticClass:"cell pathList"},[i("flexbox",{staticClass:"header"},[i("flexbox-item",{attrs:{span:.05}},[e._v("\n "+e._s(e.$t("Default"))+"\n ")]),e._v(" "),i("flexbox-item",{attrs:{span:.1}},[e._v("\n "+e._s(e.$t("Name"))+"\n ")]),e._v(" "),i("flexbox-item",[e._v("\n "+e._s(e.$t("Path"))+"\n ")]),e._v(" "),i("div",{staticClass:"action"},[i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.addPath(t)}}},[e._v(e._s(e.$t("Add")))])],1)],1),e._v(" "),i("flexbox",[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:"",value:e.downloadPath},on:{"update:value":function(t){e.downloadPath=t}}})],1),e._v(" "),i("flexbox-item",{staticClass:"name",attrs:{span:.1}},[i("x-input",{attrs:{"show-clear":!1,value:e.$t("Default")}})],1),e._v(" "),i("flexbox-item",{staticClass:"content"},[i("x-input",{attrs:{"show-clear":!1,value:""}})],1)],1),e._v(" "),e._l(e.pathList,function(t,a){return i("flexbox",{key:a},[i("flexbox-item",{attrs:{span:.05}},[i("Radio",{attrs:{val:t.content,value:e.downloadPath},on:{"update:value":function(t){e.downloadPath=t}}})],1),e._v(" "),i("flexbox-item",{staticClass:"name",attrs:{span:.1}},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.name,callback:function(e){t.name=e},expression:"path.name"}})],1),e._v(" "),i("flexbox-item",{staticClass:"content"},[i("x-input",{attrs:{"show-clear":!1},model:{value:t.content,callback:function(e){t.content=e},expression:"path.content"}})],1),e._v(" "),e.pathList.length>1?i("x-button",{attrs:{mini:""},nativeOn:{click:function(t){e.delPath(a)}}},[e._v(e._s(e.$t("Delete")))]):e._e()],1)})],2)]),e._v(" "),i("group",{attrs:{title:e.$t("Download popover")}},[i("x-input",{staticClass:"right_input",attrs:{title:e.$t("Refresh interval"),type:"number","show-clear":!1},model:{value:e.refreshTime,callback:function(t){e.refreshTime=t},expression:"refreshTime"}},[i("span",{slot:"right"},[e._v(e._s(e.$t("s")))])]),e._v(" "),i("x-switch",{attrs:{title:e.$t("Enable bitfield chart")},model:{value:e.enableChart,callback:function(t){e.enableChart=t},expression:"enableChart"}})],1),e._v(" "),i("group",{attrs:{title:e.$t("Offline download")}},[i("x-switch",{attrs:{title:e.$t("xunlei")},model:{value:e.enableXunleiLixian,callback:function(t){e.enableXunleiLixian=t},expression:"enableXunleiLixian"}}),e._v(" "),i("x-switch",{attrs:{title:e.$t("baidu")},model:{value:e.enableBaiduLixian,callback:function(t){e.enableBaiduLixian=t},expression:"enableBaiduLixian"}})],1),e._v(" "),i("group",{attrs:{title:e.$t("other")}},[i("x-switch",{attrs:{title:e.$t("baidu pan check disable")},model:{value:e.disableBaiduLimit,callback:function(t){e.disableBaiduLimit=t},expression:"disableBaiduLimit"}}),e._v(" "),i("x-input",{attrs:{title:e.$t("baidu pan extend cookie"),"show-clear":!1},model:{value:e.baiduPanCookie,callback:function(t){e.baiduPanCookie=t},expression:"baiduPanCookie"}})],1),e._v(" "),i("group",[i("x-button",{nativeOn:{click:function(t){e.save(e.index)}}},[e._v(e._s(e.$t("Save")))])],1)],1)},staticRenderFns:[]}},313:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-selector weui-cell",class:{"weui-cell_select":!e.readonly,"weui-cell_select-after":e.title}},[e.title?i("div",{staticClass:"weui-cell__hd"},[i("label",{staticClass:"weui-label",style:{width:e.$parent.labelWidth,textAlign:e.$parent.labelAlign,marginRight:e.$parent.labelMarginRight},attrs:{for:"vux-selector-"+e.uuid}},[e._v(e._s(e.title))])]):e._e(),e._v(" "),e.readonly?i("div",{staticClass:"weui-cell__ft vux-selector-readonly"},[e._v("\n "+e._s(e._f("findByKey")(e.value,e.processOptions))+"\n ")]):i("div",{staticClass:"weui-cell__bd"},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"weui-select",staticStyle:{color:"red"},style:{direction:e.direction,color:e.color},attrs:{id:"vux-selector-"+e.uuid,ddd:e.color,name:e.name},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.currentValue=t.target.multiple?i:i[0]}}},[e.showPlaceholder?i("option",{attrs:{value:""},domProps:{selected:void 0===e.value&&e.placeholder}},[e._v(e._s(e.placeholder))]):e._e(),e._v(" "),e.fixIos?i("option",{attrs:{disabled:""}}):e._e(),e._v(" "),e._l(e.processOptions,function(t){return i("option",{domProps:{value:t.key}},[e._v(e._s(t.value))])})],2)])])},staticRenderFns:[]}},32:function(e,t,i){i(84);var a=i(1)(i(68),i(100),null,null);e.exports=a.exports},323:function(e,t,i){i(235);var a=i(1)(i(167),i(313),null,null);e.exports=a.exports},327:function(e,t,i){i(234);var a=i(1)(i(172),i(312),null,null);e.exports=a.exports},58:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(7),n=i.n(a),l=i(20),s=i(108);t.default={components:{InlineDesc:n.a},props:i.i(s.a)(),beforeMount:function(){this.hasTitleSlot=!!this.$slots.title},computed:{valueClass:function(){return{"vux-cell-primary":"content"===this.primary||"left"===this.valueAlign,"vux-cell-align-left":"left"===this.valueAlign,"vux-cell-arrow-transition":!!this.arrowDirection,"vux-cell-arrow-up":"up"===this.arrowDirection,"vux-cell-arrow-down":"down"===this.arrowDirection}}},methods:{getLabelStyles:function(){return{width:this.$parent.labelWidth||this.$parent.$parent.labelWidth,textAlign:this.$parent.labelAlign||this.$parent.$parent.labelAlign,marginRight:this.$parent.labelMarginRight||this.$parent.$parent.labelMarginRight}},onClick:function(){!this.disabled&&i.i(l.a)(this.link,this.$router)}},data:function(){return{hasTitleSlot:!1}}}},59:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(15),n=i.n(a);t.default={components:{Icon:n.a},methods:{updateValue:function(){this.$emit("update:value",!this.value)}},props:{value:{type:Boolean,default:!1},type:{type:String,default:"default"}}}},60:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=["-moz-box-","-webkit-box-",""];t.default={props:{span:[Number,String],order:[Number,String]},beforeMount:function(){this.bodyWidth=document.documentElement.offsetWidth},methods:{buildWidth:function(e){return"number"==typeof e?e<1?e:e/12:"string"==typeof e?e.replace("px","")/this.bodyWidth:void 0}},computed:{style:function(){var e={};if(e["horizontal"===this.$parent.orient?"marginLeft":"marginTop"]=this.$parent.gutter+"px",this.span)for(var t=0;t=2&&e.length<=6},msg:"中文姓名"}};t.default={created:function(){var e=this;this.currentValue=this.value||"",this.title||this.placeholder||this.currentValue||console.warn("no title and no placeholder?"),this.required&&!this.currentValue&&(this.valid=!1),this.handleChangeEvent=!0,this.debounce&&(this._debounce=i.i(p.a)(function(){e.$emit("on-change",e.currentValue)},this.debounce))},mounted:function(){this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0)},beforeDestroy:function(){this._debounce&&this._debounce.cancel()},mixins:[a.a],components:{Icon:l.a,InlineDesc:r.a},props:{title:{type:String,default:""},type:{type:String,default:"text"},placeholder:String,value:[String,Number],name:String,readonly:Boolean,disabled:Boolean,keyboard:String,inlineDesc:String,isType:[String,Function],min:Number,max:Number,showClear:{type:Boolean,default:!0},equalWith:String,textAlign:String,autocomplete:{type:String,default:"off"},autocapitalize:{type:String,default:"off"},autocorrect:{type:String,default:"off"},spellcheck:{type:String,default:"false"},novalidate:{type:Boolean,default:!1},iconType:String,debounce:Number,placeholderAlign:String,labelWidth:String},computed:{labelStyles:function(){return{width:this.labelWidthComputed||this.$parent.labelWidth||this.labelWidthComputed,textAlign:this.$parent.labelAlign,marginRight:this.$parent.labelMarginRight}},pattern:function(){if("number"===this.keyboard||"china-mobile"===this.isType)return"[0-9]*"},labelWidthComputed:function(){var e=this.title.replace(/[^x00-xff]/g,"00").length/2+1;if(e<10)return e+"em"},hasErrors:function(){return Object.keys(this.errors).length>0},inputStyle:function(){if(this.textAlign)return{textAlign:this.textAlign}},showWarn:function(){return!this.novalidate&&!this.equalWith&&!this.valid&&this.firstError&&(this.touched||this.forceShowError)}},methods:{reset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dirty=!1,this.currentValue=e,this.firstError="",this.valid=!0},clear:function(){this.currentValue="",this.focus()},focus:function(){this.$refs.input.focus()},blur:function(){this.$refs.input.blur()},focusHandler:function(){this.$emit("on-focus",this.currentValue)},onBlur:function(){this.setTouched(),this.validate(),this.$emit("on-blur",this.currentValue)},onKeyUp:function(e){"Enter"===e.key&&(e.target.blur(),this.$emit("on-enter",this.currentValue))},getError:function(){var e=Object.keys(this.errors)[0];this.firstError=this.errors[e]},validate:function(){if(void 0!==this.equalWith)return void this.validateEqual();if(this.errors={},!this.currentValue&&!this.required)return void(this.valid=!0);if(!this.currentValue&&this.required)return this.valid=!1,this.errors.required="必填哦",void this.getError();if("string"==typeof this.isType){var e=h[this.isType];if(e){if(this.valid=e.fn(this.currentValue),!this.valid)return void(this.errors.format=e.msg+"格式不对哦~");delete this.errors.format}}if("function"==typeof this.isType){var t=this.isType(this.currentValue);if(this.valid=t.valid,!this.valid)return this.errors.format=t.msg,this.forceShowError=!0,void(this.firstError||this.getError());delete this.errors.format}if(this.min){if(this.currentValue.lengththis.max)return this.errors.max="最多可以输入"+this.max+"个字符哦",this.valid=!1,void(this.forceShowError=!0);this.forceShowError=!1,delete this.errors.max}this.valid=!0},validateEqual:function(){return!this.equalWith&&this.currentValue?(this.valid=!1,void(this.errors.equal="输入不一致")):(this.dirty||this.currentValue.length>=this.equalWith.length)&&this.currentValue!==this.equalWith?(this.valid=!1,void(this.errors.equal="输入不一致")):void(!this.currentValue&&this.required?this.valid=!1:(this.valid=!0,delete this.errors.equal))}},data:function(){return{hasRestrictedLabel:!1,firstError:"",forceShowError:!1,hasLengthEqual:!1,valid:!0,currentValue:""}},watch:{valid:function(){this.getError()},value:function(e){this.currentValue=e},equalWith:function(e){e&&this.equalWith?(e.length===this.equalWith.length&&(this.hasLengthEqual=!0),this.validateEqual()):this.validate()},currentValue:function(e){!this.equalWith&&e&&this.validateEqual(),e&&this.equalWith?(e.length===this.equalWith.length&&(this.hasLengthEqual=!0),this.validateEqual()):this.validate(),this.$emit("input",e),this._debounce?this._debounce():this.$emit("on-change",e)}}}},67:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(7),n=i.n(a);t.default={components:{InlineDesc:n.a},computed:{labelStyle:function(){var e=/<\/?[^>]*>/.test(this.title);return{display:"block",width:Math.min(e?5:this.title.length+1,14)+"em"}}},props:{title:{type:String,required:!0},disabled:Boolean,value:{type:Boolean,default:!1},inlineDesc:[String,Boolean,Number]},data:function(){return{currentValue:this.value}},watch:{currentValue:function(e){this.$emit("input",e),this.$emit("on-change",e)},value:function(e){this.currentValue=e}}}},68:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(19),n=i(7),l=i.n(n),s=i(106),r=i.n(s);t.default={minxins:[a.a],mounted:function(){var e=this;this.$slots&&this.$slots["restricted-label"]&&(this.hasRestrictedLabel=!0),this.$nextTick(function(){e.autosize&&e.bindAutosize()})},components:{InlineDesc:l.a},props:{title:String,inlineDesc:String,showCounter:{type:Boolean,default:!0},max:Number,value:String,name:String,placeholder:String,readonly:Boolean,rows:{type:Number,default:3},cols:{type:Number,default:30},height:Number,autocomplete:{type:String,default:"off"},autocapitalize:{type:String,default:"off"},autocorrect:{type:String,default:"off"},spellcheck:{type:String,default:"false"},autosize:Boolean},created:function(){this.currentValue=this.value},watch:{autosize:function(e){this.unbindAutosize(),e&&this.bindAutosize()},value:function(e){this.currentValue=e},currentValue:function(e){this.max&&e&&e.length>this.max&&(this.currentValue=e.slice(0,this.max)),this.$emit("input",this.currentValue),this.$emit("on-change",this.currentValue)}},data:function(){return{hasRestrictedLabel:!1,currentValue:""}},computed:{count:function(){var e=0;return this.currentValue&&(e=this.currentValue.replace(/\n/g,"aa").length),e>this.max?this.max:e},textareaStyle:function(){if(this.height)return{height:this.height+"px"}},labelStyles:function(){return{width:this.$parent.labelWidth||this.labelWidth+"em",textAlign:this.$parent.labelAlign,marginRight:this.$parent.labelMarginRight}},labelWidth:function(){return this.title.replace(/[^x00-xff]/g,"00").length/2+1}},methods:{bindAutosize:function(){r()(this.$refs.textarea)},unbindAutosize:function(){r.a.destroy(this.$refs.textarea)},focus:function(){this.$refs.textarea.focus()}},beforeDestroy:function(){this.unbindAutosize()}}},69:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(15),n=i.n(a);t.default={components:{Icon:n.a},methods:{updateValue:function(){this.$emit("update:value",this.val)}},props:{value:[String,Number],val:[String,Number],type:{type:String,default:"default"}}}},7:function(e,t,i){i(81);var a=i(1)(null,i(97),null,null);e.exports=a.exports},73:function(e,t){},74:function(e,t){},75:function(e,t){},76:function(e,t){},77:function(e,t){},78:function(e,t){},79:function(e,t){},80:function(e,t){},81:function(e,t){},82:function(e,t){},83:function(e,t){},84:function(e,t){},88:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",{staticClass:"weui-btn",class:e.classes,attrs:{disabled:e.disabled,type:e.actionType},on:{click:e.onClick}},[e.showLoading?i("i",{staticClass:"weui-loading"}):e._e(),e._v(" "),e._t("default",[e._v(e._s(e.text))])],2)},staticRenderFns:[]}},89:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"vux-flexbox",class:{"vux-flex-col":"vertical"===e.orient,"vux-flex-row":"horizontal"===e.orient},style:e.styles},[e._t("default")],2)},staticRenderFns:[]}},90:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-header"},[i("div",{staticClass:"vux-header-left"},[e._t("overwrite-left",[i("transition",{attrs:{name:e.transition}},[i("a",{directives:[{name:"show",rawName:"v-show",value:e._leftOptions.showBack,expression:"_leftOptions.showBack"}],staticClass:"vux-header-back",on:{click:[function(t){if(!("button"in t)&&e._k(t.keyCode,"preventDefault"))return null},e.onClickBack]}},[e._v(e._s(void 0===e._leftOptions.backText?"返回":e._leftOptions.backText))])]),e._v(" "),i("transition",{attrs:{name:e.transition}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e._leftOptions.showBack,expression:"_leftOptions.showBack"}],staticClass:"left-arrow",on:{click:e.onClickBack}})])]),e._v(" "),e._t("left")],2),e._v(" "),i("h1",{staticClass:"vux-header-title",on:{click:function(t){e.$emit("on-click-title")}}},[e._t("default",[i("transition",{attrs:{name:e.transition}},[i("span",{directives:[{name:"show",rawName:"v-show",value:e.title,expression:"title"}]},[e._v(e._s(e.title))])])])],2),e._v(" "),i("div",{staticClass:"vux-header-right"},[e.rightOptions.showMore?i("a",{staticClass:"vux-header-more",on:{click:[function(t){if(!("button"in t)&&e._k(t.keyCode,"preventDefault"))return null},function(t){e.$emit("on-click-more")}]}}):e._e(),e._v(" "),e._t("right")],2)])},staticRenderFns:[]}},91:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"weui-cell",class:{"vux-tap-active":e.isLink||!!e.link,"weui-cell_access":e.isLink||!!e.link,"vux-cell-no-border-intent":!e.borderIntent,"vux-cell-disabled":e.disabled},on:{click:e.onClick}},[i("div",{staticClass:"weui-cell__hd"},[e._t("icon")],2),e._v(" "),i("div",{staticClass:"vux-cell-bd",class:{"vux-cell-primary":"title"===e.primary&&"left"!==e.valueAlign}},[i("p",[e.title||e.hasTitleSlot?i("label",{staticClass:"vux-label",style:e.getLabelStyles()},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e._v(" "),e._t("after-title")],2),e._v(" "),i("inline-desc",[e._t("inline-desc",[e._v(e._s(e.inlineDesc))])],2)],1),e._v(" "),i("div",{staticClass:"weui-cell__ft",class:e.valueClass},[e._t("value"),e._v(" "),e._t("default",[e._v(e._s(e.value))]),e._v(" "),e.isLoading?i("i",{staticClass:"weui-loading"}):e._e()],2),e._v(" "),e._t("child")],2)},staticRenderFns:[]}},92:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-check-icon",on:{click:e.updateValue}},[i("icon",{directives:[{name:"show",rawName:"v-show",value:"default"===e.type&&e.value===e.val,expression:"type === 'default' && value === val"}],attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:"plain"===e.type&&e.value===e.val,expression:"type === 'plain' && value === val"}],attrs:{type:"success_circle"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.value!==e.val,expression:"value !== val"}],attrs:{type:"circle"}}),e._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"radio",attrs:{type:"radio"},domProps:{value:e.val,checked:e._q(e.value,e.val)},on:{__c:function(t){e.value=e.val}}}),e._v(" "),i("span",[e._t("default")],2)],1)},staticRenderFns:[]}},93:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-x-switch weui-cell weui-cell_switch"},[i("div",{staticClass:"weui-cell__bd"},[i("label",{staticClass:"weui-label",style:e.labelStyle,domProps:{innerHTML:e._s(e.title)}}),e._v(" "),e.inlineDesc?i("inline-desc",[e._v(e._s(e.inlineDesc))]):e._e()],1),e._v(" "),i("div",{staticClass:"weui-cell__ft"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"weui-switch",attrs:{type:"checkbox",disabled:e.disabled},domProps:{checked:Array.isArray(e.currentValue)?e._i(e.currentValue,null)>-1:e.currentValue},on:{__c:function(t){var i=e.currentValue,a=t.target,n=!!a.checked;if(Array.isArray(i)){var l=e._i(i,null);n?l<0&&(e.currentValue=i.concat(null)):l>-1&&(e.currentValue=i.slice(0,l).concat(i.slice(l+1)))}else e.currentValue=n}}})])])},staticRenderFns:[]}},94:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"vux-flexbox-item",style:e.style},[e._t("default")],2)},staticRenderFns:[]}},95:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-check-icon",on:{click:e.updateValue}},[i("icon",{directives:[{name:"show",rawName:"v-show",value:"default"===e.type&&e.value,expression:"type === 'default' && value"}],attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:"plain"===e.type&&e.value,expression:"type === 'plain' && value"}],attrs:{type:"success_circle"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:!e.value,expression:"!value"}],attrs:{type:"circle"}}),e._v(" "),i("span",[e._t("default")],2)],1)},staticRenderFns:[]}},96:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vux-x-input weui-cell",class:{"weui-cell_warn":e.showWarn}},[i("div",{staticClass:"weui-cell__hd"},[e.hasRestrictedLabel?i("div",{style:e.labelStyles},[e._t("restricted-label")],2):e._e(),e._v(" "),e._t("label",[e.title?i("label",{staticClass:"weui-label",style:{width:e.labelWidth||e.$parent.labelWidth||e.labelWidthComputed,textAlign:e.$parent.labelAlign,marginRight:e.$parent.labelMarginRight},domProps:{innerHTML:e._s(e.title)}}):e._e(),e._v(" "),e.inlineDesc?i("inline-desc",[e._v(e._s(e.inlineDesc))]):e._e()])],2),e._v(" "),i("div",{staticClass:"weui-cell__bd weui-cell__primary",class:e.placeholderAlign?"vux-x-input-placeholder-"+e.placeholderAlign:""},[e.type&&"text"!==e.type?e._e():i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"text",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}),e._v(" "),"number"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"number",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:[e.onBlur,function(t){e.$forceUpdate()}],keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e(),e._v(" "),"email"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"email",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e(),e._v(" "),"password"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"password",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e(),e._v(" "),"tel"===e.type?i("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],ref:"input",staticClass:"weui-input",style:e.inputStyle,attrs:{maxlength:e.max,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,spellcheck:e.spellcheck,type:"tel",name:e.name,pattern:e.pattern,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled},domProps:{value:e.currentValue},on:{focus:e.focusHandler,blur:e.onBlur,keyup:e.onKeyUp,input:function(t){t.target.composing||(e.currentValue=t.target.value)}}}):e._e()]),e._v(" "),i("div",{staticClass:"weui-cell__ft"},[i("icon",{directives:[{name:"show",rawName:"v-show",value:!e.equalWith&&e.showClear&&e.currentValue&&!e.readonly&&!e.disabled,expression:"!equalWith && showClear && currentValue && !readonly && !disabled"}],attrs:{type:"clear"},nativeOn:{click:function(t){e.clear(t)}}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.showWarn,expression:"showWarn"}],staticClass:"vux-input-icon",attrs:{type:"warn",title:e.valid?"":e.firstError}}),e._v(" "),!e.novalidate&&e.hasLengthEqual&&e.dirty&&e.equalWith&&!e.valid?i("icon",{staticClass:"vux-input-icon",attrs:{type:"warn"}}):e._e(),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:!e.novalidate&&e.equalWith&&e.equalWith===e.currentValue&&e.valid,expression:"!novalidate && equalWith && equalWith === currentValue && valid"}],attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.novalidate&&"success"===e.iconType,expression:"novalidate && iconType === 'success'"}],staticClass:"vux-input-icon",attrs:{type:"success"}}),e._v(" "),i("icon",{directives:[{name:"show",rawName:"v-show",value:e.novalidate&&"error"===e.iconType,expression:"novalidate && iconType === 'error'"}],staticClass:"vux-input-icon",attrs:{type:"warn"}}),e._v(" "),e._t("right")],2)])},staticRenderFns:[]}},97:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"vux-label-desc"},[e._t("default")],2)},staticRenderFns:[]}},98:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("i",{class:[e.className,e.isMsg?"weui-icon_msg":""]})},staticRenderFns:[]}},99:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.title?i("div",{staticClass:"weui-cells__title",style:{color:e.titleColor},domProps:{innerHTML:e._s(e.title)}}):e._e(),e._v(" "),i("div",{staticClass:"weui-cells",class:{"vux-no-group-title":!e.title},style:{marginTop:"number"==typeof e.gutter?e.gutter+"px":e.gutter}},[e._t("after-title"),e._v(" "),e._t("default")],2)])},staticRenderFns:[]}}},[160]); \ No newline at end of file diff --git a/safari2aria.safariextension/static/js/popover.c8e09d7e1991c700b494.js b/safari2aria.safariextension/static/js/popover.9fe9a9be9f2a2330f848.js similarity index 100% rename from safari2aria.safariextension/static/js/popover.c8e09d7e1991c700b494.js rename to safari2aria.safariextension/static/js/popover.9fe9a9be9f2a2330f848.js diff --git a/safari2aria.safariextz b/safari2aria.safariextz index 54edda6..c14fb34 100644 Binary files a/safari2aria.safariextz and b/safari2aria.safariextz differ diff --git a/src/pages/global/index.js b/src/pages/global/index.js index 4b2ecd3..29c798a 100644 --- a/src/pages/global/index.js +++ b/src/pages/global/index.js @@ -263,6 +263,9 @@ function sendToAria2 (e) { let connect = aria2Connects[e[0].url]; let aria = connect ? connect.aria2 : false; let header = config.enableCookie ? 'Cookie: ' + e[3] : ''; + if(config.baiduPanCookie){ + header = [header,config.baiduPanCookie].join('; ') + } if(config.downloadPath){ options.dir = config.downloadPath } diff --git a/src/pages/options/components/index.vue b/src/pages/options/components/index.vue index 6c03088..4761d7b 100644 --- a/src/pages/options/components/index.vue +++ b/src/pages/options/components/index.vue @@ -135,6 +135,9 @@ + + {{$t('Save')}} @@ -185,6 +188,7 @@ 's': '秒', 'Save': '保存', 'baidu pan check disable': '屏蔽百度云大文件检测', + 'baidu pan extend cookie': '百度盘扩展cookie', 'xunlei': '迅雷离线', 'baidu': '百度离线', 'Offline download': '右键离线下载菜单', @@ -219,6 +223,7 @@ enableChart: false, baidupanAutoRestart: false, baidupanLimitSpeed: 1000, + baiduPanCookie: '', defaultRpcIndex: 0, refreshTime: 5, uaList: [{