Minimal gulp task to run uglify, babel, sourcemaps. The new 'clean'

approach also removed some cruft we had sitting in the static/scripts
folder and were unintentionally shipping.
This commit is contained in:
Dannon Baker
2017-04-06 09:34:42 -04:00
parent cbb119c718
commit aae2cd352f
428 changed files with 668 additions and 665 deletions
+27
View File
@@ -0,0 +1,27 @@
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var sourcemaps = require('gulp-sourcemaps');
var del = require('del');
var paths = {
scripts: ['galaxy/scripts/**/*.js',
'galaxy/scripts/!apps/**/*.js'
]
};
gulp.task('scripts', ['clean'], function() {
return gulp.src(paths.scripts)
.pipe(sourcemaps.init())
// Transpile here prior to uglify.
.pipe(uglify())
.pipe(sourcemaps.write('../maps/'))
.pipe(gulp.dest('../static/scripts/'));
});
gulp.task('clean', function(){
// This currently wipes out webpack bundles, too, but it'll keep us from
// shipping cruft. Need to add a whitelist.
return del(['../static/scripts/'], {force: true});
});
gulp.task('default', ['scripts']);
+6 -1
View File
@@ -15,6 +15,7 @@
"babel-core": "^6.24.0",
"babel-loader": "^6.4.1",
"babel-preset-env": "^1.3.2",
"del": "^2.2.2",
"grunt": "^0.4.5",
"grunt-bower-install-simple": "^1.1.0",
"grunt-check-modules": "^1.0.0",
@@ -26,6 +27,9 @@
"grunt-contrib-watch": "^0.6.1",
"grunt-exec": "^0.4.6",
"grunt-spritesmith": "^4.7.1",
"gulp": "^3.9.1",
"gulp-sourcemaps": "^2.5.1",
"gulp-uglify": "^2.1.2",
"webpack": "^2.3.3"
},
"scripts": {
@@ -33,6 +37,7 @@
"webpack": "webpack -p",
"webpack-dev": "webpack -d",
"webpack-dev-watch": "webpack -d --watch",
"build-style": "grunt style"
"build-style": "grunt style",
"gulp": "gulp"
}
}
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
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
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
View File
@@ -1 +1 @@
{"version":3,"file":"annotation.js","sources":["../../src/mvc/annotation.js"],"names":["define","baseMVC","_l","AnnotationEditor","Backbone","View","extend","LoggableMixin","HiddenUntilActivatedViewMixin","tagName","className","initialize","options","this","tooltipConfig","placement","listenTo","model","render","hiddenUntilActivated","$activator","view","$el","html","_template","$annotation","make_text_editable","use_textarea","on_finish","newAnnotation","text","save","annotation","silent","fail","previous","get","_","escape","join","find","remove","off","stopListening","prototype","call","toString"],"mappings":"AAAAA,QACI,eACA,qBACA,oBACD,SAAUC,EAASC,GAItB,GAAIC,GAAmBC,SAASC,KACvBC,OAAQL,EAAQM,eAChBD,OAAQL,EAAQO,+BAAgCF,QAErDG,QAAc,MACdC,UAAc,qBAGdC,WAAa,SAAUC,GACnBA,EAAUA,MACVC,KAAKC,cAAgBF,EAAQE,gBAAmBC,UAAW,UAG3DF,KAAKG,SAAUH,KAAKI,MAAO,oBAAqB,WAC5CJ,KAAKK,WAETL,KAAKM,qBAAsBP,EAAQQ,WAAYR,IAInDM,OAAS,WACL,GAAIG,GAAOR,IAcX,OAbAA,MAAKS,IAAIC,KAAMV,KAAKW,aAGpBX,KAAKY,cAAcC,oBACfC,cAAc,EACdC,UAAW,SAAUC,GACjBR,EAAKI,cAAcK,KAAMD,GACzBR,EAAKJ,MAAMc,MAAOC,WAAYH,IAAmBI,QAAQ,IACpDC,KAAM,WACHb,EAAKI,cAAcK,KAAMT,EAAKJ,MAAMkB,SAAU,oBAIvDtB,MAIXW,UAAY,WACR,GAAIQ,GAAanB,KAAKI,MAAMmB,IAAK,aACjC,QAEI,yBAA0BlC,EAAI,cAAgB,WAE9C,2BACImC,EAAEC,OAAQN,GACd,UACFO,KAAM,KAIZd,YAAc,WACV,MAAOZ,MAAKS,IAAIkB,KAAM,gBAI1BC,OAAS,WACL5B,KAAKY,YAAYiB,MACjB7B,KAAK8B,cAAe9B,KAAKI,OACzBb,SAASC,KAAKuC,UAAUH,OAAOI,KAAMhC,OAIzCiC,SAAW,WAAY,OAAS,oBAAqBjC,KAAKI,MAAQ,GAAI,KAAMsB,KAAK,MAGrF,QACIpC,iBAAmBA"}
{"version":3,"sources":["mvc/annotation.js"],"names":["define","baseMVC","_l","AnnotationEditor","Backbone","View","extend","LoggableMixin","HiddenUntilActivatedViewMixin","tagName","className","initialize","options","this","tooltipConfig","placement","listenTo","model","render","hiddenUntilActivated","$activator","view","$el","html","_template","$annotation","make_text_editable","use_textarea","on_finish","newAnnotation","text","save","annotation","silent","fail","previous","get","_","escape","join","find","remove","off","stopListening","prototype","call","toString"],"mappings":"AAAAA,QACI,eACA,qBACA,oBACD,SAAUC,EAASC,GAuEtB,OACIC,iBApEmBC,SAASC,KACvBC,OAAQL,EAAQM,eAChBD,OAAQL,EAAQO,+BAAgCF,QAErDG,QAAc,MACdC,UAAc,qBAGdC,WAAa,SAAUC,GACnBA,EAAUA,MACVC,KAAKC,cAAgBF,EAAQE,gBAAmBC,UAAW,UAG3DF,KAAKG,SAAUH,KAAKI,MAAO,oBAAqB,WAC5CJ,KAAKK,WAETL,KAAKM,qBAAsBP,EAAQQ,WAAYR,IAInDM,OAAS,WACL,GAAIG,GAAOR,IAcX,OAbAA,MAAKS,IAAIC,KAAMV,KAAKW,aAGpBX,KAAKY,cAAcC,oBACfC,cAAc,EACdC,UAAW,SAAUC,GACjBR,EAAKI,cAAcK,KAAMD,GACzBR,EAAKJ,MAAMc,MAAOC,WAAYH,IAAmBI,QAAQ,IACpDC,KAAM,WACHb,EAAKI,cAAcK,KAAMT,EAAKJ,MAAMkB,SAAU,oBAIvDtB,MAIXW,UAAY,WACR,GAAIQ,GAAanB,KAAKI,MAAMmB,IAAK,aACjC,QAEI,yBAA0BlC,EAAI,cAAgB,WAE9C,2BACImC,EAAEC,OAAQN,GACd,UACFO,KAAM,KAIZd,YAAc,WACV,MAAOZ,MAAKS,IAAIkB,KAAM,gBAI1BC,OAAS,WACL5B,KAAKY,YAAYiB,MACjB7B,KAAK8B,cAAe9B,KAAKI,OACzBb,SAASC,KAAKuC,UAAUH,OAAOI,KAAMhC,OAIzCiC,SAAW,WAAY,OAAS,oBAAqBjC,KAAKI,MAAQ,GAAI,KAAMsB,KAAK","file":"../../scripts/mvc/annotation.js","sourcesContent":["define([\n \"mvc/base-mvc\",\n \"utils/localization\",\n \"ui/editable-text\",\n], function( baseMVC, _l ){\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 ).extend({\n\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 || { placement: 'bottom' };\n //console.debug( this, options );\n // only listen to the model only for changes to annotations\n this.listenTo( this.model, 'change:annotation', function(){\n this.render();\n });\n this.hiddenUntilActivated( options.$activator, options );\n },\n\n /** Build the DOM elements, call select to on the created input, and set up behaviors */\n render : function(){\n var view = this;\n this.$el.html( this._template() );\n\n //TODO: handle empties better\n this.$annotation().make_text_editable({\n use_textarea: true,\n on_finish: function( newAnnotation ){\n view.$annotation().text( newAnnotation );\n view.model.save({ annotation: newAnnotation }, { silent: true })\n .fail( function(){\n view.$annotation().text( view.model.previous( 'annotation' ) );\n });\n }\n });\n return this;\n },\n\n /** @returns {String} the html text used to build the view's DOM */\n _template : function(){\n var annotation = this.model.get( 'annotation' );\n return [\n //TODO: make prompt optional\n '<label class=\"prompt\">', _l( 'Annotation' ), '</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(){ return [ 'AnnotationEditor(', this.model + '', ')' ].join(''); }\n});\n// =============================================================================\nreturn {\n AnnotationEditor : AnnotationEditor\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
@@ -1 +1 @@
{"version":3,"file":"citation-model.js","sources":["../../../src/mvc/citation/citation-model.js"],"names":["define","parseBibtex","baseMVC","window","BibtexParser","logNamespace","Citation","Backbone","Model","extend","LoggableMixin","_logNamespace","defaults","content","initialize","parsed","this","attributes","err","errors","length","reduce","all","current","log","_fields","entry","_","first","entries","rawFields","Fields","key","value","lowerKey","toLowerCase","entryType","EntryType","undefined","fields","BaseCitationCollection","Collection","urlRoot","Galaxy","root","partial","model","HistoryCitationCollection","url","history_id","ToolCitationCollection","tool_id"],"mappings":"AAAAA,QACI,cACA,eACA,sBACD,SAAUC,EAAaC,GAI1BD,EAAcA,GAAeE,OAAOC,YAEpC,IAAIC,GAAe,WAMfC,EAAWC,SAASC,MAAMC,OAAQP,EAAQQ,eAAgBD,QAC1DE,cAAgBN,EAEhBO,UACIC,QAAS,IAGbC,WAAY,WACR,GAAIC,EACJ,KAEIA,EAASd,EAAae,KAAKC,WAAWJ,SACxC,MAAOK,GACL,OAGJ,GAAIH,EAAOI,OAAOC,OAAQ,CAEtB,GAAID,GAASJ,EAAOI,OAAOE,OAAQ,SAAUC,EAAKC,GAAW,MAAOD,GAAM,KAAOC,GAEjFP,MAAKQ,IAAK,yBAA2BL,GAKzC,GAFAH,KAAKS,WACLT,KAAKU,MAAQC,EAAEC,MAAOb,EAAOc,SACzBb,KAAKU,MAAO,CACZ,GAAII,GAAYd,KAAKU,MAAMK,MAC3B,KAAK,GAAIC,KAAOF,GAAW,CACvB,GAAIG,GAAQH,EAAWE,GACnBE,EAAWF,EAAIG,aACnBnB,MAAKS,QAASS,GAAaD,KAIvCG,UAAW,WACP,MAAOpB,MAAKU,MAAOV,KAAKU,MAAMW,UAAYC,QAE9CC,OAAQ,WACJ,MAAOvB,MAAKS,WAQhBe,EAAyBjC,SAASkC,WAAWhC,OAAQP,EAAQQ,eAAgBD,QAC7EE,cAAgBN,EAGhBqC,QAAUC,OAAOC,KAAO,MACxBC,SAAU,EACVC,MAAQxC,IAGRyC,EAA4BP,EAAuB/B,QAEnDuC,IAAM,WACF,MAAOhC,MAAK0B,QAAU,cAAgB1B,KAAKiC,WAAa,gBAI5DC,EAAyBV,EAAuB/B,QAEhDuC,IAAM,WACF,MAAOhC,MAAK0B,QAAU,UAAY1B,KAAKmC,QAAU,cAErDN,SAAU,GAMd,QACIvC,SAAWA,EACXyC,0BAA6BA,EAC7BG,uBAAwBA"}
{"version":3,"sources":["mvc/citation/citation-model.js"],"names":["define","parseBibtex","baseMVC","_l","window","BibtexParser","Citation","Backbone","Model","extend","LoggableMixin","_logNamespace","defaults","content","initialize","parsed","this","attributes","err","errors","length","reduce","all","current","log","_fields","entry","_","first","entries","rawFields","Fields","key","value","lowerKey","toLowerCase","entryType","EntryType","undefined","fields","BaseCitationCollection","Collection","urlRoot","Galaxy","root","partial","model","HistoryCitationCollection","url","history_id","ToolCitationCollection","tool_id"],"mappings":"AAAAA,QACI,cACA,eACA,sBACD,SAAUC,EAAaC,EAASC,GAInCF,EAAcA,GAAeG,OAAOC,YAEpC,IAMIC,GAAWC,SAASC,MAAMC,OAAQP,EAAQQ,eAAgBD,QAC1DE,cAPe,WASfC,UACIC,QAAS,IAGbC,WAAY,WACR,GAAIC,EACJ,KAEIA,EAASd,EAAae,KAAKC,WAAWJ,SACxC,MAAOK,GACL,OAGJ,GAAIH,EAAOI,OAAOC,OAAQ,CAEtB,GAAID,GAASJ,EAAOI,OAAOE,OAAQ,SAAUC,EAAKC,GAAW,MAAOD,GAAM,KAAOC,GAEjFP,MAAKQ,IAAK,yBAA2BL,GAKzC,GAFAH,KAAKS,WACLT,KAAKU,MAAQC,EAAEC,MAAOb,EAAOc,SACzBb,KAAKU,MAAO,CACZ,GAAII,GAAYd,KAAKU,MAAMK,MAC3B,KAAK,GAAIC,KAAOF,GAAW,CACvB,GAAIG,GAAQH,EAAWE,GACnBE,EAAWF,EAAIG,aACnBnB,MAAKS,QAASS,GAAaD,KAIvCG,UAAW,WACP,MAAOpB,MAAKU,MAAOV,KAAKU,MAAMW,cAAYC,IAE9CC,OAAQ,WACJ,MAAOvB,MAAKS,WAQhBe,EAAyBjC,SAASkC,WAAWhC,OAAQP,EAAQQ,eAAgBD,QAC7EE,cArDe,WAwDf+B,QAAUC,OAAOC,KAAO,MACxBC,SAAU,EACVC,MAAQxC,GAqBZ,QACIA,SAAWA,EACXyC,0BApB4BP,EAAuB/B,QAEnDuC,IAAM,WACF,MAAOhC,MAAK0B,QAAU,cAAgB1B,KAAKiC,WAAa,gBAkB5DC,uBAdyBV,EAAuB/B,QAEhDuC,IAAM,WACF,MAAOhC,MAAK0B,QAAU,UAAY1B,KAAKmC,QAAU,cAErDN,SAAU","file":"../../../scripts/mvc/citation/citation-model.js","sourcesContent":["define([\n \"libs/bibtex\",\n \"mvc/base-mvc\",\n \"utils/localization\"\n], function( parseBibtex, baseMVC, _l ){\n/* global Backbone */\n// we use amd here to require, but bibtex uses a global or commonjs pattern.\n// webpack will load via commonjs and plain requirejs will load as global. Check both\nparseBibtex = parseBibtex || window.BibtexParser;\n\nvar logNamespace = 'citation';\n//==============================================================================\n/** @class model for tool citations.\n * @name Citation\n * @augments Backbone.Model\n */\nvar Citation = Backbone.Model.extend( baseMVC.LoggableMixin ).extend({\n _logNamespace : logNamespace,\n\n defaults : {\n content: ''\n },\n\n initialize: function() {\n var parsed;\n try {\n // TODO: to model.parse/.validate\n parsed = parseBibtex( this.attributes.content );\n } catch( err ){\n return;\n }\n // bibtex returns successfully parsed in .entries and any parsing errors in .errors\n if( parsed.errors.length ){\n // the gen. form of these errors seems to be [ line, col, char, error message ]\n var errors = parsed.errors.reduce( function( all, current ){ return all + '; ' + current; });\n // throw new Error( 'Error parsing bibtex: ' + errors );\n this.log( 'Error parsing bibtex: ' + errors );\n }\n\n this._fields = {};\n this.entry = _.first( parsed.entries );\n if( this.entry ){\n var rawFields = this.entry.Fields;\n for( var key in rawFields ){\n var value = rawFields[ key ];\n var lowerKey = key.toLowerCase();\n this._fields[ lowerKey ] = value;\n }\n }\n },\n entryType: function() {\n return this.entry? this.entry.EntryType : undefined;\n },\n fields: function() {\n return this._fields;\n }\n});\n\n\n//==============================================================================\n/** @class Backbone collection of citations.\n */\nvar BaseCitationCollection = Backbone.Collection.extend( baseMVC.LoggableMixin ).extend( {\n _logNamespace : logNamespace,\n\n /** root api url */\n urlRoot : Galaxy.root + 'api',\n partial : true, // Assume some tools in history/workflow may not be properly annotated yet.\n model : Citation,\n} );\n\nvar HistoryCitationCollection = BaseCitationCollection.extend( {\n /** complete api url */\n url : function() {\n return this.urlRoot + '/histories/' + this.history_id + '/citations';\n }\n} );\n\nvar ToolCitationCollection = BaseCitationCollection.extend( {\n /** complete api url */\n url : function() {\n return this.urlRoot + '/tools/' + this.tool_id + '/citations';\n },\n partial : false, // If a tool has citations, assume they are complete.\n} );\n\n\n//==============================================================================\n\nreturn {\n Citation : Citation,\n HistoryCitationCollection : HistoryCitationCollection,\n ToolCitationCollection: ToolCitationCollection\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
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"dataset-list.js","sources":["../../../src/mvc/dataset/dataset-list.js"],"names":["define","LIST_VIEW","DATASET_LI","BASE_MVC","_l","logNamespace","_super","ListPanel","DatasetList","extend","_logNamespace","viewClass","DatasetListItemView","className","prototype","noneFoundMsg","initialize","attributes","call","this","toString","collection"],"mappings":"AAAAA,QACI,qBACA,yBACA,eACA,sBACD,SAAUC,EAAWC,EAAYC,EAAUC,GAC9C,YAEA,IAAIC,GAAe,UAKfC,EAASL,EAAUM,UAGnBC,EAAcF,EAAOG,QAErBC,cAAgBL,EAGhBM,UAAkBT,EAAWU,oBAC7BC,UAAkBP,EAAOQ,UAAUD,UAAY,gBAG/CE,aAAkBX,EAAI,8BAMtBY,WAAa,SAAUC,GACnBX,EAAOQ,UAAUE,WAAWE,KAAMC,KAAMF,IAI5CG,SAAW,WACP,MAAO,eAAiBD,KAAKE,WAAa,MAK9C,QACIb,YAAcA"}
{"version":3,"sources":["mvc/dataset/dataset-list.js"],"names":["define","LIST_VIEW","DATASET_LI","BASE_MVC","_l","_super","ListPanel","DatasetList","extend","_logNamespace","viewClass","DatasetListItemView","className","prototype","noneFoundMsg","initialize","attributes","call","this","toString","collection"],"mappings":"AAAAA,QACI,qBACA,yBACA,eACA,sBACD,SAAUC,EAAWC,EAAYC,EAAUC,GAC9C,YAEA,IAKIC,GAASJ,EAAUK,SA6BnB,QACIC,YA3BUF,EAAOG,QAErBC,cAVe,UAafC,UAAkBR,EAAWS,oBAC7BC,UAAkBP,EAAOQ,UAAUD,UAAY,gBAG/CE,aAAkBV,EAAI,8BAMtBW,WAAa,SAAUC,GACnBX,EAAOQ,UAAUE,WAAWE,KAAMC,KAAMF,IAI5CG,SAAW,WACP,MAAO,eAAiBD,KAAKE,WAAa","file":"../../../scripts/mvc/dataset/dataset-list.js","sourcesContent":["define([\n \"mvc/list/list-view\",\n \"mvc/dataset/dataset-li\",\n \"mvc/base-mvc\",\n \"utils/localization\"\n], function( LIST_VIEW, DATASET_LI, BASE_MVC, _l ){\n'use strict';\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 return {\n DatasetList : DatasetList\n };\n});\n"]}
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"states.js","sources":["../../../src/mvc/dataset/states.js"],"names":["define","STATES","UPLOAD","QUEUED","RUNNING","SETTING_METADATA","NEW","EMPTY","OK","PAUSED","FAILED_METADATA","NOT_VIEWABLE","DISCARDED","ERROR","READY_STATES","NOT_READY_STATES"],"mappings":"AAAAA,UACG,WAEH,YAKA,IAAIC,IAGAC,OAAsB,SAEtBC,OAAsB,SAEtBC,QAAsB,UAEtBC,iBAAsB,mBAItBC,IAAsB,MAEtBC,MAAsB,QAEtBC,GAAsB,KAGtBC,OAAsB,SAEtBC,gBAAsB,kBAGtBC,aAAsB,eAEtBC,UAAsB,YAEtBC,MAAsB,QAuBtB,OApBJZ,GAAOa,cACHb,EAAOO,GACPP,EAAOM,MACPN,EAAOQ,OACPR,EAAOS,gBACPT,EAAOU,aACPV,EAAOW,UACPX,EAAOY,OAGXZ,EAAOc,kBACHd,EAAOC,OACPD,EAAOE,OACPF,EAAOG,QACPH,EAAOI,iBACPJ,EAAOK,KAKAL"}
{"version":3,"sources":["mvc/dataset/states.js"],"names":["define","STATES","UPLOAD","QUEUED","RUNNING","SETTING_METADATA","NEW","EMPTY","OK","PAUSED","FAILED_METADATA","NOT_VIEWABLE","DISCARDED","ERROR","READY_STATES","NOT_READY_STATES"],"mappings":"AAAAA,UACG,WAEH,YAKA,IAAIC,IAGAC,OAAsB,SAEtBC,OAAsB,SAEtBC,QAAsB,UAEtBC,iBAAsB,mBAItBC,IAAsB,MAEtBC,MAAsB,QAEtBC,GAAsB,KAGtBC,OAAsB,SAEtBC,gBAAsB,kBAGtBC,aAAsB,eAEtBC,UAAsB,YAEtBC,MAAsB,QAuBtB,OApBJZ,GAAOa,cACHb,EAAOO,GACPP,EAAOM,MACPN,EAAOQ,OACPR,EAAOS,gBACPT,EAAOU,aACPV,EAAOW,UACPX,EAAOY,OAGXZ,EAAOc,kBACHd,EAAOC,OACPD,EAAOE,OACPF,EAAOG,QACPH,EAAOI,iBACPJ,EAAOK,KAKAL","file":"../../../scripts/mvc/dataset/states.js","sourcesContent":["define([\n], function(){\n\n'use strict';\n//==============================================================================\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\n//==============================================================================\n return STATES;\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
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"hda-li-edit.js","sources":["../../../src/mvc/history/hda-li-edit.js"],"names":["define","DATASET_LI_EDIT","HDA_LI","BASE_MVC","_l","_super","DatasetListItemEdit","HDAListItemEdit","extend","className","prototype","_fetchModelDetails","view","this","model","inReadyState","hasDetails","fetch","silent","has","jQuery","when","data","keys","join","events","_","clone","click .unhide-link","unhide","toString","modelString","templates","warnings","hidden","wrapTemplate","titleBar","HDAListItemView"],"mappings":"AAAAA,QACI,8BACA,qBACA,eACA,sBACD,SAAUC,EAAiBC,EAAQC,EAAUC,GAEhD,YAGA,IAAIC,GAASJ,EAAgBK,oBAGzBC,EAAkBF,EAAOG,QAGzBC,UAAcJ,EAAOK,UAAUD,UAAY,mBAK3CE,mBAAqB,WACjB,GAAIC,GAAOC,IACX,OAAID,GAAKE,MAAMC,iBAAmBH,EAAKE,MAAME,aAClCJ,EAAKE,MAAMG,OAAQC,QAAQ,IAI1BN,EAAKE,MAAMK,IAAK,cAMrBC,OAAOC,OALHT,EAAKE,MAAMG,OAAQC,QAAQ,EAAMI,MAEpCC,MAAQ,aAAc,gBAAiBC,KAAK,SAOxDC,OAASC,EAAElB,OAAQkB,EAAEC,MAAOtB,EAAOK,UAAUe,SACzCG,qBAAuB,WAAqC,MAArBf,MAAKC,MAAMe,UAAiB,KAIvEC,SAAW,WACP,GAAIC,GAAgBlB,KAAW,MAAIA,KAAKC,MAAQ,GAAK,YACrD,OAAO,mBAAqBiB,EAAc,MA8B9C,OAvBJxB,GAAgBG,UAAUsB,UAAa,WAEnC,GAAIC,GAAWP,EAAElB,UAAYH,EAAOK,UAAUsB,UAAUC,UACpDC,OAAS/B,EAASgC,cACd,gCAEI,+CACI/B,EAAI,gCACJ,6DAA8DA,EAAI,aAAe,OACrF,SACJ,WACD,YAGP,OAAOsB,GAAElB,UAAYH,EAAOK,UAAUsB,WAElCI,SAAWlC,EAAOmC,gBAAgB3B,UAAUsB,UAAUI,SACtDH,SAAWA,QAOX1B,gBAAmBA"}
{"version":3,"sources":["mvc/history/hda-li-edit.js"],"names":["define","DATASET_LI_EDIT","HDA_LI","BASE_MVC","_l","_super","DatasetListItemEdit","HDAListItemEdit","extend","className","prototype","_fetchModelDetails","view","this","model","inReadyState","hasDetails","fetch","silent","has","jQuery","when","data","keys","join","events","_","clone","click .unhide-link","ev","unhide","toString","templates","warnings","hidden","wrapTemplate","titleBar","HDAListItemView"],"mappings":"AAAAA,QACI,8BACA,qBACA,eACA,sBACD,SAAUC,EAAiBC,EAAQC,EAAUC,GAEhD,YAGA,IAAIC,GAASJ,EAAgBK,oBAGzBC,EAAkBF,EAAOG,QAGzBC,UAAcJ,EAAOK,UAAUD,UAAY,mBAK3CE,mBAAqB,WACjB,GAAIC,GAAOC,IACX,OAAID,GAAKE,MAAMC,iBAAmBH,EAAKE,MAAME,aAClCJ,EAAKE,MAAMG,OAAQC,QAAQ,IAI1BN,EAAKE,MAAMK,IAAK,cAMrBC,OAAOC,OALHT,EAAKE,MAAMG,OAAQC,QAAQ,EAAMI,MAEpCC,MAAQ,aAAc,gBAAiBC,KAAK,SAOxDC,OAASC,EAAElB,OAAQkB,EAAEC,MAAOtB,EAAOK,UAAUe,SACzCG,qBAAuB,SAAUC,GAA2B,MAArBhB,MAAKC,MAAMgB,UAAiB,KAIvEC,SAAW,WAEP,MAAO,oBADalB,KAAW,MAAIA,KAAKC,MAAQ,GAAK,cACX,MA8B9C,OAvBJP,GAAgBG,UAAUsB,UAAa,WAEnC,GAAIC,GAAWP,EAAElB,UAAYH,EAAOK,UAAUsB,UAAUC,UACpDC,OAAS/B,EAASgC,cACd,gCAEI,+CACI/B,EAAI,gCACJ,6DAA8DA,EAAI,aAAe,OACrF,SACJ,WACD,YAGP,OAAOsB,GAAElB,UAAYH,EAAOK,UAAUsB,WAElCI,SAAWlC,EAAOmC,gBAAgB3B,UAAUsB,UAAUI,SACtDH,SAAWA,QAOX1B,gBAAmBA","file":"../../../scripts/mvc/history/hda-li-edit.js","sourcesContent":["define([\n \"mvc/dataset/dataset-li-edit\",\n \"mvc/history/hda-li\",\n \"mvc/base-mvc\",\n \"utils/localization\"\n], function( DATASET_LI_EDIT, HDA_LI, BASE_MVC, _l ){\n\n'use strict';\n\n//==============================================================================\nvar _super = DATASET_LI_EDIT.DatasetListItemEdit;\n/** @class Editing view for HistoryDatasetAssociation.\n */\nvar HDAListItemEdit = _super.extend(\n/** @lends HDAListItemEdit.prototype */{\n\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({ silent: true, data: {\n // only fetch rerunnable and creating_job to keep overhead down\n keys: [ 'rerunnable', 'creating_job' ].join(',')\n }});\n }\n return jQuery.when();\n },\n\n /** event map */\n events : _.extend( _.clone( _super.prototype.events ), {\n 'click .unhide-link' : function( ev ){ this.model.unhide(); return false; }\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\n var warnings = _.extend( {}, _super.prototype.templates.warnings, {\n hidden : BASE_MVC.wrapTemplate([\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);\">', _l( 'Unhide it' ), '</a>',\n '</div>',\n '<% } %>'\n ], 'dataset' )\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\n//==============================================================================\n return {\n HDAListItemEdit : HDAListItemEdit\n };\n});\n"]}
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"hda-li.js","sources":["../../../src/mvc/history/hda-li.js"],"names":["define","DATASET_LI","BASE_MVC","_l","_super","DatasetListItemView","HDAListItemView","extend","className","prototype","initialize","attributes","options","call","this","toString","modelString","model","templates","titleBarTemplate","wrapTemplate","warnings","_","hidden","titleBar"],"mappings":"AAAAA,QACI,yBACA,eACA,sBACD,SAAUC,EAAYC,EAAUC,GAEnC,YAGA,IAAIC,GAASH,EAAWI,oBAMpBC,EAAkBF,EAAOG,QAGzBC,UAAcJ,EAAOK,UAAUD,UAAY,mBAE3CE,WAAa,SAAUC,EAAYC,GAC/BR,EAAOK,UAAUC,WAAWG,KAAMC,KAAMH,EAAYC,IAKxDG,SAAW,WACP,GAAIC,GAAgBF,KAAW,MAAIA,KAAKG,MAAQ,GAAK,YACrD,OAAO,mBAAqBD,EAAc,MA8C9C,OAxCJV,GAAgBG,UAAUS,UAAa,WAEnC,GAAIC,GAAmBjB,EAASkB,cAE5B,6CACI,mCACA,sBAEI,+CACA,gDACJ,SACA,QACA,0BACI,gDACI,mDACJ,YACJ,UACJ,UACD,WAECC,EAAWC,EAAEf,UAAYH,EAAOK,UAAUS,UAAUG,UACpDE,OAASrB,EAASkB,cAEd,gCACI,+CACIjB,EAAI,gCACR,SACJ,WACD,YAGP,OAAOmB,GAAEf,UAAYH,EAAOK,UAAUS,WAClCM,SAAWL,EACXE,SAAWA,QAQXf,gBAAmBA"}
{"version":3,"sources":["mvc/history/hda-li.js"],"names":["define","DATASET_LI","BASE_MVC","_l","_super","DatasetListItemView","HDAListItemView","extend","className","prototype","initialize","attributes","options","call","this","toString","model","templates","titleBarTemplate","wrapTemplate","warnings","_","hidden","titleBar"],"mappings":"AAAAA,QACI,yBACA,eACA,sBACD,SAAUC,EAAYC,EAAUC,GAEnC,YAGA,IAAIC,GAASH,EAAWI,oBAMpBC,EAAkBF,EAAOG,QAGzBC,UAAcJ,EAAOK,UAAUD,UAAY,mBAE3CE,WAAa,SAAUC,EAAYC,GAC/BR,EAAOK,UAAUC,WAAWG,KAAMC,KAAMH,EAAYC,IAKxDG,SAAW,WAEP,MAAO,oBADaD,KAAW,MAAIA,KAAKE,MAAQ,GAAK,cACX,MA8C9C,OAxCJV,GAAgBG,UAAUQ,UAAa,WAEnC,GAAIC,GAAmBhB,EAASiB,cAE5B,6CACI,mCACA,sBAEI,+CACA,gDACJ,SACA,QACA,0BACI,gDACI,mDACJ,YACJ,UACJ,UACD,WAECC,EAAWC,EAAEd,UAAYH,EAAOK,UAAUQ,UAAUG,UACpDE,OAASpB,EAASiB,cAEd,gCACI,+CACIhB,EAAI,gCACR,SACJ,WACD,YAGP,OAAOkB,GAAEd,UAAYH,EAAOK,UAAUQ,WAClCM,SAAWL,EACXE,SAAWA,QAQXd,gBAAmBA","file":"../../../scripts/mvc/history/hda-li.js","sourcesContent":["define([\n \"mvc/dataset/dataset-li\",\n \"mvc/base-mvc\",\n \"utils/localization\"\n], function( DATASET_LI, BASE_MVC, _l ){\n\n'use strict';\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\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// ............................................................................ TEMPLATES\n/** underscore templates */\nHDAListItemView.prototype.templates = (function(){\n\n var titleBarTemplate = BASE_MVC.wrapTemplate([\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(dataset.nametags, function(tag){ %>',\n '<span class=\"label label-info\"><%- tag %></span>',\n '<% }); %>',\n '</span>',\n '</div>'\n ], 'dataset' );\n\n var warnings = _.extend( {}, _super.prototype.templates.warnings, {\n hidden : BASE_MVC.wrapTemplate([\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 ], 'dataset' )\n });\n\n return _.extend( {}, _super.prototype.templates, {\n titleBar : titleBarTemplate,\n warnings : warnings\n });\n}());\n\n\n\n//==============================================================================\n return {\n HDAListItemView : HDAListItemView\n };\n});\n"]}
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"hda-model.js","sources":["../../../src/mvc/history/hda-model.js"],"names":["define","DATASET","HISTORY_CONTENT","BASE_MVC","_super","DatasetAssociation","hcontentMixin","HistoryContentMixin","HistoryDatasetAssociation","extend","mixin","defaults","_","prototype","history_content_type","model_class"],"mappings":"AAAAA,QACI,4BACA,oCACA,eACA,sBACD,SAAUC,EAASC,EAAiBC,GACvC,YAGA,IAAIC,GAASH,EAAQI,mBACjBC,EAAgBJ,EAAgBK,oBAGhCC,EAA4BJ,EAAOK,OAAQN,EAASO,MAAOJ,GAI3DK,SAAWC,EAAEH,UAAYL,EAAOS,UAAUF,SAAUL,EAAcK,UAC9DG,qBAAsB,UACtBC,YAAsB,gCAK1B,QACIP,0BAA8BA"}
{"version":3,"sources":["mvc/history/hda-model.js"],"names":["define","DATASET","HISTORY_CONTENT","BASE_MVC","_l","_super","DatasetAssociation","hcontentMixin","HistoryContentMixin","HistoryDatasetAssociation","extend","mixin","defaults","_","prototype","history_content_type","model_class"],"mappings":"AAAAA,QACI,4BACA,oCACA,eACA,sBACD,SAAUC,EAASC,EAAiBC,EAAUC,GACjD,YAGA,IAAIC,GAASJ,EAAQK,mBACjBC,EAAgBL,EAAgBM,mBAchC,QACIC,0BAZwBJ,EAAOK,OAAQP,EAASQ,MAAOJ,GAI3DK,SAAWC,EAAEH,UAAYL,EAAOS,UAAUF,SAAUL,EAAcK,UAC9DG,qBAAsB,UACtBC,YAAsB","file":"../../../scripts/mvc/history/hda-model.js","sourcesContent":["define([\n \"mvc/dataset/dataset-model\",\n \"mvc/history/history-content-model\",\n \"mvc/base-mvc\",\n \"utils/localization\"\n], function( DATASET, HISTORY_CONTENT, BASE_MVC, _l ){\n'use strict';\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( BASE_MVC.mixin( hcontentMixin,\n/** @lends HistoryDatasetAssociation.prototype */{\n\n /** default attributes for a model */\n defaults : _.extend( {}, _super.prototype.defaults, hcontentMixin.defaults, {\n history_content_type: 'dataset',\n model_class : 'HistoryDatasetAssociation'\n }),\n}));\n\n//==============================================================================\n return {\n HistoryDatasetAssociation : HistoryDatasetAssociation\n };\n});\n"]}
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"hdca-li-edit.js","sources":["../../../src/mvc/history/hdca-li-edit.js"],"names":["define","HDCA_LI","DC_VIEW_EDIT","faIconButton","_l","_super","HDCAListItemView","HDCAListItemEdit","extend","_getFoldoutPanelClass","this","model","get","ListCollectionViewEdit","PairCollectionViewEdit","ListOfPairsCollectionViewEdit","ListOfListsCollectionViewEdit","TypeError","_renderPrimaryActions","log","prototype","call","concat","_renderDeleteButton","self","deleted","title","classes","faIcon","disabled","onclick","$el","find","trigger","toString","modelString"],"mappings":"AAAAA,QACI,sBACA,sCACA,oBACA,sBACD,SAAUC,EAASC,EAAcC,EAAcC,GAElD,YAGA,IAAIC,GAASJ,EAAQK,iBAGjBC,EAAmBF,EAAOG,QAO1BC,sBAAwB,WACpB,OAAQC,KAAKC,MAAMC,IAAK,oBACpB,IAAK,OACD,MAAOV,GAAaW,sBACxB,KAAK,SACD,MAAOX,GAAaY,sBACxB,KAAK,cACD,MAAOZ,GAAaa,6BACxB,KAAK,YACD,MAAOb,GAAac,8BAE5B,KAAM,IAAIC,WAAW,2BAA6BP,KAAKC,MAAMC,IAAK,qBAKtEM,sBAAwB,WAGpB,MAFAR,MAAKS,IAAKT,KAAO,0BAEVL,EAAOe,UAAUF,sBAAsBG,KAAMX,MAC/CY,QACGZ,KAAKa,yBAKjBA,oBAAsB,WAClB,GAAIC,GAAOd,KACPe,EAAUf,KAAKC,MAAMC,IAAK,UAC9B,OAAOT,IACHuB,MAAuBtB,EAATqB,EAAa,wCAA+C,UAC1EE,QAAc,aACdC,OAAc,WACdC,SAAcJ,EACdK,QAAc,WAEVN,EAAKO,IAAIC,KAAM,wBAAyBC,QAAS,YACjDT,EAAKb,MAAgB,aAOjCuB,SAAW,WACP,GAAIC,GAAgBzB,KAAW,MAAIA,KAAKC,MAAQ,GAAK,YACrD,OAAO,oBAAsBwB,EAAc,MAK/C,QACI5B,iBAAmBA"}
{"version":3,"sources":["mvc/history/hdca-li-edit.js"],"names":["define","HDCA_LI","DC_VIEW_EDIT","faIconButton","_l","_super","HDCAListItemView","HDCAListItemEdit","extend","_getFoldoutPanelClass","this","model","get","ListCollectionViewEdit","PairCollectionViewEdit","ListOfPairsCollectionViewEdit","ListOfListsCollectionViewEdit","TypeError","_renderPrimaryActions","log","prototype","call","concat","_renderDeleteButton","self","deleted","title","classes","faIcon","disabled","onclick","$el","find","trigger","toString"],"mappings":"AAAAA,QACI,sBACA,sCACA,oBACA,sBACD,SAAUC,EAASC,EAAcC,EAAcC,GAElD,YAGA,IAAIC,GAASJ,EAAQK,gBA6DjB,QACIC,iBA3DeF,EAAOG,QAO1BC,sBAAwB,WACpB,OAAQC,KAAKC,MAAMC,IAAK,oBACpB,IAAK,OACD,MAAOV,GAAaW,sBACxB,KAAK,SACD,MAAOX,GAAaY,sBACxB,KAAK,cACD,MAAOZ,GAAaa,6BACxB,KAAK,YACD,MAAOb,GAAac,8BAE5B,KAAM,IAAIC,WAAW,2BAA6BP,KAAKC,MAAMC,IAAK,qBAKtEM,sBAAwB,WAGpB,MAFAR,MAAKS,IAAKT,KAAO,0BAEVL,EAAOe,UAAUF,sBAAsBG,KAAMX,MAC/CY,QACGZ,KAAKa,yBAKjBA,oBAAsB,WAClB,GAAIC,GAAOd,KACPe,EAAUf,KAAKC,MAAMC,IAAK,UAC9B,OAAOT,IACHuB,MAAuBtB,EAATqB,EAAa,wCAA+C,UAC1EE,QAAc,aACdC,OAAc,WACdC,SAAcJ,EACdK,QAAc,WAEVN,EAAKO,IAAIC,KAAM,wBAAyBC,QAAS,YACjDT,EAAKb,MAAgB,aAOjCuB,SAAW,WAEP,MAAO,qBADaxB,KAAW,MAAIA,KAAKC,MAAQ,GAAK,cACV","file":"../../../scripts/mvc/history/hdca-li-edit.js","sourcesContent":["define([\n \"mvc/history/hdca-li\",\n \"mvc/collection/collection-view-edit\",\n \"ui/fa-icon-button\",\n \"utils/localization\"\n], function( HDCA_LI, DC_VIEW_EDIT, faIconButton, _l ){\n\n'use strict';\n\n//==============================================================================\nvar _super = HDCA_LI.HDCAListItemView;\n/** @class Editing view for HistoryDatasetCollectionAssociation.\n */\nvar HDCAListItemEdit = _super.extend(\n/** @lends HDCAListItemEdit.prototype */{\n\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( 'Uknown collection_type: ' + this.model.get( 'collection_type' ) );\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.call( this )\n .concat([\n this._renderDeleteButton()\n ]);\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? _l( 'Dataset collection is already deleted' ): _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 return {\n HDCAListItemEdit : HDCAListItemEdit\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
@@ -1 +1 @@
{"version":3,"file":"history-content-model.js","sources":["../../../src/mvc/history/history-content-model.js"],"names":["define","HistoryContentMixin","defaults","history_id","history_content_type","hid","visible","idAttribute","hidden","this","get","isVisible","includeDeleted","includeHidden","urlRoot","Galaxy","root","url","hide","options","save","jQuery","when","unhide","toString","join"],"mappings":"AAAAA,QACI,qBACA,eACA,sBACD,WACH,YAKA,IAAIC,IAGAC,UAEIC,WAAsB,KAEtBC,qBAAsB,KAEtBC,IAAsB,KAEtBC,SAAsB,GAO1BC,YAAc,UAIdC,OAAS,WACL,OAAQC,KAAKC,IAAK,YAStBC,UAAY,SAAUC,EAAgBC,GAClC,GAAIF,IAAY,CAShB,OAROC,KACDH,KAAKC,IAAK,aAAeD,KAAKC,IAAK,YACrCC,GAAY,GAETE,GACAJ,KAAKC,IAAK,aACbC,GAAY,GAETA,GAMXG,QAASC,OAAOC,KAAO,iBAGvBC,IAAM,WACF,GAAIA,GAAMR,KAAKK,QAAUL,KAAKC,IAAK,cAAiB,aAC7CD,KAAKC,IAAI,wBAA0B,KAAOD,KAAKC,IAAK,KAC3D,OAAOO,IAIXC,KAAO,SAAUC,GACb,MAAKV,MAAKC,IAAK,WACRD,KAAKW,MAAQd,SAAS,GAASa,GADDE,OAAOC,QAIhDC,OAAS,SAAUJ,GACf,MAAIV,MAAKC,IAAK,WAAsBW,OAAOC,OACpCb,KAAKW,MAAQd,SAAS,GAAQa,IAIzCK,SAAW,WACP,OAAUf,KAAKC,IAAK,WAAaD,KAAKC,IAAK,OAASD,KAAKC,IAAK,SAAWe,KAAK,MAMlF,QACIxB,oBAAsBA"}
{"version":3,"sources":["mvc/history/history-content-model.js"],"names":["define","STATES","BASE_MVC","_l","HistoryContentMixin","defaults","history_id","history_content_type","hid","visible","idAttribute","hidden","this","get","isVisible","includeDeleted","includeHidden","urlRoot","Galaxy","root","url","hide","options","save","jQuery","when","unhide","toString","join"],"mappings":"AAAAA,QACI,qBACA,eACA,sBACD,SAAUC,EAAQC,EAAUC,GAC/B,YAiFI,QACIC,qBA1EJC,UAEIC,WAAsB,KAEtBC,qBAAsB,KAEtBC,IAAsB,KAEtBC,SAAsB,GAO1BC,YAAc,UAIdC,OAAS,WACL,OAAQC,KAAKC,IAAK,YAStBC,UAAY,SAAUC,EAAgBC,GAClC,GAAIF,IAAY,CAShB,OAROC,KACDH,KAAKC,IAAK,aAAeD,KAAKC,IAAK,YACrCC,GAAY,GAETE,GACAJ,KAAKC,IAAK,aACbC,GAAY,GAETA,GAMXG,QAASC,OAAOC,KAAO,iBAGvBC,IAAM,WAGF,MAFUR,MAAKK,QAAUL,KAAKC,IAAK,cAAiB,aAC7CD,KAAKC,IAAI,wBAA0B,KAAOD,KAAKC,IAAK,OAK/DQ,KAAO,SAAUC,GACb,MAAKV,MAAKC,IAAK,WACRD,KAAKW,MAAQd,SAAS,GAASa,GADDE,OAAOC,QAIhDC,OAAS,SAAUJ,GACf,MAAIV,MAAKC,IAAK,WAAsBW,OAAOC,OACpCb,KAAKW,MAAQd,SAAS,GAAQa,IAIzCK,SAAW,WACP,OAAUf,KAAKC,IAAK,WAAaD,KAAKC,IAAK,OAASD,KAAKC,IAAK,SAAWe,KAAK","file":"../../../scripts/mvc/history/history-content-model.js","sourcesContent":["define([\n \"mvc/dataset/states\",\n \"mvc/base-mvc\",\n \"utils/localization\"\n], function( STATES, BASE_MVC, _l ){\n'use strict';\n\n//==============================================================================\n/** @class Mixin for HistoryContents content (HDAs, HDCAs).\n */\nvar HistoryContentMixin = {\n\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 )\n && ( this.get( 'deleted' ) || this.get( 'purged' ) ) ){\n isVisible = false;\n }\n if( ( !includeHidden )\n && ( !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 = this.urlRoot + this.get( 'history_id' ) + '/contents/'\n + this.get('history_content_type') + 's/' + this.get( 'id' );\n return url;\n },\n\n /** save this content as not visible */\n hide : function( options ){\n if( !this.get( 'visible' ) ){ return jQuery.when(); }\n return this.save( { visible: false }, options );\n },\n /** save this content as visible */\n unhide : function( options ){\n if( this.get( 'visible' ) ){ return jQuery.when(); }\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 return {\n HistoryContentMixin : HistoryContentMixin\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
@@ -1 +1 @@
{"version":3,"file":"history-preferences.js","sources":["../../../src/mvc/history/history-preferences.js"],"names":["define","BASE_MVC","HistoryPrefs","SessionStorageModel","extend","defaults","expandedIds","show_deleted","show_hidden","addExpanded","model","current","this","get","id","save","removeExpanded","isExpanded","contentId","_","result","allExpanded","values","clearExpanded","set","includeDeleted","val","isUndefined","includeHidden","toString","storageKeyPrefix","historyStorageKey","historyId","Error","clearAll","key","sessionStorage","indexOf","removeItem"],"mappings":"AAAAA,QACI,gBACD,SAAUC,GAEb,YAEA,IAIIC,GAAeD,EAASE,oBAAoBC,QAG5CC,UAEIC,eACAC,cAAe,EACfC,aAAe,GAInBC,YAAc,SAAUC,GAEpB,GAAIC,GAAUC,KAAKC,IAAK,cACxBF,GAASD,EAAMI,IAAOJ,EAAMG,IAAK,MACjCD,KAAKG,KAAM,cAAeJ,IAI9BK,eAAiB,SAAUN,GACvB,GAAIC,GAAUC,KAAKC,IAAK,qBACjBF,GAASD,EAAMI,IACtBF,KAAKG,KAAM,cAAeJ,IAG9BM,WAAa,SAAUC,GACnB,MAAOC,GAAEC,OAAQR,KAAKC,IAAK,eAAiBK,GAAW,IAG3DG,YAAc,WACV,MAAOF,GAAEG,OAAQV,KAAKC,IAAK,iBAG/BU,cAAgB,WACZX,KAAKY,IAAK,mBAGdC,eAAiB,SAAUC,GAIvB,MADKP,GAAEQ,YAAaD,IAASd,KAAKY,IAAK,eAAgBE,GAChDd,KAAKC,IAAK,iBAGrBe,cAAgB,SAAUF,GAGtB,MADKP,GAAEQ,YAAaD,IAASd,KAAKY,IAAK,cAAeE,GAC/Cd,KAAKC,IAAK,gBAGrBgB,SAAW,WACP,MAAO,gBAAkBjB,KAAKE,GAAK,OAMvCgB,iBAAmB,WAGnBC,kBAAoB,SAA4BC,GAC5C,IAAKA,EACD,KAAM,IAAIC,OAAO,kDAAoDD,EAGzE,OAAS9B,GAAa4B,iBAAmBE,GAI7CnB,IAAM,SAAcmB,GAChB,MAAO,IAAI9B,IAAeY,GAAIZ,EAAa6B,kBAAmBC,MAIlEE,SAAW,WACP,IAAK,GAAIC,KAAOC,gBACyC,IAAjDD,EAAIE,QAASnC,EAAa4B,mBAC1BM,eAAeE,WAAYH,KAOvC,QACIjC,aAAcA"}
{"version":3,"sources":["mvc/history/history-preferences.js"],"names":["define","BASE_MVC","HistoryPrefs","SessionStorageModel","extend","defaults","expandedIds","show_deleted","show_hidden","addExpanded","model","current","this","get","id","save","removeExpanded","isExpanded","contentId","_","result","allExpanded","values","clearExpanded","set","includeDeleted","val","isUndefined","includeHidden","toString","storageKeyPrefix","historyStorageKey","historyId","Error","clearAll","key","sessionStorage","indexOf","removeItem"],"mappings":"AAAAA,QACI,gBACD,SAAUC,GAEb,YAEA,IAIIC,GAAeD,EAASE,oBAAoBC,QAG5CC,UAEIC,eACAC,cAAe,EACfC,aAAe,GAInBC,YAAc,SAAUC,GAEpB,GAAIC,GAAUC,KAAKC,IAAK,cACxBF,GAASD,EAAMI,IAAOJ,EAAMG,IAAK,MACjCD,KAAKG,KAAM,cAAeJ,IAI9BK,eAAiB,SAAUN,GACvB,GAAIC,GAAUC,KAAKC,IAAK,qBACjBF,GAASD,EAAMI,IACtBF,KAAKG,KAAM,cAAeJ,IAG9BM,WAAa,SAAUC,GACnB,MAAOC,GAAEC,OAAQR,KAAKC,IAAK,eAAiBK,GAAW,IAG3DG,YAAc,WACV,MAAOF,GAAEG,OAAQV,KAAKC,IAAK,iBAG/BU,cAAgB,WACZX,KAAKY,IAAK,mBAGdC,eAAiB,SAAUC,GAIvB,MADKP,GAAEQ,YAAaD,IAASd,KAAKY,IAAK,eAAgBE,GAChDd,KAAKC,IAAK,iBAGrBe,cAAgB,SAAUF,GAGtB,MADKP,GAAEQ,YAAaD,IAASd,KAAKY,IAAK,cAAeE,GAC/Cd,KAAKC,IAAK,gBAGrBgB,SAAW,WACP,MAAO,gBAAkBjB,KAAKE,GAAK,OAMvCgB,iBAAmB,WAGnBC,kBAAoB,SAA4BC,GAC5C,IAAKA,EACD,KAAM,IAAIC,OAAO,kDAAoDD,EAGzE,OAAS9B,GAAa4B,iBAAmBE,GAI7CnB,IAAM,SAAcmB,GAChB,MAAO,IAAI9B,IAAeY,GAAIZ,EAAa6B,kBAAmBC,MAIlEE,SAAW,SAAmBF,GAC1B,IAAK,GAAIG,KAAOC,gBACyC,IAAjDD,EAAIE,QAASnC,EAAa4B,mBAC1BM,eAAeE,WAAYH,KAOvC,QACIjC,aAAcA","file":"../../../scripts/mvc/history/history-preferences.js","sourcesContent":["define([\n \"mvc/base-mvc\"\n], function( BASE_MVC ){\n\n'use strict';\n\nvar logNamespace = 'history';\n\n// ============================================================================\n/** session storage for individual history preferences */\nvar HistoryPrefs = BASE_MVC.SessionStorageModel.extend(\n/** @lends HistoryPrefs.prototype */{\n //TODO:?? move to user prefs?\n defaults : {\n //TODO:?? expandedIds to array?\n expandedIds : {},\n show_deleted : false,\n show_hidden : false\n },\n\n /** add an hda id to the hash of expanded hdas */\n addExpanded : function( model ){\n//TODO: use type_id and not model\n var current = this.get( 'expandedIds' );\n current[ model.id ] = model.get( 'id' );\n this.save( 'expandedIds', current );\n },\n\n /** remove an hda id from the hash of expanded hdas */\n removeExpanded : function( model ){\n var current = this.get( 'expandedIds' );\n delete current[ model.id ];\n this.save( 'expandedIds', current );\n },\n\n isExpanded : function( contentId ){\n return _.result( this.get( 'expandedIds' ), contentId, false );\n },\n\n allExpanded : function(){\n return _.values( this.get( 'expandedIds' ) );\n },\n\n clearExpanded : function(){\n this.set( 'expandedIds', {} );\n },\n\n includeDeleted : function( val ){\n // moving the invocation here so other components don't need to know the key\n // TODO: change this key later\n if( !_.isUndefined( val ) ){ this.set( 'show_deleted', val ); }\n return this.get( 'show_deleted' );\n },\n\n includeHidden : function( val ){\n // TODO: change this key later\n if( !_.isUndefined( val ) ){ this.set( 'show_hidden', val ); }\n return this.get( 'show_hidden' );\n },\n\n toString : function(){\n return 'HistoryPrefs(' + this.id + ')';\n }\n\n}, {\n // ........................................................................ class vars\n // class lvl for access w/o instantiation\n storageKeyPrefix : 'history:',\n\n /** key string to store each histories settings under */\n historyStorageKey : function historyStorageKey( historyId ){\n if( !historyId ){\n throw new Error( 'HistoryPrefs.historyStorageKey needs valid id: ' + historyId );\n }\n // single point of change\n return ( HistoryPrefs.storageKeyPrefix + historyId );\n },\n\n /** return the existing storage for the history with the given id (or create one if it doesn't exist) */\n get : function get( historyId ){\n return new HistoryPrefs({ id: HistoryPrefs.historyStorageKey( historyId ) });\n },\n\n /** clear all history related items in sessionStorage */\n clearAll : function clearAll( historyId ){\n for( var key in sessionStorage ){\n if( key.indexOf( HistoryPrefs.storageKeyPrefix ) === 0 ){\n sessionStorage.removeItem( key );\n }\n }\n }\n});\n\n//==============================================================================\n return {\n HistoryPrefs: HistoryPrefs\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

Some files were not shown because too many files have changed in this diff Show More