mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
1 line
1.5 KiB
JavaScript
1 line
1.5 KiB
JavaScript
define("mvc/upload/upload-utils",["exports","utils/utils"],function(t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(t){return t&&t.__esModule?t:{default:t}}(e),s={id:"auto",text:"Auto-detect",description:"This system will try to detect the file type automatically. If your file is not detected properly as one of the known formats, it most likely means that it has some format problems (e.g., different number of columns on different rows). You can still coerce the system to set your data to the format you think it should be. You can also upload compressed files, which will automatically be decompressed."};t.default={AUTO_EXTENSION:s,DEFAULT_GENOME:"?",DEFAULT_EXTENSION:"auto",getRemoteFiles:function(t,e){return $.ajax({url:Galaxy.root+"api/remote_files",method:"GET",success:t,error:e})},getUploadDatatypes:function(t,e,s){o.default.get({url:Galaxy.root+"api/datatypes?extension_only=False",success:function(o){var i=[];for(var r in o)i.push({id:o[r].extension,text:o[r].extension,description:o[r].description,description_url:o[r].description_url,composite_files:o[r].composite_files});i.sort(function(t,e){var o=t.text&&t.text.toLowerCase(),s=e.text&&e.text.toLowerCase();return o>s?1:o<s?-1:0}),e||i.unshift(s),t(i)}})},getUploadGenomes:function(t,e){o.default.get({url:Galaxy.root+"api/genomes",success:function(o){var s=[];for(var i in o)s.push({id:o[i][1],text:o[i][0]});s.sort(function(t,o){return t.id==e?-1:o.id==e?1:t.text>o.text?1:t.text<o.text?-1:0}),t(s)}})}}}); |