mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix onload.js import/require issues; now works with babel->amd
This commit is contained in:
@@ -11,14 +11,20 @@ window.Backbone = Backbone;
|
||||
// console.debug('globals loaded:', window.jQuery, window.Backbone, '...');
|
||||
|
||||
// these are galaxy globals not defined in the provider (although they could be - but why encourage that?)
|
||||
window.panels = require("layout/panel");
|
||||
import Panel from "layout/panel";
|
||||
window.panels = Panel;
|
||||
|
||||
// using extend bc there are multiple fns/objs to decorate the window with
|
||||
_.extend(window, require("layout/modal"));
|
||||
window.async_save_text = require("utils/async-save-text");
|
||||
import layout_modal from "layout/modal";
|
||||
_.extend(window, layout_modal);
|
||||
// _.extend(window, require("layout/modal"));
|
||||
import async_save_text from "utils/async-save-text";
|
||||
window.async_save_text = async_save_text;
|
||||
import POPUPMENU from "ui/popupmenu";
|
||||
window.make_popupmenu = POPUPMENU.make_popupmenu;
|
||||
window.make_popup_menus = POPUPMENU.make_popup_menus;
|
||||
window.init_tag_click_function = require("ui/autocom_tagging");
|
||||
import init_tag_click_function from 'ui/autocom_tagging';
|
||||
window.init_tag_click_function = init_tag_click_function;
|
||||
import TOURS from "mvc/tours";
|
||||
import QUERY_STRING from "utils/query-string-parsing";
|
||||
// console.debug( 'galaxy globals loaded' );
|
||||
|
||||
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
@@ -1 +1 @@
|
||||
{"version":3,"sources":["layout/router.js"],"names":["_jquery","require","_queryStringParsing","_uiMisc","$","Router","Backbone","extend","initialize","page","options","this","push","url","data","__identifer","Math","random","toString","substr","isEmptyObject","param","navigate","trigger","execute","callback","args","name","Galaxy","debug","queryObj","_queryStringParsing2","default","parse","pop","apply","authenticate","message","persistent"],"mappings":"4IAAA,IAAAA,QAAAC,QAAA,mDAEAC,oBAAAD,QAAA,+FACAE,QAAAF,QAAA,2DAFIG,EAAAA,SAAAA,QAIAC,OAASC,SAASD,OAAOE,QAGzBC,WAAY,SAASC,EAAMC,GACvBC,KAAKF,KAAOA,EAPpBE,KAAAD,QAAAA,GACAE,KAAA,SAAAC,EAAAC,IAYQA,EAAOA,OACFC,YAAcC,KAAKC,SACnBC,SAAS,IACTC,OAAO,GACPf,EAAEgB,cAAcN,KAlBzBV,IAAJ,GAAIA,EAAAA,QAAJ,KAAA,IAAA,IAoBYS,GAAOT,EAAEiB,MAAMP,GAAM,IAhB7BT,OAASC,OAASD,EAClBM,KAAAW,SAAAT,GAAAU,SAAA,KAIIC,QAAKd,SAALe,EAAAC,EAAAC,GAL4BC,OAAAC,MAAA,kBAAAJ,EAAAC,EAAAC,GAyB5B,IAAIG,EAAWC,qBAAAC,QAAaC,MAAMP,EAAKQ,OAjB3CR,EAAAd,KAAAkB,GACML,IACKX,KAAAA,aAAPY,EAAAC,GACKZ,EAALoB,MAAmBnB,KAAKC,GAIpBJ,KAAOA,kBAKduB,aApB+B,SAAAV,EAAAC,GAqC5B,OAAO,GAbPC,cAAOC,WACPlB,KAAImB,KAAAA,QACJJ,IAAKd,SAAAA,QAAKkB,SACNL,OAAU,SACNY,QACAZ,sEADJa,YAEO,wBAMfF","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 if (!$.isEmptyObject(data)) {\n url += url.indexOf(\"?\") == -1 ? \"?\" : \"&\";\n url += $.param(data, true);\n }\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:\n \"You must be logged in with proper credentials to make this request.\",\n persistent: true\n })\n );\n }\n});\n\nexport default Router;\n"]}
|
||||
{"version":3,"sources":["layout/router.js"],"names":["$","Router","Backbone","extend","initialize","page","options","this","push","url","data","__identifer","Math","random","toString","substr","indexOf","param","Galaxy","params","navigate","trigger","execute","callback","args","name","debug","queryObj","_queryStringParsing2","default","parse","pop","isEmptyObject","authenticate","access_denied","status","persistent"],"mappings":"sOACIA,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,EAAAA,cAAJU,KAmBYD,IAA4B,GAArBA,EAAIO,QAAQ,KAAa,IAAM,IACtCP,GAAOT,EAAEiB,MAAMP,GAAM,IAf7BQ,OAAAC,OAAAT,EACAH,KAAAa,SAAAX,GAAAY,SAAA,KAICC,QAN+B,SAAAC,EAAAC,EAAAC,GAwB5BP,OAAOQ,MAAM,kBAAmBH,EAAUC,EAAMC,GAhBpD,IAAAE,EAAAC,EAAAC,QAAAC,MAAAN,EAAAO,OACAvB,EAAAA,KAAMmB,GACFjB,IACAA,KAAKC,aAAcC,EAAKC,GAGpBU,EAAGS,MAAAA,KAAFR,GAEDf,KAAAA,kBAoBRwB,aAAc,SAAST,EAAMC,GAd7B,OAAA,GAGIS,cAAIP,WACJH,KAAAA,KAAKhB,QACL,IAAIe,EAAAA,QAAAA,SACAY,OAAI,SACAZ,QADJ,sEAGIa,YAAKF,kBAMbjC","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 if (!$.isEmptyObject(data)) {\n url += url.indexOf(\"?\") == -1 ? \"?\" : \"&\";\n url += $.param(data, true);\n }\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:\n \"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
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/annotation.js"],"names":["_baseMvc","require","_localization","AnnotationEditor","Backbone","View","extend","_baseMvc2","default","LoggableMixin","HiddenUntilActivatedViewMixin","tagName","className","initialize","options","this","tooltipConfig","placement","render","hiddenUntilActivated","$activator","use_textarea","$el","html","_template","listenTo","model","on_finish","newAnnotation","view","save","annotation","silent","fail","$annotation","previous","get","_localization2","join","find","remove","off","stopListening","prototype","call","toString"],"mappings":"4IAAA,IAAAA,SAAAC,QAAA,2DACAC,cAAAD,QAAA,2EACAA,QAAA,oBAFA,IAAAE,iBAAAC,SAAAC,KAOKC,OAAOC,UAAAC,QAAQC,eACfH,OAAOC,UAAAC,QAAQE,+BACfJ,QARLK,QAAA,MAUQC,UAAW,qBATnBC,WAAA,SAAAC,GAaYA,EAAUA,MACVC,KAAKC,cAAgBF,EAAQE,gBACzBC,UAAW,UAXvBd,KAAAA,SAAmBC,KAAAA,MAClBE,oBAAO,WAGKS,KADLG,WAeAH,KAAKI,qBAAqBL,EAAQM,WAAYN,IAR9CI,OAAKF,WACDC,IAAAA,EAAWF,KAiBXM,OAlBJN,KAAAO,IAAAC,KAAAR,KAAAS,aAKAT,KAAKU,cAAcC,oBACfL,cAAA,EADJM,UAAA,SAAAC,GAGKT,EAAAA,cAAqBL,KAAQM,GAflCS,EAAAH,MA6BaI,MAAOC,WAAYH,IAAmBI,QAAQ,IAX/DC,KAAA,WACQJ,EACJK,cACmBV,KAAnBK,EAAAH,MAAAS,SAAA,oBAIId,MAMYQ,UAAAA,WAGH,IAAAE,EANLhB,KAAAW,MAAAU,IAAA,cAOH,OAEE,0BArCP,EAAAC,eAAA7B,SAAA,cA+CI,WANG,2BACHuB,EAAAA,OAAaA,GACV,UACHO,KAAA,KA5CJJ,YAAA,WAyDA,OAAOnB,KAAKO,IAAIiB,KAAK,gBAzDrBC,OAAA,WA8DAzB,KAAKmB,YAAYO,MAFrB1B,KAAA2B,cAAA3B,KAAAW,OACQtB,SAAAC,KAAAsC,UAAWH,OAAAI,KAAA7B,OA7Df8B,SAAA,WAqEA,OAAQ,oBAAqB9B,KAAKW,MAAQ,GAAI,KAAKY,KAAK,wBAxEpEnC,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\n .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\n .save({ annotation: newAnnotation }, { silent: true })\n .fail(function() {\n view\n .$annotation()\n .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"]}
|
||||
{"version":3,"sources":["mvc/annotation.js"],"names":["AnnotationEditor","Backbone","View","extend","_baseMvc2","default","LoggableMixin","HiddenUntilActivatedViewMixin","tagName","className","initialize","options","this","tooltipConfig","placement","listenTo","model","render","hiddenUntilActivated","$activator","view","on_finish","$el","html","_template","$annotation","make_text_editable","use_textarea","text","newAnnotation","save","annotation","silent","fail","previous","get","_localization2","_","escape","join","find","remove","off","stopListening","call","toString"],"mappings":"6NAMIA,EAAmBC,SAASC,KAC3BC,OAAOC,EAAAC,QAAQC,eACfH,OAAOC,EAAAC,QAAQE,+BACfJ,QACGK,QAAS,MACTC,UAAW,qBAGXC,WAAY,SAASC,GACjBA,EAAUA,MACVC,KAAKC,cAAgBF,EAAQE,gBAbzCC,UAAA,UAOQN,KAASO,SADLH,KAAAI,MAAA,oBAAA,WAEJP,KAAWQ,WAEXL,KAAAM,qBAAAP,EAAAQ,WAAAR,IAIQG,OAAAA,WAD0C,IAA9CM,EAAAR,KAmBIS,OAhBJT,KAAAU,IAAAC,KAAAX,KAAAY,aAGIZ,KAAAa,cAAAC,oBADJC,cAAA,EAGAN,UAAKH,SAAAA,GAfLE,EAAAK,cAAAG,KAAAC,GA4BQT,EAAKJ,MAVjBc,MAAAC,WAAAF,IAAAG,QAAA,IACQC,KAAA,WACJb,EACmBI,cAYEI,KAAKR,EAAKJ,MAAMkB,SAAS,oBAP1Cb,MAQSG,UAAA,WACR,IAAAO,EAAAnB,KAAAI,MAAAmB,IAAA,cAXiC,OAxBtC,0BA8CI,EAAAC,EAAA/B,SAAG,cANX,WAEQ0B,2BACJM,EAAAC,OAAOP,GACH,UACAQ,KAAA,KAWRd,YAAa,WADb,OAAAb,KAAAU,IAAAkB,KAAA,gBAMAC,OAAQ,WADR7B,KAAAa,YAAAiB,MACAD,KAAQE,cAAA/B,KAAWI,OACff,SAAKwB,KAAAA,UAALgB,OAAAG,KAAAhC,OAMJiC,SAAU,WADV,OAAA,oBAAAjC,KAAAI,MAAA,GAAA,KAAAuB,KAAA,kBAKRvC,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\n .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\n .save({ annotation: newAnnotation }, { silent: true })\n .fail(function() {\n view\n .$annotation()\n .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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/dataset/dataset-list.js"],"names":["_listView","require","_datasetLi","_baseMvc","_localization","logNamespace","_super","_listView2","default","ListPanel","DatasetList","extend","_logNamespace","viewClass","_datasetLi2","DatasetListItemView","className","prototype","noneFoundMsg","_localization2","initialize","attributes","this","toString","collection"],"mappings":"4IAAA,IAAAA,UAAAC,QAAA,mEACAC,WAAAD,QAAA,yEACAE,SAAAF,QAAA,2DACAG,cAAAH,QAAA,2EAEII,aAAe,UAJnBC,OAAAC,WAAAC,QAAAC,UAYIC,YAAcJ,OAAOK,QAEjBC,cAAeP,aAZvBQ,UAAAC,YAAAN,QAAAO,oBAgBQC,UAAWV,OAAOW,UAAUD,UAAY,gBAGxCE,cAAc,EAAAC,eAAAX,SAAG,8BAMjBY,WAAY,SAASC,GAlBzBf,OAASW,UAAAG,WAAUX,KAAvBa,KAAAD,IAIIE,SAAA,WACIX,MAAeP,eADiBiB,KAAAE,WAAA,wBAQhCN,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"]}
|
||||
{"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":"0QAUIA,EAASC,EAAAC,QAAUC,UAGnBC,EAAcJ,EAAOK,QAEjBC,cAVW,UAaXC,UAAWC,EAAAN,QAAWO,oBACtBC,UAAWV,EAAOW,UAAUD,UAAY,gBAbhDE,cAAA,EAAAC,EAAAX,SAAA,8BAsBQY,WAAY,SAASC,GAfzBX,EAAAA,UAAqBC,WAAPW,KAAAC,KAAAF,IAIVG,SAAA,WACAX,MAAW,eAAAU,KAAWR,WAAAA,kBAOtBL,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
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/dataset/states.js"],"names":["STATES","UPLOAD","RUNNING","SETTING_METADATA","NEW","EMPTY","OK","PAUSED","FAILED_METADATA","ERROR","DISCARDED","READY_STATES","NOT_READY_STATES","QUEUED"],"mappings":"oEAIA,IAAIA,QAGAC,OAAQ,SAHRD,OAAAA,SAEAE,QAAA,UAEAC,iBAAA,mBAIAC,IAAA,MAOAC,MAAO,QAHPC,GAAA,KAGAD,OAAO,SAEPC,gBAjBS,kBAoBTC,aAAQ,eAERC,UAAAA,YAEAC,MAAA,SAGAC,OAAAA,cACAV,OAAAM,GACAG,OAAOJ,MA7BXL,OAAAO,OAoCIP,OAAOQ,gBAJXR,OAAOW,aAMHX,OAAOU,UAIXV,OAAOY,OAAPZ,OAAOY,kBACHZ,OAAOC,OACPD,OAAOa,OACPb,OAAOE,QACPF,OAAOG,iBACPH,OAAOI,qBAIIJ","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 = [\n STATES.UPLOAD,\n STATES.QUEUED,\n STATES.RUNNING,\n STATES.SETTING_METADATA,\n STATES.NEW\n];\n\n//==============================================================================\nexport default STATES;\n"]}
|
||||
{"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":"6FAIA,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,OAWXV,EAAAa,kBAPIb,EAAOC,OACPD,EAAOE,OACPF,EAAOG,QACPH,EAAOI,iBACPJ,EAAOc,eAIId","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 = [\n STATES.UPLOAD,\n STATES.QUEUED,\n STATES.RUNNING,\n STATES.SETTING_METADATA,\n STATES.NEW\n];\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
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/grid/grid-shared.js"],"names":["_gridView","require","View","Backbone","extend","initialize","options","self","this","setElement","$","model","Model","item","get","title","ajax","url","Galaxy","root","param","success","response","set","render","grid","_gridView2","default","attributes","$el","empty","append","_templateShared","$tmpl","$table","_","shared_by_others","length","display_url","each","it","index","username","slug","escape","toLowerCase"],"mappings":"4IACA,IAAAA,UAAAC,QAAA,mEACIC,KAAOC,SAASD,KAAKE,QACrBC,WAAY,SAASC,GACjB,IAAIC,EAAOC,KACXA,KAAKC,WAAWC,EAAE,WAJ1BF,KAAAG,MAAA,IAAAR,SAAAS,MAAAN,GAMQE,KAAKK,KAAOL,KAAKG,MAAMG,IAAI,QAC3BN,KAAKO,MAAQP,KAAKG,MAAMG,IAAI,UAC5BJ,EAAEM,MACEC,IACIC,OAAOC,KATZhB,KAASD,KACJ,IACJK,KAAOI,MAAXG,IAAA,aACKL,IACAE,EAALS,MAAaF,OAAIf,QACjBkB,QAAY,SAAAC,GACPP,EAAAA,aAAuB,EACrBR,EAAAI,MAAAY,IAAAD,GACHL,EACIC,aAUHM,OAAA,WAZE,IAAPC,EAAA,IAAAC,WAAAC,QAAAnB,KAAAG,MAAAiB,YAPwBpB,KAAAqB,IAAAC,QAAAC,OAAAN,EAAAI,KA0BxBrB,KAAKqB,IAAIE,OAAOvB,KAAKwB,oBADrBA,gBAASF,WACT,IAAAvB,EAASwB,KA1BeE,EAAAvB,EAgCpB,YAFAH,KAAOI,MAAXG,IAAA,UACImB,yCASA3B,EAAI4B,KACAvB,MAAAiB,WAOJO,GAAAA,EAAO7B,kBAAQ8B,EAAkBA,iBAAAC,OAAoB,EAAA,CACjD,IAAAH,EAAII,EAOJJ,+IAwBXC,EAAAI,KAAAjC,EAAA8B,iBAAA,SAAAI,EAAAC,GAlFL,IAAAH,EAqFepB,OAAAC,KACLjB,EAAAA,KAhCU,0CACAsC,EAAGE,SACH,SACAF,EAAGG,KACPT,EAAOH,OACH,oBAGIO,EACA,KACAH,EAAES,OAAOJ,EAAGzB,OACZ,gBAGAoB,EAAES,OAAOJ,EAAGE,UACZ,gBAIZT,EAAMF,OAAOG,QAEbD,EAAMF,OACF,MACIvB,KAAKG,MAAMG,IAAI,UAAU+B,cACzB,+BAGZ,OAAOZ,sBAKX/B,KAAMA","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:\n Galaxy.root +\n this.item +\n \"/\" +\n this.model.get(\"action_id\") +\n \"?\" +\n $.param(Galaxy.params),\n success: function(response) {\n response[\"dict_format\"] = true;\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 = $(\n \"<div>\" +\n \"<h2>\" +\n this.model.get(\"plural\") +\n \" shared with you by others</h2>\" +\n \"</div>\"\n );\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, function(it, index) {\n var display_url =\n Galaxy.root +\n self.item +\n \"/display_by_username_and_slug?username=\" +\n it.username +\n \"&slug=\" +\n it.slug;\n $table.append(\n \"<tr>\" +\n \"<td>\" +\n '<a href=\"' +\n display_url +\n '\">' +\n _.escape(it.title) +\n \"</a>\" +\n \"</td>\" +\n \"<td>\" +\n _.escape(it.username) +\n \"</td>\" +\n \"</tr>\"\n );\n });\n $tmpl.append($table);\n } else {\n $tmpl.append(\n \"No \" +\n this.model.get(\"plural\").toLowerCase() +\n \" have been shared with you.\"\n );\n }\n return $tmpl;\n }\n});\n\nexport default {\n View: View\n};\n"]}
|
||||
{"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","params","success","response","set","render","attributes","grid","$el","append","_templateShared","$tmpl","shared_by_others","length","it","index","display_url","username","slug","$table","_","escape","toLowerCase"],"mappings":"+KAEIA,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,IACIC,OAAOC,KACPX,KAAKK,KACL,IACAL,KAAKG,MAAMG,IAAI,aAZpBX,IACPE,EAAAA,MAAYa,OAAAE,QACRC,QAAId,SAAJe,GACAA,EAAA,aAAA,EACAf,EAAKI,MAAQY,IAAIpB,GACjBI,EAAAiB,aAWQF,OAAAA,WACAf,IAAAA,EAAAA,IAAAA,EAAAA,QAAWgB,KAAID,MAAfG,YACAlB,KAAAA,IAAAA,QAAKiB,OAALE,EAAAC,KACHnB,KAAAmB,IAAAC,OAAApB,KAAAqB,oBAUTA,gBAAiB,WANjBL,IAAAA,EAAQhB,KACJsB,EAAIJ,EACJ,YAzBwBlB,KAAAG,MAAAG,IAAA,UAmChB,yCAJRR,EAAIwB,KACAnB,MAAAc,WAMJ,GAAAnB,EAAIA,kBAAqBmB,EAAzBM,iBAAAC,OAAA,EAAA,CACA,IAAI1B,EAAQyB,EACR,+IAiCAD,EAAAA,KAAAA,EAAMF,iBAEOjB,SAAUsB,EAAAC,GAG1B,IAAAC,EACML,OAAPX,KACHZ,EAAAM,KAlFL,0CAuDoBoB,EA8BLG,SACLlC,SA7BU+B,EAAGI,KACPC,EAAOV,OACH,oBAGIO,EACA,KACAI,EAAEC,OAAOP,EAAGlB,OACZ,gBAGAwB,EAAEC,OAAOP,EAAGG,UACZ,gBAIZN,EAAMF,OAAOU,QAEbR,EAAMF,OACF,MACIpB,KAAKG,MAAMG,IAAI,UAAU2B,cACzB,+BAGZ,OAAOX,gBAKX5B,KAAMA","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:\n Galaxy.root +\n this.item +\n \"/\" +\n this.model.get(\"action_id\") +\n \"?\" +\n $.param(Galaxy.params),\n success: function(response) {\n response[\"dict_format\"] = true;\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 = $(\n \"<div>\" +\n \"<h2>\" +\n this.model.get(\"plural\") +\n \" shared with you by others</h2>\" +\n \"</div>\"\n );\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, function(it, index) {\n var display_url =\n Galaxy.root +\n self.item +\n \"/display_by_username_and_slug?username=\" +\n it.username +\n \"&slug=\" +\n it.slug;\n $table.append(\n \"<tr>\" +\n \"<td>\" +\n '<a href=\"' +\n display_url +\n '\">' +\n _.escape(it.title) +\n \"</a>\" +\n \"</td>\" +\n \"<td>\" +\n _.escape(it.username) +\n \"</td>\" +\n \"</tr>\"\n );\n });\n $tmpl.append($table);\n } else {\n $tmpl.append(\n \"No \" +\n this.model.get(\"plural\").toLowerCase() +\n \" have been shared with you.\"\n );\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
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/history/hda-li-edit.js"],"names":["_datasetLiEdit","require","_hdaLi","_baseMvc","_localization","_super","_datasetLiEdit2","default","DatasetListItemEdit","HDAListItemEdit","extend","className","prototype","_fetchModelDetails","view","this","model","inReadyState","hasDetails","fetch","silent","has","jQuery","when","data","join","events","_","clone","templates","warnings","_localization2","modelString","hidden","_hdaLi2","HDAListItemView","wrapTemplate","titleBar"],"mappings":"4IAAA,IAAAA,eAAAC,QAAA,sFACAC,OAAAD,QAAA,6DACAE,SAAAF,QAAA,2DACAG,cAAAH,QAAA,2EAHAI,OAAAC,gBAAAC,QAAAC,oBASIC,gBAAkBJ,OAAOK,QAErBC,UAAWN,OAAOO,UAAUD,UAAY,mBAKxCE,mBAAoB,WAChB,IAAIC,EAAOC,KAdvB,OAAAD,EAAAE,MAAAC,iBAAAH,EAAAE,MAAAE,aAgBuBJ,EAAKE,MAAMG,OAAQC,QAAQ,IAI1BN,EAAKE,MAAMK,IAAI,cAV/BC,OAAAC,OARRT,EAAAE,MAAAG,OACaC,QAAA,EACbI,MAEsBnB,MAAOK,aAAP,gBAAAe,KAAA,SAQVC,OAAIZ,EAAAA,OAAJa,EAAAC,MAAAvB,OAAAO,UAAAc,SACIZ,qBAAWG,SAAmBH,GAqB9B,OApBAC,KAAOD,MAAKE,UAoBL,KAdHI,SAAAA,WAEI,MAAA,oBADEL,KAAAC,MAAAD,KAAAC,MAAA,GAAA,cACF,OA0BxBP,gBAAgBG,UAAUiB,UAAa,WAlB/B,IAAAC,EAAAH,EAAAjB,UAAAL,OAAAO,UAAAiB,UAAAC,UACAJ,OAAUhB,UAAAA,QAASkB,cAEX,gCAEH,gDA9B+B,EAAAG,eAAAxB,SAAA,gCAmD5B,8DAlBR,EAAAwB,eAAAxB,SAAA,aACU,OACFyB,SACG,WArCnB,aA4CAvB,OAAAA,EAAAA,UAAgBG,OAAUiB,UAAaA,WAE/BI,SAAQC,QAAA3B,QAAA4B,gBAASC,UAETP,UAAAQ,SACAP,SAAAA,IALuB,oBAoB/BO,gBAAU5B","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 = (function() {\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"]}
|
||||
{"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":"+QAMIA,EAASC,EAAAC,QAAgBC,oBAGzBC,EAAkBJ,EAAOK,QAErBC,UAAWN,EAAOO,UAAUD,UAAY,mBAKxCE,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,MAAxB,oBAEUR,KAAAC,MAAAD,KAAAC,MAAA,GAAA,cAFV,OAaJP,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,SAAO,aACV,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 = (function() {\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"]}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/history/hda-li.js"],"names":["_datasetLi","require","_baseMvc","_localization","_super","_datasetLi2","default","DatasetListItemView","HDAListItemView","extend","className","prototype","initialize","attributes","options","call","this","model","templates","_baseMvc2","modelString","titleBarTemplate","warnings","_","hidden","wrapTemplate","titleBar"],"mappings":"4IAAA,IAAAA,WAAAC,QAAA,yEACAC,SAAAD,QAAA,2DACAE,cAAAF,QAAA,2EAGIG,OAASC,YAAAC,QAAWC,oBAMpBC,gBAAkBJ,OAAOK,QAErBC,UAAWN,OAAOO,UAAUD,UAAY,mBAExCE,WAAY,SAASC,EAAYC,GAC7BV,OAAOO,UAAUC,WAAWG,KAAKC,KAAMH,EAAYC,IAX3DV,SAAS,WAkBD,MAAO,oBAjBnBY,KAAAC,MAAAD,KAAAC,MAAA,GAAA,cAiBsD,OAOtDT,gBAAgBG,UAAUO,UAAa,WAf/BN,IAAAA,EAAYO,UAAAb,QAASO,cAmBjB,6CAfJ,mCACA,sBAEQO,+CACJ,gDACH,SAbT,QA+BY,0BAdZ,wFACA,wCACAZ,4DACQa,UAEI,YACA,UAGA,UAcJ,WAMQC,EAAAC,EAAAd,UAAAL,OAAAO,UAAAO,UAAAI,UACAE,OAAAL,UAAAb,QAAAmB,cAUHhB,gCACLiB,gDACAJ,EAAAA,eAAAA,SAAUA,gCAFd,SAtCJ,WA4CA,aANI,OAAOC,EAAEd,UAAWL,OAAOO,UAAUO,WACjCQ,SAAUL,EACVC,SAAUA,IAxCqB,oBA8CnCd,gBAAiBA","file":"../../../scripts/mvc/history/hda-li.js","sourcesContent":["import DATASET_LI from \"mvc/dataset/dataset-li\";\nimport BASE_MVC from \"mvc/base-mvc\";\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 = (function() {\n var titleBarTemplate = BASE_MVC.wrapTemplate(\n [\n // adding the hid display to the title\n '<div class=\"title-bar clear\" tabindex=\"0\">',\n '<span class=\"state-icon\"></span>',\n '<div class=\"title\">',\n //TODO: remove whitespace and use margin-right\n '<span class=\"hid\"><%- dataset.hid %></span> ',\n '<span class=\"name\"><%- dataset.name %></span>',\n \"</div>\",\n \"</br>\",\n '<span class=\"nametags\">',\n \"<% _.each(_.sortBy(_.uniq(dataset.tags), function(x) { return x }), function(tag){ %>\",\n '<% if (tag.indexOf(\"name:\") == 0){ %>',\n '<span class=\"label label-info\"><%- tag.slice(5) %></span>',\n \"<% } %>\",\n \"<% }); %>\",\n \"</span>\",\n \"</div>\"\n ],\n \"dataset\"\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"]}
|
||||
{"version":3,"sources":["mvc/history/hda-li.js"],"names":["_super","_datasetLi2","default","DatasetListItemView","HDAListItemView","extend","className","prototype","initialize","attributes","options","call","this","toString","model","templates","titleBarTemplate","warnings","_","hidden","_baseMvc2","wrapTemplate","titleBar","_localization2"],"mappings":"4OAKIA,EAASC,EAAAC,QAAWC,oBAMpBC,EAAkBJ,EAAOK,QAErBC,UAAWN,EAAOO,UAAUD,UAAY,mBAExCE,WAAY,SAASC,EAAYC,GAC7BV,EAAOO,UAAUC,WAAWG,KAAKC,KAAMH,EAAYC,IAV/DG,SAAA,WAiBY,MAAO,oBADWD,KAAKE,MAAQF,KAAKE,MAAQ,GAAK,cACP,OAR9CN,EAAAA,UAAYO,UAAA,WACRf,IAAAA,EAAOO,EAAAA,QAAUC,cAGrB,6CACA,mCACAK,sBAEI,+CACH,gDAbT,SA8BY,QAbZ,0BACA,wFACAT,wCACQY,4DAEI,UACA,YAGA,UACA,UAgBR,WAIYC,EAAAC,EAAAb,UAAAL,EAAAO,UACAQ,UAAAE,UALqDE,OAAjEC,EAAAlB,QAAAmB,cAeIC,gCACAL,gDAFJ,EAAAM,EAAArB,SAAA,gCAtCJ,SAgCgB,WAEJ,aAIR,OAAOgB,EAAEb,UAAWL,EAAOO,UAAUQ,WACjCO,SAAUN,EACVC,SAAUA,IAvDE,cA6DhBb,gBAAiBA","file":"../../../scripts/mvc/history/hda-li.js","sourcesContent":["import DATASET_LI from \"mvc/dataset/dataset-li\";\nimport BASE_MVC from \"mvc/base-mvc\";\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 = (function() {\n var titleBarTemplate = BASE_MVC.wrapTemplate(\n [\n // adding the hid display to the title\n '<div class=\"title-bar clear\" tabindex=\"0\">',\n '<span class=\"state-icon\"></span>',\n '<div class=\"title\">',\n //TODO: remove whitespace and use margin-right\n '<span class=\"hid\"><%- dataset.hid %></span> ',\n '<span class=\"name\"><%- dataset.name %></span>',\n \"</div>\",\n \"</br>\",\n '<span class=\"nametags\">',\n \"<% _.each(_.sortBy(_.uniq(dataset.tags), function(x) { return x }), function(tag){ %>\",\n '<% if (tag.indexOf(\"name:\") == 0){ %>',\n '<span class=\"label label-info\"><%- tag.slice(5) %></span>',\n \"<% } %>\",\n \"<% }); %>\",\n \"</span>\",\n \"</div>\"\n ],\n \"dataset\"\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"]}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/history/hda-model.js"],"names":["_datasetModel","require","_historyContentModel","_baseMvc","_localization","_super","_datasetModel2","default","DatasetAssociation","hcontentMixin","_historyContentModel2","HistoryContentMixin","HistoryDatasetAssociation","extend","_baseMvc2","mixin","defaults","_","prototype","history_content_type","model_class"],"mappings":"4IAAA,IAAAA,cAAAC,QAAA,kFACAC,qBAAAD,QAAA,wGACAE,SAAAF,QAAA,2DACAG,cAAAH,QAAA,2EAHAI,OAAAC,eAAAC,QAAAC,mBAOIC,cAAgBC,sBAAAH,QAAgBI,oBANpCC,0BAAAP,OAAAQ,OAUIC,UAAAP,QAASQ,MACLN,eAGIO,SAAUC,EAAEJ,UAERR,OAAOa,UAAUF,SAdjCP,cAAAO,UAiBoBG,qBAAsB,UACtBC,YAAa,kDARzBR,0BAAAA","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 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(\n {},\n _super.prototype.defaults,\n hcontentMixin.defaults,\n {\n history_content_type: \"dataset\",\n model_class: \"HistoryDatasetAssociation\"\n }\n )\n }\n )\n);\n\n//==============================================================================\nexport default {\n HistoryDatasetAssociation: HistoryDatasetAssociation\n};\n"]}
|
||||
{"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":"qRAMIA,QAASC,EAAAC,QAAQC,oBACjBC,EAAgBC,EAAAH,QAAgBI,oBAGhCC,EAA4BP,EAAOQ,OACnCC,EAAAP,QAASQ,MACLN,GAGIO,SAAUC,EAAEJ,UAERR,EAAOa,UAAUF,SACjBP,EAAcO,UAEVG,qBAAsB,UAf1CC,YAAA,4CAeoBD,0BAAAA","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 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(\n {},\n _super.prototype.defaults,\n hcontentMixin.defaults,\n {\n history_content_type: \"dataset\",\n model_class: \"HistoryDatasetAssociation\"\n }\n )\n }\n )\n);\n\n//==============================================================================\nexport default {\n HistoryDatasetAssociation: HistoryDatasetAssociation\n};\n"]}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/history/hdca-li-edit.js"],"names":["_hdcaLi","require","_collectionViewEdit","_faIconButton","_localization","_super","_hdcaLi2","default","HDCAListItemView","HDCAListItemEdit","extend","_getFoldoutPanelClass","this","model","get","_collectionViewEdit2","ListCollectionViewEdit","PairCollectionViewEdit","ListOfPairsCollectionViewEdit","ListOfListsCollectionViewEdit","TypeError","_renderPrimaryActions","prototype","call","concat","_renderDeleteButton","self","deleted","title","_localization2","classes","disabled","onclick","$el","find","trigger"],"mappings":"4IAAA,IAAAA,QAAAC,QAAA,gEACAC,oBAAAD,QAAA,wGACAE,cAAAF,QAAA,0EACAG,cAAAH,QAAA,2EAHAI,OAAAC,SAAAC,QAAAC,iBASIC,iBAAmBJ,OAAOK,QAMtBC,sBAAuB,WACnB,OAAQC,KAAKC,MAAMC,IAAI,oBACnB,IAAK,OAdrB,OAAAC,qBAAAR,QAAAS,uBAgBgB,IAAK,SACD,OAAOD,qBAAAR,QAAaU,uBACxB,IAAK,cACD,OAAOF,qBAAAR,QAAaW,8BACxB,IAAK,YAlBrB,OAAAH,qBAAAR,QAAAY,8BAEA,MAAA,IAAAC,UAoBgB,2BAA6BR,KAAKC,MAAMC,IAAI,qBAbpDO,sBAAA,WAGQ,OAFRV,KAAAA,IAAAA,KAAuB,0BAEVN,OAALiB,UAAAD,sBACIE,KAAAX,MACCY,QAALZ,KAAAa,yBAIAA,oBAAA,WACI,IAAAC,EAAOd,KARfe,EAAAf,KAAAC,MAAAC,IAAA,WAUA,OAAUM,EAAAA,eAAAA,UAhBuBQ,MAAAD,GAqCvB,EAAAE,eAAAtB,SAAG,0CAhBjB,EAAAsB,eAAAtB,SAAA,UACAuB,QAAA,aACAT,OAAAA,WACIU,SAAgBJ,EAChBK,QAAA,WAzBiCN,EAAAO,IAAAC,KAAA,wBAAAC,QAAA,YA6CzBT,EAAKb,MAAL,aANJiB,SAAAA,WAEAC,MAAAA,qBANgBnB,KAAAC,MAAAD,KAAAC,MAAA,GAAA,cAAA,wBAavBJ,iBAhDoCA","file":"../../../scripts/mvc/history/hdca-li-edit.js","sourcesContent":["import HDCA_LI from \"mvc/history/hdca-li\";\nimport DC_VIEW_EDIT from \"mvc/collection/collection-view-edit\";\nimport faIconButton from \"ui/fa-icon-button\";\nimport _l from \"utils/localization\";\n\n//==============================================================================\nvar _super = HDCA_LI.HDCAListItemView;\n/** @class Editing view for HistoryDatasetCollectionAssociation.\n */\nvar HDCAListItemEdit = _super.extend(\n /** @lends HDCAListItemEdit.prototype */ {\n /** logger used to record this.log messages, commonly set to console */\n //logger : console,\n\n /** Override to return editable versions of the collection panels */\n _getFoldoutPanelClass: function() {\n switch (this.model.get(\"collection_type\")) {\n case \"list\":\n return DC_VIEW_EDIT.ListCollectionViewEdit;\n case \"paired\":\n return DC_VIEW_EDIT.PairCollectionViewEdit;\n case \"list:paired\":\n return DC_VIEW_EDIT.ListOfPairsCollectionViewEdit;\n case \"list:list\":\n return DC_VIEW_EDIT.ListOfListsCollectionViewEdit;\n }\n throw new TypeError(\n \"Uknown collection_type: \" + this.model.get(\"collection_type\")\n );\n },\n\n // ......................................................................... delete\n /** In this override, add the delete button. */\n _renderPrimaryActions: function() {\n this.log(this + \"._renderPrimaryActions\");\n // render the display, edit attr and delete icon-buttons\n return _super.prototype._renderPrimaryActions\n .call(this)\n .concat([this._renderDeleteButton()]);\n },\n\n /** Render icon-button to delete this collection. */\n _renderDeleteButton: function() {\n var self = this,\n deleted = this.model.get(\"deleted\");\n return faIconButton({\n title: deleted\n ? _l(\"Dataset collection is already deleted\")\n : _l(\"Delete\"),\n classes: \"delete-btn\",\n faIcon: \"fa-times\",\n disabled: deleted,\n onclick: function() {\n // ...bler... tooltips being left behind in DOM (hover out never called on deletion)\n self.$el.find(\".icon-btn.delete-btn\").trigger(\"mouseout\");\n self.model[\"delete\"]();\n }\n });\n },\n\n // ......................................................................... misc\n /** string rep */\n toString: function() {\n var modelString = this.model ? this.model + \"\" : \"(no model)\";\n return \"HDCAListItemEdit(\" + modelString + \")\";\n }\n }\n);\n\n//==============================================================================\nexport default {\n HDCAListItemEdit: HDCAListItemEdit\n};\n"]}
|
||||
{"version":3,"sources":["mvc/history/hdca-li-edit.js"],"names":["_super","_hdcaLi2","default","HDCAListItemView","HDCAListItemEdit","extend","_getFoldoutPanelClass","this","model","get","_collectionViewEdit2","ListCollectionViewEdit","PairCollectionViewEdit","ListOfListsCollectionViewEdit","TypeError","_renderPrimaryActions","log","prototype","call","concat","_renderDeleteButton","self","deleted","_faIconButton2","title","_localization2","classes","faIcon","disabled","onclick","find","trigger"],"mappings":"6RAMIA,EAASC,EAAAC,QAAQC,iBAGjBC,EAAmBJ,EAAOK,QAMtBC,sBAAuB,WACnB,OAAQC,KAAKC,MAAMC,IAAI,oBACnB,IAAK,OACD,OAAOC,EAAAR,QAAaS,uBACxB,IAAK,SACD,OAAOD,EAAAR,QAAaU,uBAfxC,IAAA,cACa,OAAAF,EAAAR,QAAQC,8BACrB,IAAA,YAiBoB,OAAOO,EAAAR,QAAaW,8BAdpC,MAAA,IAAAC,UACI,2BAAAP,KAAAC,MAAAC,IAAA,qBAMQM,sBAAA,WAGI,OAFAR,KAAAS,IAAAT,KAAO,0BAEPP,EAAAiB,UAAOF,sBACXG,KAAKX,MACDY,QAAAZ,KAAOa,yBAIfA,oBAAUN,WAhBuB,IAAAO,EAAAd,KAkC7Be,EAAUf,KAAKC,MAAMC,IAAI,WAbjC,OAAA,EAAAc,EAAArB,UACAsB,MAAAF,GACAP,EAAAA,EAAAA,SAAAA,0CACa,EAAAU,EAAAvB,SAAA,UACTwB,QAAA,aACAC,OAAO3B,WA1B0B4B,SAAAN,EA0C7BO,QAAS,WAVjBT,EAAAA,IAAqBU,KAAA,wBAAAC,QAAW,YACxBV,EAAOb,MAAPa,aASAQ,SAAAA,WAEIR,MAAAA,qBADAd,KAAAC,MAAAD,KAAAC,MAAA,GAAA,cACc,kBAO1BJ,iBAAAA","file":"../../../scripts/mvc/history/hdca-li-edit.js","sourcesContent":["import HDCA_LI from \"mvc/history/hdca-li\";\nimport DC_VIEW_EDIT from \"mvc/collection/collection-view-edit\";\nimport faIconButton from \"ui/fa-icon-button\";\nimport _l from \"utils/localization\";\n\n//==============================================================================\nvar _super = HDCA_LI.HDCAListItemView;\n/** @class Editing view for HistoryDatasetCollectionAssociation.\n */\nvar HDCAListItemEdit = _super.extend(\n /** @lends HDCAListItemEdit.prototype */ {\n /** logger used to record this.log messages, commonly set to console */\n //logger : console,\n\n /** Override to return editable versions of the collection panels */\n _getFoldoutPanelClass: function() {\n switch (this.model.get(\"collection_type\")) {\n case \"list\":\n return DC_VIEW_EDIT.ListCollectionViewEdit;\n case \"paired\":\n return DC_VIEW_EDIT.PairCollectionViewEdit;\n case \"list:paired\":\n return DC_VIEW_EDIT.ListOfPairsCollectionViewEdit;\n case \"list:list\":\n return DC_VIEW_EDIT.ListOfListsCollectionViewEdit;\n }\n throw new TypeError(\n \"Uknown collection_type: \" + this.model.get(\"collection_type\")\n );\n },\n\n // ......................................................................... delete\n /** In this override, add the delete button. */\n _renderPrimaryActions: function() {\n this.log(this + \"._renderPrimaryActions\");\n // render the display, edit attr and delete icon-buttons\n return _super.prototype._renderPrimaryActions\n .call(this)\n .concat([this._renderDeleteButton()]);\n },\n\n /** Render icon-button to delete this collection. */\n _renderDeleteButton: function() {\n var self = this,\n deleted = this.model.get(\"deleted\");\n return faIconButton({\n title: deleted\n ? _l(\"Dataset collection is already deleted\")\n : _l(\"Delete\"),\n classes: \"delete-btn\",\n faIcon: \"fa-times\",\n disabled: deleted,\n onclick: function() {\n // ...bler... tooltips being left behind in DOM (hover out never called on deletion)\n self.$el.find(\".icon-btn.delete-btn\").trigger(\"mouseout\");\n self.model[\"delete\"]();\n }\n });\n },\n\n // ......................................................................... misc\n /** string rep */\n toString: function() {\n var modelString = this.model ? this.model + \"\" : \"(no model)\";\n return \"HDCAListItemEdit(\" + modelString + \")\";\n }\n }\n);\n\n//==============================================================================\nexport default {\n HDCAListItemEdit: HDCAListItemEdit\n};\n"]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/history/history-content-model.js"],"names":["_states","require","_baseMvc","_localization","HistoryContentMixin","defaults","history_id","history_content_type","hid","visible","idAttribute","hidden","isVisible","includeDeleted","includeHidden","this","get","urlRoot","Galaxy","root","url","hide","options","save","jQuery","when","unhide","toString","join"],"mappings":"4IAAA,IAAAA,QAAAC,QAAA,+DACAC,SAAAD,QAAA,2DACAE,cAAAF,QAAA,2EAKIG,qBAEAC,UAEIC,WAAY,KAEZC,qBAAsB,KAEtBC,IAAK,KAELC,SAAS,GATbC,YAAA,UAIIC,OAAA,WACAJ,OAAAA,KAAAA,IAAAA,YASJK,UAAA,SAAAC,EAAAC,GACA,IAAAF,GAAA,EAhBsB,OAiBtBF,IAjBsBK,KAAAC,IAAA,aAAAD,KAAAC,IAAA,YAkCdJ,GAAY,GAdpBE,GAAAC,KAAAC,IAAA,aACQJ,GAAA,GArBcA,GA6CtBK,QAASC,OAAOC,KAAO,iBAbnBC,IAAA,WACA,IAAIA,EACAR,KAAAA,QACHG,KAAAC,IAAA,cACG,aACAJ,KAAAA,IAAAA,wBACH,KACDG,KAAOH,IAAAA,MAvCW,OAAAQ,GA4CtBC,KAAA,SAAAC,GACAL,OAASC,KAAAA,IAAOC,WAGXJ,KAAAQ,MAAWd,SAAA,GAAAa,GAcDE,OAAOC,QALrBC,OAzDqB,SAAAJ,GAoElB,OAAIP,KAAKC,IAAI,WATjBQ,OAAAC,OAESV,KAAKC,MAAIP,SAAY,GAAAa,IAI7BK,SAjEqB,WAkEtB,OAAAZ,KAAAC,IAAA,WAAAD,KAAAC,IAAA,OAAAD,KAAAC,IAAA,SAAAY,KACQ,wBAORxB,oBAAAA","file":"../../../scripts/mvc/history/history-content-model.js","sourcesContent":["import STATES from \"mvc/dataset/states\";\nimport BASE_MVC from \"mvc/base-mvc\";\nimport _l from \"utils/localization\";\n\n//==============================================================================\n/** @class Mixin for HistoryContents content (HDAs, HDCAs).\n */\nvar HistoryContentMixin = {\n /** default attributes for a model */\n defaults: {\n /** parent (containing) history */\n history_id: null,\n /** some content_type (HistoryContents can contain mixed model classes) */\n history_content_type: null,\n /** indicating when/what order the content was generated in the context of the history */\n hid: null,\n /** whether the user wants the content shown (visible) */\n visible: true\n },\n\n // ........................................................................ mixed content element\n // In order to be part of a MIXED bbone collection, we can't rely on the id\n // (which may collide btwn models of different classes)\n // Instead, use type_id which prefixes the history_content_type so the bbone collection can differentiate\n idAttribute: \"type_id\",\n\n // ........................................................................ common queries\n /** the more common alias of visible */\n hidden: function() {\n return !this.get(\"visible\");\n },\n\n //TODO: remove\n /** based on includeDeleted, includeHidden (gen. from the container control),\n * would this ds show in the list of ds's?\n * @param {Boolean} includeDeleted are we showing deleted hdas?\n * @param {Boolean} includeHidden are we showing hidden hdas?\n */\n isVisible: function(includeDeleted, includeHidden) {\n var isVisible = true;\n if (!includeDeleted && (this.get(\"deleted\") || this.get(\"purged\"))) {\n isVisible = false;\n }\n if (!includeHidden && !this.get(\"visible\")) {\n isVisible = false;\n }\n return isVisible;\n },\n\n // ........................................................................ ajax\n //TODO?: these are probably better done on the leaf classes\n /** history content goes through the 'api/histories' API */\n urlRoot: Galaxy.root + \"api/histories/\",\n\n /** full url spec. for this content */\n url: function() {\n var url =\n this.urlRoot +\n this.get(\"history_id\") +\n \"/contents/\" +\n this.get(\"history_content_type\") +\n \"s/\" +\n this.get(\"id\");\n return url;\n },\n\n /** save this content as not visible */\n hide: function(options) {\n if (!this.get(\"visible\")) {\n return jQuery.when();\n }\n return this.save({ visible: false }, options);\n },\n /** save this content as visible */\n unhide: function(options) {\n if (this.get(\"visible\")) {\n return jQuery.when();\n }\n return this.save({ visible: true }, options);\n },\n\n // ........................................................................ misc\n toString: function() {\n return [this.get(\"type_id\"), this.get(\"hid\"), this.get(\"name\")].join(\n \":\"\n );\n }\n};\n\n//==============================================================================\nexport default {\n HistoryContentMixin: HistoryContentMixin\n};\n"]}
|
||||
{"version":3,"sources":["mvc/history/history-content-model.js"],"names":["HistoryContentMixin","defaults","history_id","history_content_type","hid","visible","this","get","isVisible","includeDeleted","includeHidden","idAttribute","hidden","urlRoot","Galaxy","root","url","options","jQuery","when","unhide","save","toString","join"],"mappings":"kOAOIA,GAEAC,UAEIC,WAAY,KAEZC,qBAAsB,KAEtBC,IAAK,KAELC,SAAS,GARbJ,YAAAA,UAIIE,OAAAA,WACA,OAAAG,KAAAC,IAAA,YASJC,UAAA,SAAAC,EAAAC,GACAC,IAAAA,GAAa,EAsBT,OANKF,IAAmBH,KAAKC,IAAI,aAAcD,KAAKC,IAAI,YAd5DC,GAAA,GAEAI,GAAQN,KAAWC,IAAA,aACfC,GAAQ,GAiBDA,GAMXK,QAASC,OAAOC,KAAO,iBAZnBC,IAAA,WACIR,IAAAA,EACHF,KAAAO,QACDP,KAAKI,IAAAA,cACDF,aACHF,KAAAC,IAAA,wBACD,KAvCkBD,KAAAC,IAAA,MAwDlB,OAAOS,GAXXH,KAAAA,SAASC,GAgBL,OAAKR,KAAKC,IAAI,WAZdD,KAAIU,MACKH,SAAL,GACAI,GAJRC,OAAAC,QAoBAC,OAAQ,SAASH,GARjB,OAAAX,KAAAC,IAAA,WACMW,OAAAC,OAEEb,KAAAe,MAAOH,SAAP,GAAAD,IAIRK,SAAA,WACAF,OAAQd,KAAAC,IAAA,WAASU,KAASV,IAAA,OAAAD,KAAAC,IAAA,SAAAgB,KACtB,kBAOJD,oBAAUtB","file":"../../../scripts/mvc/history/history-content-model.js","sourcesContent":["import STATES from \"mvc/dataset/states\";\nimport BASE_MVC from \"mvc/base-mvc\";\nimport _l from \"utils/localization\";\n\n//==============================================================================\n/** @class Mixin for HistoryContents content (HDAs, HDCAs).\n */\nvar HistoryContentMixin = {\n /** default attributes for a model */\n defaults: {\n /** parent (containing) history */\n history_id: null,\n /** some content_type (HistoryContents can contain mixed model classes) */\n history_content_type: null,\n /** indicating when/what order the content was generated in the context of the history */\n hid: null,\n /** whether the user wants the content shown (visible) */\n visible: true\n },\n\n // ........................................................................ mixed content element\n // In order to be part of a MIXED bbone collection, we can't rely on the id\n // (which may collide btwn models of different classes)\n // Instead, use type_id which prefixes the history_content_type so the bbone collection can differentiate\n idAttribute: \"type_id\",\n\n // ........................................................................ common queries\n /** the more common alias of visible */\n hidden: function() {\n return !this.get(\"visible\");\n },\n\n //TODO: remove\n /** based on includeDeleted, includeHidden (gen. from the container control),\n * would this ds show in the list of ds's?\n * @param {Boolean} includeDeleted are we showing deleted hdas?\n * @param {Boolean} includeHidden are we showing hidden hdas?\n */\n isVisible: function(includeDeleted, includeHidden) {\n var isVisible = true;\n if (!includeDeleted && (this.get(\"deleted\") || this.get(\"purged\"))) {\n isVisible = false;\n }\n if (!includeHidden && !this.get(\"visible\")) {\n isVisible = false;\n }\n return isVisible;\n },\n\n // ........................................................................ ajax\n //TODO?: these are probably better done on the leaf classes\n /** history content goes through the 'api/histories' API */\n urlRoot: Galaxy.root + \"api/histories/\",\n\n /** full url spec. for this content */\n url: function() {\n var url =\n this.urlRoot +\n this.get(\"history_id\") +\n \"/contents/\" +\n this.get(\"history_content_type\") +\n \"s/\" +\n this.get(\"id\");\n return url;\n },\n\n /** save this content as not visible */\n hide: function(options) {\n if (!this.get(\"visible\")) {\n return jQuery.when();\n }\n return this.save({ visible: false }, options);\n },\n /** save this content as visible */\n unhide: function(options) {\n if (this.get(\"visible\")) {\n return jQuery.when();\n }\n return this.save({ visible: true }, options);\n },\n\n // ........................................................................ misc\n toString: function() {\n return [this.get(\"type_id\"), this.get(\"hid\"), this.get(\"name\")].join(\n \":\"\n );\n }\n};\n\n//==============================================================================\nexport default {\n HistoryContentMixin: HistoryContentMixin\n};\n"]}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/history/history-list.js"],"names":["_utils","require","_gridView","_historyModel","_copyDialog","View","Backbone","extend","title","initialize","options","self","this","setElement","$","model","Model","_utils2","default","get","url","Galaxy","root","action_id","param","params","success","response","_","each","operation","label","onclick","id","_showCopyDialog","set","render","attributes","grid","$el","history","_historyModel2","History","fetch","done","_copyDialog2","window","parent","currHistoryPanel","location","reload"],"mappings":"4IACA,IAAAA,OAAAC,QAAA,sDACAC,UAAAD,QAAA,mEACAE,cAAAF,QAAA,kFACAG,YAAAH,QAAA,4EACII,KAAOC,SAASD,KAAKE,QAJzBC,MAAA,YAMIC,WAAY,SAASC,GACjB,IAAIC,EAAOC,KACXA,KAAKC,WAAWC,EAAE,WAP1BF,KAAAG,MAAA,IAAAT,SAAAU,MASQC,QAAAC,QAAMC,KACFC,IACIC,OAAOC,KAVvB,WAYgBZ,EAAQa,UACR,IACAT,EAAEU,MAAMH,OAAOI,QAb/BC,QAAA,SAAAC,GAegBA,EAAA,aAA0B,EAC1BC,EAAEC,KAAKF,EAAA,WAAwB,SAASG,GACb,QAAnBA,EAAUC,QACVD,EAAUE,QAAU,SAASC,GACzBtB,EAAKuB,gBAAgBD,OAhBjCtB,EAAAI,MAAAoB,IAAAR,GACJhB,EAAOyB,aAUPV,OAAAA,WACIC,IAAAA,EAAAA,IAAAA,WAAAA,QAASf,KAAAG,MAAiBsB,YAC1BT,KAAAA,IAAAA,QAAOD,OAASW,EAAAC,MAGJ5B,gBAAAA,SAAAA,GACH,IAAA6B,EAAA,IAFDC,eAAAvB,QAAAwB,SAAAT,GAAAA,IAGHO,EACJG,QACDhC,KAAAA,WACAA,MACH,mEAkBAiC,KAAK,YAdN,EAAAC,aAAA3B,SAAWsB,MAAAI,KAAA,WAEfE,OAAAC,QA9BwBD,OAAAC,OAAA1B,QA+CRyB,OAAOC,OAAO1B,OAAO2B,kBAbvBF,OAAIC,OAAA1B,OAAA2B,iBAAuBf,qBAK7Ba,OAAAG,SAAAC,QAAA,2BAaH7C,KAAAA","file":"../../../scripts/mvc/history/history-list.js","sourcesContent":["/** 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\";\nvar View = Backbone.View.extend({\n title: \"Histories\",\n initialize: function(options) {\n var self = this;\n this.setElement($(\"<div/>\"));\n this.model = new Backbone.Model();\n Utils.get({\n url:\n Galaxy.root +\n \"history/\" +\n options.action_id +\n \"?\" +\n $.param(Galaxy.params),\n success: function(response) {\n response[\"dict_format\"] = true;\n _.each(response[\"operations\"], function(operation) {\n if (operation.label == \"Copy\") {\n operation.onclick = function(id) {\n self._showCopyDialog(id);\n };\n }\n });\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 },\n\n _showCopyDialog: function(id) {\n var history = new HistoryModel.History({ id: id });\n history\n .fetch()\n .fail(function() {\n alert(\n \"History could not be fetched. Please contact an administrator\"\n );\n })\n .done(function() {\n historyCopyDialog(history, {}).done(function() {\n if (\n window.parent &&\n window.parent.Galaxy &&\n window.parent.Galaxy.currHistoryPanel\n ) {\n window.parent.Galaxy.currHistoryPanel.loadCurrentHistory();\n }\n window.location.reload(true);\n });\n });\n }\n});\n\nexport default {\n View: View\n};\n"]}
|
||||
{"version":3,"sources":["mvc/history/history-list.js"],"names":["View","Backbone","extend","title","initialize","options","self","this","setElement","$","model","Model","_utils2","default","get","url","Galaxy","root","action_id","param","params","success","response","_","each","operation","label","id","_showCopyDialog","set","render","onclick","fetch","fail","alert","done","$el","_copyDialog2","history","parent","currHistoryPanel","window","loadCurrentHistory"],"mappings":"iRAKIA,EAAOC,SAASD,KAAKE,QACrBC,MAAO,YACPC,WAAY,SAASC,GACjB,IAAIC,EAAOC,KACXA,KAAKC,WAAWC,EAAE,WAClBF,KAAKG,MAAQ,IAAIT,SAASU,MAC1BC,EAAAC,QAAMC,KACFC,IACIC,OAAOC,KACP,WACAZ,EAAQa,UACR,IACAT,EAAEU,MAAMH,OAAOI,QACnBC,QAAS,SAASC,GACdA,EAAA,aAA0B,EAC1BC,EAAEC,KAAKF,EAAA,WAAwB,SAASG,GApBxD,QAAAA,EAAAC,QAKoB1B,EAAKE,QAAO,SAAAyB,GAAArB,EAAAsB,gBAAAD,OAKxBrB,EAAKI,MAAQmB,IAAI5B,GACjBK,EAAAwB,aAUYA,OAAA,WACIL,IAAAA,EAAAA,IAAAA,EAAAA,QAAAA,KAAAA,MAAUM,YACNzB,KAAAA,IAAAA,QAAAA,OAAAA,EAAKsB,MAGhBA,gBAND,SAAAD,GAOArB,IAAAA,EAAAA,IAAKI,EAAAA,QAAUY,SAAfK,GAAAA,IACArB,EACH0B,QAlBLC,KAAA,WANwBC,MAuCZ,mEATZC,KAAKC,YA9BmB,EAAAC,EAAAxB,SAAAyB,MAAAH,KAAA,WAiC5BP,OAAiBW,QACTD,OAAcC,OAAAvB,QAEbgB,OACAC,OAAKjB,OAAWwB,kBAKXC,OAAAF,OAAWvB,OAAAwB,iBAAAE,qBAETD,OACIA,SAAOF,QACPE,qBA9CQzC,KAAhCA","file":"../../../scripts/mvc/history/history-list.js","sourcesContent":["/** 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\";\nvar View = Backbone.View.extend({\n title: \"Histories\",\n initialize: function(options) {\n var self = this;\n this.setElement($(\"<div/>\"));\n this.model = new Backbone.Model();\n Utils.get({\n url:\n Galaxy.root +\n \"history/\" +\n options.action_id +\n \"?\" +\n $.param(Galaxy.params),\n success: function(response) {\n response[\"dict_format\"] = true;\n _.each(response[\"operations\"], function(operation) {\n if (operation.label == \"Copy\") {\n operation.onclick = function(id) {\n self._showCopyDialog(id);\n };\n }\n });\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 },\n\n _showCopyDialog: function(id) {\n var history = new HistoryModel.History({ id: id });\n history\n .fetch()\n .fail(function() {\n alert(\n \"History could not be fetched. Please contact an administrator\"\n );\n })\n .done(function() {\n historyCopyDialog(history, {}).done(function() {\n if (\n window.parent &&\n window.parent.Galaxy &&\n window.parent.Galaxy.currHistoryPanel\n ) {\n window.parent.Galaxy.currHistoryPanel.loadCurrentHistory();\n }\n window.location.reload(true);\n });\n });\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
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
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/job/job-params.js"],"names":["build_messages","self","$el_message","$el","find","status","_utils2","default","getQueryString","message","addClass","html","_","escape","_utils","require","View","Backbone","extend","initialize","this","setElement","render","console","log"],"mappings":"qFAGA,SAASA,eAAeC,GACpB,IAAIC,EAAcD,EAAKE,IAAIC,KAAK,qBAC5BC,EAASC,QAAAC,QAAMC,eAAe,UAJtCC,EAAAH,QAAAC,QAAAC,eAAA,WAOQC,GAAuB,KAAZA,GACXP,EAAYQ,SAASL,EAAS,WAC9BH,EAAYS,KAAK,MAAQC,EAAEC,OAAOJ,GAAW,SARrDP,EAAAS,KAAA,2DADA,IAAAG,OAAAC,QAAA,sDAgBIC,KAAOC,SAASD,KAAKE,QATrBC,WAAIV,SAAWA,GAEXP,KAAAA,QAAYS,EAFhBS,KAGOC,WAAA,UACHnB,KAAAA,UAaJoB,OAAQ,WATZC,QAAAC,IAAA,MAhBAJ,KAiBWH,IAAAA,QAAcC,OAAO,wCA6BxBF,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 status = Utils.getQueryString(\"status\"),\n 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"]}
|
||||
{"version":3,"sources":["mvc/job/job-params.js"],"names":["View","Backbone","$el_message","initialize","status","options","this","message","console","log","$el","empty","append"],"mappings":"kJAIIA,EAAAC,SAAIC,KAAAA,QAAJC,WACIC,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 status = Utils.getQueryString(\"status\"),\n 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"]}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/lazy/lazy-limited.js"],"names":["Backbone","View","extend","initialize","options","this","$container","collection","new_content","max","self","$","$message","content_list","_reset","addClass","_refresh","append","_remove","_done","done","_","size","each","content","remove","model","model_id","id","i","models","view"],"mappings":"oFAEeA,SAASC,KAAKC,QACzBC,WAAY,SAASC,GAHzBC,KAAAC,WAAAF,EAAAE,WAMQD,KAAKE,WAAaH,EAAQG,WAC1BF,KAAKG,YALWP,EAAKC,YACzBC,KAAAA,IAAYC,EAAAK,KAAA,GACRJ,KAAIK,gBACJL,KAAKC,SAALK,EAAkBP,UACbG,SAAAA,kBACAC,OAAAA,qBAAsBA,KAA3BC,IAAA,yBACAJ,KAAKI,WAAML,OAAAC,KAAXO,UACAP,KAAKQ,SAAAA,KAALN,WAAA,QAAAF,KAAAS,OAAAT,MACAA,KAAKO,SAALP,KAAkBE,WACbQ,MAASV,KAAAW,SADEX,MAGhBA,KAAKC,SAAAA,KAAWW,WAAYL,SAA5BP,KAAAa,QAAAb,OAIHc,MAf+B,WAmB5B,IAAIC,EAAOC,EAAEC,KAAKjB,KAAKQ,cAAgBR,KAAKI,IADhDU,OADAd,KAAAO,SAAAQ,EAAA,OAAA,UACOA,GAINN,OAtB+B,WA0B5BO,EAAEE,KAAKlB,KAAKQ,aAAc,SAASW,GAFvCA,EAAAC,WAEIJ,KAAEE,gBACEC,KAAAA,SAAQC,QAIfP,QA/B+B,SAAAQ,GAmC5B,IAAIC,EAAWD,EAAME,GAFzBJ,EAAAnB,KAAAQ,aAAAc,GACAT,IACQS,EAAAA,gBACAH,KAAUX,aAAKA,IAEfW,KAAAA,YAIPR,SA1C+B,WA8C5B,IAAKX,KAAKc,QAFd,IAAA,IAAAU,KAAAxB,KAAAE,WAAAuB,OAAA,CACU,IAAAJ,EAAArB,KAAAE,WAAWuB,OAAAD,GACExB,KAAAQ,aAAAa,EAAAE,IACf,IAASC,KAAKhB,aAAKN,EAAWuB,IAAQ,CAC9BJ,IAAAA,EAAanB,KAAAA,YAAkBsB,GAE/B,GADAE,KAAAA,aAAYlB,EAALe,IAAkBF,EACxBrB,KAAKQ,QACFW","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, function(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"]}
|
||||
{"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":"uGAEeA,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,OAAA,qBAAAT,KAAAI,IAAA,yBACAJ,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, function(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
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
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/tool/tool-genomespace.js"],"names":["openFileBrowser","options","GS_UPLOAD_URL","window","Galaxy","config","genomespace_ui_url","open","GS_UI_URL","successCalBack","addEventListener","e","data","newWin","focus","setCallbackOnGSUploadError"],"mappings":"qFAIIA,gBAAiB,SAASC,GAJ9B,IAMYC,EANZC,OAAAC,OAAAC,OAAAC,mBAEA,oDAEIN,EAAiBG,OAAAI,KACTC,EACAN,2BAMA,4BAGJO,eAAiBR,EAAAA,gBACjBE,OAAOO,iBAGCD,UAEJ,SALJE,GAGQF,eAAeE,EAAEC,QAErB,GAGJC,EAAOC,QAEyB,MAA5Bb,EAAA,gBACAY,EAAOE,2BAA6BV,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 =\n GS_UI_URL + \"upload/loadUrlToGenomespace.html?getLocation=true\";\n\n var newWin = window.open(\n GS_UPLOAD_URL,\n \"GenomeSpace File Browser\",\n \"height=360px,width=600px\"\n );\n\n successCalBack = options[\"successCallback\"];\n window.addEventListener(\n \"message\",\n function(e) {\n successCalBack(e.data);\n },\n false\n );\n\n newWin.focus();\n\n if (options[\"errorCallback\"] != null)\n newWin.setCallbackOnGSUploadError = config[\"errorCallback\"];\n }\n};\n"]}
|
||||
{"version":3,"sources":["mvc/tool/tool-genomespace.js"],"names":["openFileBrowser","options","GS_UPLOAD_URL","window","Galaxy","config","genomespace_ui_url","newWin","successCalBack","addEventListener","focus","e","data","setCallbackOnGSUploadError"],"mappings":"wGAIIA,gBAAiB,SAASC,GACtB,IACIC,EADYC,OAAOC,OAAOC,OAAOC,mBADzCN,oDAEIO,EAAIL,OAAAA,KAIAA,EADJ,2BAGI,4BAOIM,eAAAA,EAAAA,gBACHL,OACDM,iBAJA,UAOJF,SAAOG,GALCF,eAAeG,EAAEC,QAS5B,GAJGL,EAAOG,QAEyB,MAA5BT,EAAA,gBACAM,EAAOM,2BAA6BR,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 =\n GS_UI_URL + \"upload/loadUrlToGenomespace.html?getLocation=true\";\n\n var newWin = window.open(\n GS_UPLOAD_URL,\n \"GenomeSpace File Browser\",\n \"height=360px,width=600px\"\n );\n\n successCalBack = options[\"successCallback\"];\n window.addEventListener(\n \"message\",\n function(e) {\n successCalBack(e.data);\n },\n false\n );\n\n newWin.focus();\n\n if (options[\"errorCallback\"] != null)\n 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
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/toolshed/shed-list-view.js"],"names":["define","toolshed_model","ShedListView","defaults","View","extend","tool_sheds","url","name","initialize","model","this","fetch","options","ShedsCollection","listenTo","render","el","title","_","queue","toolshed_list_template","templateToolshedList","reDraw","$el","html","models","toolshed_util","queueLength","empty","template","join"],"mappings":"aAAAA,QAAQ,8BAA+B,qBAAsB,SACzDC,EADJD,GAuEI,OACIE,aAnEAC,SAAUC,KAAAC,QACNC,UAEQC,aAFIA,IAAA,kCAFYC,KAAA,2BAaxBC,WAAKC,SAAYT,GAEjBU,KAAKD,QAAME,EAAXT,SAAAQ,KAAAE,YAAAF,KAAAR,UAfwBQ,KAAAD,MAAA,IAAAT,EAAAa,gBAcxBH,KAAKI,SAASJ,KAAKD,MAAO,OAAQC,KAAKK,QAIvCL,KAAAD,MAlBwBE,SAqBxBK,GAAA,UAMAD,OAAA,SAAAH,GAEQK,KAAAA,QAAOC,EAAAhB,SACPG,KAAAA,YACAc,EAJRT,KAAAR,UADA,IAAIkB,EAAyBV,KAAKW,qBAUtCC,KAAQC,IAAAC,KACJJ,GACKL,MAAOH,+BAtCYP,WAAAK,KAAAD,MAAAgB,OA+BhBN,MAAOO,EAAcC,kBAqCjC1B,OAAAA,SAAcE,GADlBO,KAAAa,IAAAK,QAvEJlB,KAAAK,OAAAH,IA6CQS,qBAAsBH,EAAEW,UAEhB,yEACA,6DACA,wJACA,SACA,uDACA,yBACA,uBACA,4CACA,4BACA,OACA,wEACA,8GACA,SACA,QACA,QACA,YACA,WACA,SACA,kCACA,UACFC,KAAK","file":"../../../scripts/mvc/toolshed/shed-list-view.js","sourcesContent":["define([\"mvc/toolshed/toolshed-model\", \"mvc/toolshed/util\"], function(\n toolshed_model,\n toolshed_util\n) {\n var View = Backbone.View.extend({\n defaults: {\n tool_sheds: [\n {\n url: \"https://toolshed.g2.bx.psu.edu/\",\n name: \"Galaxy Main Tool Shed\"\n }\n ]\n },\n\n initialize: function(options) {\n var self = this;\n this.options = _.defaults(this.options || {}, this.defaults);\n this.model = new toolshed_model.ShedsCollection();\n this.listenTo(this.model, \"sync\", this.render);\n this.model.fetch();\n },\n\n el: \"#center\",\n\n render: function(options) {\n this.options = _.defaults(\n this.options || {},\n options,\n this.defaults\n );\n var toolshed_list_template = this.templateToolshedList;\n this.$el.html(\n toolshed_list_template({\n title: \"Configured Galaxy Tool Sheds\",\n tool_sheds: this.model.models,\n queue: toolshed_util.queueLength()\n })\n );\n },\n\n reDraw: function(options) {\n this.$el.empty();\n this.render(options);\n },\n\n templateToolshedList: _.template(\n [\n '<div class=\"unified-panel-header\" id=\"panel_header\" unselectable=\"on\">',\n '<div class=\"unified-panel-header-inner\"><%= title %></div>',\n '<div class=\"unified-panel-header-inner\" style=\"position: absolute; right: 5px; top: 0px;\"><a href=\"#/queue\">Repository Queue (<%= queue %>)</a></div>',\n \"</div>\",\n '<div class=\"unified-panel-body\" id=\"list_toolsheds\">',\n '<div class=\"form-row\">',\n '<table class=\"grid\">',\n \"<% _.each(tool_sheds, function(shed) { %>\",\n '<tr class=\"libraryTitle\">',\n \"<td>\",\n '<div style=\"float: left; margin-left: 1px;\" class=\"menubutton split\">',\n '<a class=\"view-info shed-selector\" href=\"#/categories/s/<%= shed.get(\"url\") %>\"><%= shed.get(\"name\") %></a>',\n \"</div>\",\n \"</td>\",\n \"</tr>\",\n \"<% }); %>\",\n \"</table>\",\n \"</div>\",\n '<div style=\"clear: both\"></div>',\n \"</div>\"\n ].join(\"\")\n )\n });\n\n return {\n ShedListView: View\n };\n});\n"]}
|
||||
{"version":3,"sources":["mvc/toolshed/shed-list-view.js"],"names":["define","toolshed_model","toolshed_util","ShedListView","View","Backbone","defaults","tool_sheds","name","initialize","options","this","listenTo","model","render","fetch","ShedsCollection","toolshed_list_template","html","title","queue","templateToolshedList","$el","reDraw","empty","models","queueLength","_","template","join"],"mappings":"kCAAAA,QAAQ,8BAA+B,qBAAsB,SACzDC,EACAC,GAqEA,OACIC,aApEAC,SAAOC,KAASD,QAChBE,UACIC,aAGQC,IAAAA,kCAHIA,KAAA,2BAUZC,WAAA,SAAAC,GAEAC,KAAAD,QAAKE,EAALN,SAAmBO,KAAOH,YAAaI,KAAvCR,UACAK,KAAAE,MAAKA,IAAME,EAAXC,gBACHL,KAhB2BC,SAAAD,KAAAE,MAAA,OAAAF,KAAAG,QAexBH,KAAKE,MAAME,SAKfD,GAAAA,UAMIA,OAAA,SAAIG,GACJN,KAAAD,QAASQ,EAATZ,SAEQa,KAAAA,YACAZ,EACAa,KAAAA,UAGX,IAlC2BH,EAAAN,KAAAU,qBA2BxBV,KAAKW,IAAIJ,KASbK,GACIJ,MAASK,+BACTjB,WAAYG,KAAZG,MAAAY,OAtCwBL,MAAAlB,EAAAwB,kBAmEhCH,OAAO,SAAAb,GACHP,KAAAA,IAAAA,QADJQ,KAAAG,OAAAJ,IA1BIW,qBAAsBM,EAAEC,UAEhB,yEACA,6DACA,wJACA,SACA,uDACA,yBACA,uBACA,4CACA,4BACA,OACA,wEACA,8GACA,SACA,QACA,QACA,YACA,WACA,SACA,kCACA,UACFC,KAAK","file":"../../../scripts/mvc/toolshed/shed-list-view.js","sourcesContent":["define([\"mvc/toolshed/toolshed-model\", \"mvc/toolshed/util\"], function(\n toolshed_model,\n toolshed_util\n) {\n var View = Backbone.View.extend({\n defaults: {\n tool_sheds: [\n {\n url: \"https://toolshed.g2.bx.psu.edu/\",\n name: \"Galaxy Main Tool Shed\"\n }\n ]\n },\n\n initialize: function(options) {\n var self = this;\n this.options = _.defaults(this.options || {}, this.defaults);\n this.model = new toolshed_model.ShedsCollection();\n this.listenTo(this.model, \"sync\", this.render);\n this.model.fetch();\n },\n\n el: \"#center\",\n\n render: function(options) {\n this.options = _.defaults(\n this.options || {},\n options,\n this.defaults\n );\n var toolshed_list_template = this.templateToolshedList;\n this.$el.html(\n toolshed_list_template({\n title: \"Configured Galaxy Tool Sheds\",\n tool_sheds: this.model.models,\n queue: toolshed_util.queueLength()\n })\n );\n },\n\n reDraw: function(options) {\n this.$el.empty();\n this.render(options);\n },\n\n templateToolshedList: _.template(\n [\n '<div class=\"unified-panel-header\" id=\"panel_header\" unselectable=\"on\">',\n '<div class=\"unified-panel-header-inner\"><%= title %></div>',\n '<div class=\"unified-panel-header-inner\" style=\"position: absolute; right: 5px; top: 0px;\"><a href=\"#/queue\">Repository Queue (<%= queue %>)</a></div>',\n \"</div>\",\n '<div class=\"unified-panel-body\" id=\"list_toolsheds\">',\n '<div class=\"form-row\">',\n '<table class=\"grid\">',\n \"<% _.each(tool_sheds, function(shed) { %>\",\n '<tr class=\"libraryTitle\">',\n \"<td>\",\n '<div style=\"float: left; margin-left: 1px;\" class=\"menubutton split\">',\n '<a class=\"view-info shed-selector\" href=\"#/categories/s/<%= shed.get(\"url\") %>\"><%= shed.get(\"name\") %></a>',\n \"</div>\",\n \"</td>\",\n \"</tr>\",\n \"<% }); %>\",\n \"</table>\",\n \"</div>\",\n '<div style=\"clear: both\"></div>',\n \"</div>\"\n ].join(\"\")\n )\n });\n\n return {\n ShedListView: View\n };\n});\n"]}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"sources":["mvc/toolshed/util.js"],"names":["define","searchShed","request","response","that","this","shed_url","Galaxy","root","$","get","base_url","term","tool_shed_url","result_list","shedParser","data","jsondata","hits","each","record","label","result","value","results","repository","name","repo_owner_username","addToQueue","metadata","id","key","queued_repos","JSON","substr","localStorage","length","repo_queue","queue_length","changeset_revision","Object","repositories","parse","stringify","queueLength","hasOwnProperty","keys"],"mappings":"aAAAA,UAAW,WA+DP,OACIC,WA/Da,SAASC,EAASC,GADhC,IAAIC,EAAAC,KACHJ,EAAaI,KAAAC,SACTF,EAAJG,OAAAC,KAAA,uBACAC,EAAAC,IACIC,GAEAA,KAAAA,EACEC,KAAMV,cAAcW,GAElB,SAAIC,GACJX,IAAAA,EAAAC,EAAAW,WAAAC,GALRb,EAAAW,MA4DAC,WAhDWE,SAASC,GACpBT,IAAEU,KACED,EAAIE,EAASF,KAoBjB,OAnBIT,EAAAU,KAAAD,EAAIG,SACAD,GAKJ,IAAIE,EAASJ,EAAEK,GACfC,EATJJ,EAAAK,WAAAC,KAWOF,OAdXJ,EAAAK,WAAAE,oBASY,KAQRC,EAAaH,WAAbG,YACIC,GAAShB,MAATO,EAAAK,WAAJK,GAA8CT,MAAAA,GAC1CQ,EAAAA,KAAShB,KAKTkB,GA2BJH,WAnBII,SAAeC,GAClB,KAAAJ,EAAAhB,cAAAqB,QAAA,KACDF,EAAaD,cAAbF,EAAAhB,cAAAqB,OACAC,EAlBJN,EAAAhB,cAAAuB,OAAA,IAsBI,IAAID,EACAN,EAAIQ,cACJ,IACAR,EAAOS,cAHX,IAKIT,EAAAU,mBACHP,EAAA,IAAAQ,OAPLL,aAAAM,eANQT,EAAeC,KAAKS,MAAMP,aAAaM,eAiB3CxC,EAAYA,GAAAA,EACZc,aAAYA,aAFTkB,KAAAU,UAAAX,IAIHY,YAJJ,WA/DJ,GAAAT,aAAAU,eAAA,gBAAA,CAuDY,IAAIR,EAAaJ,KAAKS,MAAMP,aAAaM,cAEzC,OADmBD,OAAOM,KAAKT,GAAYD,OAG3C,OAAO","file":"../../../scripts/mvc/toolshed/util.js","sourcesContent":["define([], function() {\n var searchShed = function(request, response) {\n var that = this;\n var shed_url = this.shed_url;\n var base_url = Galaxy.root + \"api/tool_shed/search\";\n $.get(\n base_url,\n { term: request.term, tool_shed_url: shed_url },\n function(data) {\n var result_list = that.shedParser(data);\n response(result_list);\n }\n );\n };\n\n var shedParser = function(jsondata) {\n var results = [];\n var hits = jsondata.hits;\n $.each(hits, function(hit) {\n var record = hits[hit];\n var label =\n record.repository.name +\n \" by \" +\n record.repository.repo_owner_username +\n \": \" +\n record.repository.description;\n var result = { value: record.repository.id, label: label };\n results.push(result);\n });\n return results;\n };\n\n var addToQueue = function(metadata) {\n if (metadata.tool_shed_url.substr(-1) == \"/\") {\n metadata.tool_shed_url = metadata.tool_shed_url.substr(\n 0,\n metadata.tool_shed_url.length - 1\n );\n }\n var key =\n metadata.tool_shed_url +\n \"|\" +\n metadata.repository_id +\n \"|\" +\n metadata.changeset_revision;\n var queued_repos = new Object();\n if (localStorage.repositories) {\n queued_repos = JSON.parse(localStorage.repositories);\n }\n queued_repos[key] = metadata;\n localStorage.repositories = JSON.stringify(queued_repos);\n };\n\n var queueLength = function() {\n if (localStorage.hasOwnProperty(\"repositories\")) {\n var repo_queue = JSON.parse(localStorage.repositories);\n var queue_length = Object.keys(repo_queue).length;\n return queue_length;\n } else {\n return 0;\n }\n };\n\n return {\n searchShed: searchShed,\n shedParser: shedParser,\n addToQueue: addToQueue,\n queueLength: queueLength\n };\n});\n"]}
|
||||
{"version":3,"sources":["mvc/toolshed/util.js"],"names":["define","searchShed","request","response","that","this","shed_url","root","$","get","base_url","term","Galaxy","result_list","shedParser","data","results","jsondata","hits","each","record","label","result","repo_owner_username","repository","description","addToQueue","value","metadata","tool_shed_url","localStorage","repositories","queued_repos","JSON","substr","length","stringify","queueLength","queue_length","changeset_revision","Object","parse","key","hasOwnProperty","repo_queue","keys"],"mappings":"kCAAAA,UAAW,WA+DP,OACIC,WA/Da,SAASC,EAASC,GAC/B,IAAIC,EAAOC,KAFZC,EAAID,KAAWC,SACdL,EAAAA,OAAaM,KAAbN,uBACAO,EAAAC,IACAC,GACAC,KAAID,EAAWE,KAAOL,cAAOD,GAC7BE,SACIE,GAGI,IAAIG,EAAcT,EAAKU,WAAWC,GAClCZ,EAASU,MAuDjBC,WAjDIE,SAAJC,GACA,IAAAD,KACAR,EAAOU,EAAMA,KAoBZ,OAnBGV,EAAAW,KAAAD,EAAIE,SAASF,GACb,IAAAE,EAAIC,EACAD,GAKJC,EACAL,EAAAA,WAAaM,KATjB,OAWAF,EAAOJ,WAAPO,oBAdJ,KAUYH,EAAOI,WAAWC,YAO1BC,GAAaC,MAAbD,EAAAA,WAAsBE,GAAUP,MAAAA,GAChCL,EAAIY,KAASC,KAKZb,GA4BDU,WApBII,SAAaC,GACaD,KAA1BE,EAAAA,cAAeC,QAAWH,KAC7BF,EAAAC,cAAAD,EAAAC,cAAAK,OACDF,EACAF,EAAaC,cAAbI,OAAiCC,IAGrC,IAAIC,EACAT,EAAIE,cACA,IACAF,EAAIU,cACJ,IACHV,EAAMW,mBACHP,EAAA,IAAAQ,OACHV,aAAAC,eAPLC,EAAAC,KAAAQ,MAAAX,aAAAC,eAUAC,EAAOU,GAAAd,EACH3B,aAAAA,aADGgC,KAAAG,UAAAJ,IAIHK,YAAAA,WAJG,GAAPP,aAAAa,eAAA,gBAAA,CA/DJ,IAAAC,EAAAX,KAAAQ,MAAAX,aAAAC,cAyDY,OADmBS,OAAOK,KAAKD,GAAYT,OAG3C,OAAO","file":"../../../scripts/mvc/toolshed/util.js","sourcesContent":["define([], function() {\n var searchShed = function(request, response) {\n var that = this;\n var shed_url = this.shed_url;\n var base_url = Galaxy.root + \"api/tool_shed/search\";\n $.get(\n base_url,\n { term: request.term, tool_shed_url: shed_url },\n function(data) {\n var result_list = that.shedParser(data);\n response(result_list);\n }\n );\n };\n\n var shedParser = function(jsondata) {\n var results = [];\n var hits = jsondata.hits;\n $.each(hits, function(hit) {\n var record = hits[hit];\n var label =\n record.repository.name +\n \" by \" +\n record.repository.repo_owner_username +\n \": \" +\n record.repository.description;\n var result = { value: record.repository.id, label: label };\n results.push(result);\n });\n return results;\n };\n\n var addToQueue = function(metadata) {\n if (metadata.tool_shed_url.substr(-1) == \"/\") {\n metadata.tool_shed_url = metadata.tool_shed_url.substr(\n 0,\n metadata.tool_shed_url.length - 1\n );\n }\n var key =\n metadata.tool_shed_url +\n \"|\" +\n metadata.repository_id +\n \"|\" +\n metadata.changeset_revision;\n var queued_repos = new Object();\n if (localStorage.repositories) {\n queued_repos = JSON.parse(localStorage.repositories);\n }\n queued_repos[key] = metadata;\n localStorage.repositories = JSON.stringify(queued_repos);\n };\n\n var queueLength = function() {\n if (localStorage.hasOwnProperty(\"repositories\")) {\n var repo_queue = JSON.parse(localStorage.repositories);\n var queue_length = Object.keys(repo_queue).length;\n return queue_length;\n } else {\n return 0;\n }\n };\n\n return {\n searchShed: searchShed,\n shedParser: shedParser,\n addToQueue: addToQueue,\n queueLength: queueLength\n };\n});\n"]}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user