mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
gulp-uglify major version bump and rebuild
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
"use strict";define([],function(){function e(e,r){var t=void 0!==e.prototype?e.prototype:e;return void 0!==r&&(t._logNamespace=r),o.forEach(function(e){t[e]=function(){if(this.logger)return this.logger.emit?this.logger.emit(e,this._logNamespace,arguments):this.logger[e]?this.logger[e].apply(this.logger,arguments):void 0}}),e}var o=["log","debug","info","warn","error","metric"];return e});
|
||||
"use strict";define([],function(){var e=["log","debug","info","warn","error","metric"];return function(o,r){var t=void 0!==o.prototype?o.prototype:o;return void 0!==r&&(t._logNamespace=r),e.forEach(function(e){t[e]=function(){if(this.logger)return this.logger.emit?this.logger.emit(e,this._logNamespace,arguments):this.logger[e]?this.logger[e].apply(this.logger,arguments):void 0}}),o}});
|
||||
//# sourceMappingURL=../../maps/utils/add-logging.js.map
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
"use strict";define(["jquery"],function(t){"use_strict";function e(t,e,r,n,a,u,o,s,c){void 0===a&&(a=30),void 0===o&&(o=4),i("#"+t).click(function(){if(!(i("#renaming-active").length>0)){var t,f=i("#"+e),l=f.text();t=u?i("<textarea></textarea>").attr({rows:o,cols:a}).text(i.trim(l)):i("<input type='text'></input>").attr({value:i.trim(l),size:a}),t.attr("id","renaming-active"),t.blur(function(){i(this).remove(),f.show(),c&&c(t)}),t.keyup(function(a){if(27===a.keyCode)i(this).trigger("blur");else if(13===a.keyCode){var u={};u[n]=i(this).val(),i(this).trigger("blur"),i.ajax({url:r,data:u,error:function(){alert("Text editing for elt "+e+" failed")},success:function(e){""!==e?f.text(e):f.html("<em>None</em>"),c&&c(t)}})}}),s&&s(t),f.hide(),t.insertAfter(f),t.focus(),t.select()}})}var i=t;return e});
|
||||
"use strict";define(["jquery"],function(t){"use_strict";var e=t;return function(t,i,r,n,a,u,o,s,c){void 0===a&&(a=30),void 0===o&&(o=4),e("#"+t).click(function(){if(!(e("#renaming-active").length>0)){var t,f=e("#"+i),l=f.text();(t=u?e("<textarea></textarea>").attr({rows:o,cols:a}).text(e.trim(l)):e("<input type='text'></input>").attr({value:e.trim(l),size:a})).attr("id","renaming-active"),t.blur(function(){e(this).remove(),f.show(),c&&c(t)}),t.keyup(function(a){if(27===a.keyCode)e(this).trigger("blur");else if(13===a.keyCode){var u={};u[n]=e(this).val(),e(this).trigger("blur"),e.ajax({url:r,data:u,error:function(){alert("Text editing for elt "+i+" failed")},success:function(e){""!==e?f.text(e):f.html("<em>None</em>"),c&&c(t)}})}}),s&&s(t),f.hide(),t.insertAfter(f),t.focus(),t.select()}})}});
|
||||
//# sourceMappingURL=../../maps/utils/async-save-text.js.map
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
"use strict";define(["libs/underscore","viz/trackster/util","utils/config"],function(e,t,l){var o=Backbone.Model.extend({initialize:function(l){var i=this.get("key");this.set("id",i);var a=e.find(o.known_settings_defaults,function(e){return e.key===i});a&&this.set(e.extend({},a,l)),void 0===this.get("value")&&void 0!==this.get("default_value")&&(this.set_value(this.get("default_value")),this.get("value")||"color"!==this.get("type")||this.set("value",t.get_random_color()))},set_value:function(e,t){var l=this.get("type");"float"===l?e=parseFloat(e):"int"===l&&(e=parseInt(e,10)),this.set({value:e},t)}},{known_settings_defaults:[{key:"name",label:"Name",type:"text",default_value:""},{key:"color",label:"Color",type:"color",default_value:null},{key:"min_value",label:"Min Value",type:"float",default_value:null},{key:"max_value",label:"Max Value",type:"float",default_value:null},{key:"mode",type:"string",default_value:this.mode,hidden:!0},{key:"height",type:"int",default_value:32,hidden:!0},{key:"pos_color",label:"Positive Color",type:"color",default_value:"#FF8C00"},{key:"neg_color",label:"Negative Color",type:"color",default_value:"#4169E1"},{key:"block_color",label:"Block color",type:"color",default_value:null},{key:"label_color",label:"Label color",type:"color",default_value:"black"},{key:"show_insertions",label:"Show insertions",type:"bool",default_value:!1},{key:"show_counts",label:"Show summary counts",type:"bool",default_value:!0},{key:"mode",type:"string",default_value:this.mode,hidden:!0},{key:"reverse_strand_color",label:"Antisense strand color",type:"color",default_value:null},{key:"show_differences",label:"Show differences only",type:"bool",default_value:!0},{key:"mode",type:"string",default_value:this.mode,hidden:!0}]}),i=Backbone.Collection.extend({model:o,to_key_value_dict:function(){var e={};return this.each(function(t){e[t.get("key")]=t.get("value")}),e},get_value:function(e){var t=this.get(e);if(t)return t.get("value")},set_value:function(e,t,l){var o=this.get(e);if(o)return o.set_value(t,l)},set_default_value:function(e,t){var l=this.get(e);if(l)return l.set("default_value",t)}},{from_models_and_saved_values:function(t,l){return l&&(t=e.map(t,function(t){return e.extend({},t,{value:l[t.key]})})),new i(t)}}),a=Backbone.View.extend({className:"config-settings-view",render:function(){var l=this.$el;return this.collection.each(function(o,i){if(!o.get("hidden")){var a="param_"+i,n=o.get("type"),s=o.get("value"),r=$("<div class='form-row' />").appendTo(l);if(r.append($("<label />").attr("for",a).text(o.get("label")+":")),"bool"===n)r.append($('<input type="checkbox" />').attr("id",a).attr("name",a).attr("checked",s));else if("text"===n)r.append($('<input type="text"/>').attr("id",a).val(s).click(function(){$(this).select()}));else if("select"===n){var c=$("<select />").attr("id",a);e.each(o.get("options"),function(e){$("<option/>").text(e.label).attr("value",e.value).appendTo(c)}),c.val(s),r.append(c)}else if("color"===n){var d=$("<div/>").appendTo(r),u=$("<input />").attr("id",a).attr("name",a).val(s).css("float","left").appendTo(d).click(function(e){$(".tooltip").removeClass("in");var t=$(this).siblings(".tooltip").addClass("in");t.css({left:$(this).position().left+$(this).width()+5,top:$(this).position().top-$(t).height()/2+$(this).height()/2}).show(),t.click(function(e){e.stopPropagation()}),$(document).bind("click.color-picker",function(){t.hide(),$(document).unbind("click.color-picker")}),e.stopPropagation()}),p=$("<a href='javascript:void(0)'/>").addClass("icon-button arrow-circle").appendTo(d).attr("title","Set new random color").tooltip(),f=$("<div class='tooltip right' style='position: absolute;' />").appendTo(d).hide(),h=$("<div class='tooltip-inner' style='text-align: inherit'></div>").appendTo(f),v=($("<div class='tooltip-arrow'></div>").appendTo(f),$.farbtastic(h,{width:100,height:100,callback:u,color:s}));d.append($("<div/>").css("clear","both")),function(e){p.click(function(){e.setColor(t.get_random_color())})}(v)}else r.append($("<input />").attr("id",a).attr("name",a).val(s));o.help&&r.append($("<div class='help'/>").text(o.help))}}),this},render_in_modal:function(e){var t=this,l=function(){Galaxy.modal.hide(),$(window).unbind("keypress.check_enter_esc")},o=function(){Galaxy.modal.hide(),$(window).unbind("keypress.check_enter_esc"),t.update_from_form()},i=function(e){27===(e.keyCode||e.which)?l():13===(e.keyCode||e.which)&&o()};$(window).bind("keypress.check_enter_esc",i),0===this.$el.children().length&&this.render(),Galaxy.modal.show({title:e||"Configure",body:this.$el,buttons:{Cancel:l,OK:o}})},update_from_form:function(){var e=this;this.collection.each(function(t,l){if(!t.get("hidden")){var o="param_"+l,i=e.$el.find("#"+o).val();"bool"===t.get("type")&&(i=e.$el.find("#"+o).is(":checked")),t.set_value(i)}})}});return{ConfigSetting:o,ConfigSettingCollection:i,ConfigSettingCollectionView:a}});
|
||||
"use strict";define(["libs/underscore","viz/trackster/util","utils/config"],function(e,t,l){var o=Backbone.Model.extend({initialize:function(l){var i=this.get("key");this.set("id",i);var a=e.find(o.known_settings_defaults,function(e){return e.key===i});a&&this.set(e.extend({},a,l)),void 0===this.get("value")&&void 0!==this.get("default_value")&&(this.set_value(this.get("default_value")),this.get("value")||"color"!==this.get("type")||this.set("value",t.get_random_color()))},set_value:function(e,t){var l=this.get("type");"float"===l?e=parseFloat(e):"int"===l&&(e=parseInt(e,10)),this.set({value:e},t)}},{known_settings_defaults:[{key:"name",label:"Name",type:"text",default_value:""},{key:"color",label:"Color",type:"color",default_value:null},{key:"min_value",label:"Min Value",type:"float",default_value:null},{key:"max_value",label:"Max Value",type:"float",default_value:null},{key:"mode",type:"string",default_value:this.mode,hidden:!0},{key:"height",type:"int",default_value:32,hidden:!0},{key:"pos_color",label:"Positive Color",type:"color",default_value:"#FF8C00"},{key:"neg_color",label:"Negative Color",type:"color",default_value:"#4169E1"},{key:"block_color",label:"Block color",type:"color",default_value:null},{key:"label_color",label:"Label color",type:"color",default_value:"black"},{key:"show_insertions",label:"Show insertions",type:"bool",default_value:!1},{key:"show_counts",label:"Show summary counts",type:"bool",default_value:!0},{key:"mode",type:"string",default_value:this.mode,hidden:!0},{key:"reverse_strand_color",label:"Antisense strand color",type:"color",default_value:null},{key:"show_differences",label:"Show differences only",type:"bool",default_value:!0},{key:"mode",type:"string",default_value:this.mode,hidden:!0}]}),i=Backbone.Collection.extend({model:o,to_key_value_dict:function(){var e={};return this.each(function(t){e[t.get("key")]=t.get("value")}),e},get_value:function(e){var t=this.get(e);if(t)return t.get("value")},set_value:function(e,t,l){var o=this.get(e);if(o)return o.set_value(t,l)},set_default_value:function(e,t){var l=this.get(e);if(l)return l.set("default_value",t)}},{from_models_and_saved_values:function(t,l){return l&&(t=e.map(t,function(t){return e.extend({},t,{value:l[t.key]})})),new i(t)}}),a=Backbone.View.extend({className:"config-settings-view",render:function(){var l=this.$el;return this.collection.each(function(o,i){if(!o.get("hidden")){var a="param_"+i,n=o.get("type"),s=o.get("value"),r=$("<div class='form-row' />").appendTo(l);if(r.append($("<label />").attr("for",a).text(o.get("label")+":")),"bool"===n)r.append($('<input type="checkbox" />').attr("id",a).attr("name",a).attr("checked",s));else if("text"===n)r.append($('<input type="text"/>').attr("id",a).val(s).click(function(){$(this).select()}));else if("select"===n){var c=$("<select />").attr("id",a);e.each(o.get("options"),function(e){$("<option/>").text(e.label).attr("value",e.value).appendTo(c)}),c.val(s),r.append(c)}else if("color"===n){var d=$("<div/>").appendTo(r),u=$("<input />").attr("id",a).attr("name",a).val(s).css("float","left").appendTo(d).click(function(e){$(".tooltip").removeClass("in");var t=$(this).siblings(".tooltip").addClass("in");t.css({left:$(this).position().left+$(this).width()+5,top:$(this).position().top-$(t).height()/2+$(this).height()/2}).show(),t.click(function(e){e.stopPropagation()}),$(document).bind("click.color-picker",function(){t.hide(),$(document).unbind("click.color-picker")}),e.stopPropagation()}),p=$("<a href='javascript:void(0)'/>").addClass("icon-button arrow-circle").appendTo(d).attr("title","Set new random color").tooltip(),f=$("<div class='tooltip right' style='position: absolute;' />").appendTo(d).hide(),h=$("<div class='tooltip-inner' style='text-align: inherit'></div>").appendTo(f),v=($("<div class='tooltip-arrow'></div>").appendTo(f),$.farbtastic(h,{width:100,height:100,callback:u,color:s}));d.append($("<div/>").css("clear","both")),function(e){p.click(function(){e.setColor(t.get_random_color())})}(v)}else r.append($("<input />").attr("id",a).attr("name",a).val(s));o.help&&r.append($("<div class='help'/>").text(o.help))}}),this},render_in_modal:function(e){var t=this,l=function(){Galaxy.modal.hide(),$(window).unbind("keypress.check_enter_esc")},o=function(){Galaxy.modal.hide(),$(window).unbind("keypress.check_enter_esc"),t.update_from_form()};$(window).bind("keypress.check_enter_esc",function(e){27===(e.keyCode||e.which)?l():13===(e.keyCode||e.which)&&o()}),0===this.$el.children().length&&this.render(),Galaxy.modal.show({title:e||"Configure",body:this.$el,buttons:{Cancel:l,OK:o}})},update_from_form:function(){var e=this;this.collection.each(function(t,l){if(!t.get("hidden")){var o="param_"+l,i=e.$el.find("#"+o).val();"bool"===t.get("type")&&(i=e.$el.find("#"+o).is(":checked")),t.set_value(i)}})}});return{ConfigSetting:o,ConfigSettingCollection:i,ConfigSettingCollectionView:a}});
|
||||
//# sourceMappingURL=../../maps/utils/config.js.map
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
"use strict";define([],function(){function t(t,n){if(0===t.length)return n.length;if(0===n.length)return t.length;var e,r=[];for(e=0;e<=n.length;e++)r[e]=[e];var h;for(h=0;h<=t.length;h++)r[0][h]=h;for(e=1;e<=n.length;e++)for(h=1;h<=t.length;h++)n.charAt(e-1)===t.charAt(h-1)?r[e][h]=r[e-1][h-1]:r[e][h]=Math.min(r[e-1][h-1]+1,Math.min(r[e][h-1]+1,r[e-1][h]+1));return r[n.length][t.length]}return t});
|
||||
"use strict";define([],function(){return function(t,n){if(0===t.length)return n.length;if(0===n.length)return t.length;var e,r=[];for(e=0;e<=n.length;e++)r[e]=[e];var h;for(h=0;h<=t.length;h++)r[0][h]=h;for(e=1;e<=n.length;e++)for(h=1;h<=t.length;h++)n.charAt(e-1)===t.charAt(h-1)?r[e][h]=r[e-1][h-1]:r[e][h]=Math.min(r[e-1][h-1]+1,Math.min(r[e][h-1]+1,r[e-1][h]+1));return r[n.length][t.length]}});
|
||||
//# sourceMappingURL=../../maps/utils/levenshtein.js.map
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
"use strict";define([],function(){function e(e,t){var r=/(-?[0-9\.]+)/g,n=e.toString().toLowerCase()||"",i=t.toString().toLowerCase()||"",a=String.fromCharCode(0),o=n.replace(r,a+"$1"+a).split(a),f=i.replace(r,a+"$1"+a).split(a),l=new Date(n).getTime(),u=l?new Date(i).getTime():null;if(u){if(l<u)return-1;if(l>u)return 1}for(var g,s,p=0,c=Math.max(o.length,f.length);p<c;p++){if(g=parseFloat(o[p])||o[p],s=parseFloat(f[p])||f[p],g<s)return-1;if(g>s)return 1}return 0}return e});
|
||||
"use strict";define([],function(){return function(e,t){var r=/(-?[0-9\.]+)/g,n=e.toString().toLowerCase()||"",i=t.toString().toLowerCase()||"",a=String.fromCharCode(0),o=n.replace(r,a+"$1"+a).split(a),f=i.replace(r,a+"$1"+a).split(a),l=new Date(n).getTime(),u=l?new Date(i).getTime():null;if(u){if(l<u)return-1;if(l>u)return 1}for(var g,s,p=0,c=Math.max(o.length,f.length);p<c;p++){if(g=parseFloat(o[p])||o[p],s=parseFloat(f[p])||f[p],g<s)return-1;if(g>s)return 1}return 0}});
|
||||
//# sourceMappingURL=../../maps/utils/natural-sort.js.map
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
"use strict";define([],function(){function n(n,e){e=e||window.location.search.substr(1);var t=new RegExp(n+"=([^&#$]+)","g"),r=e.match(t);if(r&&r.length)return r=_.map(r,function(e){return decodeURIComponent(e.substr(n.length+1).replace(/\+/g," "))}),1===r.length?r[0]:r}function e(n){if(!n)return{};var e={};return n.split("&").forEach(function(n){var t=n.split("=");e[t[0]]=decodeURI(t[1])}),e}return{get:n,parse:e}});
|
||||
"use strict";define([],function(){return{get:function(n,e){e=e||window.location.search.substr(1);var t=new RegExp(n+"=([^&#$]+)","g"),r=e.match(t);if(r&&r.length)return 1===(r=_.map(r,function(e){return decodeURIComponent(e.substr(n.length+1).replace(/\+/g," "))})).length?r[0]:r},parse:function(n){if(!n)return{};var e={};return n.split("&").forEach(function(n){var t=n.split("=");e[t[0]]=decodeURI(t[1])}),e}}});
|
||||
//# sourceMappingURL=../../maps/utils/query-string-parsing.js.map
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
"use strict";!function(e){jQuery.event.props.push("dataTransfer"),e.uploadpost=function(r){var n=e.extend({},{data:{},success:function(){},error:function(){},progress:function(){},url:null,maxfilesize:2048,error_filesize:"File exceeds 2GB. Please use a FTP client.",error_default:"Please make sure the file is available.",error_server:"Upload request failed.",error_login:"Uploads require you to log in."},r),t=n.data;if(t.error_message)return void n.error(t.error_message);var o=new FormData;for(var a in t.payload)o.append(a,t.payload[a]);var i=0;for(var a in t.files){var u=t.files[a];o.append(u.name,u.file,u.file.name),i+=u.file.size}if(i>1048576*n.maxfilesize)return void n.error(n.error_filesize);xhr=new XMLHttpRequest,xhr.open("POST",n.url,!0),xhr.setRequestHeader("Accept","application/json"),xhr.setRequestHeader("Cache-Control","no-cache"),xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),xhr.onreadystatechange=function(){if(xhr.readyState==xhr.DONE){var e=null;if(xhr.responseText)try{e=jQuery.parseJSON(xhr.responseText)}catch(r){e=xhr.responseText}if(xhr.status<200||xhr.status>299){var r=xhr.statusText;403==xhr.status?r=n.error_login:0==xhr.status?r=n.error_server:r||(r=n.error_default),n.error(r+" ("+xhr.status+")")}else n.success(e)}},xhr.upload.addEventListener("progress",function(e){e.lengthComputable&&n.progress(Math.round(100*e.loaded/e.total))},!1),Galaxy.emit.debug("uploadbox::uploadpost()","Posting following data.",n),xhr.send(o)},e.fn.uploadinput=function(r){var n=this,t=e.extend({},{ondragover:function(){},ondragleave:function(){},onchange:function(){},multiple:!1},r),o=e('<input type="file" style="display: none" '+(t.multiple&&"multiple"||"")+"/>");return n.append(o.change(function(r){t.onchange(r.target.files),e(this).val("")})),n.on("drop",function(e){t.ondragleave(e),e.dataTransfer&&(t.onchange(e.dataTransfer.files),e.preventDefault())}),n.on("dragover",function(e){e.preventDefault(),t.ondragover(e)}),n.on("dragleave",function(e){e.stopPropagation(),t.ondragleave(e)}),{dialog:function(){o.trigger("click")}}},e.fn.uploadbox=function(r){function n(e){if(e&&e.length&&!h){var r=p;return _.each(e,function(e,r){"new"!==e.mode&&_.filter(d,function(r){return r.name===e.name&&r.size===e.size}).length&&(e.duplicate=!0)}),_.each(e,function(e){if(!e.duplicate){var r=String(p++);d[r]=e,f.announce(r,d[r]),g++}}),r}}function t(e){d[e]&&(delete d[e],g--)}function o(){if(0==g||v)return v=!1,h=!1,void f.complete();h=!0;var r=-1;for(var n in d){r=n;break}d[r];t(r),e.uploadpost({url:f.url,data:f.initialize(r),success:function(e){f.success(r,e),o()},error:function(e){f.error(r,e),o()},progress:function(e){f.progress(r,e)}})}function a(){x.dialog()}function i(e){for(e in d)t(e)}function u(){h||(h=!0,o())}function s(){v=!0}function l(r){return f=e.extend({},f,r)}function c(){return window.File&&window.FormData&&window.XMLHttpRequest&&window.FileList}var f=e.extend({},{dragover:function(){},dragleave:function(){},announce:function(e){},initialize:function(e){},progress:function(e,r){},success:function(e,r){},error:function(e,r){alert(r)},complete:function(){}},r),d={},p=0,g=0,h=!1,v=!1,x=e(this).uploadinput({multiple:!0,onchange:function(e){n(e)},ondragover:r.ondragover,ondragleave:r.ondragleave});return{select:a,add:n,remove:t,start:u,stop:s,reset:i,configure:l,compatible:c}}}(jQuery);
|
||||
"use strict";!function(e){jQuery.event.props.push("dataTransfer"),e.uploadpost=function(r){var n=e.extend({},{data:{},success:function(){},error:function(){},progress:function(){},url:null,maxfilesize:2048,error_filesize:"File exceeds 2GB. Please use a FTP client.",error_default:"Please make sure the file is available.",error_server:"Upload request failed.",error_login:"Uploads require you to log in."},r),t=n.data;if(t.error_message)n.error(t.error_message);else{var o=new FormData;for(var a in t.payload)o.append(a,t.payload[a]);var i=0;for(var a in t.files){var s=t.files[a];o.append(s.name,s.file,s.file.name),i+=s.file.size}i>1048576*n.maxfilesize?n.error(n.error_filesize):(xhr=new XMLHttpRequest,xhr.open("POST",n.url,!0),xhr.setRequestHeader("Accept","application/json"),xhr.setRequestHeader("Cache-Control","no-cache"),xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),xhr.onreadystatechange=function(){if(xhr.readyState==xhr.DONE){var e=null;if(xhr.responseText)try{e=jQuery.parseJSON(xhr.responseText)}catch(r){e=xhr.responseText}if(xhr.status<200||xhr.status>299){var r=xhr.statusText;403==xhr.status?r=n.error_login:0==xhr.status?r=n.error_server:r||(r=n.error_default),n.error(r+" ("+xhr.status+")")}else n.success(e)}},xhr.upload.addEventListener("progress",function(e){e.lengthComputable&&n.progress(Math.round(100*e.loaded/e.total))},!1),Galaxy.emit.debug("uploadbox::uploadpost()","Posting following data.",n),xhr.send(o))}},e.fn.uploadinput=function(r){var n=this,t=e.extend({},{ondragover:function(){},ondragleave:function(){},onchange:function(){},multiple:!1},r),o=e('<input type="file" style="display: none" '+(t.multiple&&"multiple"||"")+"/>");return n.append(o.change(function(r){t.onchange(r.target.files),e(this).val("")})),n.on("drop",function(e){t.ondragleave(e),e.dataTransfer&&(t.onchange(e.dataTransfer.files),e.preventDefault())}),n.on("dragover",function(e){e.preventDefault(),t.ondragover(e)}),n.on("dragleave",function(e){e.stopPropagation(),t.ondragleave(e)}),{dialog:function(){o.trigger("click")}}},e.fn.uploadbox=function(r){function n(e){if(e&&e.length&&!l){var r=s;return _.each(e,function(e,r){"new"!==e.mode&&_.filter(i,function(r){return r.name===e.name&&r.size===e.size}).length&&(e.duplicate=!0)}),_.each(e,function(e){if(!e.duplicate){var r=String(s++);i[r]=e,a.announce(r,i[r]),u++}}),r}}function t(e){i[e]&&(delete i[e],u--)}function o(){if(0==u||c)return c=!1,l=!1,void a.complete();l=!0;var r=-1;for(var n in i){r=n;break}i[r];t(r),e.uploadpost({url:a.url,data:a.initialize(r),success:function(e){a.success(r,e),o()},error:function(e){a.error(r,e),o()},progress:function(e){a.progress(r,e)}})}var a=e.extend({},{dragover:function(){},dragleave:function(){},announce:function(e){},initialize:function(e){},progress:function(e,r){},success:function(e,r){},error:function(e,r){alert(r)},complete:function(){}},r),i={},s=0,u=0,l=!1,c=!1,f=e(this).uploadinput({multiple:!0,onchange:function(e){n(e)},ondragover:r.ondragover,ondragleave:r.ondragleave});return{select:function(){f.dialog()},add:n,remove:t,start:function(){l||(l=!0,o())},stop:function(){c=!0},reset:function(e){for(e in i)t(e)},configure:function(r){return a=e.extend({},a,r)},compatible:function(){return window.File&&window.FormData&&window.XMLHttpRequest&&window.FileList}}}}(jQuery);
|
||||
//# sourceMappingURL=../../maps/utils/uploadbox.js.map
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
"use strict";define([],function(){function t(t){return'<iframe src="'+t+'" frameborder="0" style="width: 100%; height: 100%;"/>'}function e(t,r){for(var n in t){var i=t[n];if(_.isObject(i)){var s=r(i);s&&(t[n]=s),e(i,r)}}}function r(t){var e,r,n,i;return r=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim,e=t.replace(r,'<a href="$1" target="_blank">$1</a>'),n=/(^|[^\/])(www\.[\S]+(\b|$))/gim,e=e.replace(n,'$1<a href="http://$2" target="_blank">$2</a>'),i=/(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim,e=e.replace(i,'<a href="mailto:$1">$1</a>')}function n(t){return JSON.parse(JSON.stringify(t)||null)}function i(t){return/^[\],:{}\s]*$/.test(t.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))}function s(t){return $("<div/>").text(t).html()}function a(t){if(t instanceof Array||(t=[t]),0===t.length)return!0;for(var e in t)if(["__null__","__undefined__",null,void 0].indexOf(t[e])>-1)return!0;return!1}function u(t){if($.isArray(t)){var t=t.toString().replace(/,/g,", "),e=t.lastIndexOf(", ");return-1!=e&&(t=t.substr(0,e)+" or "+t.substr(e+2)),t}return""}function o(t){top.__utils__get__=top.__utils__get__||{};var e=JSON.stringify(t);t.cache&&top.__utils__get__[e]?(t.success&&t.success(top.__utils__get__[e]),window.console.debug("utils.js::get() - Fetching from cache ["+t.url+"].")):c({url:t.url,data:t.data,success:function(r){top.__utils__get__[e]=r,t.success&&t.success(r)},error:function(e,r){t.error&&t.error(e,r)}})}function c(t){var e={contentType:"application/json",type:t.type||"GET",data:t.data||{},url:t.url};"GET"==e.type||"DELETE"==e.type?($.isEmptyObject(e.data)||(e.url+=-1==e.url.indexOf("?")?"?":"&",e.url+=$.param(e.data,!0)),e.data=null):(e.dataType="json",e.url=e.url,e.data=JSON.stringify(e.data)),$.ajax(e).done(function(e){if("string"==typeof e)try{e=e.replace("Infinity,",'"Infinity",'),e=jQuery.parseJSON(e)}catch(t){console.debug(t)}t.success&&t.success(e)}).fail(function(e){var r=null;try{r=jQuery.parseJSON(e.responseText)}catch(t){r=e.responseText}t.error&&t.error(r,e.status)}).always(function(){t.complete&&t.complete()})}function l(t,e){var r=$('<div class="'+t+'"></div>');r.appendTo(":eq(0)");var n=r.css(e);return r.remove(),n}function f(t){$('link[href^="'+t+'"]').length||$('<link href="'+Galaxy.root+t+'" rel="stylesheet">').appendTo("head")}function p(t,e){return t?_.defaults(t,e):e}function d(t,e){for(var r=1,n=0;n<e;n++)r*=10;return Math.round(t*r)/r}function g(t,e,r){r=void 0!==r?r:1;var n="";if(t>=T)t/=T,n="TB";else if(t>=S)t/=S,n="GB";else if(t>=x)t/=x,n="MB";else if(t>=b)t/=b,n="KB";else{if(!(t>0))return e?"0 b":"<strong>-</strong>";n="b"}var i="b"==n?t:d(t,r);return e?i+" "+n:"<strong>"+i+"</strong> "+n}function y(){return top.__utils__uid__=top.__utils__uid__||0,"uid-"+top.__utils__uid__++}function h(){var t=new Date,e=(t.getHours()<10?"0":"")+t.getHours(),r=(t.getMinutes()<10?"0":"")+t.getMinutes();return datetime=t.getDate()+"/"+(t.getMonth()+1)+"/"+t.getFullYear()+", "+e+":"+r}function v(t){t.script&&""!==t.script&&$("<script/>",{type:"text/javascript"}).text(t.script).appendTo("head"),t.styles&&""!==t.styles&&$("<style/>",{type:"text/css"}).text(t.styles).appendTo("head")}function m(t){return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(t).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}var b=1024,x=b*b,S=x*b,T=S*b;return{cssLoadFile:f,cssGetAttribute:l,get:o,merge:p,iframe:t,bytesToString:g,uid:y,time:h,request:c,sanitize:s,textify:u,isEmpty:a,deepeach:e,isJSON:i,clone:n,linkify:r,appendScriptStyle:v,getQueryString:m}});
|
||||
"use strict";define([],function(){function t(e,r){for(var n in e){var i=e[n];if(_.isObject(i)){var s=r(i);s&&(e[n]=s),t(i,r)}}}function e(t){var e={contentType:"application/json",type:t.type||"GET",data:t.data||{},url:t.url};"GET"==e.type||"DELETE"==e.type?($.isEmptyObject(e.data)||(e.url+=-1==e.url.indexOf("?")?"?":"&",e.url+=$.param(e.data,!0)),e.data=null):(e.dataType="json",e.url=e.url,e.data=JSON.stringify(e.data)),$.ajax(e).done(function(e){if("string"==typeof e)try{e=e.replace("Infinity,",'"Infinity",'),e=jQuery.parseJSON(e)}catch(t){console.debug(t)}t.success&&t.success(e)}).fail(function(e){var r=null;try{r=jQuery.parseJSON(e.responseText)}catch(t){r=e.responseText}t.error&&t.error(r,e.status)}).always(function(){t.complete&&t.complete()})}function r(t,e){for(var r=1,n=0;n<e;n++)r*=10;return Math.round(t*r)/r}var n=1024,i=n*n,s=i*n,a=s*n;return{cssLoadFile:function(t){$('link[href^="'+t+'"]').length||$('<link href="'+Galaxy.root+t+'" rel="stylesheet">').appendTo("head")},cssGetAttribute:function(t,e){var r=$('<div class="'+t+'"></div>');r.appendTo(":eq(0)");var n=r.css(e);return r.remove(),n},get:function(t){top.__utils__get__=top.__utils__get__||{};var r=JSON.stringify(t);t.cache&&top.__utils__get__[r]?(t.success&&t.success(top.__utils__get__[r]),window.console.debug("utils.js::get() - Fetching from cache ["+t.url+"].")):e({url:t.url,data:t.data,success:function(e){top.__utils__get__[r]=e,t.success&&t.success(e)},error:function(e,r){t.error&&t.error(e,r)}})},merge:function(t,e){return t?_.defaults(t,e):e},iframe:function(t){return'<iframe src="'+t+'" frameborder="0" style="width: 100%; height: 100%;"/>'},bytesToString:function(t,e,u){u=void 0!==u?u:1;var o="";if(t>=a)t/=a,o="TB";else if(t>=s)t/=s,o="GB";else if(t>=i)t/=i,o="MB";else if(t>=n)t/=n,o="KB";else{if(!(t>0))return e?"0 b":"<strong>-</strong>";o="b"}var c="b"==o?t:r(t,u);return e?c+" "+o:"<strong>"+c+"</strong> "+o},uid:function(){return top.__utils__uid__=top.__utils__uid__||0,"uid-"+top.__utils__uid__++},time:function(){var t=new Date,e=(t.getHours()<10?"0":"")+t.getHours(),r=(t.getMinutes()<10?"0":"")+t.getMinutes();return datetime=t.getDate()+"/"+(t.getMonth()+1)+"/"+t.getFullYear()+", "+e+":"+r},request:e,sanitize:function(t){return $("<div/>").text(t).html()},textify:function(t){if($.isArray(t)){var e=(t=t.toString().replace(/,/g,", ")).lastIndexOf(", ");return-1!=e&&(t=t.substr(0,e)+" or "+t.substr(e+2)),t}return""},isEmpty:function(t){if(t instanceof Array||(t=[t]),0===t.length)return!0;for(var e in t)if(["__null__","__undefined__",null,void 0].indexOf(t[e])>-1)return!0;return!1},deepeach:t,isJSON:function(t){return/^[\],:{}\s]*$/.test(t.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))},clone:function(t){return JSON.parse(JSON.stringify(t)||null)},linkify:function(t){var e,r,n,i;return r=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim,e=t.replace(r,'<a href="$1" target="_blank">$1</a>'),n=/(^|[^\/])(www\.[\S]+(\b|$))/gim,e=e.replace(n,'$1<a href="http://$2" target="_blank">$2</a>'),i=/(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim,e=e.replace(i,'<a href="mailto:$1">$1</a>')},appendScriptStyle:function(t){t.script&&""!==t.script&&$("<script/>",{type:"text/javascript"}).text(t.script).appendTo("head"),t.styles&&""!==t.styles&&$("<style/>",{type:"text/css"}).text(t.styles).appendTo("head")},getQueryString:function(t){return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(t).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}}});
|
||||
//# sourceMappingURL=../../maps/utils/utils.js.map
|
||||
|
||||
Reference in New Issue
Block a user