mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
build client for release with maps
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["layout/router.js"],"names":["$","Router","Backbone","extend","initialize","page","options","this","push","url","data","__identifer","Math","random","toString","substr","param","Galaxy","params","execute","callback","args","name","debug","queryObj","_queryStringParsing2","default","parse","pop","authenticate","access_denied","status","persistent"],"mappings":"sPACIA,EAAAA,EAAAA,QAIAC,EAASC,SAASD,OAAOE,QAGzBC,WAAY,SAASC,EAAMC,GACvBC,KAAKF,KAAOA,EACZE,KAAKD,QAAUA,GAInBE,KAAM,SAASC,EAAKC,IAChBA,EAAOA,OACFC,YAAcC,KAAKC,SACnBC,SAAS,IACTC,OAAO,GAjBhBf,IAAJ,GAAIA,EAAAA,QAAAA,KAAJ,IAAA,IAmBQS,GAAOT,EAAEgB,MAAMN,GAAM,GACrBO,OAAOC,OAASR,EAhBpBT,KAAAA,SAASC,GAASD,SAAOE,KAIrBgB,QAAA,SAAAC,EAAAC,EAAAC,GACAL,OAAAM,MAAKjB,kBAALc,EAAAC,EAAAC,GACH,IAN+BE,EAAAC,EAAAC,QAAAC,MAAAN,EAAAO,OAwB5BP,EAAKb,KAAKgB,GAhBdJ,IACMb,KAAAsB,aAAcnB,EAAMY,GACtBZ,EAAOA,MAAPH,KAAAc,GAIAZ,KAAOA,kBAoBXoB,aAAc,SAASR,EAAMC,GAd7B,OAAA,GAGIQ,cAAIN,WACJH,KAAAA,KAAKb,QACL,IAAIY,EAAAA,QAAAA,SACAW,OAAI,SACAX,QAAAA,sEACHY,YAAM,kBAMfH","file":"../../scripts/layout/router.js","sourcesContent":["import jQuery from \"jquery\";\nvar $ = jQuery;\nimport QUERY_STRING from \"utils/query-string-parsing\";\nimport Ui from \"mvc/ui/ui-misc\";\n\nvar Router = Backbone.Router.extend({\n // TODO: not many client routes at this point - fill and remove from server.\n // since we're at root here, this may be the last to be routed entirely on the client.\n initialize: function(page, options) {\n this.page = page;\n this.options = options;\n },\n\n /** helper to push a new navigation state */\n push: function(url, data) {\n data = data || {};\n data.__identifer = Math.random()\n .toString(36)\n .substr(2);\n url += url.indexOf(\"?\") == -1 ? \"?\" : \"&\";\n url += $.param(data, true);\n Galaxy.params = data;\n this.navigate(url, { trigger: true });\n },\n\n /** override to parse query string into obj and send to each route */\n execute: function(callback, args, name) {\n Galaxy.debug(\"router execute:\", callback, args, name);\n var queryObj = QUERY_STRING.parse(args.pop());\n args.push(queryObj);\n if (callback) {\n if (this.authenticate(args, name)) {\n callback.apply(this, args);\n } else {\n this.access_denied();\n }\n }\n },\n\n authenticate: function(args, name) {\n return true;\n },\n\n access_denied: function() {\n this.page.display(\n new Ui.Message({\n status: \"danger\",\n message: \"You must be logged in with proper credentials to make this request.\",\n persistent: true\n })\n );\n }\n});\n\nexport default Router;\n"]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/annotation.js"],"names":["AnnotationEditor","Backbone","View","extend","_baseMvc2","default","LoggableMixin","HiddenUntilActivatedViewMixin","tagName","className","initialize","options","this","tooltipConfig","placement","render","hiddenUntilActivated","$activator","$el","html","_template","listenTo","model","use_textarea","on_finish","newAnnotation","view","save","annotation","silent","fail","$annotation","text","previous","get","_localization2","_","escape","join","find","remove","off","call"],"mappings":"8OAMIA,EAAmBC,SAASC,KAAKC,OAAOC,EAAAC,QAAQC,eAC/CH,OAAOC,EAAAC,QAAQE,+BACfJ,QACGK,QAAS,MACTC,UAAW,qBAGXC,WAAY,SAASC,GACjBA,EAAUA,MACVC,KAAKC,cAAgBF,EAAQE,gBACzBC,UAAW,UAVvBd,KAAAA,SAAAA,KAAmBC,MAASC,oBAAY,WAGpCM,KAASO,WAcLH,KAAKI,qBAAqBL,EAAQM,WAAYN,IAR9CI,OAAA,WACID,IAAAA,EAAAA,KAaJ,OAd8CF,KAA9CM,IAAAC,KAAAP,KAAAQ,aAKAR,KAAKS,cAAcC,oBACfC,cAAA,EADJC,UAAA,SAAAC,GAGKT,EAAAA,cAAqBL,KAAAA,GAf1Be,EAAAJ,MAAAK,MAAAC,WAAAH,IAAAI,QAAA,IAAAC,KAAA,WA6BYJ,EAAKK,cAAcC,KAAKN,EAAKJ,MAAMW,SAAS,oBARnDf,MAIDK,UAAAA,WACAC,IAAAA,EAAWZ,KAAAU,MAAAY,IAAA,cACPR,OAEIA,0BACH,EAAAS,EAAA9B,SAAA,cACJ,WAEL,2BAjCA+B,EAAAC,OAAAT,GA+CI,UAXRU,KAAA,KAIQP,YAAA,WACA,OAAAnB,KAAAM,IAAAqB,KAAA,gBAgBRC,OAAQ,WANR5B,KAAAmB,YAAAU,MACAV,KAAAA,cAAanB,KAAAU,OACTrB,SAAOC,KAAKgB,UAASsB,OAAAE,KAArB9B,OAIJ4B,SAAQ,WACJ,OAAKT,oBAAAA,GAALnB,KAAAU,MAAA,KAAAgB,KAAA,kBAKJtC,iBAAAA","file":"../../scripts/mvc/annotation.js","sourcesContent":["import baseMVC from \"mvc/base-mvc\";\nimport _l from \"utils/localization\";\nimport \"ui/editable-text\";\n// =============================================================================\n/** A view on any model that has a 'annotation' attribute\n */\nvar AnnotationEditor = Backbone.View.extend(baseMVC.LoggableMixin)\n .extend(baseMVC.HiddenUntilActivatedViewMixin)\n .extend({\n tagName: \"div\",\n className: \"annotation-display\",\n\n /** Set up listeners, parse options */\n initialize: function(options) {\n options = options || {};\n this.tooltipConfig = options.tooltipConfig || {\n placement: \"bottom\"\n };\n //console.debug( this, options );\n // only listen to the model only for changes to annotations\n this.listenTo(this.model, \"change:annotation\", function() {\n this.render();\n });\n this.hiddenUntilActivated(options.$activator, options);\n },\n\n /** Build the DOM elements, call select to on the created input, and set up behaviors */\n render: function() {\n var view = this;\n this.$el.html(this._template());\n\n //TODO: handle empties better\n this.$annotation().make_text_editable({\n use_textarea: true,\n on_finish: function(newAnnotation) {\n view.$annotation().text(newAnnotation);\n view.model.save({ annotation: newAnnotation }, { silent: true }).fail(() => {\n view.$annotation().text(view.model.previous(\"annotation\"));\n });\n }\n });\n return this;\n },\n\n /** @returns {String} the html text used to build the view's DOM */\n _template: function() {\n var annotation = this.model.get(\"annotation\");\n return [\n //TODO: make prompt optional\n '<label class=\"prompt\">',\n _l(\"Annotation\"),\n \"</label>\",\n // set up initial tags by adding as CSV to input vals (necc. to init select2)\n '<div class=\"annotation\">',\n _.escape(annotation),\n \"</div>\"\n ].join(\"\");\n },\n\n /** @returns {jQuery} the main element for this view */\n $annotation: function() {\n return this.$el.find(\".annotation\");\n },\n\n /** shut down event listeners and remove this view's DOM */\n remove: function() {\n this.$annotation.off();\n this.stopListening(this.model);\n Backbone.View.prototype.remove.call(this);\n },\n\n /** string rep */\n toString: function() {\n return [\"AnnotationEditor(\", `${this.model}`, \")\"].join(\"\");\n }\n });\n// =============================================================================\nexport default {\n AnnotationEditor: AnnotationEditor\n};\n"]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/dataset/dataset-list.js"],"names":["_super","_listView2","default","ListPanel","DatasetList","extend","_logNamespace","viewClass","_datasetLi2","DatasetListItemView","className","prototype","noneFoundMsg","_localization2","initialize","attributes","call","this","toString"],"mappings":"qSAUIA,EAASC,EAAAC,QAAUC,UAGnBC,EAAcJ,EAAOK,QAEjBC,cAVW,UAaXC,UAAWC,EAAAN,QAAWO,oBACtBC,UAAcV,EAAOW,UAAUD,UAA/B,gBAbRE,cAAA,EAAAC,EAAAX,SAAA,8BAsBQY,WAAY,SAASC,GAfzBX,EAAAA,UAAqBC,WAAPW,KAAAC,KAAAF,IAIVG,SAAA,WACAX,MAAAA,eAAWU,KAAWR,WAAtBF,kBAOAH,YAAAA","file":"../../../scripts/mvc/dataset/dataset-list.js","sourcesContent":["import LIST_VIEW from \"mvc/list/list-view\";\nimport DATASET_LI from \"mvc/dataset/dataset-li\";\nimport BASE_MVC from \"mvc/base-mvc\";\nimport _l from \"utils/localization\";\n\nvar logNamespace = \"dataset\";\n/* =============================================================================\nTODO:\n\n============================================================================= */\nvar _super = LIST_VIEW.ListPanel;\n/** @class non-editable, read-only View/Controller for a list of datasets.\n */\nvar DatasetList = _super.extend(\n /** @lends DatasetList.prototype */ {\n _logNamespace: logNamespace,\n\n /** class to use for constructing the sub-views */\n viewClass: DATASET_LI.DatasetListItemView,\n className: `${_super.prototype.className} dataset-list`,\n\n /** string to no hdas match the search terms */\n noneFoundMsg: _l(\"No matching datasets found\"),\n\n // ......................................................................... SET UP\n /** Set up the view, set up storage, bind listeners to HistoryContents events\n * @param {Object} attributes optional settings for the panel\n */\n initialize: function(attributes) {\n _super.prototype.initialize.call(this, attributes);\n },\n\n /** Return a string rep of the history */\n toString: function() {\n return `DatasetList(${this.collection})`;\n }\n }\n);\n\n//==============================================================================\nexport default {\n DatasetList: DatasetList\n};\n"]}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/dataset/states.js"],"names":["STATES","UPLOAD","QUEUED","RUNNING","SETTING_METADATA","OK","PAUSED","FAILED_METADATA","NOT_VIEWABLE","DISCARDED","ERROR","READY_STATES","EMPTY","NOT_READY_STATES","NEW"],"mappings":"kHAIA,IAAIA,GAHJC,OAAA,SAQIC,OAAQ,SAJRC,QAAA,UAEAF,iBAAQ,mBAIRE,IAAAA,MAEAC,MAAAA,QAEAC,GAAA,KAGAC,OAAA,SAEAC,gBAAA,kBAGAC,aAAA,eAEAC,UAAA,YAEAC,MAAA,SAGAV,EAAAW,cACAF,EAAAA,GACAT,EAAAY,MACAF,EAAAA,OA7BSV,EAAbO,gBAqCIP,EAAOQ,aALXR,EAAOW,UAOHX,EAAOU,OAKXV,EAAAa,kBAAAb,EAAAC,OAAAD,EAAAE,OAAAF,EAAAG,QAAAH,EAAAI,iBAAAJ,EAAAc,eACed","file":"../../../scripts/mvc/dataset/states.js","sourcesContent":["//==============================================================================\n/** Map of possible HDA/collection/job states to their string equivalents.\n * A port of galaxy.model.Dataset.states.\n */\nvar STATES = {\n // NOT ready states\n /** is uploading and not ready */\n UPLOAD: \"upload\",\n /** the job that will produce the dataset queued in the runner */\n QUEUED: \"queued\",\n /** the job that will produce the dataset is running */\n RUNNING: \"running\",\n /** metadata for the dataset is being discovered/set */\n SETTING_METADATA: \"setting_metadata\",\n\n // ready states\n /** was created without a tool */\n NEW: \"new\",\n /** has no data */\n EMPTY: \"empty\",\n /** has successfully completed running */\n OK: \"ok\",\n\n /** the job that will produce the dataset paused */\n PAUSED: \"paused\",\n /** metadata discovery/setting failed or errored (but otherwise ok) */\n FAILED_METADATA: \"failed_metadata\",\n //TODO: not in trans.app.model.Dataset.states - is in database\n /** not accessible to the current user (i.e. due to permissions) */\n NOT_VIEWABLE: \"noPermission\",\n /** deleted while uploading */\n DISCARDED: \"discarded\",\n /** the tool producing this dataset failed */\n ERROR: \"error\"\n};\n\nSTATES.READY_STATES = [\n STATES.OK,\n STATES.EMPTY,\n STATES.PAUSED,\n STATES.FAILED_METADATA,\n STATES.NOT_VIEWABLE,\n STATES.DISCARDED,\n STATES.ERROR\n];\n\nSTATES.NOT_READY_STATES = [STATES.UPLOAD, STATES.QUEUED, STATES.RUNNING, STATES.SETTING_METADATA, STATES.NEW];\n\n//==============================================================================\nexport default STATES;\n"]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/grid/grid-shared.js"],"names":["View","Backbone","extend","initialize","options","self","this","setElement","$","model","Model","item","get","title","ajax","url","Galaxy","root","param","params","success","response","set","render","grid","attributes","$el","append","_templateShared","shared_by_others","length","$table","it","index","$tmpl","slug","display_url","_","escape","toLowerCase"],"mappings":"sMAEIA,EAAOC,SAASD,KAAKE,QACrBC,WAAY,SAASC,GACjB,IAAIC,EAAOC,KACXA,KAAKC,WAAWC,EAAE,WAClBF,KAAKG,MAAQ,IAAIR,SAASS,MAAMN,GAChCE,KAAKK,KAAOL,KAAKG,MAAMG,IAAI,QAC3BN,KAAKO,MAAQP,KAAKG,MAAMG,IAAI,UAC5BJ,EAAEM,MACEC,IAAQC,OAAOC,KAAOX,KAAKK,KAA3B,IAAmCL,KAAKG,MAAMG,IAAI,aAAlD,IAAkEJ,EAAEU,MAAMF,OAAOG,QACjFC,QAAS,SAASC,GACdhB,EAAKI,MAAMa,IAAID,GACfhB,EAAKkB,aARbA,OAAA,WACA,IAAAC,EAAKf,IAAAA,EAAAA,QAAYR,KAAAA,MAAJwB,YACbnB,KAAAoB,IAAKf,QAAOgB,OAAKlB,EAAMG,KACvBN,KAAAoB,IAAKb,OAALP,KAAasB,oBAGTR,gBAAAA,WACIf,IAAAA,EAAAA,KACAA,EAAAA,EAAAA,YAAAC,KAAAG,MAAAG,IAAA,UAAAP,yCACHD,EAAAE,KAAAG,MAAAgB,WALE,GAAArB,EAAPyB,kBAAAzB,EAAAyB,iBAAAC,OAAA,EAAA,CAPwB,IAAAC,EAAAvB,EA4BhB,+IANZoB,EAAAA,KAAAA,EAAiBC,iBAAA,SAAAG,EAAAC,GACT5B,IAAAA,EAAJW,OAAAC,KAAAZ,EAAAM,KAAIN,0CACA6B,EAAAA,SADA7B,SAEAD,EAAU+B,KACV/B,EAAAA,OAAAA,oBAEIgC,EAFJhC,KAEIiC,EAAAC,OAAAN,EAAAnB,OAFJT,gBAEIiC,EAAAC,OAOGlC,EAAAA,UATPA,gBAmBA8B,EAAAA,OAAMP,QAENO,EAAAA,OAAAA,MAAA5B,KAAAG,MAAwBA,IAAAA,UAAU8B,cAAlCL,+BAEJ,OAAAA,gBAIOlC,KACLA","file":"../../../scripts/mvc/grid/grid-shared.js","sourcesContent":["/** This class renders the grid list with shared section. */\nimport GridView from \"mvc/grid/grid-view\";\nvar View = Backbone.View.extend({\n initialize: function(options) {\n var self = this;\n this.setElement($(\"<div/>\"));\n this.model = new Backbone.Model(options);\n this.item = this.model.get(\"item\");\n this.title = this.model.get(\"plural\");\n $.ajax({\n url: `${Galaxy.root + this.item}/${this.model.get(\"action_id\")}?${$.param(Galaxy.params)}`,\n success: function(response) {\n self.model.set(response);\n self.render();\n }\n });\n },\n\n render: function() {\n var grid = new GridView(this.model.attributes);\n this.$el.empty().append(grid.$el);\n this.$el.append(this._templateShared());\n },\n\n _templateShared: function() {\n var self = this;\n var $tmpl = $(`<div><h2>${this.model.get(\"plural\")} shared with you by others</h2></div>`);\n var options = this.model.attributes;\n if (options.shared_by_others && options.shared_by_others.length > 0) {\n var $table = $(\n '<table class=\"colored\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">' +\n '<tr class=\"header\">' +\n \"<th>Title</th>\" +\n \"<th>Owner</th>\" +\n \"</tr>\" +\n \"</table>\"\n );\n _.each(options.shared_by_others, (it, index) => {\n var display_url = `${Galaxy.root + self.item}/display_by_username_and_slug?username=${\n it.username\n }&slug=${it.slug}`;\n $table.append(\n `<tr><td><a href=\"${display_url}\">${_.escape(it.title)}</a></td><td>${_.escape(\n it.username\n )}</td></tr>`\n );\n });\n $tmpl.append($table);\n } else {\n $tmpl.append(`No ${this.model.get(\"plural\").toLowerCase()} have been shared with you.`);\n }\n return $tmpl;\n }\n});\n\nexport default {\n View: View\n};\n"]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/history/hda-li-edit.js"],"names":["_super","_datasetLiEdit2","default","DatasetListItemEdit","HDAListItemEdit","extend","className","prototype","_fetchModelDetails","view","this","model","inReadyState","hasDetails","fetch","silent","has","data","keys","join","events","_","clone","click .unhide-link","ev","unhide","templates","warnings","hidden","_baseMvc2","wrapTemplate","toString","modelString","_localization2","titleBar","_hdaLi2","HDAListItemView"],"mappings":"ySAMIA,EAASC,EAAAC,QAAgBC,oBAGzBC,EAAkBJ,EAAOK,QAErBC,UAAcN,EAAOO,UAAUD,UAA/B,mBAKAE,mBAAoB,WAChB,IAAIC,EAAOC,KACX,OAAID,EAAKE,MAAMC,iBAAmBH,EAAKE,MAAME,aAClCJ,EAAKE,MAAMG,OAAQC,QAAQ,IAZlDN,EAAAE,MAAAK,IAAA,cASQR,OAAAA,OAQeC,EAAKE,MAAMG,OAf9BV,QAAkBJ,EAClBiB,MAkBoBC,MAAO,aAAc,gBAAgBC,KAAK,SAQ1DC,OAAQC,EAAEhB,OAAOgB,EAAEC,MAAMtB,EAAOO,UAAUa,SAflCG,qBAAA,SAAAC,GAHJ,OAIId,KAAAC,MAAAc,UACO,KAKCP,SAAAA,WAJgB,MAAA,oBAEdR,KAAAC,MAAA,GAAAD,KAAAC,MAAA,cAFc,OAa5BP,EAAAG,UAAAmB,UAAsB,WAClB,IAAAC,EAAAN,EAAKV,UAAMc,EAAXlB,UAAAmB,UAAAC,UACAC,OAAAC,EAAA3B,QAAO4B,cA7BqB,gCAiCpC,gDACAC,EAAAA,EAAAA,SAAU,gCACFC,8DACJ,EAAAC,EAAA/B,SAAA,aACH,OAtCT,SAwDgB,WAbhB,aAMgB,OAAAmB,EAAAhB,UAAAL,EAAAO,UAAAmB,WAJqDQ,SAAjEC,EAAAjC,QAAAkC,gBAAA7B,UAAAmB,UAAAQ,SAoBIP,SAAUA,IArCgB,cAuCjCvB,gBAvBDA","file":"../../../scripts/mvc/history/hda-li-edit.js","sourcesContent":["import DATASET_LI_EDIT from \"mvc/dataset/dataset-li-edit\";\nimport HDA_LI from \"mvc/history/hda-li\";\nimport BASE_MVC from \"mvc/base-mvc\";\nimport _l from \"utils/localization\";\n\n//==============================================================================\nvar _super = DATASET_LI_EDIT.DatasetListItemEdit;\n/** @class Editing view for HistoryDatasetAssociation.\n */\nvar HDAListItemEdit = _super.extend(\n /** @lends HDAListItemEdit.prototype */ {\n className: `${_super.prototype.className} history-content`,\n\n /** In this override, only get details if in the ready state, get rerunnable if in other states.\n * Note: fetch with no 'change' event triggering to prevent automatic rendering.\n */\n _fetchModelDetails: function() {\n var view = this;\n if (view.model.inReadyState() && !view.model.hasDetails()) {\n return view.model.fetch({ silent: true });\n\n // special case the need for the rerunnable and creating_job attributes\n // needed for rendering re-run button on queued, running datasets\n } else if (!view.model.has(\"rerunnable\")) {\n return view.model.fetch({\n silent: true,\n data: {\n // only fetch rerunnable and creating_job to keep overhead down\n keys: [\"rerunnable\", \"creating_job\"].join(\",\")\n }\n });\n }\n return jQuery.when();\n },\n\n /** event map */\n events: _.extend(_.clone(_super.prototype.events), {\n \"click .unhide-link\": function(ev) {\n this.model.unhide();\n return false;\n }\n }),\n\n /** string rep */\n toString: function() {\n var modelString = this.model ? `${this.model}` : \"(no model)\";\n return `HDAListItemEdit(${modelString})`;\n }\n }\n);\n\n// ............................................................................ TEMPLATES\n/** underscore templates */\nHDAListItemEdit.prototype.templates = (() => {\n var warnings = _.extend({}, _super.prototype.templates.warnings, {\n hidden: BASE_MVC.wrapTemplate(\n [\n \"<% if( !dataset.visible ){ %>\",\n // add a link to unhide a dataset\n '<div class=\"hidden-msg warningmessagesmall\">',\n _l(\"This dataset has been hidden\"),\n '<br /><a class=\"unhide-link\" a href=\"javascript:void(0);\">',\n _l(\"Unhide it\"),\n \"</a>\",\n \"</div>\",\n \"<% } %>\"\n ],\n \"dataset\"\n )\n });\n\n return _.extend({}, _super.prototype.templates, {\n //NOTE: *steal* the HDAListItemView titleBar\n titleBar: HDA_LI.HDAListItemView.prototype.templates.titleBar,\n warnings: warnings\n });\n})();\n\n//==============================================================================\nexport default {\n HDAListItemEdit: HDAListItemEdit\n};\n"]}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/history/hda-li.js"],"names":["_super","_datasetLi2","default","DatasetListItemView","HDAListItemView","extend","className","prototype","initialize","attributes","options","call","this","model","templates","warnings","_","hidden","_baseMvc2","wrapTemplate","_localization2","titleBar","titleBarTemplate","dataset","hid","escape","name","_historyItemLi2","nametagTemplate","modelString"],"mappings":"wSAMIA,EAASC,EAAAC,QAAWC,oBAMpBC,EAAkBJ,EAAOK,QAErBC,UAAcN,EAAOO,UAAUD,UAA/B,mBAEAE,WAAY,SAASC,EAAYC,GAC7BV,EAAOO,UAAUC,WAAWG,KAAKC,KAAMH,EAAYC,IAX3DV,SAAS,WAkBD,MAAA,oBAjBZY,KAAAC,MAAA,GAAAD,KAAAC,MAAA,cAiBY,OAOZT,EAAgBG,UAAUO,UAAa,WAf/BN,IAaRO,EAAAC,EAAAX,UAAAL,EAAAO,UAAAO,UAAAC,UACAE,OAAAC,EAAAhB,QAAAiB,cAE2B,gCAAvB,gDAkBY,EAAAC,EAAAlB,SAAG,gCANXa,SACAE,WAGQ,aAWRI,OAAAA,EAAAA,UAAUC,EAAAA,UADkCR,WAE5CC,SA5CY,SAAAQ,GAAA,MAAA,0KAIZA,EAAAC,IAJY,+CAKZR,EAAAS,OAAAF,EAAAG,MALY,+DAQRC,EAAAzB,QAAA0B,gBAA0BC,GARlB,0BA0CgCd,SAAhDA,IA3BmC,cAkCxBX,gBACMA","file":"../../../scripts/mvc/history/hda-li.js","sourcesContent":["import DATASET_LI from \"mvc/dataset/dataset-li\";\nimport BASE_MVC from \"mvc/base-mvc\";\nimport HISTORY_ITEM_LI from \"mvc/history/history-item-li\";\nimport _l from \"utils/localization\";\n\n//==============================================================================\nvar _super = DATASET_LI.DatasetListItemView;\n/** @class Read only view for HistoryDatasetAssociation.\n * Since there are no controls on the HDAView to hide the dataset,\n * the primary thing this class does (currently) is override templates\n * to render the HID.\n */\nvar HDAListItemView = _super.extend(\n /** @lends HDAListItemView.prototype */ {\n className: `${_super.prototype.className} history-content`,\n\n initialize: function(attributes, options) {\n _super.prototype.initialize.call(this, attributes, options);\n },\n\n // ......................................................................... misc\n /** String representation */\n toString: function() {\n var modelString = this.model ? `${this.model}` : \"(no model)\";\n return `HDAListItemView(${modelString})`;\n }\n }\n);\n\n// ............................................................................ TEMPLATES\n/** underscore templates */\nHDAListItemView.prototype.templates = (() => {\n var titleBarTemplate = dataset => `\n <div class=\"title-bar clear\" tabindex=\"0\">\n <span class=\"state-icon\"></span>\n <div class=\"title\">\n <span class=\"hid\">${dataset.hid}</span>\n <span class=\"name\">${_.escape(dataset.name)}</span>\n </div>\n </br>\n ${HISTORY_ITEM_LI.nametagTemplate(dataset)}\n </div>\n `;\n\n var warnings = _.extend({}, _super.prototype.templates.warnings, {\n hidden: BASE_MVC.wrapTemplate(\n [\n // add a warning when hidden\n \"<% if( !dataset.visible ){ %>\",\n '<div class=\"hidden-msg warningmessagesmall\">',\n _l(\"This dataset has been hidden\"),\n \"</div>\",\n \"<% } %>\"\n ],\n \"dataset\"\n )\n });\n\n return _.extend({}, _super.prototype.templates, {\n titleBar: titleBarTemplate,\n warnings: warnings\n });\n})();\n\n//==============================================================================\nexport default {\n HDAListItemView: HDAListItemView\n};\n"]}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/history/hda-model.js"],"names":["_super","_datasetModel2","default","DatasetAssociation","hcontentMixin","_historyContentModel2","HistoryContentMixin","HistoryDatasetAssociation","extend","_baseMvc2","mixin","defaults","_","prototype","history_content_type","model_class"],"mappings":"6SAMIA,QAASC,EAAAC,QAAQC,oBAEjBC,EAAgBC,EAAAH,QAAgBI,oBAGhCC,EAA4BP,EAAOQ,OACnCC,EAAAP,QAASQ,MACLN,GAGIO,SAAUC,EAAEJ,UAAWR,EAAOa,UAAUF,SAAUP,EAAcO,UAC5DG,qBAAsB,UACtBC,YAAa,4CAQzBR,0BAA2BA","file":"../../../scripts/mvc/history/hda-model.js","sourcesContent":["import DATASET from \"mvc/dataset/dataset-model\";\nimport HISTORY_CONTENT from \"mvc/history/history-content-model\";\nimport BASE_MVC from \"mvc/base-mvc\";\nimport _l from \"utils/localization\";\n\n//==============================================================================\nvar _super = DATASET.DatasetAssociation;\n\nvar hcontentMixin = HISTORY_CONTENT.HistoryContentMixin;\n/** @class (HDA) model for a Galaxy dataset contained in and related to a history.\n */\nvar HistoryDatasetAssociation = _super.extend(\n BASE_MVC.mixin(\n hcontentMixin,\n /** @lends HistoryDatasetAssociation.prototype */ {\n /** default attributes for a model */\n defaults: _.extend({}, _super.prototype.defaults, hcontentMixin.defaults, {\n history_content_type: \"dataset\",\n model_class: \"HistoryDatasetAssociation\"\n })\n }\n )\n);\n\n//==============================================================================\nexport default {\n HistoryDatasetAssociation: HistoryDatasetAssociation\n};\n"]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/history/hdca-model.js"],"names":["hcontentMixin","_historyContentModel2","default","HistoryContentMixin","DC","_collectionModel2","DatasetCollection","HistoryDatasetCollection","extend","defaults","_","clone","prototype","history_content_type","model_class","save","attributes","options","this","isNew","url","urlRoot","get","type","call","toString"],"mappings":"4RASIA,QAAgBC,EAAAC,QAAgBC,qBAEhCC,EAAKC,EAAAH,QAASI,kBAKdC,EAA2BH,EAAGI,OAAOR,GAAeQ,QAEhDC,SAAUC,EAAEF,OAAOE,EAAEC,MAAMP,EAAGQ,UAAUH,WAdhDI,qBAAA,qBAgBYC,YAAa,wCAKjBC,KAAM,SAASC,EAAYC,GAR/B,OANKC,KAAAC,WAgBOF,EAAUA,OAd1BG,IAAAF,KAAAG,QAAAH,KAAAI,IAAA,cAAA,aACAN,EAAAA,OAgB2BO,KAAO,sBAb9BnB,EAAAQ,UAAAG,KAAAS,KAAAN,KAAAF,EAAiDC,IACMQ,SADN,WAoBzC,MAAA,UAAiBrB,EAAGQ,UAAUa,SAASD,KAAKN,oBARxCF,yBAAaA","file":"../../../scripts/mvc/history/hdca-model.js","sourcesContent":["import DC_MODEL from \"mvc/collection/collection-model\";\nimport HISTORY_CONTENT from \"mvc/history/history-content-model\";\nimport _l from \"utils/localization\";\n\n/*==============================================================================\n\nModels for DatasetCollections contained within a history.\n\n==============================================================================*/\nvar hcontentMixin = HISTORY_CONTENT.HistoryContentMixin;\n\nvar DC = DC_MODEL.DatasetCollection;\n\n//==============================================================================\n/** @class Backbone model for List Dataset Collection within a History.\n */\nvar HistoryDatasetCollection = DC.extend(hcontentMixin).extend(\n /** @lends HistoryDatasetCollection.prototype */ {\n defaults: _.extend(_.clone(DC.prototype.defaults), {\n history_content_type: \"dataset_collection\",\n model_class: \"HistoryDatasetCollectionAssociation\"\n }),\n\n //==============================================================================\n /** Override to post to contents route w/o id. */\n save: function(attributes, options) {\n if (this.isNew()) {\n options = options || {};\n options.url = `${this.urlRoot + this.get(\"history_id\")}/contents`;\n attributes = attributes || {};\n attributes.type = \"dataset_collection\";\n }\n return DC.prototype.save.call(this, attributes, options);\n },\n\n /** String representation. */\n toString: function() {\n return `History${DC.prototype.toString.call(this)}`;\n }\n }\n);\n\n//==============================================================================\nexport default {\n HistoryDatasetCollection: HistoryDatasetCollection\n};\n"]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/history/history-item-li.js"],"names":["_templateNametag","tag","_","escape","slice","nametagTemplate","historyItem","uniqueNametags","filter","uniq","tags","t","indexOf","nametagsDisplay","map","length","join"],"mappings":"0EAAA,SAASA,EAAiBC,GACtB,MAAA,kCAAyCC,EAAEC,OAAOF,EAAIG,MAAM,IAA5D,sEAKAC,gBAFJ,SAAyBC,GACrB,IAAIC,EAAiBL,EAAEM,OAAON,EAAEO,KAAKH,EAAYI,MAAO,SAAAC,GAAA,OAA4B,IAAvBA,EAAEC,QAAQ,WAL3EC,EAASb,EAAAA,OAAsBO,GAAAO,IAAAd,GAC3B,MAAA,0CACHO,EAAAQ,OADG,4BAQUF,EAAgBG,KAAK,IAR/B","file":"../../../scripts/mvc/history/history-item-li.js","sourcesContent":["function _templateNametag(tag) {\n return `<span class=\"label label-info\">${_.escape(tag.slice(5))}</span>`;\n}\n\nfunction nametagTemplate(historyItem) {\n let uniqueNametags = _.filter(_.uniq(historyItem.tags), t => t.indexOf(\"name:\") === 0);\n let nametagsDisplay = _.sortBy(uniqueNametags).map(_templateNametag);\n return `\n <div class=\"nametags\" title=\"${uniqueNametags.length} nametags\">\n ${nametagsDisplay.join(\"\")}\n </div>`;\n}\n\nexport default {\n nametagTemplate: nametagTemplate\n};\n"]}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/history/history-list.js"],"names":["HistoryGridView","_gridView2","default","extend","_showCopyDialog","id","history","_historyModel2","History","fetch","fail","alert","done","_copyDialog2","window","parent","Galaxy","currHistoryPanel","loadCurrentHistory","location","reload","popup","operation","item","self","label","onclick","settings","allowed","allow_popup","html","href","url_args","target","confirmation_text","confirm","_add_operation","e","operation_config","encode_id","execute","this","findItemByHtml","func","initialize","options","model","Backbone","Model","url","root","action_id","$","param","params","success","response","set","render","title","attributes","$el","append","grid"],"mappings":"0UAOIA,EAAkBC,EAAAC,QAASC,QAC3BC,gBAAiB,SAASC,GACtB,IAAIC,EAAU,IAAIC,EAAAL,QAAaM,SAAUH,GAAIA,IAC7CC,EACKG,QACAC,KAAK,WACFC,MAAM,mEAETC,KAAK,YACF,EAAAC,EAAAX,SAAkBI,MAAaM,KAAK,WAC5BE,OAAOC,QAAUD,OAAOC,OAAOC,QAAUF,OAAOC,OAAOC,OAAOC,kBAC9DH,OAAOC,OAAOC,OAAOC,iBAAiBC,qBAE1CJ,OAAOK,SAASC,QAAO,QAZvChB,eAAAA,SAAiBiB,EAAAC,EAAAC,GACb,IAAAC,EAAIlB,KACJA,EACKG,EACAC,iBAAWY,EAAAG,OACF,QAANd,EAAMc,QACTH,EACKI,QAAM,SAAArB,GACRmB,EAAApB,gBAAAC,KAGKsB,EAAAC,SAAAN,EAAAO,aACDf,EAAAA,SACHgB,KALDR,EAAAG,MANRM,KAAAJ,EAAAK,SAH8BC,OAAAN,EAAAM,OAiBlCC,kBAAAZ,EAAAa,QACAC,KAAAA,SAAgBC,GACRb,EAAAA,iBACAG,IAAAA,EAAgBW,EAAAA,EAAAA,QAAAA,OAChBhB,EAAAI,QACAJ,EAAAI,QAAoBH,EAAAgB,WAApBf,EAAAgB,QAAAC,KAAAC,eAAAjB,UAUIkB,EAAAA,SAAAA,KAAAA,QACIN,OAAAA,EAAAA,EAAAA,SAAAA,aACAO,WAAA,SAAAC,GACA,IAAArB,EAAAiB,KACInB,KAAAA,WAAAA,EAAAA,WACHmB,KAAAK,MAAA,IAFDC,SAEOC,MACHxB,EAAAA,QAAAA,KACHyB,IAAAjC,OAAAkC,KAAA,WAAAL,EAAAM,UAAA,IAAAC,EAAAC,MAAArC,OAAAsC,QACJC,QAAA,SAAAC,GAbShC,EAAdsB,MAAAW,IAAAD,GAeHhC,EAAAkC,aAKLC,OAAAA,WACAf,IAAAA,EAAAA,IAAY5C,EAAAyC,KAASI,MAASe,YAC1BnB,KAAAoB,IAAIrC,QAAOsC,OAAXC,EAAAF,mBAKIN,KAAAA","file":"../../../scripts/mvc/history/history-list.js","sourcesContent":["import _l from \"utils/localization\";\n/** This class renders the grid list. */\nimport Utils from \"utils/utils\";\nimport GridView from \"mvc/grid/grid-view\";\nimport HistoryModel from \"mvc/history/history-model\";\nimport historyCopyDialog from \"mvc/history/copy-dialog\";\n\nvar HistoryGridView = GridView.extend({\n _showCopyDialog: function(id) {\n var history = new HistoryModel.History({ id: id });\n history\n .fetch()\n .fail(() => {\n alert(\"History could not be fetched. Please contact an administrator\");\n })\n .done(() => {\n historyCopyDialog(history, {}).done(() => {\n if (window.parent && window.parent.Galaxy && window.parent.Galaxy.currHistoryPanel) {\n window.parent.Galaxy.currHistoryPanel.loadCurrentHistory();\n }\n window.location.reload(true);\n });\n });\n },\n /** Add an operation to the items menu */\n _add_operation: function(popup, operation, item) {\n var self = this;\n var settings = item.operation_config[operation.label];\n if (operation.label == \"Copy\") {\n operation.onclick = id => {\n self._showCopyDialog(id);\n };\n }\n if (settings.allowed && operation.allow_popup) {\n popup.addItem({\n html: operation.label,\n href: settings.url_args,\n target: settings.target,\n confirmation_text: operation.confirm,\n func: function(e) {\n e.preventDefault();\n var label = $(e.target).html();\n if (operation.onclick) {\n operation.onclick(item.encode_id);\n } else {\n self.execute(this.findItemByHtml(label));\n }\n }\n });\n }\n }\n});\n\nvar View = Backbone.View.extend({\n title: _l(\"Histories\"),\n initialize: function(options) {\n var self = this;\n this.setElement($(\"<div/>\"));\n this.model = new Backbone.Model();\n Utils.get({\n url: `${Galaxy.root}history/${options.action_id}?${$.param(Galaxy.params)}`,\n success: function(response) {\n self.model.set(response);\n self.render();\n }\n });\n },\n\n render: function() {\n var grid = new HistoryGridView(this.model.attributes);\n this.$el.empty().append(grid.$el);\n }\n});\n\nexport default {\n View: View\n};\n"]}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/history/history-preferences.js"],"names":["HistoryPrefs","default","SessionStorageModel","extend","defaults","expandedIds","show_deleted","show_hidden","addExpanded","model","this","get","current","id","save","isExpanded","contentId","allExpanded","_","values","clearExpanded","set","includeDeleted","val","isUndefined","toString","storageKeyPrefix","historyStorageKey","historyId","Error","clearAll","key","indexOf","sessionStorage","removeItem"],"mappings":"oJAMIA,uDAAeC,QAASC,oBAAoBC,QAGxCC,UAEIC,eACAC,cAAc,EACdC,aAAa,GATzBC,YAAA,SAAAC,GAEIT,IAAAA,EAAeU,KAAAC,IAAA,eACfC,EAAAH,EAAAI,IAAAJ,EAAAE,IAAqC,MACjCD,KAAAI,KAAA,cAAAF,IAIIN,eAAAA,SAHMG,GAINF,IAAAA,EAAaG,KAAAC,IAAA,sBANgBC,EAAAH,EAAAI,IAqB7BH,KAAKI,KAAK,cAAeF,IAVzBG,WAAA,SAAAC,GACA,OAAIJ,EAAAA,OAAUF,KAAKC,IAAI,eAAvBK,GAAA,IAGHC,YAfgC,WA6B7B,OAAOC,EAAEC,OAAOT,KAAKC,IAAI,iBAVzBS,cAAIR,WACJF,KAAAW,IAAOT,mBAgBXU,eAAgB,SAASC,GAPrB,OA7B6BL,EAAAM,YAAAD,IAwCzBb,KAAKW,IAAI,eAAgBE,GAXtBL,KAAEC,IAAO,iBAGpBC,cAAe,SAAAG,GAKX,OArC6BL,EAAAM,YAAAD,IAgDzBb,KAAKW,IAAI,cAAeE,GAX5Bb,KAAAC,IAAA,gBAGIc,SAAA,WACH,MAAA,gBAAAf,KAAAG,GAAA,OAMDa,iBAAOF,WAGPG,kBAAO,SAAPC,GAlD6B,IAAAA,EAiEzB,MAAM,IAAIC,MAAJ,kDAA4DD,GAVzE,OAAA5B,EAAA0B,iBAAAE,GAKDF,IAAAA,SAAkBE,GAad,OAAO,IAAI5B,GAXfa,GAAAb,EAAA2B,kBAAAC,MAKIE,SAAA,SAAAF,GACA,IAAA,IAAO5B,KAAAA,eAXf,IAAA+B,EAAAC,QAAAhC,EAAA0B,mBAyBgBO,eAAeC,WAAWH,iBAHtCD,aAAU9B","file":"../../../scripts/mvc/history/history-preferences.js","sourcesContent":["import BASE_MVC from \"mvc/base-mvc\";\n\nvar logNamespace = \"history\";\n\n// ============================================================================\n/** session storage for individual history preferences */\nvar HistoryPrefs = BASE_MVC.SessionStorageModel.extend(\n /** @lends HistoryPrefs.prototype */ {\n //TODO:?? move to user prefs?\n defaults: {\n //TODO:?? expandedIds to array?\n expandedIds: {},\n show_deleted: false,\n show_hidden: false\n },\n\n /** add an hda id to the hash of expanded hdas */\n addExpanded: function(model) {\n //TODO: use type_id and not model\n var current = this.get(\"expandedIds\");\n current[model.id] = model.get(\"id\");\n this.save(\"expandedIds\", current);\n },\n\n /** remove an hda id from the hash of expanded hdas */\n removeExpanded: function(model) {\n var current = this.get(\"expandedIds\");\n delete current[model.id];\n this.save(\"expandedIds\", current);\n },\n\n isExpanded: function(contentId) {\n return _.result(this.get(\"expandedIds\"), contentId, false);\n },\n\n allExpanded: function() {\n return _.values(this.get(\"expandedIds\"));\n },\n\n clearExpanded: function() {\n this.set(\"expandedIds\", {});\n },\n\n includeDeleted: function(val) {\n // moving the invocation here so other components don't need to know the key\n // TODO: change this key later\n if (!_.isUndefined(val)) {\n this.set(\"show_deleted\", val);\n }\n return this.get(\"show_deleted\");\n },\n\n includeHidden: function(val) {\n // TODO: change this key later\n if (!_.isUndefined(val)) {\n this.set(\"show_hidden\", val);\n }\n return this.get(\"show_hidden\");\n },\n\n toString: function() {\n return `HistoryPrefs(${this.id})`;\n }\n },\n {\n // ........................................................................ class vars\n // class lvl for access w/o instantiation\n storageKeyPrefix: \"history:\",\n\n /** key string to store each histories settings under */\n historyStorageKey: function historyStorageKey(historyId) {\n if (!historyId) {\n throw new Error(`HistoryPrefs.historyStorageKey needs valid id: ${historyId}`);\n }\n // single point of change\n return HistoryPrefs.storageKeyPrefix + historyId;\n },\n\n /** return the existing storage for the history with the given id (or create one if it doesn't exist) */\n get: function get(historyId) {\n return new HistoryPrefs({\n id: HistoryPrefs.historyStorageKey(historyId)\n });\n },\n\n /** clear all history related items in sessionStorage */\n clearAll: function clearAll(historyId) {\n for (var key in sessionStorage) {\n if (key.indexOf(HistoryPrefs.storageKeyPrefix) === 0) {\n sessionStorage.removeItem(key);\n }\n }\n }\n }\n);\n\n//==============================================================================\nexport default {\n HistoryPrefs: HistoryPrefs\n};\n"]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/job/job-params.js"],"names":["View","Backbone","$el_message","initialize","status","options","this","message","console","log","$el","empty","append"],"mappings":"uKAIIA,EAAAC,SAAIC,KAAAA,QACJC,WAAIC,SAASC,GAeTC,KAAKD,QAAUA,EAZnBC,KAAIC,WAAWA,UACXL,KAAAA,UAGAA,OAAAA,WACHM,QAAAC,IAAA,MACJH,KAcYI,IAAIC,QAAQC,OAAO,kCAexBZ,KAAAA","file":"../../../scripts/mvc/job/job-params.js","sourcesContent":["/** Workflow view */\nimport Utils from \"utils/utils\";\n/** Build messages after user action */\nfunction build_messages(self) {\n var $el_message = self.$el.find(\".response-message\");\n var status = Utils.getQueryString(\"status\");\n var message = Utils.getQueryString(\"message\");\n\n if (message && message !== \"\") {\n $el_message.addClass(`${status}message`);\n $el_message.html(`<p>${_.escape(message)}</p>`);\n } else {\n $el_message.html(\"\");\n }\n}\n\n/** View of the main workflow list page */\nvar View = Backbone.View.extend({\n initialize: function(options) {\n var self = this;\n this.options = options;\n this.setElement(\"<div/>\");\n this.render();\n },\n\n render: function() {\n console.log(\"HI\");\n var self = this;\n self.$el.empty().append(\"<h1>Testing</h1>\");\n //var self = this,\n //min_query_length = 3;\n //$.getJSON( Galaxy.root + 'api/workflows/', function( workflows ) {\n //var $el_workflow = null;\n //// Add workflow header\n //// Add user actions message if any\n //build_messages( self );\n //$el_workflow = self.$el.find( '.user-workflows' );\n //// Add the actions buttons\n //$el_workflow.append( self._templateActionButtons() );\n //if( workflows.length > 0) {\n //$el_workflow.append( self._templateWorkflowTable( self, workflows) );\n //self.adjust_actiondropdown( $el_workflow );\n //// Register delete and run workflow events\n //_.each( workflows, function( wf ) {\n //self.confirm_delete( self, wf );\n //});\n //// Register search workflow event\n //self.search_workflow( self, self.$el.find( '.search-wf' ), self.$el.find( '.workflow-search tr' ), min_query_length );\n //}\n //else {\n //$el_workflow.append( self._templateNoWorkflow() );\n //}\n //});\n }\n});\n\nexport default {\n View: View\n};\n"]}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/lazy/lazy-limited.js"],"names":["Backbone","View","extend","initialize","options","this","$container","collection","new_content","max","self","content_list","$message","addClass","append","listenTo","_reset","_refresh","_remove","_done","done","_","size","each","content","remove","hide","model","model_id","id","i","models","view"],"mappings":"+HAEeA,SAASC,KAAKC,QACzBC,WAAY,SAASC,GAEjBC,KAAKC,WAAaF,EAAQE,WAC1BD,KAAKE,WAJEP,EAASC,WACpBE,KAAAA,YAAYC,EAAAI,YACRH,KAAAI,IAAIC,EAAJD,KAAA,GACAJ,KAAAM,gBACAN,KAAAO,SAAKL,EAAAA,UACLM,SAAKL,kBACLM,OAFKP,qBAELF,KAAAI,IAFKF,yBAGLF,KAAAC,WAAKK,OAALN,KAAAO,UACAP,KAAAU,SAAKH,KAALL,WAAgB,QAAAF,KACFW,OAAAX,MAEdA,KAAAU,SAAKT,KAALC,WAAuB,MAAKK,KAA5BK,SAAAZ,MACAA,KAAAU,SAAKA,KAASR,WAAKA,SAAYF,KAASa,QAAxCb,OAMJc,MAAO,WADP,IAAAC,EAAAC,EAAAC,KAAAjB,KAAAM,cAAAN,KAAAI,IAEI,OADJU,KAAAA,SAAOC,EAAA,OAAW,UACdA,GAMJJ,OAAQ,WADRK,EAAAE,KAAAlB,KAAAM,aAAA,SAAAa,GACAR,EAAQS,WAEAD,KAAAA,gBACHnB,KAFDO,SAAAc,QAQJR,QAAS,SAASS,GADlB,IAAAC,EAAAD,EAAAE,GACAX,EAASb,KAAAM,aAAAiB,GACLJ,IACAA,EAAIA,gBACAA,KAAJb,aAAaiB,IAETvB,KAAAY,YAMRA,SAAU,WADV,IAAAZ,KAAAc,QACAF,IAAAA,IAAUa,KAAAzB,KAAAE,WAAWwB,OAAA,CACb,IAACJ,EAAAtB,KAAcE,WAAAwB,OAAAD,GACfzB,KAAcM,aAAAgB,EAAgBI,IAC1B,IAAA1B,KAAIsB,aAAapB,EAAAA,IAAWwB,CAC5B,IAAIC,EAAO3B,KAAKM,YAAagB,GAEzB,GADJtB,KAAKM,aAAKA,EAAagB,IAAME,EACzBxB,KAAImB,QACJ","file":"../../../scripts/mvc/lazy/lazy-limited.js","sourcesContent":["/** Contains helpers to limit/lazy load views for backbone views */\n\nexport default Backbone.View.extend({\n initialize: function(options) {\n var self = this;\n this.$container = options.$container;\n this.collection = options.collection;\n this.new_content = options.new_content;\n this.max = options.max || 50;\n this.content_list = {};\n this.$message = $(\"<div/>\")\n .addClass(\"ui-limitloader\")\n .append(`...only the first ${this.max} entries are visible.`);\n this.$container.append(this.$message);\n this.listenTo(this.collection, \"reset\", this._reset, this);\n this.listenTo(this.collection, \"add\", this._refresh, this);\n this.listenTo(this.collection, \"remove\", this._remove, this);\n },\n\n /** Checks if the limit has been reached */\n _done: function() {\n var done = _.size(this.content_list) > this.max;\n this.$message[done ? \"show\" : \"hide\"]();\n return done;\n },\n\n /** Remove all content */\n _reset: function() {\n _.each(this.content_list, content => {\n content.remove();\n });\n this.content_list = {};\n this.$message.hide();\n },\n\n /** Remove content */\n _remove: function(model) {\n var model_id = model.id;\n var content = this.content_list[model_id];\n if (content) {\n content.remove();\n delete this.content_list[model_id];\n }\n this._refresh();\n },\n\n /** Refreshes container content by adding new views if visible */\n _refresh: function() {\n if (!this._done()) {\n for (var i in this.collection.models) {\n var model = this.collection.models[i];\n var view = this.content_list[model.id];\n if (!this.content_list[model.id]) {\n var content = this.new_content(model);\n this.content_list[model.id] = content;\n if (this._done()) {\n break;\n }\n }\n }\n }\n }\n});\n"]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/library/library-util.js"],"names":["generateFolderComparator","sort_key","sort_order","itemA","itemB","get","has","toLowerCase","generateLibraryComparator","libraryA","libraryB"],"mappings":"mIAsCIA,yBA9B2B,SAACC,EAAUC,GAAX,OAA0B,SAACC,EAAOC,GAC7D,OAAID,EAAME,IAAI,UAAYD,EAAMC,IAAI,QAC3BF,EAAMG,IAAIL,IAAcG,EAAME,IAAIL,GAE3BE,EAAMG,IAAIL,GAJ1BD,EAAAA,IAAAA,GAEIG,EAAAE,IAAKF,GAAUF,cAAcG,EAAAC,IAAUJ,GAAWM,cAC9C,QAAAL,EAAA,GAAA,EAEAE,EAAAC,IAAAJ,GAAAM,cAAAJ,EAAAE,IAAAJ,GAAAM,cACcD,QAFXJ,GAEeD,EAAf,EAEN,GARgD,EAKtC,EAFA,EAOAC,WAAPC,EAAAE,IAAA,SACH,EAEG,IAkBJG,0BA/BuB,SAAAP,EAAAC,GAAA,OAAA,SAAAO,EAAAC,GAAA,OAA/BD,EAAAJ,IAAAJ,GAAAM,cAAAG,EAAAL,IAAAJ,GAAAM,cAuBA,QAAAL,EAAA,GAAA,EAUQQ,EAASL,IAAIJ,GAAUM,cAAgBE,EAASJ,IAAIJ,GAAUM,cACxC,QAAfL,GAAwB,EAAI,EAEhC","file":"../../../scripts/mvc/library/library-util.js","sourcesContent":["/**\n * Create alphabetical based two-argument comparator\n * that takes into account that Folder comes before Dataset.\n * If sort_key is not present it is set to ''.\n * @param {str} sort_key key to sort by\n * @param {str} sort_order order to sort by (asc, desc)\n * @return {function} two-argument comparator function\n */\nvar generateFolderComparator = (sort_key, sort_order) => (itemA, itemB) => {\n if (itemA.get(\"type\") === itemB.get(\"type\")) {\n if (!itemA.has(sort_key) && !itemB.has(sort_key)) {\n return 0;\n } else if (!itemA.has(sort_key)) {\n return 1;\n } else if (!itemB.has(sort_key)) {\n return -1;\n }\n if (itemA.get(sort_key).toLowerCase() > itemB.get(sort_key).toLowerCase()) {\n return sort_order === \"asc\" ? 1 : -1;\n }\n if (itemB.get(sort_key).toLowerCase() > itemA.get(sort_key).toLowerCase()) {\n return sort_order === \"asc\" ? -1 : 1;\n }\n return 0; // equal\n } else {\n if (itemA.get(\"type\") === \"folder\") {\n return -1; // folder is always before dataset\n }\n return 1;\n }\n};\n/**\n * Create alphabetical based two-argument comparator\n * @param {str} sort_key key to sort by\n * @param {str} sort_order order to sort by (asc, desc)\n * @return {function} two-argument comparator function\n */\nvar generateLibraryComparator = (sort_key, sort_order) => (libraryA, libraryB) => {\n if (libraryA.get(sort_key).toLowerCase() > libraryB.get(sort_key).toLowerCase()) {\n return sort_order === \"asc\" ? 1 : -1;\n }\n if (libraryB.get(sort_key).toLowerCase() > libraryA.get(sort_key).toLowerCase()) {\n return sort_order === \"asc\" ? -1 : 1;\n }\n return 0; // equal\n};\nexport default {\n generateFolderComparator: generateFolderComparator,\n generateLibraryComparator: generateLibraryComparator\n};\n"]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["mvc/tool/tool-genomespace.js"],"names":["openFileBrowser","options","GS_UPLOAD_URL","window","Galaxy","config","genomespace_ui_url","newWin","GS_UI_URL","successCalBack","addEventListener","focus","setCallbackOnGSUploadError"],"mappings":"oIAIIA,gBAAiB,SAASC,GACtB,IACIC,EADYC,OAAOC,OAAOC,OAAOC,mBACjC,oDADJC,EAAIC,OAAYL,KAAAA,EAAA,2BAAhB,4BAKAM,eAAiBR,EAAA,gBAFjBE,OAAAO,iBAII,UAFJD,SAAAA,GACAN,eAAOO,EAAAA,QAIF,GAILH,EAAOI,QAGV,MAAAV,EAAA,gBAAAM,EAAAK,2BAAAP,OAAA","file":"../../../scripts/mvc/tool/tool-genomespace.js","sourcesContent":["// Provides support for interacting with the GenomeSpace File Browser popup dialogue\n\n// tool form templates\nexport default {\n openFileBrowser: function(options) {\n var GS_UI_URL = window.Galaxy.config.genomespace_ui_url;\n var GS_UPLOAD_URL = `${GS_UI_URL}upload/loadUrlToGenomespace.html?getLocation=true`;\n\n var newWin = window.open(GS_UPLOAD_URL, \"GenomeSpace File Browser\", \"height=360px,width=600px\");\n\n successCalBack = options[\"successCallback\"];\n window.addEventListener(\n \"message\",\n e => {\n successCalBack(e.data);\n },\n false\n );\n\n newWin.focus();\n\n if (options[\"errorCallback\"] != null) newWin.setCallbackOnGSUploadError = config[\"errorCallback\"];\n }\n};\n"]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user