summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
Diffstat (limited to 'module/web')
-rw-r--r--module/web/filters.py2
-rw-r--r--module/web/media/default/css/MooDialog.css1
-rw-r--r--module/web/media/default/css/default.css2
-rw-r--r--module/web/media/default/css/log.css2
-rw-r--r--module/web/media/js/admin.coffee2
-rw-r--r--module/web/media/js/admin.js2
-rw-r--r--module/web/media/js/base.coffee2
-rw-r--r--module/web/media/js/base.js2
-rw-r--r--module/web/media/js/mootools-core-1.4.1.js2
-rw-r--r--module/web/media/js/mootools-more-1.4.0.1.js2
-rw-r--r--module/web/media/js/package_ui.js1
-rw-r--r--module/web/media/js/purr_static.js2
-rw-r--r--module/web/media/js/settings.coffee2
-rw-r--r--module/web/media/js/settings.js2
-rw-r--r--module/web/media/js/tinytab_static.js2
-rw-r--r--module/web/middlewares.py2
-rw-r--r--module/web/servers/lighttpd_default.conf2
-rw-r--r--module/web/templates/default/captcha.html2
-rw-r--r--module/web/templates/default/downloads.html2
-rw-r--r--module/web/templates/default/folder.html2
-rw-r--r--module/web/templates/default/home.html2
-rw-r--r--module/web/templates/default/info.html2
-rw-r--r--module/web/templates/default/logout.html2
-rw-r--r--module/web/templates/default/logs.html2
-rw-r--r--module/web/templates/default/pathchooser.html2
-rw-r--r--module/web/templates/default/queue.html2
-rw-r--r--module/web/templates/default/settings.html2
-rw-r--r--module/web/templates/default/settings_item.html2
-rw-r--r--module/web/templates/default/setup.html2
-rw-r--r--module/web/templates/default/window.html2
30 files changed, 28 insertions, 30 deletions
diff --git a/module/web/filters.py b/module/web/filters.py
index 13b8345fc..bc253d170 100644
--- a/module/web/filters.py
+++ b/module/web/filters.py
@@ -59,4 +59,4 @@ def truncate(value, n):
return value
def date(date, format):
- return date \ No newline at end of file
+ return date
diff --git a/module/web/media/default/css/MooDialog.css b/module/web/media/default/css/MooDialog.css
index 48c9166ad..c313a5292 100644
--- a/module/web/media/default/css/MooDialog.css
+++ b/module/web/media/default/css/MooDialog.css
@@ -89,4 +89,3 @@
.MooDialog .MooDialogError {
background: url(/media/img/dialog-error.png) no-repeat;
}
-
diff --git a/module/web/media/default/css/default.css b/module/web/media/default/css/default.css
index 116f9725a..aa050fef3 100644
--- a/module/web/media/default/css/default.css
+++ b/module/web/media/default/css/default.css
@@ -905,4 +905,4 @@ table.system td {
table.system tr > td:first-child {
font-weight: bold;
padding-right: 10px;
-} \ No newline at end of file
+}
diff --git a/module/web/media/default/css/log.css b/module/web/media/default/css/log.css
index 27ed7a8ad..26449b244 100644
--- a/module/web/media/default/css/log.css
+++ b/module/web/media/default/css/log.css
@@ -68,4 +68,4 @@ td.loglevel
{
text-align: center;
color: red;
-} \ No newline at end of file
+}
diff --git a/module/web/media/js/admin.coffee b/module/web/media/js/admin.coffee
index 82b0dd3ec..c4ab86911 100644
--- a/module/web/media/js/admin.coffee
+++ b/module/web/media/js/admin.coffee
@@ -55,4 +55,4 @@ window.addEvent "domready", ->
onSuccess: (data) -> alert "{{_('pyLoad restarted')}}"
}).send()
, ->
- e.stop() \ No newline at end of file
+ e.stop()
diff --git a/module/web/media/js/admin.js b/module/web/media/js/admin.js
index d34d310a0..94a5e494d 100644
--- a/module/web/media/js/admin.js
+++ b/module/web/media/js/admin.js
@@ -1,3 +1,3 @@
{% autoescape true %}
var root;root=this;window.addEvent("domready",function(){var f,c,b,e,a,d;root.passwordDialog=new MooDialog({destroyOnHide:false});root.passwordDialog.setContent($("password_box"));$("login_password_reset").addEvent("click",function(g){return root.passwordDialog.close()});$("login_password_button").addEvent("click",function(j){var h,i,g;i=$("login_new_password").get("value");g=$("login_new_password2").get("value");if(i===g){h=$("password_form");h.set("send",{onSuccess:function(k){return root.notify.alert("Success",{className:"success"})},onFailure:function(k){return root.notify.alert("Error",{className:"error"})}});h.send();root.passwordDialog.close()}else{alert('{{_("Passwords did not match.")}}')}return j.stop()});d=$$(".change_password");for(e=0,a=d.length;e<a;e++){c=d[e];f=c.get("id");b=f.split("|")[1];$("user_login").set("value",b);c.addEvent("click",function(g){return root.passwordDialog.open()})}$("quit-pyload").addEvent("click",function(g){new MooDialog.Confirm("{{_('You are really sure you want to quit pyLoad?')}}",function(){return new Request.JSON({url:"/api/kill",method:"get"}).send()},function(){});return g.stop()});return $("restart-pyload").addEvent("click",function(g){new MooDialog.Confirm("{{_('Are you sure you want to restart pyLoad?')}}",function(){return new Request.JSON({url:"/api/restart",method:"get",onSuccess:function(h){return alert("{{_('pyLoad restarted')}}")}}).send()},function(){});return g.stop()})});
-{% endautoescape %} \ No newline at end of file
+{% endautoescape %}
diff --git a/module/web/media/js/base.coffee b/module/web/media/js/base.coffee
index 3b5d33e82..55151acc9 100644
--- a/module/web/media/js/base.coffee
+++ b/module/web/media/js/base.coffee
@@ -170,4 +170,4 @@ on_captcha_click = (e) ->
x = e.page.x - position.x
y = e.page.y - position.y
$('cap_result').value = x + "," + y
- submit_captcha() \ No newline at end of file
+ submit_captcha()
diff --git a/module/web/media/js/base.js b/module/web/media/js/base.js
index c68b1047a..1ba1d73f9 100644
--- a/module/web/media/js/base.js
+++ b/module/web/media/js/base.js
@@ -1,3 +1,3 @@
{% autoescape true %}
var LoadJsonToContent,clear_captcha,humanFileSize,load_captcha,on_captcha_click,parseUri,root,set_captcha,submit_captcha;root=this;humanFileSize=function(f){var c,d,e,b;d=new Array("B","KiB","MiB","GiB","TiB","PiB");b=Math.log(f)/Math.log(1024);e=Math.floor(b);c=Math.pow(1024,e);if(f===0){return"0 B"}else{return Math.round(f*100/c)/100+" "+d[e]}};parseUri=function(){var b,c,g,e,d,f,a;b=$("add_links").value;g=new RegExp("(ht|f)tp(s?)://[a-zA-Z0-9-./?=_&%#]+[<| |\"|'|\r|\n|\t]{1}","g");d=b.match(g);if(d===null){return}e="";for(f=0,a=d.length;f<a;f++){c=d[f];if(c.indexOf(" ")!==-1){e=e+c.replace(" "," \n")}else{if(c.indexOf("\t")!==-1){e=e+c.replace("\t"," \n")}else{if(c.indexOf("\r")!==-1){e=e+c.replace("\r"," \n")}else{if(c.indexOf('"')!==-1){e=e+c.replace('"'," \n")}else{if(c.indexOf("<")!==-1){e=e+c.replace("<"," \n")}else{if(c.indexOf("'")!==-1){e=e+c.replace("'"," \n")}else{e=e+c.replace("\n"," \n")}}}}}}}return $("add_links").value=e};Array.prototype.remove=function(d,c){var a,b;a=this.slice((c||d)+1||this.length);this.length=(b=d<0)!=null?b:this.length+{from:d};if(this.length===0){return[]}return this.push.apply(this,a)};document.addEvent("domready",function(){root.notify=new Purr({mode:"top",position:"center"});root.captchaBox=new MooDialog({destroyOnHide:false});root.captchaBox.setContent($("cap_box"));root.addBox=new MooDialog({destroyOnHide:false});root.addBox.setContent($("add_box"));$("add_form").onsubmit=function(){$("add_form").target="upload_target";if($("add_name").value===""&&$("add_file").value===""){alert('{{_("Please Enter a packagename.")}}');return false}else{root.addBox.close();return true}};$("add_reset").addEvent("click",function(){return root.addBox.close()});$("action_add").addEvent("click",function(){$("add_form").reset();return root.addBox.open()});$("action_play").addEvent("click",function(){return new Request({method:"get",url:"/api/unpauseServer"}).send()});$("action_cancel").addEvent("click",function(){return new Request({method:"get",url:"/api/stopAllDownloads"}).send()});$("action_stop").addEvent("click",function(){return new Request({method:"get",url:"/api/pauseServer"}).send()});$("cap_info").addEvent("click",function(){load_captcha("get","");return root.captchaBox.open()});$("cap_reset").addEvent("click",function(){return root.captchaBox.close()});$("cap_form").addEvent("submit",function(a){submit_captcha();return a.stop()});$("cap_positional").addEvent("click",on_captcha_click);return new Request.JSON({url:"/json/status",onSuccess:LoadJsonToContent,secure:false,async:true,initialDelay:0,delay:4000,limit:3000}).startTimer()});LoadJsonToContent=function(a){$("speed").set("text",humanFileSize(a.speed)+"/s");$("aktiv").set("text",a.active);$("aktiv_from").set("text",a.queue);$("aktiv_total").set("text",a.total);if(a.captcha){if($("cap_info").getStyle("display")!=="inline"){$("cap_info").setStyle("display","inline");root.notify.alert('{{_("New Captcha Request")}}',{className:"notify"})}}else{$("cap_info").setStyle("display","none")}if(a.download){$("time").set("text",' {{_("on")}}');$("time").setStyle("background-color","#8ffc25")}else{$("time").set("text",' {{_("off")}}');$("time").setStyle("background-color","#fc6e26")}if(a.reconnect){$("reconnect").set("text",' {{_("on")}}');$("reconnect").setStyle("background-color","#8ffc25")}else{$("reconnect").set("text",' {{_("off")}}');$("reconnect").setStyle("background-color","#fc6e26")}return null};set_captcha=function(a){$("cap_id").set("value",a.id);if(a.result_type==="textual"){$("cap_textual_img").set("src",a.src);$("cap_title").set("text",'{{_("Please read the text on the captcha.")}}');$("cap_submit").setStyle("display","inline");$("cap_textual").setStyle("display","block");return $("cap_positional").setStyle("display","none")}else{if(a.result_type==="positional"){$("cap_positional_img").set("src",a.src);$("cap_title").set("text",'{{_("Please click on the right captcha position.")}}');$("cap_submit").setStyle("display","none");return $("cap_textual").setStyle("display","none")}}};load_captcha=function(b,a){return new Request.JSON({url:"/json/set_captcha",onSuccess:function(c){return set_captcha(c)(c.captcha?void 0:clear_captcha())},secure:false,async:true,method:b}).send(a)};clear_captcha=function(){$("cap_textual").setStyle("display","none");$("cap_textual_img").set("src","");$("cap_positional").setStyle("display","none");$("cap_positional_img").set("src","");return $("cap_title").set("text",'{{_("No Captchas to read.")}}')};submit_captcha=function(){load_captcha("post","cap_id="+$("cap_id").get("value")+"&cap_result="+$("cap_result").get("value"));$("cap_result").set("value","");return false};on_captcha_click=function(c){var b,a,d;b=c.target.getPosition();a=c.page.x-b.x;d=c.page.y-b.y;$("cap_result").value=a+","+d;return submit_captcha()};
-{% endautoescape %} \ No newline at end of file
+{% endautoescape %}
diff --git a/module/web/media/js/mootools-core-1.4.1.js b/module/web/media/js/mootools-core-1.4.1.js
index 835b4bbe2..828a7200e 100644
--- a/module/web/media/js/mootools-core-1.4.1.js
+++ b/module/web/media/js/mootools-core-1.4.1.js
@@ -473,4 +473,4 @@ params.movie=path;}else{properties.type="application/x-shockwave-flash";}propert
}build+=">";for(var param in params){if(params[param]){build+='<param name="'+param+'" value="'+params[param]+'" />';}}build+="</object>";this.object=((container)?container.empty():new Element("div")).set("html",build).firstChild;
},replaces:function(element){element=document.id(element,true);element.parentNode.replaceChild(this.toElement(),element);return this;},inject:function(element){document.id(element,true).appendChild(this.toElement());
return this;},remote:function(){return Swiff.remote.apply(Swiff,[this.toElement()].append(arguments));}});Swiff.CallBacks={};Swiff.remote=function(obj,fn){var rs=obj.CallFunction('<invoke name="'+fn+'" returntype="javascript">'+__flash__argumentsToXML(arguments,2)+"</invoke>");
-return eval(rs);};})(); \ No newline at end of file
+return eval(rs);};})();
diff --git a/module/web/media/js/mootools-more-1.4.0.1.js b/module/web/media/js/mootools-more-1.4.0.1.js
index f3f8e4ee1..cf1f041be 100644
--- a/module/web/media/js/mootools-more-1.4.0.1.js
+++ b/module/web/media/js/mootools-more-1.4.0.1.js
@@ -213,4 +213,4 @@ if(g!=0){var e=(j-c)/l;var b=(j-d)/l;var m=(j-k)/l;if(c==j){h=m-b;}else{if(d==j)
},hsbToRgb:function(){var d=Math.round(this[2]/100*255);if(this[1]==0){return[d,d,d];}else{var b=this[0]%360;var g=b%60;var h=Math.round((this[2]*(100-this[1]))/10000*255);
var e=Math.round((this[2]*(6000-this[1]*g))/600000*255);var c=Math.round((this[2]*(6000-this[1]*(60-g)))/600000*255);switch(Math.floor(b/60)){case 0:return[d,c,h];
case 1:return[e,d,h];case 2:return[h,d,c];case 3:return[h,e,d];case 4:return[c,h,d];case 5:return[d,h,e];}}return false;}});String.implement({rgbToHsb:function(){var b=this.match(/\d{1,3}/g);
-return(b)?b.rgbToHsb():null;},hsbToRgb:function(){var b=this.match(/\d{1,3}/g);return(b)?b.hsbToRgb():null;}});})(); \ No newline at end of file
+return(b)?b.rgbToHsb():null;},hsbToRgb:function(){var b=this.match(/\d{1,3}/g);return(b)?b.hsbToRgb():null;}});})();
diff --git a/module/web/media/js/package_ui.js b/module/web/media/js/package_ui.js
index 3ea965649..8b4df7927 100644
--- a/module/web/media/js/package_ui.js
+++ b/module/web/media/js/package_ui.js
@@ -374,4 +374,3 @@ var Package = new Class({
}
});
-
diff --git a/module/web/media/js/purr_static.js b/module/web/media/js/purr_static.js
index 7e0aee949..504fac038 100644
--- a/module/web/media/js/purr_static.js
+++ b/module/web/media/js/purr_static.js
@@ -305,4 +305,4 @@ Element.implement({
}
-}); \ No newline at end of file
+});
diff --git a/module/web/media/js/settings.coffee b/module/web/media/js/settings.coffee
index 0fc908d46..68ca6c6a0 100644
--- a/module/web/media/js/settings.coffee
+++ b/module/web/media/js/settings.coffee
@@ -104,4 +104,4 @@ class SettingsUI
}
form.send()
- e.stop() \ No newline at end of file
+ e.stop()
diff --git a/module/web/media/js/settings.js b/module/web/media/js/settings.js
index 9191fac72..41d1cb25a 100644
--- a/module/web/media/js/settings.js
+++ b/module/web/media/js/settings.js
@@ -1,3 +1,3 @@
{% autoescape true %}
var SettingsUI,root;var __bind=function(a,b){return function(){return a.apply(b,arguments)}};root=this;window.addEvent("domready",function(){root.accountDialog=new MooDialog({destroyOnHide:false});root.accountDialog.setContent($("account_box"));new TinyTab($$("#toptabs li a"),$$("#tabs-body > span"));$$("ul.nav").each(function(a){return new MooDropMenu(a,{onOpen:function(b){return b.fade("in")},onClose:function(b){return b.fade("out")},onInitialize:function(b){return b.fade("hide").set("tween",{duration:500})}})});return new SettingsUI()});SettingsUI=(function(){function a(){var c,e,b,d;this.menu=$$("#general-menu li");this.menu.append($$("#plugin-menu li"));this.name=$("tabsback");this.general=$("general_form_content");this.plugin=$("plugin_form_content");d=this.menu;for(e=0,b=d.length;e<b;e++){c=d[e];c.addEvent("click",this.menuClick.bind(this))}$("general|submit").addEvent("click",this.configSubmit.bind(this));$("plugin|submit").addEvent("click",this.configSubmit.bind(this));$("account_add").addEvent("click",function(f){root.accountDialog.open();return f.stop()});$("account_reset").addEvent("click",function(f){return root.accountDialog.close()});$("account_add_button").addEvent("click",this.addAccount.bind(this));$("account_submit").addEvent("click",this.submitAccounts.bind(this))}a.prototype.menuClick=function(h){var c,b,g,f,d;d=h.target.get("id").split("|"),c=d[0],g=d[1];b=h.target.get("text");f=c==="general"?this.general:this.plugin;f.dissolve();return new Request({method:"get",url:"/json/load_config/"+c+"/"+g,onSuccess:__bind(function(e){f.set("html",e);f.reveal();return this.name.set("text",b)},this)}).send()};a.prototype.configSubmit=function(d){var c,b;c=d.target.get("id").split("|")[0];b=$(""+c+"_form");b.set("send",{method:"post",url:"/json/save_config/"+c,onSuccess:function(){return root.notify.alert('{{ _("Settings saved.")}}',{className:"success"})},onFailure:function(){return root.notify.alert('{{ _("Error occured.")}}',{className:"error"})}});b.send();return d.stop()};a.prototype.addAccount=function(c){var b;b=$("add_account_form");b.set("send",{method:"post",onSuccess:function(){return window.location.reload()},onFailure:function(){return root.notify.alert('{{_("Error occured.")}}',{className:"error"})}});b.send();return c.stop()};a.prototype.submitAccounts=function(c){var b;b=$("account_form");b.set("send",{method:"post",onSuccess:function(){return window.location.reload()},onFailure:function(){return root.notify.alert('{{ _("Error occured.") }}',{className:"error"})}});b.send();return c.stop()};return a})();
-{% endautoescape %} \ No newline at end of file
+{% endautoescape %}
diff --git a/module/web/media/js/tinytab_static.js b/module/web/media/js/tinytab_static.js
index 6c38292f5..4146038a5 100644
--- a/module/web/media/js/tinytab_static.js
+++ b/module/web/media/js/tinytab_static.js
@@ -47,4 +47,4 @@ provides: TinyTab
this.fireEvent('change',[content,el]);
}
});
-})(document.id); \ No newline at end of file
+})(document.id);
diff --git a/module/web/middlewares.py b/module/web/middlewares.py
index e0e6c3102..73a5b8b9d 100644
--- a/module/web/middlewares.py
+++ b/module/web/middlewares.py
@@ -130,4 +130,4 @@ class GzipResponse(object):
content_length = self.buffer.tell()
update_header(self.headers, "Content-Length" , str(content_length))
- self.start_response(self.status, self.headers) \ No newline at end of file
+ self.start_response(self.status, self.headers)
diff --git a/module/web/servers/lighttpd_default.conf b/module/web/servers/lighttpd_default.conf
index e56dda35f..bbeb5f7a7 100644
--- a/module/web/servers/lighttpd_default.conf
+++ b/module/web/servers/lighttpd_default.conf
@@ -150,4 +150,4 @@ url.rewrite-once = (
"^(/.*)$" => "/pyload.fcgi$1",
)
-%(ssl) \ No newline at end of file
+%(ssl)
diff --git a/module/web/templates/default/captcha.html b/module/web/templates/default/captcha.html
index 288375b76..541fe99da 100644
--- a/module/web/templates/default/captcha.html
+++ b/module/web/templates/default/captcha.html
@@ -39,4 +39,4 @@
</form>
-</div> \ No newline at end of file
+</div>
diff --git a/module/web/templates/default/downloads.html b/module/web/templates/default/downloads.html
index 20ff9a120..122ca1b82 100644
--- a/module/web/templates/default/downloads.html
+++ b/module/web/templates/default/downloads.html
@@ -26,4 +26,4 @@
</ul>
-{% endblock %} \ No newline at end of file
+{% endblock %}
diff --git a/module/web/templates/default/folder.html b/module/web/templates/default/folder.html
index b385e80cb..86132fee5 100644
--- a/module/web/templates/default/folder.html
+++ b/module/web/templates/default/folder.html
@@ -12,4 +12,4 @@
</span>
</span>
<div style="display:none">{{ _("Folder is empty") }}</div>
-</li> \ No newline at end of file
+</li>
diff --git a/module/web/templates/default/home.html b/module/web/templates/default/home.html
index ddba9077b..3702893d0 100644
--- a/module/web/templates/default/home.html
+++ b/module/web/templates/default/home.html
@@ -263,4 +263,4 @@ var LinkEntry = new Class({
</tbody>
</table>
-{% endblock %} \ No newline at end of file
+{% endblock %}
diff --git a/module/web/templates/default/info.html b/module/web/templates/default/info.html
index 77ae57376..839e18a98 100644
--- a/module/web/templates/default/info.html
+++ b/module/web/templates/default/info.html
@@ -78,4 +78,4 @@
</tr>
</table>
-{% endblock %} \ No newline at end of file
+{% endblock %}
diff --git a/module/web/templates/default/logout.html b/module/web/templates/default/logout.html
index d3f07472b..83dba3bf4 100644
--- a/module/web/templates/default/logout.html
+++ b/module/web/templates/default/logout.html
@@ -6,4 +6,4 @@
{% block content %}
<p><b>{{_("You were successfully logged out.")}}</b></p>
-{% endblock %} \ No newline at end of file
+{% endblock %}
diff --git a/module/web/templates/default/logs.html b/module/web/templates/default/logs.html
index d6288df0e..857598a78 100644
--- a/module/web/templates/default/logs.html
+++ b/module/web/templates/default/logs.html
@@ -38,4 +38,4 @@
</form>
</div>
<div style="clear: both; height: 10px;">&nbsp; </div>
-{% endblock %} \ No newline at end of file
+{% endblock %}
diff --git a/module/web/templates/default/pathchooser.html b/module/web/templates/default/pathchooser.html
index 1467fe926..3cd211a03 100644
--- a/module/web/templates/default/pathchooser.html
+++ b/module/web/templates/default/pathchooser.html
@@ -73,4 +73,4 @@
</table>
</center>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/module/web/templates/default/queue.html b/module/web/templates/default/queue.html
index fff3d9ce9..53fd45219 100644
--- a/module/web/templates/default/queue.html
+++ b/module/web/templates/default/queue.html
@@ -101,4 +101,4 @@ document.addEvent("domready", function(){
</form>
</div>
-{% endblock %} \ No newline at end of file
+{% endblock %}
diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html
index 8f084c352..da0b535ac 100644
--- a/module/web/templates/default/settings.html
+++ b/module/web/templates/default/settings.html
@@ -201,4 +201,4 @@
</form>
</div>
-{% endblock %} \ No newline at end of file
+{% endblock %}
diff --git a/module/web/templates/default/settings_item.html b/module/web/templates/default/settings_item.html
index 813383343..28de1a1a9 100644
--- a/module/web/templates/default/settings_item.html
+++ b/module/web/templates/default/settings_item.html
@@ -45,4 +45,4 @@
</tr>
{% endif %}
{% endfor %}
-</table> \ No newline at end of file
+</table>
diff --git a/module/web/templates/default/setup.html b/module/web/templates/default/setup.html
index 39ef6f1e8..37b1c0e0e 100644
--- a/module/web/templates/default/setup.html
+++ b/module/web/templates/default/setup.html
@@ -10,4 +10,4 @@
{% block content %}
Comming Soon.
-{% endblock %} \ No newline at end of file
+{% endblock %}
diff --git a/module/web/templates/default/window.html b/module/web/templates/default/window.html
index a11323fe0..841cda553 100644
--- a/module/web/templates/default/window.html
+++ b/module/web/templates/default/window.html
@@ -43,4 +43,4 @@
</form>
-</div> \ No newline at end of file
+</div>