mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merging with dev
This commit is contained in:
@@ -12,7 +12,11 @@ var jQuery = require( 'jquery' ),
|
||||
GridView = require( 'mvc/grid/grid-view' ),
|
||||
PageList = require( 'mvc/page/page-list' ),
|
||||
Workflows = require( 'mvc/workflow/workflow' ),
|
||||
WorkflowsConfigureMenu = require( 'mvc/workflow/workflow-configure-menu' );
|
||||
HistoryList = require( 'mvc/history/history-list' ),
|
||||
WorkflowsConfigureMenu = require( 'mvc/workflow/workflow-configure-menu' ),
|
||||
ToolFormComposite = require( 'mvc/tool/tool-form-composite' ),
|
||||
Utils = require( 'utils/utils' ),
|
||||
Ui = require( 'mvc/ui/ui-misc' );
|
||||
|
||||
/** define the 'Analyze Data'/analysis/main/home page for Galaxy
|
||||
* * has a masthead
|
||||
@@ -82,9 +86,12 @@ window.app = function app( options, bootstrapped ){
|
||||
'(/)user(/)' : 'show_user',
|
||||
'(/)user(/)(:form_id)' : 'show_user_form',
|
||||
'(/)workflow(/)' : 'show_workflows',
|
||||
'(/)workflow/run(/)' : 'show_run',
|
||||
'(/)pages(/)(:action_id)' : 'show_pages',
|
||||
'(/)datasets(/)(:action_id)' : 'show_datasets',
|
||||
'(/)histories(/)list(/)' : 'show_histories',
|
||||
'(/)datasets(/)list(/)' : 'show_datasets',
|
||||
'(/)workflow/configure_menu(/)' : 'show_configure_menu',
|
||||
'(/)workflow/import_workflow' : 'show_import_workflow',
|
||||
'(/)custom_builds' : 'show_custom_builds'
|
||||
},
|
||||
|
||||
@@ -119,6 +126,10 @@ window.app = function app( options, bootstrapped ){
|
||||
this.page.display( new UserPreferences.Forms( { form_id: form_id, user_id: Galaxy.params.id } ) );
|
||||
},
|
||||
|
||||
show_histories : function() {
|
||||
this.page.display( new HistoryList.View() );
|
||||
},
|
||||
|
||||
show_datasets : function() {
|
||||
this.page.display( new GridView( { url_base: Galaxy.root + 'dataset/list', dict_format: true } ) );
|
||||
},
|
||||
@@ -135,6 +146,14 @@ window.app = function app( options, bootstrapped ){
|
||||
this.page.display( new Workflows.View() );
|
||||
},
|
||||
|
||||
show_run : function() {
|
||||
this._loadWorkflow();
|
||||
},
|
||||
|
||||
show_import_workflow : function() {
|
||||
this.page.display( new Workflows.ImportWorkflowView() );
|
||||
},
|
||||
|
||||
show_configure_menu : function(){
|
||||
this.page.display( new WorkflowsConfigureMenu.View() );
|
||||
},
|
||||
@@ -163,7 +182,7 @@ window.app = function app( options, bootstrapped ){
|
||||
} else {
|
||||
// show the workflow run form
|
||||
if( params.workflow_id ){
|
||||
this._loadCenterIframe( 'workflow/run?id=' + params.workflow_id );
|
||||
this._loadWorkflow();
|
||||
// load the center iframe with controller.action: galaxy.org/?m_c=history&m_a=list -> history/list
|
||||
} else if( params.m_c ){
|
||||
this._loadCenterIframe( params.m_c + '/' + params.m_a );
|
||||
@@ -188,6 +207,22 @@ window.app = function app( options, bootstrapped ){
|
||||
this.page.$( '#galaxy_main' ).prop( 'src', url );
|
||||
},
|
||||
|
||||
/** load workflow by its url in run mode */
|
||||
_loadWorkflow: function() {
|
||||
var self = this;
|
||||
Utils.get({
|
||||
url: Galaxy.root + 'api/workflows/' + Utils.getQueryString( 'id' ) + '/download',
|
||||
data: { 'style': 'run' },
|
||||
success: function( response ) {
|
||||
self.page.display( new ToolFormComposite.View( response ) );
|
||||
},
|
||||
error: function( response ) {
|
||||
var error_msg = "Error occurred while loading the resource.",
|
||||
options = { 'message': error_msg, 'status': 'error', 'persistent': true, 'cls': 'errormessage' };
|
||||
self.page.display( new Ui.Message( options ) );
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// render and start the router
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
var Tools = require( 'mvc/tool/tools' ),
|
||||
Upload = require( 'mvc/upload/upload-view' ),
|
||||
_l = require( 'utils/localization' );
|
||||
_l = require( 'utils/localization' ),
|
||||
ToolForm = require( 'mvc/tool/tool-form-composite' );
|
||||
|
||||
var ToolPanel = Backbone.View.extend({
|
||||
initialize: function( page, options ) {
|
||||
@@ -58,7 +59,7 @@ var ToolPanel = Backbone.View.extend({
|
||||
href : 'workflow'
|
||||
}));
|
||||
_.each( this.stored_workflow_menu_entries, function( menu_entry ){
|
||||
self.$( '#internal-workflows' ).append( self._templateTool({
|
||||
self.$( '#internal-workflows' ).append( self._templateWorkflowLink({
|
||||
title : menu_entry.stored_workflow.name,
|
||||
href : 'workflow/run?id=' + menu_entry.encoded_stored_workflow_id
|
||||
}));
|
||||
@@ -84,6 +85,15 @@ var ToolPanel = Backbone.View.extend({
|
||||
].join('');
|
||||
},
|
||||
|
||||
/** build links to workflows in toolpanel */
|
||||
_templateWorkflowLink: function( wf ) {
|
||||
return [
|
||||
'<div class="toolTitle">',
|
||||
'<a class="'+ wf.cls +' " href="', Galaxy.root, wf.href, '">', wf.title, '</a>',
|
||||
'</div>'
|
||||
].join('');
|
||||
},
|
||||
|
||||
/** override to include inital menu dom and workflow section */
|
||||
_template : function() {
|
||||
return [
|
||||
|
||||
@@ -278,8 +278,8 @@ var Collection = Backbone.Collection.extend({
|
||||
divider : true
|
||||
},{
|
||||
title : _l('Saved Histories'),
|
||||
url : 'history/list',
|
||||
target : 'galaxy_main'
|
||||
url : 'histories/list',
|
||||
target : '_top'
|
||||
},{
|
||||
title : _l('Saved Datasets'),
|
||||
url : 'datasets/list',
|
||||
|
||||
@@ -19,18 +19,19 @@ define( [ 'layout/masthead', 'layout/panel', 'mvc/ui/ui-modal' ], function( Mast
|
||||
Galaxy.display = this.display = function( view ) { self.center.display( view ) };
|
||||
Galaxy.router = this.router = options.Router && new options.Router( self, options );
|
||||
this.masthead = new Masthead.View( this.config );
|
||||
this.center = new Panel.CenterPanel();
|
||||
|
||||
// build page template
|
||||
this.$el.attr( 'scroll', 'no' );
|
||||
this.$el.html( this._template() );
|
||||
this.$( '#masthead' ).replaceWith( this.masthead.$el );
|
||||
this.$( '#center' ).append( this.center.$el );
|
||||
this.$el.append( this.masthead.frame.$el );
|
||||
this.$el.append( this.modal.$el );
|
||||
this.$messagebox = this.$( '#messagebox' );
|
||||
this.$inactivebox = this.$( '#inactivebox' );
|
||||
|
||||
// build panels
|
||||
this.center = new Panel.CenterPanel();
|
||||
this.panels = {};
|
||||
_.each( this._panelids, function( panel_id ) {
|
||||
var panel_class_name = panel_id.charAt( 0 ).toUpperCase() + panel_id.slice( 1 );
|
||||
@@ -98,14 +99,12 @@ define( [ 'layout/masthead', 'layout/panel', 'mvc/ui/ui-modal' ], function( Mast
|
||||
/** Render panels */
|
||||
renderPanels : function() {
|
||||
var self = this;
|
||||
this.center.setElement( '#center' );
|
||||
this.center.render();
|
||||
_.each( this._panelids, function( panel_id ) {
|
||||
var panel = self.panels[ panel_id ];
|
||||
if ( panel ) {
|
||||
panel.render();
|
||||
} else {
|
||||
self.center.$el.css( panel_id, 0 );
|
||||
self.$( '#center' ).css( panel_id, 0 );
|
||||
self.$( '#' + panel_id ).hide();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -189,29 +189,20 @@ define( [ 'jquery', 'libs/underscore', 'libs/backbone' ], function( $, _, Backbo
|
||||
var CenterPanel = Backbone.View.extend({
|
||||
|
||||
initialize : function( options ){
|
||||
/** previous view contained in the center panel - cached for removal later */
|
||||
this.prev = null;
|
||||
this.setElement( $( this.template() ) );
|
||||
this.$frame = this.$( '.center-frame' );
|
||||
this.$panel = this.$( '.center-panel' );
|
||||
this.$frame.on( 'load', _.bind( this._iframeChangeHandler, this ) );
|
||||
},
|
||||
|
||||
render : function(){
|
||||
this.$el.html( this.template() );
|
||||
// ?: doesn't work/listen in events map
|
||||
this.$( '#galaxy_main' ).on( 'load', _.bind( this._iframeChangeHandler, this ) );
|
||||
},
|
||||
|
||||
/** */
|
||||
_iframeChangeHandler : function( ev ){
|
||||
/** Display iframe if its target url changes, hide center panel */
|
||||
_iframeChangeHandler : function( ev ) {
|
||||
var iframe = ev.currentTarget;
|
||||
var location = iframe.contentWindow && iframe.contentWindow.location;
|
||||
if( location && location.host ){
|
||||
// show the iframe and hide MVCview div, remove any views in the MVCview div
|
||||
if( location && location.host ) {
|
||||
$( iframe ).show();
|
||||
if( this.prev ){
|
||||
this.prev.remove();
|
||||
}
|
||||
this.$( '#center-panel' ).hide();
|
||||
// TODO: move to Galaxy
|
||||
Galaxy.trigger( 'galaxy_main:load', {
|
||||
this.$panel.empty().hide();
|
||||
Galaxy.trigger( 'center-frame:load', {
|
||||
fullpath: location.pathname + location.search + location.hash,
|
||||
pathname: location.pathname,
|
||||
search : location.search,
|
||||
@@ -220,43 +211,26 @@ define( [ 'jquery', 'libs/underscore', 'libs/backbone' ], function( $, _, Backbo
|
||||
}
|
||||
},
|
||||
|
||||
/** */
|
||||
/** Display a view in the center panel, hide iframe */
|
||||
display: function( view ) {
|
||||
// we need to display an MVC view: hide the iframe and show the other center panel
|
||||
// first checking for any onbeforeunload handlers on the iframe
|
||||
var contentWindow = this.$( '#galaxy_main' )[ 0 ].contentWindow || {};
|
||||
var contentWindow = this.$frame[ 0 ].contentWindow || {};
|
||||
var message = contentWindow.onbeforeunload && contentWindow.onbeforeunload();
|
||||
if ( !message || confirm( message ) ) {
|
||||
contentWindow.onbeforeunload = undefined;
|
||||
// remove any previous views
|
||||
if( this.prev ){
|
||||
this.prev.remove();
|
||||
}
|
||||
this.prev = view;
|
||||
this.$( '#galaxy_main' ).attr( 'src', 'about:blank' ).hide();
|
||||
this.$( '#center-panel' ).scrollTop( 0 ).append( view.$el ).show();
|
||||
this.$frame.attr( 'src', 'about:blank' ).hide();
|
||||
this.$panel.empty().scrollTop( 0 ).append( view.$el ).show();
|
||||
Galaxy.trigger( 'center-panel:load', view );
|
||||
|
||||
} else {
|
||||
if( view ){
|
||||
view.remove();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
template: function(){
|
||||
return [
|
||||
//TODO: remove inline styling
|
||||
'<div style="position: absolute; width: 100%; height: 100%">',
|
||||
'<iframe name="galaxy_main" id="galaxy_main" frameborder="0" ',
|
||||
'style="position: absolute; width: 100%; height: 100%;"/>',
|
||||
'<div id="center-panel" ',
|
||||
'style="display: none; position: absolute; width: 100%; height: 100%; padding: 10px; overflow: auto;"/>',
|
||||
'</div>'
|
||||
].join('');
|
||||
template: function() {
|
||||
return '<div class="center-container">' +
|
||||
'<iframe id="galaxy_main" name="galaxy_main" frameborder="0" class="center-frame" />' +
|
||||
'<div class="center-panel" />' +
|
||||
'</div>';
|
||||
},
|
||||
|
||||
toString : function(){ return 'CenterPanel' }
|
||||
toString : function() { return 'CenterPanel' }
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
@@ -252,53 +252,36 @@ return Backbone.View.extend({
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// add operation popup menus
|
||||
//
|
||||
for (var i in options.items)
|
||||
{
|
||||
// get items
|
||||
var item = options.items[i];
|
||||
_.each( options.items, function( item, index ) {
|
||||
var button = self.$( '#grid-' + index + '-popup' ).off();
|
||||
var popup = new PopupMenu( button );
|
||||
_.each( options[ 'operations' ], function( operation ) {
|
||||
self._add_operation( popup, operation, item );
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
// get identifiers
|
||||
var button = this.$el.find('#grid-' + i + '-popup');
|
||||
button.off();
|
||||
var popup = new PopupMenu(button);
|
||||
|
||||
// load details
|
||||
for (var j in options['operations'])
|
||||
{
|
||||
// get operation details
|
||||
var operation = options['operations'][j];
|
||||
var operation_id = operation['label'];
|
||||
var operation_settings = item['operation_config'][operation_id];
|
||||
var encode_id = item['encode_id'];
|
||||
|
||||
// check
|
||||
if (operation_settings['allowed'] && operation['allow_popup'])
|
||||
{
|
||||
// popup configuration
|
||||
var popupConfig =
|
||||
{
|
||||
html : operation['label'],
|
||||
href : operation_settings['url_args'],
|
||||
target : operation_settings['target'],
|
||||
confirmation_text : operation['confirm']
|
||||
};
|
||||
|
||||
// add popup function
|
||||
popupConfig.func = function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var label = $(e.target).html();
|
||||
var options = this.findItemByHtml(label);
|
||||
self.execute(options);
|
||||
};
|
||||
|
||||
// add item
|
||||
popup.addItem(popupConfig);
|
||||
/** Add an operation to the items menu */
|
||||
_add_operation: function( popup, operation, item ) {
|
||||
var self = this;
|
||||
var settings = item.operation_config[ operation.label ];
|
||||
if ( settings.allowed && operation.allow_popup ) {
|
||||
popup.addItem({
|
||||
html : operation.label,
|
||||
href : settings.url_args,
|
||||
target : settings.target,
|
||||
confirmation_text : operation.confirm,
|
||||
func : function( e ) {
|
||||
e.preventDefault();
|
||||
var label = $( e.target ).html();
|
||||
if ( operation.onclick ) {
|
||||
operation.onclick( item.encode_id );
|
||||
} else {
|
||||
self.execute( this.findItemByHtml( label ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
/** This class renders the grid list. */
|
||||
define( [ 'utils/utils', 'mvc/grid/grid-view', 'mvc/history/history-model', 'mvc/history/copy-dialog' ], function( Utils, GridView, HistoryModel, historyCopyDialog ) {
|
||||
|
||||
var View = Backbone.View.extend({
|
||||
initialize: function( options ) {
|
||||
var self = this;
|
||||
this.setElement( $( '<div/>' ) );
|
||||
this.model = new Backbone.Model();
|
||||
Utils.get({
|
||||
url : Galaxy.root + 'history/list',
|
||||
success : function( response ) {
|
||||
response[ 'dict_format' ] = true;
|
||||
_.each( response[ 'operations' ], function( operation ) {
|
||||
if ( operation.label == 'Copy' ) {
|
||||
operation.onclick = function( id ) { self._showCopyDialog( id ) };
|
||||
}
|
||||
});
|
||||
self.model.set( response );
|
||||
self.render();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
render: function() {
|
||||
var grid = new GridView( this.model.attributes );
|
||||
this.$el.empty().append( grid.$el );
|
||||
},
|
||||
|
||||
_showCopyDialog: function( id ) {
|
||||
var history = new HistoryModel.History( { id : id } );
|
||||
history.fetch()
|
||||
.fail( function() {
|
||||
alert( 'History could not be fetched. Please contact an administrator' );
|
||||
})
|
||||
.done( function(){
|
||||
historyCopyDialog( history, {} ).done( function() {
|
||||
if( window.parent && window.parent.Galaxy && window.parent.Galaxy.currHistoryPanel ) {
|
||||
window.parent.Galaxy.currHistoryPanel.loadCurrentHistory();
|
||||
}
|
||||
window.location.reload( true );
|
||||
} );
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
View: View
|
||||
}
|
||||
});
|
||||
@@ -338,7 +338,7 @@ var CurrentHistoryView = _super.extend(/** @lends CurrentHistoryView.prototype *
|
||||
// compare the url to the following list and if there's a match
|
||||
// pull the id from url and indicate in the history view that
|
||||
// the dataset with that id is the 'current'ly active dataset
|
||||
'galaxy_main:load': function( data ){
|
||||
'center-frame:load': function( data ){
|
||||
var pathToMatch = data.fullpath;
|
||||
var hdaId = null;
|
||||
var useToURLRegexMap = {
|
||||
|
||||
@@ -16,7 +16,9 @@ var menu = [
|
||||
},
|
||||
{
|
||||
html : _l( 'Saved Histories' ),
|
||||
href : 'history/list',
|
||||
href : 'histories/list',
|
||||
target : '_top'
|
||||
|
||||
},
|
||||
{
|
||||
html : _l( 'Histories Shared with Me' ),
|
||||
@@ -205,7 +207,7 @@ function buildMenu( isAnon, purgeAllowed, urlRoot ){
|
||||
//TODO:?? hard-coded galaxy_main
|
||||
if( menuOption.href ){
|
||||
menuOption.href = urlRoot + menuOption.href;
|
||||
menuOption.target = 'galaxy_main';
|
||||
menuOption.target = menuOption.target || 'galaxy_main';
|
||||
}
|
||||
|
||||
if( menuOption.confirm ){
|
||||
|
||||
@@ -22,16 +22,16 @@ define( [ 'utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view
|
||||
});
|
||||
}
|
||||
// destroy dom elements
|
||||
this.$el.on( 'remove', function() { self.remove() } );
|
||||
this.$el.on( 'remove', function() { self._destroy() } );
|
||||
},
|
||||
|
||||
/** Wait for deferred build processes before removal */
|
||||
remove: function() {
|
||||
_destroy: function() {
|
||||
var self = this;
|
||||
this.$el.hide();
|
||||
this.$el.off().hide();
|
||||
this.deferred.execute( function() {
|
||||
FormBase.prototype.remove.call( self );
|
||||
Galaxy.emit.debug( 'tool-form-base::remove()', 'Destroy view.' );
|
||||
Galaxy.emit.debug( 'tool-form-base::_destroy()', 'Destroy view.' );
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@@ -15,9 +15,6 @@ define([ 'utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view'
|
||||
$( 'body' ).append( this.$el );
|
||||
this._configure();
|
||||
this.render();
|
||||
this._refresh();
|
||||
this.$el.on( 'click', function() { self._refresh() } );
|
||||
this.$steps.scroll( function() { self._refresh() } );
|
||||
$( window ).resize( function() { self._refresh() } );
|
||||
},
|
||||
|
||||
@@ -25,7 +22,7 @@ define([ 'utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view'
|
||||
_refresh: function( step_index ) {
|
||||
var margin = _.reduce( this.$el.children(), function( memo, child ) {
|
||||
return memo + $( child ).outerHeight();
|
||||
}, 0 ) - this.$steps.height() + 25;
|
||||
}, 0 ) - this.$steps.height() + 90;
|
||||
this.$steps.css( 'height', $( window ).height() - margin );
|
||||
},
|
||||
|
||||
@@ -314,6 +311,7 @@ define([ 'utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view'
|
||||
}
|
||||
self.forms[ step.index ] = form;
|
||||
self._append( self.$steps, form.$el );
|
||||
self._refresh();
|
||||
step.needs_refresh && self._refreshStep( step );
|
||||
form.portlet[ !self.show_progress ? 'enable' : 'disable' ]();
|
||||
self.show_progress && self.execute_btn.model.set( { wait : true,
|
||||
|
||||
@@ -65,6 +65,14 @@ define( [ 'mvc/form/form-view', 'mvc/ui/ui-misc' ], function( Form, Ui ) {
|
||||
window.location.href = Galaxy.root + 'custom_builds';
|
||||
}
|
||||
},
|
||||
'configure_menu': {
|
||||
title : 'Configure workflow menu',
|
||||
description : 'Configure your workflow items which appear in the Tool panel.',
|
||||
icon : 'fa-cog',
|
||||
onclick : function() {
|
||||
window.location.href = Galaxy.root + 'workflow/configure_menu';
|
||||
}
|
||||
},
|
||||
'logout': {
|
||||
title : 'Sign out',
|
||||
description : 'Click here to sign out of all sessions.',
|
||||
@@ -119,6 +127,7 @@ define( [ 'mvc/form/form-view', 'mvc/ui/ui-misc' ], function( Form, Ui ) {
|
||||
if( config.enable_openid && !config.use_remote_user ) {
|
||||
self._addLink( 'openids' );
|
||||
}
|
||||
self._addLink( 'configure_menu' );
|
||||
self._addLink( 'logout' );
|
||||
self.$preferences.append( self._templateFooter( data ) );
|
||||
self.$el.empty().append( self.$preferences );
|
||||
|
||||
@@ -80,7 +80,7 @@ define( [], function() {
|
||||
data: JSON.stringify( { 'workflow_ids': ids } ),
|
||||
contentType : 'application/json'
|
||||
}).done( function( response ) {
|
||||
window.location = Galaxy.root + 'workflow?status='+ response.status +'&message=' + response.message;
|
||||
window.location = Galaxy.root + 'user';
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -121,8 +121,8 @@ define( [], function() {
|
||||
tableHtml = tableHtml + '<a class="action-button wf-save-menu wf-action fa fa-floppy-o" href="#" title="Save">' +
|
||||
'<span>Save</span>' +
|
||||
'</a>' +
|
||||
'<a class="action-button wf-back wf-action fa fa-arrow-left" href="'+ Galaxy.root +'workflow" title="Back to workflow">' +
|
||||
'<span>Back to workflow</span>' +
|
||||
'<a class="action-button wf-back wf-action fa fa-arrow-left" href="'+ Galaxy.root +'user" title="Back to User Preferences">' +
|
||||
'<span>Back to User Preferences</span>' +
|
||||
'</a>';
|
||||
return tableHtml;
|
||||
},
|
||||
|
||||
@@ -1,6 +1,21 @@
|
||||
/** Workflow view */
|
||||
define( [], function() {
|
||||
define( [ 'utils/utils' ], function( Utils ) {
|
||||
|
||||
/** Build messages after user action */
|
||||
function build_messages( self ) {
|
||||
var $el_message = self.$el.find( '.response-message' ),
|
||||
status = Utils.getQueryString( 'status' ),
|
||||
message = Utils.getQueryString( 'message' );
|
||||
|
||||
if( message && message !== null && message !== "" ) {
|
||||
$el_message.addClass( status + 'message' );
|
||||
$el_message.html( '<p>' + _.escape( message ) + '</p>' );
|
||||
}
|
||||
else {
|
||||
$el_message.html("");
|
||||
}
|
||||
}
|
||||
|
||||
/** View of the main workflow list page */
|
||||
var View = Backbone.View.extend({
|
||||
|
||||
@@ -17,7 +32,7 @@ define( [], function() {
|
||||
// Add workflow header
|
||||
self.$el.empty().append( self._templateHeader() );
|
||||
// Add user actions message if any
|
||||
self.build_messages( self );
|
||||
build_messages( self );
|
||||
$el_workflow = self.$el.find( '.user-workflows' );
|
||||
// Add the actions buttons
|
||||
$el_workflow.append( self._templateActionButtons() );
|
||||
@@ -37,21 +52,6 @@ define( [], function() {
|
||||
});
|
||||
},
|
||||
|
||||
/** Build messages after user action */
|
||||
build_messages: function( self ) {
|
||||
var $el_message = self.$el.find( '.response-message' ),
|
||||
status = self.get_querystring( 'status' ),
|
||||
message = self.get_querystring( 'message' );
|
||||
|
||||
if( message && message !== null && message !== "" ) {
|
||||
$el_message.addClass( status + 'message' );
|
||||
$el_message.html( '<p>' + _.escape(message) + '</p>' );
|
||||
}
|
||||
else {
|
||||
$el_message.html("");
|
||||
}
|
||||
},
|
||||
|
||||
/** Add confirm box before removing/unsharing workflow */
|
||||
confirm_delete: function( self, workflow ) {
|
||||
var $el_wf_link = self.$el.find( '.link-confirm-' + workflow.id ),
|
||||
@@ -86,11 +86,6 @@ define( [], function() {
|
||||
});
|
||||
},
|
||||
|
||||
/** Get querystrings from url */
|
||||
get_querystring: function( key ) {
|
||||
return decodeURIComponent( window.location.search.replace(new RegExp("^(?:.*[&\\?]" + encodeURIComponent( key ).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1") );
|
||||
},
|
||||
|
||||
/** Ajust the position of dropdown with respect to table */
|
||||
adjust_actiondropdown: function( $el ) {
|
||||
$el.on( 'show.bs.dropdown', function () {
|
||||
@@ -157,7 +152,7 @@ define( [], function() {
|
||||
if( workflow.owner === Galaxy.user.attributes.username ) {
|
||||
return '<ul class="dropdown-menu action-dpd">' +
|
||||
'<li><a href="'+ Galaxy.root +'workflow/editor?id='+ workflow.id +'">Edit</a></li>' +
|
||||
'<li><a href="'+ Galaxy.root +'workflow/run?id='+ workflow.id +'" target="galaxy_main">Run</a></li>' +
|
||||
'<li><a href="'+ Galaxy.root +'workflow/run?id='+ workflow.id +'">Run</a></li>' +
|
||||
'<li><a href="'+ Galaxy.root +'workflow/sharing?id='+ workflow.id +'">Share or Download</a></li>' +
|
||||
'<li><a href="'+ Galaxy.root +'workflow/copy?id='+ workflow.id +'">Copy</a></li>' +
|
||||
'<li><a href="'+ Galaxy.root +'workflow/rename?id='+ workflow.id +'">Rename</a></li>' +
|
||||
@@ -168,7 +163,7 @@ define( [], function() {
|
||||
else {
|
||||
return '<ul class="dropdown-menu action-dpd">' +
|
||||
'<li><a href="'+ Galaxy.root +'workflow/display_by_username_and_slug?username='+ workflow.owner +'&slug='+ workflow.slug +'">View</a></li>' +
|
||||
'<li><a href="'+ Galaxy.root +'workflow/run?id='+ workflow.id +'" target="galaxy_main">Run</a></li>' +
|
||||
'<li><a href="'+ Galaxy.root +'workflow/run?id='+ workflow.id +'">Run</a></li>' +
|
||||
'<li><a href="'+ Galaxy.root +'workflow/copy?id='+ workflow.id +'">Copy</a></li>' +
|
||||
'<li><a class="link-confirm-shared-'+ workflow.id +'" href="'+ Galaxy.root +'workflow/sharing?unshare_me=True&id='+ workflow.id +'">Remove</a></li>' +
|
||||
'</ul>';
|
||||
@@ -182,17 +177,72 @@ define( [], function() {
|
||||
'<div class="response-message"></div>' +
|
||||
'<h2>Your workflows</h2>' +
|
||||
'</div>'+
|
||||
'<div class="other-options wf">' +
|
||||
'<h2>Other options</h2>' +
|
||||
'<a class="action-button fa fa-cog wf-action" href="'+ Galaxy.root +'workflow/configure_menu" title="Configure your workflow menu">' +
|
||||
'<span>Configure your workflow menu</span>' +
|
||||
'</a>' +
|
||||
'</div>' +
|
||||
'</div>';
|
||||
}
|
||||
});
|
||||
|
||||
var ImportWorkflowView = Backbone.View.extend({
|
||||
|
||||
initialize: function() {
|
||||
this.setElement( '<div/>' );
|
||||
this.render();
|
||||
},
|
||||
|
||||
/** Open page to import workflow */
|
||||
render: function() {
|
||||
var self = this;
|
||||
$.getJSON( Galaxy.root + 'workflow/upload_import_workflow', function( options ) {
|
||||
self.$el.empty().append( self._mainTemplate( self, options ) );
|
||||
});
|
||||
},
|
||||
|
||||
/** Template for the import workflow page */
|
||||
_mainTemplate: function( self, options ) {
|
||||
return "<div class='toolForm'>" +
|
||||
"<div class='toolFormTitle'>Import Galaxy workflow</div>" +
|
||||
"<div class='toolFormBody'>" +
|
||||
"<form name='import_workflow' id='import_workflow' action='"+ Galaxy.root + 'workflow/upload_import_workflow' +"' enctype='multipart/form-data' method='POST'>" +
|
||||
"<div class='form-row'>" +
|
||||
"<label>Galaxy workflow URL:</label>" +
|
||||
"<input type='text' name='url' class='input-url' value='"+ options.url +"' size='40'>" +
|
||||
"<div class='toolParamHelp' style='clear: both;'>" +
|
||||
"If the workflow is accessible via a URL, enter the URL above and click <b>Import</b>." +
|
||||
"</div>" +
|
||||
"<div style='clear: both'></div>" +
|
||||
"</div>" +
|
||||
"<div class='form-row'>" +
|
||||
"<label>Galaxy workflow file:</label>" +
|
||||
"<div class='form-row-input'>" +
|
||||
"<input type='file' name='file_data' class='input-file'/>" +
|
||||
"</div>" +
|
||||
"<div class='toolParamHelp' style='clear: both;'>" +
|
||||
"If the workflow is in a file on your computer, choose it and then click <b>Import</b>." +
|
||||
"</div>" +
|
||||
"<div style='clear: both'></div>" +
|
||||
"</div>" +
|
||||
"<div class='form-row'>" +
|
||||
"<input type='submit' class='primary-button wf-import' name='import_button' value='Import'>" +
|
||||
"</div>" +
|
||||
"</form>" +
|
||||
"<hr/>" +
|
||||
"<div class='form-row'>" +
|
||||
"<label>Import a Galaxy workflow from myExperiment:</label>" +
|
||||
"<div class='form-row-input'>" +
|
||||
"<a href='" + options.myexperiment_target_url + "'> Visit myExperiment</a>" +
|
||||
"</div>" +
|
||||
"<div class='toolParamHelp' style='clear: both;'>" +
|
||||
"Click the link above to visit myExperiment and browse for Galaxy workflows." +
|
||||
"</div>" +
|
||||
"<div style='clear: both'></div>" +
|
||||
"</div>" +
|
||||
"</div>" +
|
||||
"</div>";
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
return {
|
||||
View : View
|
||||
View : View,
|
||||
ImportWorkflowView : ImportWorkflowView
|
||||
};
|
||||
});
|
||||
|
||||
@@ -289,6 +289,11 @@ define( [], function() {
|
||||
}
|
||||
};
|
||||
|
||||
/** Get querystrings from url */
|
||||
function getQueryString( key ) {
|
||||
return decodeURIComponent( window.location.search.replace(new RegExp("^(?:.*[&\\?]" + encodeURIComponent( key ).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1") );
|
||||
};
|
||||
|
||||
return {
|
||||
cssLoadFile: cssLoadFile,
|
||||
cssGetAttribute: cssGetAttribute,
|
||||
@@ -306,6 +311,7 @@ define( [], function() {
|
||||
isJSON: isJSON,
|
||||
clone: clone,
|
||||
linkify: linkify,
|
||||
appendScriptStyle: appendScriptStyle
|
||||
appendScriptStyle: appendScriptStyle,
|
||||
getQueryString: getQueryString
|
||||
};
|
||||
});
|
||||
|
||||
@@ -143,6 +143,24 @@ body {
|
||||
right: 250 + @border-default-color_padding;
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
.center-container {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.center-panel {
|
||||
display: none;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 10px;
|
||||
overflow: auto;
|
||||
}
|
||||
.center-frame {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
#right-border {
|
||||
right: 250px;
|
||||
|
||||
@@ -108,8 +108,12 @@ def paste_app_factory( global_conf, **kwargs ):
|
||||
webapp.add_client_route( '/user' )
|
||||
webapp.add_client_route( '/user/{form_id}' )
|
||||
webapp.add_client_route( '/workflow' )
|
||||
webapp.add_client_route( '/pages/{action_id}' )
|
||||
webapp.add_client_route( '/datasets/{action_id}' )
|
||||
webapp.add_client_route( '/pages/list' )
|
||||
webapp.add_client_route( '/pages/list_published' )
|
||||
webapp.add_client_route( '/histories/list' )
|
||||
webapp.add_client_route( '/datasets/list' )
|
||||
webapp.add_client_route( '/workflow/run' )
|
||||
webapp.add_client_route( '/workflow/import_workflow' )
|
||||
webapp.add_client_route( '/workflow/configure_menu' )
|
||||
webapp.add_client_route( '/custom_builds' )
|
||||
|
||||
|
||||
@@ -87,7 +87,6 @@ class HistoryListGrid( grids.Grid ):
|
||||
# Grid definition
|
||||
title = "Saved Histories"
|
||||
model_class = model.History
|
||||
template = '/history/grid.mako'
|
||||
default_sort_key = "-update_time"
|
||||
columns = [
|
||||
HistoryListNameColumn( "Name", key="name", attach_popup=True, filterable="advanced" ),
|
||||
@@ -108,10 +107,10 @@ class HistoryListGrid( grids.Grid ):
|
||||
)
|
||||
operations = [
|
||||
grids.GridOperation( "Switch", allow_multiple=False, condition=( lambda item: not item.deleted ), async_compatible=True ),
|
||||
grids.GridOperation( "View", allow_multiple=False ),
|
||||
grids.GridOperation( "Share or Publish", allow_multiple=False, condition=( lambda item: not item.deleted ), async_compatible=False ),
|
||||
grids.GridOperation( "View", allow_multiple=False, url_args=dict( action='view' ) ),
|
||||
grids.GridOperation( "Share or Publish", allow_multiple=False, condition=( lambda item: not item.deleted ), url_args=dict( action='sharing' ) ),
|
||||
grids.GridOperation( "Copy", allow_multiple=False, condition=( lambda item: not item.deleted ), async_compatible=False ),
|
||||
grids.GridOperation( "Rename", condition=( lambda item: not item.deleted ), async_compatible=False, target="inbound" ),
|
||||
grids.GridOperation( "Rename", condition=( lambda item: not item.deleted ), url_args=dict( action='rename' ) ),
|
||||
grids.GridOperation( "Delete", condition=( lambda item: not item.deleted ), async_compatible=True ),
|
||||
grids.GridOperation( "Delete Permanently", condition=( lambda item: not item.purged ), confirm="History contents will be removed from disk, this cannot be undone. Continue?", async_compatible=True ),
|
||||
grids.GridOperation( "Undelete", condition=( lambda item: item.deleted and not item.purged ), async_compatible=True ),
|
||||
@@ -167,7 +166,6 @@ class SharedHistoryListGrid( grids.Grid ):
|
||||
operations = [
|
||||
grids.GridOperation( "View", allow_multiple=False, target="_top" ),
|
||||
grids.GridOperation( "Copy" ),
|
||||
# grids.GridOperation( "Copy", allow_multiple=False ),
|
||||
grids.GridOperation( "Unshare" )
|
||||
]
|
||||
standard_filters = []
|
||||
@@ -249,6 +247,7 @@ class HistoryController( BaseUIController, SharableMixin, UsesAnnotations, UsesI
|
||||
return trans.fill_template( "history/list_published.mako", embedded_grid=grid )
|
||||
|
||||
@web.expose
|
||||
@web.json
|
||||
@web.require_login( "work with multiple histories" )
|
||||
def list( self, trans, **kwargs ):
|
||||
"""List all available histories"""
|
||||
@@ -256,20 +255,6 @@ class HistoryController( BaseUIController, SharableMixin, UsesAnnotations, UsesI
|
||||
status = message = None
|
||||
if 'operation' in kwargs:
|
||||
operation = kwargs['operation'].lower()
|
||||
if operation == "share or publish":
|
||||
return self.sharing( trans, **kwargs )
|
||||
if operation == "rename" and kwargs.get('id', None): # Don't call rename if no ids
|
||||
if 'name' in kwargs:
|
||||
del kwargs['name'] # Remove ajax name param that rename method uses
|
||||
return self.rename( trans, **kwargs )
|
||||
if operation == "view":
|
||||
decoded_id = self.decode_id( kwargs.get( 'id', None ) )
|
||||
history = self.history_manager.get_owned( decoded_id, trans.user, current_history=trans.history )
|
||||
return trans.response.send_redirect( url_for( controller='history',
|
||||
action='view',
|
||||
id=kwargs['id'],
|
||||
show_deleted=history.deleted,
|
||||
use_panels=False ) )
|
||||
history_ids = galaxy.util.listify( kwargs.get( 'id', [] ) )
|
||||
# Display no message by default
|
||||
status, message = None, None
|
||||
@@ -296,7 +281,7 @@ class HistoryController( BaseUIController, SharableMixin, UsesAnnotations, UsesI
|
||||
if use_panels:
|
||||
return trans.response.send_redirect( url_for( "/" ) )
|
||||
else:
|
||||
trans.template_context['refresh_frames'] = ['history']
|
||||
kwargs['refresh_frames'] = ['history']
|
||||
elif operation in ( "delete", "delete permanently" ):
|
||||
if operation == "delete permanently":
|
||||
status, message = self._list_delete( trans, histories, purge=True )
|
||||
@@ -305,7 +290,7 @@ class HistoryController( BaseUIController, SharableMixin, UsesAnnotations, UsesI
|
||||
if current_history in histories:
|
||||
# Deleted the current history, so a new, empty history was
|
||||
# created automatically, and we need to refresh the history frame
|
||||
trans.template_context['refresh_frames'] = ['history']
|
||||
kwargs['refresh_frames'] = ['history']
|
||||
elif operation == "undelete":
|
||||
status, message = self._list_undelete( trans, histories )
|
||||
elif operation == "unshare":
|
||||
@@ -328,6 +313,7 @@ class HistoryController( BaseUIController, SharableMixin, UsesAnnotations, UsesI
|
||||
|
||||
trans.sa_session.flush()
|
||||
# Render the list view
|
||||
kwargs[ 'dict_format' ] = True
|
||||
return self.stored_list_grid( trans, status=status, message=message, **kwargs )
|
||||
|
||||
def _list_delete( self, trans, histories, purge=False ):
|
||||
@@ -741,8 +727,8 @@ class HistoryController( BaseUIController, SharableMixin, UsesAnnotations, UsesI
|
||||
history_name = escape( history.name )
|
||||
user_email = escape( user.email )
|
||||
message = "History '%s' does not seem to be shared with user '%s'" % ( history_name, user_email )
|
||||
return trans.fill_template( '/sharing_base.mako', item=history,
|
||||
message=message, status='error' )
|
||||
return trans.fill_template( '/sharing_base.mako', controller_list='histories', item=history,
|
||||
message=message, status='error', use_panels=True )
|
||||
|
||||
# Legacy issue: histories made accessible before recent updates may not have a slug. Create slug for any histories that need them.
|
||||
for history in histories:
|
||||
@@ -751,7 +737,7 @@ class HistoryController( BaseUIController, SharableMixin, UsesAnnotations, UsesI
|
||||
|
||||
session.flush()
|
||||
|
||||
return trans.fill_template( "/sharing_base.mako", item=history )
|
||||
return trans.fill_template( "/sharing_base.mako", controller_list='histories', item=history, use_panels=True )
|
||||
|
||||
@web.expose
|
||||
@web.require_login( "share histories with other users" )
|
||||
|
||||
@@ -15,8 +15,7 @@ from tool_shed.util import encoding_util
|
||||
from galaxy import model
|
||||
from galaxy import util
|
||||
from galaxy import web
|
||||
from galaxy import exceptions
|
||||
from galaxy.managers import workflows, histories
|
||||
from galaxy.managers import workflows
|
||||
from galaxy.model.item_attrs import UsesItemRatings
|
||||
from galaxy.model.mapping import desc
|
||||
from galaxy.util import unicodify, FILENAME_VALID_CHARS
|
||||
@@ -740,7 +739,8 @@ class WorkflowController( BaseUIController, SharableMixin, UsesStoredWorkflowMix
|
||||
return stored_dict
|
||||
|
||||
@web.expose
|
||||
def import_workflow( self, trans, cntrller='workflow', **kwd ):
|
||||
@web.json
|
||||
def upload_import_workflow( self, trans, cntrller='workflow', **kwd ):
|
||||
"""
|
||||
Import a workflow by reading an url, uploading a file, opening and reading the contents
|
||||
of a local file, or receiving the textual representation of a workflow via http.
|
||||
@@ -790,7 +790,7 @@ class WorkflowController( BaseUIController, SharableMixin, UsesStoredWorkflowMix
|
||||
try:
|
||||
workflow_data = urllib2.urlopen( url ).read()
|
||||
except Exception as e:
|
||||
message = "Failed to open URL: <b>%s</b><br>Exception: %s" % ( escape( url ), escape( str( e ) ) )
|
||||
message = "Failed to open URL: %s. Exception: %s" % ( escape( url ), escape( str( e ) ) )
|
||||
status = 'error'
|
||||
elif workflow_text:
|
||||
# This case occurs when the workflow_text was sent via http from the tool shed.
|
||||
@@ -839,7 +839,7 @@ class WorkflowController( BaseUIController, SharableMixin, UsesStoredWorkflowMix
|
||||
message += "Imported, but this workflow contains cycles. "
|
||||
status = "error"
|
||||
else:
|
||||
message += "Workflow <b>%s</b> imported successfully. " % escape( workflow.name )
|
||||
message += "Workflow %s imported successfully. " % escape( workflow.name )
|
||||
if missing_tool_tups:
|
||||
if trans.user_is_admin():
|
||||
# A required tool is not available in the local Galaxy instance.
|
||||
@@ -853,7 +853,7 @@ class WorkflowController( BaseUIController, SharableMixin, UsesStoredWorkflowMix
|
||||
message += "You can likely install the required tools from one of the Galaxy tool sheds listed below.<br/>"
|
||||
for missing_tool_tup in missing_tool_tups:
|
||||
missing_tool_id, missing_tool_name, missing_tool_version, step_id = missing_tool_tup
|
||||
message += "<b>Tool name</b> %s, <b>id</b> %s, <b>version</b> %s<br/>" % (
|
||||
message += "Tool name: %s, id: %s, version: %s." % (
|
||||
escape( missing_tool_name ),
|
||||
escape( missing_tool_id ),
|
||||
escape( missing_tool_version ) )
|
||||
@@ -867,7 +867,7 @@ class WorkflowController( BaseUIController, SharableMixin, UsesStoredWorkflowMix
|
||||
for missing_tool_tup in missing_tool_tups:
|
||||
missing_tool_id = missing_tool_tup[0]
|
||||
url += '%s,' % escape( missing_tool_id )
|
||||
message += '<a href="%s">%s</a><br/>' % ( url, shed_name )
|
||||
message += 'url: %s, shed name: %s.' % ( url, shed_name )
|
||||
status = 'error'
|
||||
if installed_repository_file or tool_shed_url:
|
||||
# Another Galaxy panels Hack: The request did not originate from the Galaxy
|
||||
@@ -886,13 +886,13 @@ class WorkflowController( BaseUIController, SharableMixin, UsesStoredWorkflowMix
|
||||
pass
|
||||
if tool_shed_url:
|
||||
# We've received the textual representation of a workflow from a Galaxy tool shed.
|
||||
message = "Workflow <b>%s</b> imported successfully." % escape( workflow.name )
|
||||
message = "Workflow %s imported successfully." % escape( workflow.name )
|
||||
url = '%s/workflow/view_workflow?repository_metadata_id=%s&workflow_name=%s&message=%s' % \
|
||||
( tool_shed_url, repository_metadata_id, encoding_util.tool_shed_encode( workflow_name ), message )
|
||||
return trans.response.send_redirect( url )
|
||||
elif installed_repository_file:
|
||||
# The workflow was read from a file included with an installed tool shed repository.
|
||||
message = "Workflow <b>%s</b> imported successfully." % escape( workflow.name )
|
||||
message = "Workflow %s imported successfully." % escape( workflow.name )
|
||||
if cntrller == 'api':
|
||||
return status, message
|
||||
return trans.response.send_redirect( web.url_for( controller='admin_toolshed',
|
||||
@@ -900,15 +900,20 @@ class WorkflowController( BaseUIController, SharableMixin, UsesStoredWorkflowMix
|
||||
id=repository_id,
|
||||
message=message,
|
||||
status=status ) )
|
||||
return self.list( trans )
|
||||
redirect_url = url_for( '/' ) + 'workflow?status=' + status + '&message=%s' % escape( message )
|
||||
return trans.response.send_redirect( redirect_url )
|
||||
if cntrller == 'api':
|
||||
return status, message
|
||||
return trans.fill_template( "workflow/import.mako",
|
||||
url=url,
|
||||
message=message,
|
||||
status=status,
|
||||
use_panels=True,
|
||||
myexperiment_target_url=myexperiment_target_url )
|
||||
if status == 'error':
|
||||
redirect_url = url_for( '/' ) + 'workflow?status=' + status + '&message=%s' % escape( message )
|
||||
return trans.response.send_redirect( redirect_url )
|
||||
else:
|
||||
return {
|
||||
'url': url,
|
||||
'message': message,
|
||||
'status': status,
|
||||
'myexperiment_target_url': myexperiment_target_url
|
||||
}
|
||||
|
||||
@web.expose
|
||||
def build_from_current_history( self, trans, job_ids=None, dataset_ids=None, dataset_collection_ids=None, workflow_name=None, dataset_names=None, dataset_collection_names=None ):
|
||||
@@ -947,26 +952,6 @@ class WorkflowController( BaseUIController, SharableMixin, UsesStoredWorkflowMix
|
||||
% ( escape( workflow_name ), url_for( controller='workflow', action='editor', id=workflow_id ),
|
||||
url_for( controller='workflow', action='run', id=workflow_id ) ) )
|
||||
|
||||
@web.expose
|
||||
def run( self, trans, id, history_id=None, **kwargs ):
|
||||
history = None
|
||||
try:
|
||||
if history_id is not None:
|
||||
history_manager = histories.HistoryManager( trans.app )
|
||||
history = history_manager.get_owned( trans.security.decode_id( history_id ), trans.user, current_history=trans.history )
|
||||
else:
|
||||
history = trans.get_history()
|
||||
if history is None:
|
||||
raise exceptions.MessageException( 'History unavailable. Please specify a valid history id' )
|
||||
except Exception as e:
|
||||
raise exceptions.MessageException( '[history_id=%s] Failed to retrieve history. %s.' % ( history_id, str( e ) ) )
|
||||
trans.history = history
|
||||
workflow_manager = workflows.WorkflowsManager( trans.app )
|
||||
workflow_contents_manager = workflows.WorkflowContentsManager( trans.app )
|
||||
stored = workflow_manager.get_stored_accessible_workflow( trans, id )
|
||||
workflow_dict = workflow_contents_manager.workflow_to_dict( trans, stored, style='run' )
|
||||
return trans.fill_template( 'workflow/run.mako', workflow_dict=workflow_dict )
|
||||
|
||||
def get_item( self, trans, id ):
|
||||
return self.get_stored_workflow( trans, id )
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"page.js","sources":["../../src/layout/page.js"],"names":["define","Masthead","Panel","Modal","View","Backbone","extend","el","className","_panelids","initialize","options","self","this","config","_","defaults","message_box_visible","message_box_content","message_box_class","show_inactivity_warning","inactivity_box_content","Galaxy","modal","display","view","center","router","Router","masthead","$el","attr","html","_template","$","replaceWith","append","frame","$messagebox","$inactivebox","CenterPanel","panels","each","panel_id","panel_class_name","charAt","toUpperCase","slice","panel_class","panel_instance","toString","SidePanel","id","render","remove","renderMessageBox","renderInactivityBox","renderPanels","_checkCommunicationServerOnline","content","level","addClass","toggle","show","removeClass","hide","verificationLink","root","text","setElement","panel","css","join","host","window","communication_server_host","port","communication_server_port","preferences","user","attributes","$chat_icon_element","indexOf","communication_server","ajax","url","success","error"],"mappings":"AAAAA,QAAU,kBAAmB,eAAgB,mBAAqB,SAAUC,EAAUC,EAAOC,GACzF,GAAIC,GAAOC,SAASD,KAAKE,QACrBC,GAAK,OACLC,UAAY,eACZC,WAAc,OAAQ,SAEtBC,WAAa,SAAUC,GACnB,GAAIC,GAAOC,IACXA,MAAKC,OAASC,EAAEC,SAAUL,EAAQG,YAC9BG,qBAA0B,EAC1BC,oBAA0B,GAC1BC,kBAA0B,OAC1BC,yBAA0B,EAC1BC,uBAA0B,KAI9BC,OAAOC,MAAQV,KAAKU,MAAQ,GAAIpB,GAAMC,KACtCkB,OAAOE,QAAUX,KAAKW,QAAU,SAAUC,GAASb,EAAKc,OAAOF,QAASC,IACxEH,OAAOK,OAASd,KAAKc,OAAShB,EAAQiB,QAAU,GAAIjB,GAAQ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AAK,aAAc,YAG1CU,EAAmBV,IAAK,aAAc,YAKlD,QAASnE,KAAMA"}
|
||||
{"version":3,"file":"page.js","sources":["../../src/layout/page.js"],"names":["define","Masthead","Panel","Modal","View","Backbone","extend","el","className","_panelids","initialize","options","self","this","config","_","defaults","message_box_visible","message_box_content","message_box_class","show_inactivity_warning","inactivity_box_content","Galaxy","modal","display","view","center","router","Router","masthead","CenterPanel","$el","attr","html","_template","$","replaceWith","append","frame","$messagebox","$inactivebox","panels","each","panel_id","panel_class_name","charAt","toUpperCase","slice","panel_class","panel_instance","toString","SidePanel","id","render","remove","renderMessageBox","renderInactivityBox","renderPanels","_checkCommunicationServerOnline","content","level","addClass","toggle","show","removeClass","hide","verificationLink","root","text","panel","css","join","host","window","communication_server_host","port","communication_server_port","preferences","user","attributes","$chat_icon_element","indexOf","communication_server","ajax","url","success","error"],"mappings":"AAAAA,QAAU,kBAAmB,eAAgB,mBAAqB,SAAUC,EAAUC,EAAOC,GACzF,GAAIC,GAAOC,SAASD,KAAKE,QACrBC,GAAK,OACLC,UAAY,eACZC,WAAc,OAAQ,SAEtBC,WAAa,SAAUC,GACnB,GAAIC,GAAOC,IACXA,MAAKC,OAASC,EAAEC,SAAUL,EAAQG,YAC9BG,qBAA0B,EAC1BC,oBAA0B,GAC1BC,kBAA0B,OAC1BC,yBAA0B,EAC1BC,uBAA0B,KAI9BC,OAAOC,MAAQV,KAAKU,MAAQ,GAAIpB,GAAMC,KACtCkB,OAAOE,QAAUX,KAAKW,QAAU,SAAUC,GAASb,EAAKc,OAAOF,QAASC,IACxEH,OAAOK,OAASd,KAAKc,OAAShB,EAAQiB,QAAU,GAAIjB,GAAQiB,OAAQhB,EAAMD,GAC1EE,KAAKgB,SAAW,GAAI5B,GAASG,KAAMS,KAAKC,QACxCD,KAAKa,OAAS,GAAIxB,GAAM4B,YAGxBjB,KAAKkB,IAAIC,KAAM,SAAU,MACzBnB,KAAKkB,IAAIE,KAAMpB,KAAKqB,aACpBrB,KAAKs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mB/B,EAAG,QAASH,KAAM,OAAQV,OAAO6C,KAAO,4BAA6BC,KAAM,sBAClGvD,MAAKkB,IAAI8B,SAAU,sBACnBhD,KAAK2B,aACAP,KAAM0B,EAAU,KAChBtB,OAAQ6B,GACRJ,SAAUH,GACVI,WAELlD,MAAKkB,IAAIiC,YAAa,sBACtBnD,KAAK2B,aAAayB,MAEtB,OAAOpD,OAIX4C,aAAe,WACX,GAAI7C,GAAOC,IAUX,OATAE,GAAE2B,KAAM7B,KAAKJ,UAAW,SAAUkC,GAC9B,GAAI0B,GAAQzD,EAAK6B,OAAQE,EACpB0B,GACDA,EAAMhB,UAENzC,EAAKuB,EAAG,WAAYmC,IAAK3B,EAAU,GACnC/B,EAAKuB,EAAG,IAAMQ,GAAWsB,UAG1BpD,MAIXqB,UAAW,WACP,OACI,wBACI,yBACA,uBACA,yBACA,yDACA,oBACA,sCACA,qBACJ,SACA,0BACFqC,KAAK,KAGXrB,SAAW,WAAa,MAAO,kBAG/BQ,gCAAiC,WAC7B,GAAIc,GAAOC,OAAOnD,OAAOR,OAAO4D,0BAC5BC,EAAOF,OAAOnD,OAAOR,OAAO8D,0BAC5BC,EAAcJ,OAAOnD,OAAOwD,KAAKC,WAAWF,YAC5CG,EAAqB7C,EAAG,oBAEvB0C,IAA8E,KAA7D,IAAK,QAASI,QAASJ,EAAYK,sBAErD/C,EAAEgD,MACEC,IAAKZ,EAAO,IAAMG,IAErBU,QAAS,WAE4B,OAA1BZ,OAAOnD,OAAOwD,KAAK1B,IAC4B,WAA3C4B,EAAmBV,IAAK,eACxBU,EAAmBV,IAAK,aAAc,aAIrDgB,MAAO,WAEJN,EAAmBV,IAAK,aAAc,YAG1CU,EAAmBV,IAAK,aAAc,YAKlD,QAASlE,KAAMA"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"panel.js","sources":["../../src/layout/panel.js"],"names":["define","$","_","Backbone","MIN_PANEL_WIDTH","MAX_PANEL_WIDTH","SidePanel","View","extend","initialize","options","this","view","hidden","saved_size","hiddenByTool","$center","$el","siblings","$toggleButton","render","self","panel","components","model","attributes","html","_templatePanel","id","each","buttons","button","append","addClass","cls","escape","title","_templateHeader","_templateBody","_templateFooter","join","events","mousedown .unified-panel-footer > .drag","click .unified-panel-footer > .panel-collapse","_mousedownDragHandler","ev","move","e","delta","pageX","prevX","oldWidth","width","newWidth","draggingLeft","Math","min","max","resize","show","on","one","hide","off","newSize","css","animation","whichSide","animate","removeClass","toggle","handle_minwidth_hint","hint","space","force_panel","op","toString","LeftPanel","RightPanel","CenterPanel","prev","template","bind","_iframeChangeHandler","iframe","currentTarget","location","contentWindow","host","remove","Galaxy","trigger","fullpath","pathname","search","hash","display","message","onbeforeunload","confirm","undefined","attr","scrollTop"],"mappings":"AAAAA,QAAU,SAAU,kBAAmB,iBAAmB,SAAUC,EAAGC,EAAGC,GACtE,YAEA,IAAIC,GAAkB,IAClBC,EAAkB,IAGlBC,EAAYH,EAASI,KAAKC,QAE1BC,WAAY,SAAUC,GAClBC,KAAKC,KAAOF,EAAQE,KACpBD,KAAKE,QAAS,EACdF,KAAKG,WAAa,KAClBH,KAAKI,cAAe,GAGxBC,QAAU,WACN,MAAOL,MAAKM,IAAIC,SAAU,YAG9BC,cAAgB,WACZ,MAAOR,MAAKV,EAAG,4CAGnBmB,OAAQ,WACJ,GAAIC,GAAOV,KACPW,EAAQX,KAAKC,KACbW,EAAaZ,KAAKC,KAAKY,MAAMC,cACjCd,MAAKM,IAAIS,KAAMf,KAAKgB,eAAgBhB,KAAKiB,KACzC1B,EAAE2B,KAAMN,EAAWO,QAAS,SAAUC,GAClCV,EAAKpB,EAAG,yBAA0B+B,OAAQD,EAAOd,OAErDN,KAAKM,IAAIgB,SAAUV,EAAWW,KAC9BvB,KAAKV,EAAG,sBAAuByB,KAAMxB,EAAEiC,OAAQZ,EAAWa,QAC1DzB,KAAKV,EAAG,uBAAwB+B,OAAQV,EAAML,KAC9CK,EAAMF,UAIVO,eAAgB,WACZ,OACIhB,K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AASR,EAASS,KACzDF,SAAUP,EAASO,SACnBC,OAAUR,EAASQ,OACnBC,KAAUT,EAASS,SAM/BC,QAAS,SAAUpF,GAGf,GAAI2E,GAAgB5E,KAAKV,EAAG,gBAAkB,GAAIsF,kBAC9CU,EAAUV,EAAcW,gBAAkBX,EAAcW,kBACtDD,GAAWE,QAASF,IACtBV,EAAcW,eAAiBE,OAE3BzF,KAAKqE,MACLrE,KAAKqE,KAAKS,SAEd9E,KAAKqE,KAAOpE,EACZD,KAAKV,EAAG,gBAAiBoG,KAAM,MAAO,eAAgBvC,OACtDnD,KAAKV,EAAG,iBAAkBqG,UAAW,GAAItE,OAAQpB,EAAKK,KAAM0C,OAC5D+B,OAAOC,QAAS,oBAAqB/E,IAGjCA,GACAA,EAAK6E,UAKjBR,SAAU,WACN,OAEI,8DACI,+DACQ,2DACR,0BACK,yGACT,UACFzC,KAAK,KAGXoC,SAAW,WAAY,MAAO,gBAGlC,QACItE,UAAYA,EACZuE,UAAYA,EACZC,WAAaA,EACbC,YAAcA"}
|
||||
{"version":3,"file":"panel.js","sources":["../../src/layout/panel.js"],"names":["define","$","_","Backbone","MIN_PANEL_WIDTH","MAX_PANEL_WIDTH","SidePanel","View","extend","initialize","options","this","view","hidden","saved_size","hiddenByTool","$center","$el","siblings","$toggleButton","render","self","panel","components","model","attributes","html","_templatePanel","id","each","buttons","button","append","addClass","cls","escape","title","_templateHeader","_templateBody","_templateFooter","join","events","mousedown .unified-panel-footer > .drag","click .unified-panel-footer > .panel-collapse","_mousedownDragHandler","ev","move","e","delta","pageX","prevX","oldWidth","width","newWidth","draggingLeft","Math","min","max","resize","show","on","one","hide","off","newSize","css","animation","whichSide","animate","removeClass","toggle","handle_minwidth_hint","hint","space","force_panel","op","toString","LeftPanel","RightPanel","CenterPanel","setElement","template","$frame","$panel","bind","_iframeChangeHandler","iframe","currentTarget","location","contentWindow","host","empty","Galaxy","trigger","fullpath","pathname","search","hash","display","message","onbeforeunload","confirm","undefined","attr","scrollTop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YA,EACZC,WAAaA,EACbC,YAAcA"}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"history-list.js","sources":["../../../src/mvc/history/history-list.js"],"names":["define","Utils","GridView","HistoryModel","historyCopyDialog","View","Backbone","extend","initialize","self","this","setElement","$","model","Model","get","url","Galaxy","root","success","response","_","each","operation","label","onclick","id","_showCopyDialog","set","render","grid","attributes","$el","empty","append","history","History","fetch","fail","alert","done","window","parent","currHistoryPanel","loadCurrentHistory","location","reload"],"mappings":"AACAA,QAAU,cAAe,qBAAsB,4BAA6B,2BAA6B,SAAUC,EAAOC,EAAUC,EAAcC,GAE9I,GAAIC,GAAOC,SAASD,KAAKE,QACrBC,WAAY,WACR,GAAIC,GAAOC,IACXA,MAAKC,WAAYC,EAAG,WACpBF,KAAKG,MAAQ,GAAIP,UAASQ,MAC1Bb,EAAMc,KACFC,IAAUC,OAAOC,KAAO,eACxBC,QAAU,SAAUC,GAChBA,EAAwB,aAAI,EAC5BC,EAAEC,KAAMF,EAAuB,WAAG,SAAUG,GAChB,QAAnBA,EAAUC,QACXD,EAAUE,QAAU,SAAUC,GAAOjB,EAAKkB,gBAAiBD,OAGnEjB,EAAKI,MAAMe,IAAKR,GAChBX,EAAKoB,aAKjBA,OAAQ,WACJ,GAAIC,GAAO,GAAI5B,GAAUQ,KAAKG,MAAMkB,WACpCrB,MAAKsB,IAAIC,QAAQC,OAAQJ,EAAKE,MAGlCL,gBAAiB,SAAUD,GACvB,GAAIS,GAAU,GAAIhC,GAAaiC,SAAWV,GAAKA,GAC/CS,GAAQE,QACAC,KAAM,WACHC,MAAO,mEAEVC,KAAM,WACHpC,EAAmB+B,MAAcK,KAAM,WAC/BC,OAAOC,QAAUD,OAAOC,OAAOzB,QAAUwB,OAAOC,OAAOzB,OAAO0B,kBAC9DF,OAAOC,OAAOzB,OAAO0B,iBAAiBC,qBAE1CH,OAAOI,SAASC,QAAQ,SAM/C,QACIzC,KAAMA"}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"version":3,"file":"options-menu.js","sources":["../../../src/mvc/history/options-menu.js"],"names":["define","PopupMenu","historyCopyDialog","BASE_MVC","_l","Webhooks","buildMenu","isAnon","purgeAllowed","urlRoot","_","clone","menu","filter","menuOption","anon","purge","href","target","confirm","func","galaxy_main","location","html","header","Galaxy","currHistoryPanel","createNewHistory","model","done","loadCurrentHistory","window","id","collapseAll","$","post","root","user_action","add","url","async","callback","webhooks","webhooks_menu","each","models","index","webhook","toJSON","activate","push","config","title","length","unshift","merge","create","$button","options","undefined","anonymous"],"mappings":"AAAAA,QACI,oBACA,0BACA,eACA,qBACA,gBACD,SAAUC,EAAWC,EAAmBC,EAAUC,EAAIC,GAEzD,YA2LA,SAASC,GAAWC,EAAQC,EAAcC,GACtC,MAAOC,GAAEC,MAAOC,GAAOC,OAAQ,SAAUC,GACrC,MAAIP,KAAWO,EAAWC,MACf,GAENP,GAAgBM,EAAWE,OACrB,GAIPF,EAAWG,OACXH,EAAWG,KAAOR,EAAUK,EAAWG,KACvCH,EAAWI,OAAS,eAGpBJ,EAAWK,UACXL,EAAWM,KAAO,WACVD,QAASL,EAAWK,WACpBE,YAAYC,SAAWR,EAAWG,SAIvC,KA9Mf,GAAIL,KAEIW,KAAUnB,EAAI,iBACdoB,QAAU,IAGVD,KAAUnB,EAAI,mBACda,KAAU,iBAGVM,KAAUnB,EAAI,4BACda,KAAU,wBAIVM,KAAUnB,EAAI,mBACdoB,QAAU,EACVT,MAAU,IAGVQ,KAAUnB,EAAI,cACdgB,KAAU,WACFK,QAAUA,OAAOC,kBACjBD,OAAOC,iBAAiBC,sBAKhCJ,KAAUnB,EAAI,gBACdgB,KAAU,WACNlB,EAAmBuB,OAAOC,iBAAiBE,OACtCC,KAAM,WACHJ,OAAOC,iBAAiBI,0BAKpCP,KAAUnB,EAAI,oBACda,KAAU,oBAGVM,KAAUnB,EAAI,kBACda,KAAU,6BACVF,MAAU,IAGVQ,KAAUn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AU,0BAKlBZ,GAASiC,KACLC,IAAK,gCACLC,OAAO,EACPC,SAAU,SAASC,GACf,GAAIC,KAEJT,GAAEU,KAAKF,EAASG,OAAQ,SAASC,EAAOlB,GACpC,GAAImB,GAAUnB,EAAMoB,QAChBD,GAAQE,UACRN,EAAcO,MACV3B,KAAOnB,EAAI2C,EAAQI,OAAOC,OAE1BrC,MAAO,MAKf4B,EAAcU,OAAS,IACvBV,EAAcW,SACV/B,KAASnB,EAAI,YACboB,QAAS,IAEbU,EAAEqB,MAAM3C,EAAM+B,MAgC1B,IAAIa,GAAS,SAAUC,EAASC,GAC5BA,EAAUA,KACV,IAAInD,GAA+BoD,SAAtBD,EAAQE,WAAyB,EAAOF,EAAQE,UACzDpD,EAAekD,EAAQlD,eAAgB,EACvCI,EAAON,EAAWC,EAAQC,EAAciB,OAAOW,KAEnD,OAAO,IAAInC,GAAWwD,EAAS7C,GAK/B,OAAO4C"}
|
||||
{"version":3,"file":"options-menu.js","sources":["../../../src/mvc/history/options-menu.js"],"names":["define","PopupMenu","historyCopyDialog","BASE_MVC","_l","Webhooks","buildMenu","isAnon","purgeAllowed","urlRoot","_","clone","menu","filter","menuOption","anon","purge","href","target","confirm","func","galaxy_main","location","html","header","Galaxy","currHistoryPanel","createNewHistory","model","done","loadCurrentHistory","window","id","collapseAll","$","post","root","user_action","add","url","async","callback","webhooks","webhooks_menu","each","models","index","webhook","toJSON","activate","push","config","title","length","unshift","merge","create","$button","options","undefined","anonymous"],"mappings":"AAAAA,QACI,oBACA,0BACA,eACA,qBACA,gBACD,SAAUC,EAAWC,EAAmBC,EAAUC,EAAIC,GAEzD,YA6LA,SAASC,GAAWC,EAAQC,EAAcC,GACtC,MAAOC,GAAEC,MAAOC,GAAOC,OAAQ,SAAUC,GACrC,MAAIP,KAAWO,EAAWC,MACf,GAENP,GAAgBM,EAAWE,OACrB,GAIPF,EAAWG,OACXH,EAAWG,KAAOR,EAAUK,EAAWG,KACvCH,EAAWI,OAASJ,EAAWI,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A,OAAOC,kBAAoBP,QAASf,EAAI,wCAClD8B,EAAEC,KAAKV,OAAOW,KAAO,yBACZC,YAAgB,UAClB,WAAWZ,OAAOC,iBAAiBI,0BAKlDP,KAAUnB,EAAI,0BACdW,MAAU,EACVK,KAAU,WAEFK,QAAUA,OAAOC,kBAAoBP,QAASf,EAAI,wCAClD8B,EAAEC,KAAKV,OAAOW,KAAO,yBACZC,YAAgB,UAClB,WAAWZ,OAAOC,iBAAiBI,0BAKlDP,KAAUnB,EAAI,0BACde,QAAUf,EAAI,0EACda,KAAU,iCACVD,OAAU,EACVD,MAAU,IAKVQ,KAAUnB,EAAI,aACdoB,QAAU,IAGVD,KAAUnB,EAAI,yBACda,KAAU,oBACVF,MAAU,IAGVQ,KAAUnB,EAAI,0BACda,KAAU,sCACVF,MAAU,IAIVQ,KAAUnB,EAAI,iBACdoB,QAAU,IAGVD,KAAUnB,EAAI,oBACda,KAAU,0BAKlBZ,GAASiC,KACLC,IAAK,gCACLC,OAAO,EACPC,SAAU,SAASC,GACf,GAAIC,KAEJT,GAAEU,KAAKF,EAASG,OAAQ,SAASC,EAAOlB,GACpC,GAAImB,GAAUnB,EAAMoB,QAChBD,GAAQE,UACRN,EAAcO,MACV3B,KAAOnB,EAAI2C,EAAQI,OAAOC,OAE1BrC,MAAO,MAKf4B,EAAcU,OAAS,IACvBV,EAAcW,SACV/B,KAASnB,EAAI,YACboB,QAAS,IAEbU,EAAEqB,MAAM3C,EAAM+B,MAgC1B,IAAIa,GAAS,SAAUC,EAASC,GAC5BA,EAAUA,KACV,IAAInD,GAA+BoD,SAAtBD,EAAQE,WAAyB,EAAOF,EAAQE,UACzDpD,EAAekD,EAAQlD,eAAgB,EACvCI,EAAON,EAAWC,EAAQC,EAAciB,OAAOW,KAEnD,OAAO,IAAInC,GAAWwD,EAAS7C,GAK/B,OAAO4C"}
|
||||
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":"user-preferences.js","sources":["../../../src/mvc/user/user-preferences.js"],"names":["define","Form","Ui","Model","Backbone","extend","initialize","options","user_id","Galaxy","user","id","this","set","information","title","description","url","icon","password","submit_title","communication","permissions","api_key","submit_icon","toolbox_filters","openids","onclick","window","location","href","root","custom_builds","logout","modal","show","body","buttons","Cancel","hide","Sign out","View","model","message","Message","setElement","render","self","config","$","getJSON","data","$preferences","addClass","append","$el","_","escape","email","$table","use_remote_user","_addLink","enable_communication_server","has_user_tool_filters","enable_openid","_templateFooter","empty","action","get","$row","_templateLink","$a","find","on","attr","nice_total_disk_usage","enable_quotas","quota","Forms","page","form_id","ajax","type","done","response","form","inputs","operations","submit","ButtonIcon","tooltip","submit_tooltip","_submit","fail","status","persistent","JSON","stringify","create","contentType","matchModel","input","input_id","field_list","value","update","responseJSON","err_msg"],"mappings":"AACAA,QAAU,qBAAsB,kBAAoB,SAAUC,EAAMC,GAGhE,GAAIC,GAAQC,SAASD,MAAME,QACvBC,WAAY,SAAUC,GAClBA,EAAUA,MACVA,EAAQC,QAAUD,EAAQC,SAAWC,OAAOC,KAAKC,GACjDC,KAAKC,KACDL,QAAsBD,EAAQC,QAC9BM,aACIC,MAAkB,qBAClBC,YAAkB,4EAClBC,IAAkB,aAAeV,EAAQC,QAAU,sBACnDU,KAAkB,WAEtBC,UACIJ,MAAkB,kBAClBC,YAAkB,+CAClBE,KAAkB,gBAClBD,IAAkB,aAAeV,EAAQC,QAAU,mBACnDY,aAAkB,iBAEtBC,eACIN,MAAkB,gCAClBC,YAAkB,wEAClBC,IAAkB,aAAeV,EAAQC,QAAU,wBACnDU,KAAkB,iBAEtBI,aACIP,MAAkB,4CAClBC,YAAkB,sJAClBC,IAAkB,aAAeV,EAAQC,QAAU,sBACnDU,KAAkB,WAClBE,aAAkB,oBAEtBG,SACIR,MAAkB,iBAClBC,YAAkB,mDAClBC,IAAkB,aAAeV,EAAQC,QAAU,kBACnDU,KAAkB,SAClBE,aAAkB,mBAClBI,YAAkB,YAEtBC,iBACI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nB5E,MAAWR,EAAQa,cAAgB,gBACnCF,KAAWX,EAAQiB,aAAe,UAClCG,QAAW,WAAaoB,EAAK6C,QAASP,EAAM9E,QAIxDwC,GAAKQ,IAAIW,QAAQZ,OAAQ+B,EAAK9B,OAC/BsC,KAAM,WACL9C,EAAKQ,IAAIW,QAAQZ,OAAQ,GAAIpD,GAAG0C,SAC5BD,QAAc,2BAA6BI,EAAKgC,KAAK9D,IAAM,IAC3D6E,OAAc,SACdC,YAAc,IACfxC,QAIXqC,QAAS,SAAUP,EAAM9E,GAErB0C,EAAEgC,MACEhE,IAAcR,OAAOsB,KAAOxB,EAAQU,IACpCkC,KAAc6C,KAAKC,UAAWZ,EAAKlC,KAAK+C,UACxChB,KAAc,MACdiB,YAAc,qBACfhB,KAAM,SAAUC,GACfC,EAAKlC,KAAKiD,WAAYhB,EAAU,SAAWiB,EAAOC,GAC9CjB,EAAKkB,WAAYD,GAAWE,MAAOH,EAAMG,SAE7CnB,EAAK1C,QAAQ8D,QAAU9D,QAASyC,EAASzC,QAASmD,OAAQ,cAC3DD,KAAM,SAAUT,GACfC,EAAK1C,QAAQ8D,QAAU9D,QAASyC,EAASsB,aAAaC,QAASb,OAAQ,eAKnF,QACIrD,KAAQA,EACRqC,MAAQA"}
|
||||
{"version":3,"file":"user-preferences.js","sources":["../../../src/mvc/user/user-preferences.js"],"names":["define","Form","Ui","Model","Backbone","extend","initialize","options","user_id","Galaxy","user","id","this","set","information","title","description","url","icon","password","submit_title","communication","permissions","api_key","submit_icon","toolbox_filters","openids","onclick","window","location","href","root","custom_builds","configure_menu","logout","modal","show","body","buttons","Cancel","hide","Sign out","View","model","message","Message","setElement","render","self","config","$","getJSON","data","$preferences","addClass","append","$el","_","escape","email","$table","use_remote_user","_addLink","enable_communication_server","has_user_tool_filters","enable_openid","_templateFooter","empty","action","get","$row","_templateLink","$a","find","on","attr","nice_total_disk_usage","enable_quotas","quota","Forms","page","form_id","ajax","type","done","response","form","inputs","operations","submit","ButtonIcon","tooltip","submit_tooltip","_submit","fail","status","persistent","JSON","stringify","create","contentType","matchModel","input","input_id","field_list","value","update","responseJSON","err_msg"],"mappings":"AACAA,QAAU,qBAAsB,kBAAoB,SAAUC,EAAMC,GAGhE,GAAIC,GAAQC,SAASD,MAAME,QACvBC,WAAY,SAAUC,GAClBA,EAAUA,MACVA,EAAQC,QAAUD,EAAQC,SAAWC,OAAOC,KAAKC,GACjDC,KAAKC,KACDL,QAAsBD,EAAQC,QAC9BM,aACIC,MAAkB,qBAClBC,YAAkB,4EAClBC,IAAkB,aAAeV,EAAQC,QAAU,sBACnDU,KAAkB,WAEtBC,UACIJ,MAAkB,kBAClBC,YAAkB,+CAClBE,KAAkB,gBAClBD,IAAkB,aAAeV,EAAQC,QAAU,mBACnDY,aAAkB,iBAEtBC,eACIN,MAAkB,gCAClBC,YAAkB,wEAClBC,IAAkB,aAAeV,EAAQC,QAAU,wBACnDU,KAAkB,iBAEtBI,aACIP,MAAkB,4CAClBC,YAAkB,sJAClBC,IAAkB,aAAeV,EAAQC,QAAU,sBACnDU,KAAkB,WAClBE,aAAkB,oBAEtBG,SACIR,MAAkB,iBAClBC,YAAkB,mDAClBC,IAAkB,aAAeV,EAAQC,QAAU,kBACnDU,KAAkB,SAClBE,aAAkB,mBAClBI,YAAkB,YAEtBC,iBACIV,MAAkB,yBAClBC,YAAkB,kEAClBC,IAAkB,aAAeV,EAAQC,QAAU,0BACnDU,KAAkB,YAClBE,aAAkB,gBAEtBM,SACIX,MAAkB,iBAClBC,YAAkB,uCAClBE,KAAkB,YAClBS,QAAkB,WACdC,OAAOC,SAASC,KAAOrB,OAAOsB,KAAO,qDAG7CC,eACIjB,MAAkB,uBAClBC,YAAkB,sDAClBE,KAAkB,WAClBS,QAAkB,WACdC,OAAOC,SAASC,KAAOrB,OAAOsB,KAAO,kBAG7CE,gBACIlB,MAAkB,0BAClBC,YAAkB,gEAClBE,KAAkB,SAClBS,QAAkB,WACdC,OAAOC,SAASC,KAAOrB,OAAOs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dC,YAAc,IACfxC,QAIXqC,QAAS,SAAUP,EAAM/E,GAErB2C,EAAEgC,MACEjE,IAAcR,OAAOsB,KAAOxB,EAAQU,IACpCmC,KAAc6C,KAAKC,UAAWZ,EAAKlC,KAAK+C,UACxChB,KAAc,MACdiB,YAAc,qBACfhB,KAAM,SAAUC,GACfC,EAAKlC,KAAKiD,WAAYhB,EAAU,SAAWiB,EAAOC,GAC9CjB,EAAKkB,WAAYD,GAAWE,MAAOH,EAAMG,SAE7CnB,EAAK1C,QAAQ8D,QAAU9D,QAASyC,EAASzC,QAASmD,OAAQ,cAC3DD,KAAM,SAAUT,GACfC,EAAK1C,QAAQ8D,QAAU9D,QAASyC,EAASsB,aAAaC,QAASb,OAAQ,eAKnF,QACIrD,KAAQA,EACRqC,MAAQA"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"workflow-configure-menu.js","sources":["../../../src/mvc/workflow/workflow-configure-menu.js"],"names":["define","View","Backbone","extend","initialize","this","setElement","render","self","$","getJSON","Galaxy","root","response","workflows","ids_in_menu","$el_config_worflow","$el","empty","append","_templateConfigWorkflowHeader","find","_templateActionButtons","length","_templateConfigureWorkflow","save_workflow_menu","make_checked","register_check_uncheck_all","_templateNoWorkflow","$el_check_all","$el_uncheck_all","click","check_uncheck_all","checked","each","wf_checkbox","_","id","parseInt","value","$el_save_workflow_menu","ids","push","ajax","type","url","data","JSON","stringify","workflow_ids","contentType","done","window","location","status","message","tableHtml","trHtml","wf","escape","name","owner","user","attributes","username","number_of_steps","_templateInputCheckbox"],"mappings":"AACAA,UAAY,WACR,GAAIC,GAAOC,SAASD,KAAKE,QAErBC,WAAY,WACRC,KAAKC,WAAY,UACjBD,KAAKE,UAGTA,OAAQ,WACJ,GAAIC,GAAOH,IACXI,GAAEC,QAASC,OAAOC,KAAO,sBAAuB,SAAUC,GACtD,GAAIC,GAAYD,EAASC,UACrBC,EAAcF,EAASE,YACvBC,EAAqB,IAGzBR,GAAKS,IAAIC,QAAQC,OAAQ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S,YAAc,qBACfC,KAAM,SAAUtC,GACfuC,OAAOC,SAAW1C,OAAOC,KAAO,mBAAoBC,EAASyC,OAAQ,YAAczC,EAAS0C,aAMxGjC,uBAAwB,WACrB,MAAO,4PAaVE,2BAA4B,SAAUhB,EAAMM,EAAWC,GACnD,GAAIyC,GAAY,GAAIC,EAAS,EAuB7B,OAtBAD,IAAwB,kMAOxBpB,EAAEF,KAAMpB,EAAW,SAAU4C,GACzBD,EAASA,EAAS,yBACSrB,EAAEuB,OAAQD,EAAGE,MAAQ,aACjCF,EAAGG,QAAUlD,OAAOmD,KAAKC,WAAWC,SAAW,MAAQN,EAAGG,OAAS,0BACvDH,EAAGO,gBAAkB,0BACrBzD,EAAK0D,uBAAwB1D,EAAMkD,EAAI3C,GAAgB,eAGtFyC,EAAYA,EAAY,uCAAyCC,EAAS,mBAC1ED,EAAYA,EAAY,+KAGsE7C,OAAOC,KAAM,wEAO/GgB,oBAAqB,WACjB,MAAO,4EAIXsC,uBAAwB,SAAU1D,EAAMkD,GACpC,MAAO,4EAA6EA,EAAGrB,GAAI,QAI/FjB,8BAA+B,WAC3B,MAAO,iHAQf,QACInB,KAAOA"}
|
||||
{"version":3,"file":"workflow-configure-menu.js","sources":["../../../src/mvc/workflow/workflow-configure-menu.js"],"names":["define","View","Backbone","extend","initialize","this","setElement","render","self","$","getJSON","Galaxy","root","response","workflows","ids_in_menu","$el_config_worflow","$el","empty","append","_templateConfigWorkflowHeader","find","_templateActionButtons","length","_templateConfigureWorkflow","save_workflow_menu","make_checked","register_check_uncheck_all","_templateNoWorkflow","$el_check_all","$el_uncheck_all","click","check_uncheck_all","checked","each","wf_checkbox","_","id","parseInt","value","$el_save_workflow_menu","ids","push","ajax","type","url","data","JSON","stringify","workflow_ids","contentType","done","window","location","tableHtml","trHtml","wf","escape","name","owner","user","attributes","username","number_of_steps","_templateInputCheckbox"],"mappings":"AACAA,UAAY,WACR,GAAIC,GAAOC,SAASD,KAAKE,QAErBC,WAAY,WACRC,K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Ic,GAAc1B,EAAGJ,MAAO,IACxB8B,EAAYF,SAAmC,SAAxBE,EAAYF,UACnCQ,EAAIC,KAAMJ,SAAUH,EAAYI,UAGxC9B,EAAEkC,MACEC,KAAM,MACNC,IAAKlC,OAAOC,KAAO,sBACnBkC,KAAMC,KAAKC,WAAaC,aAAgBR,IACxCS,YAAc,qBACfC,KAAM,WACLC,OAAOC,SAAW1C,OAAOC,KAAO,YAM5CU,uBAAwB,WACrB,MAAO,4PAaVE,2BAA4B,SAAUhB,EAAMM,EAAWC,GACnD,GAAIuC,GAAY,GAAIC,EAAS,EAuB7B,OAtBAD,IAAwB,kMAOxBlB,EAAEF,KAAMpB,EAAW,SAAU0C,GACzBD,EAASA,EAAS,yBACSnB,EAAEqB,OAAQD,EAAGE,MAAQ,aACjCF,EAAGG,QAAUhD,OAAOiD,KAAKC,WAAWC,SAAW,MAAQN,EAAGG,OAAS,0BACvDH,EAAGO,gBAAkB,0BACrBvD,EAAKwD,uBAAwBxD,EAAMgD,EAAIzC,GAAgB,eAGtFuC,EAAYA,EAAY,uCAAyCC,EAAS,mBAC1ED,EAAYA,EAAY,+KAGsE3C,OAAOC,KAAM,oFAO/GgB,oBAAqB,WACjB,MAAO,4EAIXoC,uBAAwB,SAAUxD,EAAMgD,GACpC,MAAO,4EAA6EA,EAAGnB,GAAI,QAI/FjB,8BAA+B,WAC3B,MAAO,iHAQf,QACInB,KAAOA"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"workflow.js","sources":["../../../src/mvc/workflow/workflow.js"],"names":["define","View","Backbone","extend","initialize","this","setElement","render","self","min_query_length","$","getJSON","Galaxy","root","workflows","$el_workflow","$el","empty","append","_templateHeader","build_messages","find","_templateActionButtons","length","_templateWorkflowTable","adjust_actiondropdown","_","each","wf","confirm_delete","search_workflow","_templateNoWorkflow","$el_message","status","get_querystring","message","addClass","html","escape","workflow","$el_wf_link","id","$el_shared_wf_link","click","confirm","name","$el_searchinput","$el_tabletr","min_querylen","on","query","val","regular_expression","RegExp","hide","filter","test","text","show","key","decodeURIComponent","window","location","search","replace","encodeURIComponent","css","tableHtml","trHtml","_templateActions","owner","user","attributes","username","number_of_steps","published","slug"],"mappings":"AACAA,UAAY,WAGR,GAAIC,GAAOC,SAASD,KAAKE,QAErBC,WAAY,WACRC,KAAKC,WAAY,UACjBD,KAAKE,UAGTA,OAAQ,WACJ,GAAIC,GAAOH,KACPI,EAAmB,CACvBC,GAAEC,QAASC,OAAOC,KAAO,iBAAkB,SAAUC,GACjD,GAAIC,GAAe,IAEnBP,GAAKQ,IAAIC,QAAQC,OAAQV,EAAKW,mBAE9BX,EAAKY,eAAgBZ,GACrBO,EAAeP,EAAKQ,IAAIK,KAAM,mBAE9BN,EAAaG,OAAQV,EAAKc,0BACtBR,EAAUS,OAAS,GACnBR,EAAaG,OAAQV,EAAKgB,uBAAwBhB,EAAMM,IACxDN,EAAKiB,sBAAuBV,GAE5BW,EAAEC,KAAMb,EAAW,SAAUc,GACzBpB,EAAKqB,eAAgBrB,EAAMoB,KAG/BpB,EAAKsB,gBAAiBtB,EAAMA,EAAKQ,IAAIK,KAAM,cAAgBb,EAAKQ,IAAIK,KAAM,uBAAyBZ,IAGnGM,EAAaG,OAAQV,EAAKuB,0BAMtCX,eAAgB,SAAUZ,GACtB,GAAIwB,GAAcxB,EAAKQ,IAAIK,KAAM,qBAC7BY,EAASzB,EAAK0B,gBAAiB,UAC/BC,EAAU3B,EAAK0B,gBAAiB,UAEhCC,IAAuB,OAAZA,GAAgC,KAAZA,GAC/BH,EAAYI,SAAUH,EAAS,WAC/BD,EAAYK,KAAM,MAAQX,EAAEY,OAAOH,GAAW,SAG9CH,EAAYK,KAAK,KAKzBR,eAAgB,SAAUrB,EAAM+B,GAC5B,GAAIC,GAAchC,EAAKQ,IAAIK,KAAM,iBAAmBkB,EAASE,IACzDC,EAAqBlC,EAAKQ,IAAIK,KAAM,wBAA0BkB,EAASE,GAC3ED,GAAYG,MAAO,WACf,MAAOC,SAAS,6C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OAAO2D,KAAKC,WAAWC,SACnC,qDACqB7D,OAAOC,KAAM,sBAAuB0B,EAASE,GAAI,+BACjD7B,OAAOC,KAAM,mBAAoB0B,EAASE,GAAI,mDAC9C7B,OAAOC,KAAM,uBAAwB0B,EAASE,GAAI,4CAClD7B,OAAOC,KAAM,oBAAqB0B,EAASE,GAAI,+BAC/C7B,OAAOC,KAAM,sBAAuB0B,EAASE,GAAI,iCACjD7B,OAAOC,KAAM,6BAA8B0B,EAASE,GAAI,6CAC1CF,EAASE,GAAI,WAAY7B,OAAOC,KAAM,sBAAuB0B,EAASE,GAAI,yBAI7G,qDACmB7B,OAAOC,KAAM,kDAAmD0B,EAAS+B,MAAO,SAAU/B,EAASqC,KAAM,+BACzGhE,OAAOC,KAAM,mBAAoB0B,EAASE,GAAI,mDAC9C7B,OAAOC,KAAM,oBAAqB0B,EAASE,GAAI,oDAC1BF,EAASE,GAAI,WAAY7B,OAAOC,KAAM,uCAAwC0B,EAASE,GAAI,0BAMlJtB,gBAAiB,WACb,MAAO,sOAO+DP,OAAOC,KAAM,4HAQ3F,QACIZ,KAAQA"}
|
||||
{"version":3,"file":"workflow.js","sources":["../../../src/mvc/workflow/workflow.js"],"names":["define","Utils","build_messages","self","$el_message","$el","find","status","getQueryString","message","addClass","html","_","escape","View","Backbone","extend","initialize","this","setElement","render","min_query_length","$","getJSON","Galaxy","root","workflows","$el_workflow","empty","append","_templateHeader","_templateActionButtons","length","_templateWorkflowTable","adjust_actiondropdown","each","wf","confirm_delete","search_workflow","_templateNoWorkflow","workflow","$el_wf_link","id","$el_shared_wf_link","click","confirm","name","$el_searchinput","$el_tabletr","min_querylen","on","query","val","regular_expression","RegExp","hide","filter","test","text","show","css","tableHtml","trHtml","_templateActions","owner","user","attributes","username","number_of_steps","published","slug","ImportWorkflowView","options","_mainTemplate","url","myexperiment_target_url"],"mappings":"AACAA,QAAU,eAAiB,SAAUC,GAGjC,QAASC,GAAgBC,GACrB,GAAIC,GAAcD,EAAKE,IAA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KAAM,sBAAuBe,EAASE,GAAI,yBAI7G,qDACmBlB,OAAOC,KAAM,kDAAmDe,EAASwB,MAAO,SAAUxB,EAAS8B,KAAM,+BACzG9C,OAAOC,KAAM,mBAAoBe,EAASE,GAAI,8BAC9ClB,OAAOC,KAAM,oBAAqBe,EAASE,GAAI,oDAC1BF,EAASE,GAAI,WAAYlB,OAAOC,KAAM,uCAAwCe,EAASE,GAAI,0BAMlJZ,gBAAiB,WACb,MAAO,wIASXyC,EAAqBxD,SAASD,KAAKE,QAEnCC,WAAY,WACRC,KAAKC,WAAY,UACjBD,KAAKE,UAITA,OAAQ,WACJ,GAAIjB,GAAOe,IACXI,GAAEC,QAASC,OAAOC,KAAO,kCAAmC,SAAU+C,GAClErE,EAAKE,IAAIuB,QAAQC,OAAQ1B,EAAKsE,cAAetE,EAAMqE,OAK3DC,cAAe,SAAUtE,EAAMqE,GAC3B,MAAO,oKAGuEhD,OAAOC,KAAO,gMAGb+C,EAAQE,IAAK,2vBAwBvDF,EAAQG,wBAA0B,sNAa/E,QACI7D,KAAQA,EACRyD,mBAAqBA"}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
webpackJsonp([4],{0:function(e,t,i){(function(e){var t=i(1),s=t,a=i(30).GalaxyApp,l=i(93),n=i(31);window.app=function(t,i){window.Galaxy=new a(t,i),Galaxy.debug("admin app"),Galaxy.params=Galaxy.config.params,s(function(){e.extend(t.config,{active_view:"admin"}),Galaxy.page=new n.View(e.extend(t,{Left:l}))})}}).call(t,i(2))},93:function(e,t,i){(function(t,s,a){var l=i(5),n=t.View.extend({initialize:function(e,i){var s=this;this.page=e,this.root=i.root,this.config=i.config,this.settings=i.settings,this.message=i.message,this.status=i.status,this.model=new t.Model({title:l("Administration")}),this.categories=new t.Collection([{title:"Server",items:[{title:"Data types registry",url:"admin/view_datatypes_registry"},{title:"Data tables registry",url:"admin/view_tool_data_tables"},{title:"Display applications",url:"admin/display_applications"},{title:"Manage jobs",url:"admin/jobs"}]},{title:"Tools and Tool Shed",items:[{title:"Search Tool Shed",url:"admin_toolshed/browse_tool_sheds",enabled:s.settings.is_tool_shed_installed},{title:"Search Tool Shed (Beta)",url:"admin_toolshed/browse_toolsheds",enabled:s.settings.is_tool_shed_installed&&s.config.enable_beta_ts_api_install},{title:"Monitor installing repositories",url:"admin_toolshed/monitor_repository_installation?installing_repository_ids="+s.settings.installing_repository_ids,enabled:s.settings.installing_repository_ids},{title:"Manage installed tools",url:"admin_toolshed/browse_repositories",enabled:s.settings.is_repo_installed},{title:"Reset metadata",url:"admin_toolshed/reset_metadata_on_selected_installed_repositories",enabled:s.settings.is_repo_installed},{title:"Download local tool",url:"admin/package_tool"},{title:"Tool lineage",url:"admin/tool_versions"},{title:"Reload a tool's configuration",url:"admin/reload_tool"},{title:"Review tool migration stages",url:"admin/review_tool_migration_stages"},{title:"View Tool Error Logs",url:"admin/tool_errors"},{title:"Manage Display Whitelist",url:"admin/sanitize_whitelist"},{title:"Manage Tool Dependencies",url:"admin/manage_tool_dependencies"}]},{title:"User Management",items:[{title:"Users",url:"admin/users"},{title:"Groups",url:"admin/groups"},{title:"Roles",url:"admin/roles"},{title:"API keys",url:"userskeys/all_users"},{title:"Impersonate a user",url:"admin/impersonate",enabled:s.config.allow_user_impersonation}]},{title:"Data",items:[{title:"Quotas",url:"admin/quotas",enabled:s.config.enable_quotas},{title:"Data libraries",url:"library_admin/browse_libraries"},{title:"Roles",url:"admin/roles"},{title:"Local data",url:"data_manager"}]},{title:"Form Definitions",items:[{title:"Form definitions",url:"forms/browse_form_definitions"}]},{title:"Sample Tracking",items:[{title:"Sequencers and external services",url:"external_service/browse_external_services"},{title:"Request types",url:"request_type/browse_request_types"},{title:"Sequencing requests",url:"requests_admin/browse_requests"},{title:"Find samples",url:"requests_common/find_samples?cntrller=requests_admin"}]}]),this.setElement(this._template())},render:function(){var e=this;this.$el.empty(),this.categories.each(function(t){var i=s(e._templateSection(t.attributes)),n=i.find(".ui-side-section-body");a.each(t.get("items"),function(t){(void 0===t.enabled||t.enabled)&&n.append(s("<div/>").addClass("ui-side-section-body-title").append(s("<a/>").attr({href:e.root+t.url,target:"galaxy_main"}).text(l(t.title))))}),e.$el.append(i)}),this.page.$("#galaxy_main").prop("src",this.root+"admin/center?message="+this.message+"&status="+this.status)},_templateSection:function(e){return["<div>",'<div class="ui-side-section-title">'+l(e.title)+"</div>",'<div class="ui-side-section-body"/>',"</div>"].join("")},_template:function(){return'<div class="ui-side-panel"/>'},toString:function(){return"adminPanel"}});e.exports=n}).call(t,i(3),i(1),i(2))}});
|
||||
webpackJsonp([4],{0:function(e,t,i){(function(e){var t=i(1),s=t,a=i(33).GalaxyApp,l=i(95),n=i(34);window.app=function(t,i){window.Galaxy=new a(t,i),Galaxy.debug("admin app"),Galaxy.params=Galaxy.config.params,s(function(){e.extend(t.config,{active_view:"admin"}),Galaxy.page=new n.View(e.extend(t,{Left:l}))})}}).call(t,i(2))},95:function(e,t,i){(function(t,s,a){var l=i(5),n=t.View.extend({initialize:function(e,i){var s=this;this.page=e,this.root=i.root,this.config=i.config,this.settings=i.settings,this.message=i.message,this.status=i.status,this.model=new t.Model({title:l("Administration")}),this.categories=new t.Collection([{title:"Server",items:[{title:"Data types registry",url:"admin/view_datatypes_registry"},{title:"Data tables registry",url:"admin/view_tool_data_tables"},{title:"Display applications",url:"admin/display_applications"},{title:"Manage jobs",url:"admin/jobs"}]},{title:"Tools and Tool Shed",items:[{title:"Search Tool Shed",url:"admin_toolshed/browse_tool_sheds",enabled:s.settings.is_tool_shed_installed},{title:"Search Tool Shed (Beta)",url:"admin_toolshed/browse_toolsheds",enabled:s.settings.is_tool_shed_installed&&s.config.enable_beta_ts_api_install},{title:"Monitor installing repositories",url:"admin_toolshed/monitor_repository_installation?installing_repository_ids="+s.settings.installing_repository_ids,enabled:s.settings.installing_repository_ids},{title:"Manage installed tools",url:"admin_toolshed/browse_repositories",enabled:s.settings.is_repo_installed},{title:"Reset metadata",url:"admin_toolshed/reset_metadata_on_selected_installed_repositories",enabled:s.settings.is_repo_installed},{title:"Download local tool",url:"admin/package_tool"},{title:"Tool lineage",url:"admin/tool_versions"},{title:"Reload a tool's configuration",url:"admin/reload_tool"},{title:"Review tool migration stages",url:"admin/review_tool_migration_stages"},{title:"View Tool Error Logs",url:"admin/tool_errors"},{title:"Manage Display Whitelist",url:"admin/sanitize_whitelist"},{title:"Manage Tool Dependencies",url:"admin/manage_tool_dependencies"}]},{title:"User Management",items:[{title:"Users",url:"admin/users"},{title:"Groups",url:"admin/groups"},{title:"Roles",url:"admin/roles"},{title:"API keys",url:"userskeys/all_users"},{title:"Impersonate a user",url:"admin/impersonate",enabled:s.config.allow_user_impersonation}]},{title:"Data",items:[{title:"Quotas",url:"admin/quotas",enabled:s.config.enable_quotas},{title:"Data libraries",url:"library_admin/browse_libraries"},{title:"Roles",url:"admin/roles"},{title:"Local data",url:"data_manager"}]},{title:"Form Definitions",items:[{title:"Form definitions",url:"forms/browse_form_definitions"}]},{title:"Sample Tracking",items:[{title:"Sequencers and external services",url:"external_service/browse_external_services"},{title:"Request types",url:"request_type/browse_request_types"},{title:"Sequencing requests",url:"requests_admin/browse_requests"},{title:"Find samples",url:"requests_common/find_samples?cntrller=requests_admin"}]}]),this.setElement(this._template())},render:function(){var e=this;this.$el.empty(),this.categories.each(function(t){var i=s(e._templateSection(t.attributes)),n=i.find(".ui-side-section-body");a.each(t.get("items"),function(t){(void 0===t.enabled||t.enabled)&&n.append(s("<div/>").addClass("ui-side-section-body-title").append(s("<a/>").attr({href:e.root+t.url,target:"galaxy_main"}).text(l(t.title))))}),e.$el.append(i)}),this.page.$("#galaxy_main").prop("src",this.root+"admin/center?message="+this.message+"&status="+this.status)},_templateSection:function(e){return["<div>",'<div class="ui-side-section-title">'+l(e.title)+"</div>",'<div class="ui-side-section-body"/>',"</div>"].join("")},_template:function(){return'<div class="ui-side-panel"/>'},toString:function(){return"adminPanel"}});e.exports=n}).call(t,i(3),i(1),i(2))}});
|
||||
//# sourceMappingURL=admin.bundled.js.map
|
||||
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,2 +1,2 @@
|
||||
webpackJsonp([5],[function(e,i,n){(function(e,i){var a=n(1),t=a,r=n(30).GalaxyApp,o=n(5),l=n(31);window.app=function(n,c){window.Galaxy=new r(n,c),Galaxy.debug("login app");var p=encodeURI(n.redirect);if(!n.show_welcome_with_login){var d=a.param({use_panels:"True",redirect:p});return void(window.location.href=Galaxy.root+"user/login?"+d)}var w=e.View.extend({initialize:function(i){this.page=i,this.model=new e.Model({title:o("Login required")}),this.setElement(this._template())},render:function(){this.page.$("#galaxy_main").prop("src",n.welcome_url)},_template:function(){var e=n.root+"user/login?"+t.param({redirect:p});return'<iframe src="'+e+'" frameborder="0" style="width: 100%; height: 100%;"/>'}});t(function(){Galaxy.page=new l.View(i.extend(n,{Right:w}))})}}).call(i,n(3),n(2))}]);
|
||||
webpackJsonp([5],[function(e,i,n){(function(e,i){var a=n(1),t=a,r=n(33).GalaxyApp,o=n(5),l=n(34);window.app=function(n,c){window.Galaxy=new r(n,c),Galaxy.debug("login app");var p=encodeURI(n.redirect);if(!n.show_welcome_with_login){var d=a.param({use_panels:"True",redirect:p});return void(window.location.href=Galaxy.root+"user/login?"+d)}var w=e.View.extend({initialize:function(i){this.page=i,this.model=new e.Model({title:o("Login required")}),this.setElement(this._template())},render:function(){this.page.$("#galaxy_main").prop("src",n.welcome_url)},_template:function(){var e=n.root+"user/login?"+t.param({redirect:p});return'<iframe src="'+e+'" frameborder="0" style="width: 100%; height: 100%;"/>'}});t(function(){Galaxy.page=new l.View(i.extend(n,{Right:w}))})}}).call(i,n(3),n(2))}]);
|
||||
//# sourceMappingURL=login.bundled.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["webpack:///login.bundled.js","webpack:///./galaxy/scripts/apps/login.js"],"names":["webpackJsonp","module","exports","__webpack_require__","Backbone","_","jQuery","$","GalaxyApp","_l","Page","window","app","options","bootstrapped","Galaxy","debug","redirect","encodeURI","show_welcome_with_login","params","param","use_panels","location","href","root","LoginPage","View","extend","initialize","page","this","model","Model","title","setElement","_template","render","prop","welcome_url","login_url","Right","call"],"mappings":"AAAAA,cAAc,IAER,SAAUC,EAAQC,EAASC,ICFjC,SAAAC,EAAAC,GAAA,GAAIC,GAASH,EAAS,GAClBI,EAAID,EACJE,EAAYL,EAAS,IAAWK,UAChCC,EAAKN,EAAS,GACdO,EAAOP,EAAS,GAEpBQ,QAAOC,IAAM,SAAcC,EAASC,GAChCH,OAAOI,OAAS,GAAIP,GAAWK,EAASC,GACxCC,OAAOC,MAAO,YACd,IAAIC,GAAWC,UAAWL,EAAQI,SAIlC,KAAKJ,EAAQM,wBAAyB,CAClC,GAAIC,GAASd,EAAOe,OAAQC,WAAa,OAAQL,SAAWA,GAE5D,aADAN,OAAOY,SAASC,KAAOT,OAAOU,KAAO,cAAgBL,GAIzD,GAAIM,GAAYtB,EAASuB,KAAKC,QAC1BC,WAAY,SAAUC,GAClBC,KAAKD,KAAOA,EACZC,KAAKC,MAAQ,GAAI5B,GAAS6B,OAAQC,MAAQzB,EAAI,oBAC9CsB,KAAKI,WAAYJ,KAAKK,cAE1BC,OAAQ,WACJN,KAAKD,KAAKvB,EAAG,gBAAiB+B,KAAM,MAAOzB,EAAQ0B,cAEvDH,UAAY,WACR,GAAII,GAAY3B,EAAQY,KAAO,cAAgBlB,EAAEc,OAASJ,SAAWA,GACrE,OAAO,gBAAkBuB,EAAY,2DAI7CjC,GAAE,WACEQ,OAAOe,KAAO,GAAIpB,GAAKiB,KAAMtB,EAAEuB,OAAQf,GACnC4B,MAAQf,UDQUgB,KAAKxC,EAASC,EAAoB,GAAIA,EAAoB","file":"login.bundled.js","sourcesContent":["webpackJsonp([5],[\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(Backbone, _) {var jQuery = __webpack_require__(1),\n\t $ = jQuery,\n\t GalaxyApp = __webpack_require__(30).GalaxyApp,\n\t _l = __webpack_require__(5),\n\t Page = __webpack_require__(31);\n\t\n\twindow.app = function app(options, bootstrapped) {\n\t window.Galaxy = new GalaxyApp(options, bootstrapped);\n\t Galaxy.debug('login app');\n\t var redirect = encodeURI(options.redirect);\n\t\n\t // TODO: remove iframe for user login (at least) and render login page from here\n\t // then remove this redirect\n\t if (!options.show_welcome_with_login) {\n\t var params = jQuery.param({ use_panels: 'True', redirect: redirect });\n\t window.location.href = Galaxy.root + 'user/login?' + params;\n\t return;\n\t }\n\t\n\t var LoginPage = Backbone.View.extend({\n\t initialize: function (page) {\n\t this.page = page;\n\t this.model = new Backbone.Model({ title: _l('Login required') });\n\t this.setElement(this._template());\n\t },\n\t render: function () {\n\t this.page.$('#galaxy_main').prop('src', options.welcome_url);\n\t },\n\t _template: function () {\n\t var login_url = options.root + 'user/login?' + $.param({ redirect: redirect });\n\t return '<iframe src=\"' + login_url + '\" frameborder=\"0\" style=\"width: 100%; height: 100%;\"/>';\n\t }\n\t });\n\t\n\t $(function () {\n\t Galaxy.page = new Page.View(_.extend(options, {\n\t Right: LoginPage\n\t }));\n\t });\n\t};\n\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3), __webpack_require__(2)))\n\n/***/ })\n]);\n\n\n// WEBPACK FOOTER //\n// login.bundled.js","var jQuery = require( 'jquery' ),\n $ = jQuery,\n GalaxyApp = require( 'galaxy' ).GalaxyApp,\n _l = require( 'utils/localization' ),\n Page = require( 'layout/page' );\n\nwindow.app = function app( options, bootstrapped ){\n window.Galaxy = new GalaxyApp( options, bootstrapped );\n Galaxy.debug( 'login app' );\n var redirect = encodeURI( options.redirect );\n\n // TODO: remove iframe for user login (at least) and render login page from here\n // then remove this redirect\n if( !options.show_welcome_with_login ){\n var params = jQuery.param({ use_panels : 'True', redirect : redirect });\n window.location.href = Galaxy.root + 'user/login?' + params;\n return;\n }\n\n var LoginPage = Backbone.View.extend({\n initialize: function( page ) {\n this.page = page;\n this.model = new Backbone.Model({ title : _l( 'Login required' ) } );\n this.setElement( this._template() );\n },\n render: function() {\n this.page.$( '#galaxy_main' ).prop( 'src', options.welcome_url );\n },\n _template : function() {\n var login_url = options.root + 'user/login?' + $.param( { redirect : redirect } );\n return '<iframe src=\"' + login_url + '\" frameborder=\"0\" style=\"width: 100%; height: 100%;\"/>';\n }\n });\n\n $(function(){\n Galaxy.page = new Page.View( _.extend( options, {\n Right : LoginPage\n } ) );\n });\n};\n\n\n\n// WEBPACK FOOTER //\n// ./galaxy/scripts/apps/login.js"],"sourceRoot":""}
|
||||
{"version":3,"sources":["webpack:///login.bundled.js","webpack:///./galaxy/scripts/apps/login.js"],"names":["webpackJsonp","module","exports","__webpack_require__","Backbone","_","jQuery","$","GalaxyApp","_l","Page","window","app","options","bootstrapped","Galaxy","debug","redirect","encodeURI","show_welcome_with_login","params","param","use_panels","location","href","root","LoginPage","View","extend","initialize","page","this","model","Model","title","setElement","_template","render","prop","welcome_url","login_url","Right","call"],"mappings":"AAAAA,cAAc,IAER,SAAUC,EAAQC,EAASC,ICFjC,SAAAC,EAAAC,GAAA,GAAIC,GAASH,EAAS,GAClBI,EAAID,EACJE,EAAYL,EAAS,IAAWK,UAChCC,EAAKN,EAAS,GACdO,EAAOP,EAAS,GAEpBQ,QAAOC,IAAM,SAAcC,EAASC,GAChCH,OAAOI,OAAS,GAAIP,GAAWK,EAASC,GACxCC,OAAOC,MAAO,YACd,IAAIC,GAAWC,UAAWL,EAAQI,SAIlC,KAAKJ,EAAQM,wBAAyB,CAClC,GAAIC,GAASd,EAAOe,OAAQC,WAAa,OAAQL,SAAWA,GAE5D,aADAN,OAAOY,SAASC,KAAOT,OAAOU,KAAO,cAAgBL,GAIzD,GAAIM,GAAYtB,EAASuB,KAAKC,QAC1BC,WAAY,SAAUC,GAClBC,KAAKD,KAAOA,EACZC,KAAKC,MAAQ,GAAI5B,GAAS6B,OAAQC,MAAQzB,EAAI,oBAC9CsB,KAAKI,WAAYJ,KAAKK,cAE1BC,OAAQ,WACJN,KAAKD,KAAKvB,EAAG,gBAAiB+B,KAAM,MAAOzB,EAAQ0B,cAEvDH,UAAY,WACR,GAAII,GAAY3B,EAAQY,KAAO,cAAgBlB,EAAEc,OAASJ,SAAWA,GACrE,OAAO,gBAAkBuB,EAAY,2DAI7CjC,GAAE,WACEQ,OAAOe,KAAO,GAAIpB,GAAKiB,KAAMtB,EAAEuB,OAAQf,GACnC4B,MAAQf,UDQUgB,KAAKxC,EAASC,EAAoB,GAAIA,EAAoB","file":"login.bundled.js","sourcesContent":["webpackJsonp([5],[\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(Backbone, _) {var jQuery = __webpack_require__(1),\n\t $ = jQuery,\n\t GalaxyApp = __webpack_require__(33).GalaxyApp,\n\t _l = __webpack_require__(5),\n\t Page = __webpack_require__(34);\n\t\n\twindow.app = function app(options, bootstrapped) {\n\t window.Galaxy = new GalaxyApp(options, bootstrapped);\n\t Galaxy.debug('login app');\n\t var redirect = encodeURI(options.redirect);\n\t\n\t // TODO: remove iframe for user login (at least) and render login page from here\n\t // then remove this redirect\n\t if (!options.show_welcome_with_login) {\n\t var params = jQuery.param({ use_panels: 'True', redirect: redirect });\n\t window.location.href = Galaxy.root + 'user/login?' + params;\n\t return;\n\t }\n\t\n\t var LoginPage = Backbone.View.extend({\n\t initialize: function (page) {\n\t this.page = page;\n\t this.model = new Backbone.Model({ title: _l('Login required') });\n\t this.setElement(this._template());\n\t },\n\t render: function () {\n\t this.page.$('#galaxy_main').prop('src', options.welcome_url);\n\t },\n\t _template: function () {\n\t var login_url = options.root + 'user/login?' + $.param({ redirect: redirect });\n\t return '<iframe src=\"' + login_url + '\" frameborder=\"0\" style=\"width: 100%; height: 100%;\"/>';\n\t }\n\t });\n\t\n\t $(function () {\n\t Galaxy.page = new Page.View(_.extend(options, {\n\t Right: LoginPage\n\t }));\n\t });\n\t};\n\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3), __webpack_require__(2)))\n\n/***/ })\n]);\n\n\n// WEBPACK FOOTER //\n// login.bundled.js","var jQuery = require( 'jquery' ),\n $ = jQuery,\n GalaxyApp = require( 'galaxy' ).GalaxyApp,\n _l = require( 'utils/localization' ),\n Page = require( 'layout/page' );\n\nwindow.app = function app( options, bootstrapped ){\n window.Galaxy = new GalaxyApp( options, bootstrapped );\n Galaxy.debug( 'login app' );\n var redirect = encodeURI( options.redirect );\n\n // TODO: remove iframe for user login (at least) and render login page from here\n // then remove this redirect\n if( !options.show_welcome_with_login ){\n var params = jQuery.param({ use_panels : 'True', redirect : redirect });\n window.location.href = Galaxy.root + 'user/login?' + params;\n return;\n }\n\n var LoginPage = Backbone.View.extend({\n initialize: function( page ) {\n this.page = page;\n this.model = new Backbone.Model({ title : _l( 'Login required' ) } );\n this.setElement( this._template() );\n },\n render: function() {\n this.page.$( '#galaxy_main' ).prop( 'src', options.welcome_url );\n },\n _template : function() {\n var login_url = options.root + 'user/login?' + $.param( { redirect : redirect } );\n return '<iframe src=\"' + login_url + '\" frameborder=\"0\" style=\"width: 100%; height: 100%;\"/>';\n }\n });\n\n $(function(){\n Galaxy.page = new Page.View( _.extend( options, {\n Right : LoginPage\n } ) );\n });\n};\n\n\n\n// WEBPACK FOOTER //\n// ./galaxy/scripts/apps/login.js"],"sourceRoot":""}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
define(["layout/masthead","layout/panel","mvc/ui/ui-modal"],function(a,b,c){var d=Backbone.View.extend({el:"body",className:"full-content",_panelids:["left","right"],initialize:function(d){var e=this;this.config=_.defaults(d.config||{},{message_box_visible:!1,message_box_content:"",message_box_class:"info",show_inactivity_warning:!1,inactivity_box_content:""}),Galaxy.modal=this.modal=new c.View,Galaxy.display=this.display=function(a){e.center.display(a)},Galaxy.router=this.router=d.Router&&new d.Router(e,d),this.masthead=new a.View(this.config),this.$el.attr("scroll","no"),this.$el.html(this._template()),this.$("#masthead").replaceWith(this.masthead.$el),this.$el.append(this.masthead.frame.$el),this.$el.append(this.modal.$el),this.$messagebox=this.$("#messagebox"),this.$inactivebox=this.$("#inactivebox"),this.center=new b.CenterPanel,this.panels={},_.each(this._panelids,function(a){var c=a.charAt(0).toUpperCase()+a.slice(1),f=d[c];if(f){var g=new f(e,d);e[g.toString()]=g,e.panels[a]=new b.SidePanel({id:a,el:e.$("#"+a),view:g})}}),this.render()},render:function(){return $(".select2-hidden-accessible").remove(),this.masthead.render(),this.renderMessageBox(),this.renderInactivityBox(),this.renderPanels(),this._checkCommunicationServerOnline(),this},renderMessageBox:function(){if(this.config.message_box_visible){var a=this.config.message_box_content||"",b=this.config.message_box_class||"info";this.$el.addClass("has-message-box"),this.$messagebox.attr("class","panel-"+b+"-message").html(a).toggle(!!a).show()}else this.$el.removeClass("has-message-box"),this.$messagebox.hide();return this},renderInactivityBox:function(){if(this.config.show_inactivity_warning){var a=this.config.inactivity_box_content||"",b=$("<a/>").attr("href",Galaxy.root+"user/resend_verification").text("Resend verification");this.$el.addClass("has-inactivity-box"),this.$inactivebox.html(a+" ").append(b).toggle(!!a).show()}else this.$el.removeClass("has-inactivity-box"),this.$inactivebox.hide();return this},renderPanels:function(){var a=this;return this.center.setElement("#center"),this.center.render(),_.each(this._panelids,function(b){var c=a.panels[b];c?c.render():(a.center.$el.css(b,0),a.$("#"+b).hide())}),this},_template:function(){return['<div id="everything">','<div id="background"/>','<div id="masthead"/>','<div id="messagebox"/>','<div id="inactivebox" class="panel-warning-message" />','<div id="left" />','<div id="center" class="inbound" />','<div id="right" />',"</div>",'<div id="dd-helper" />'].join("")},toString:function(){return"PageLayoutView"},_checkCommunicationServerOnline:function(){var a=window.Galaxy.config.communication_server_host,b=window.Galaxy.config.communication_server_port,c=window.Galaxy.user.attributes.preferences,d=$("#show-chat-online");c&&-1!=["1","true"].indexOf(c.communication_server)?$.ajax({url:a+":"+b}).success(function(){null!==window.Galaxy.user.id&&"hidden"===d.css("visibility")&&d.css("visibility","visible")}).error(function(){d.css("visibility","hidden")}):d.css("visibility","hidden")}});return{View:d}});
|
||||
define(["layout/masthead","layout/panel","mvc/ui/ui-modal"],function(a,b,c){var d=Backbone.View.extend({el:"body",className:"full-content",_panelids:["left","right"],initialize:function(d){var e=this;this.config=_.defaults(d.config||{},{message_box_visible:!1,message_box_content:"",message_box_class:"info",show_inactivity_warning:!1,inactivity_box_content:""}),Galaxy.modal=this.modal=new c.View,Galaxy.display=this.display=function(a){e.center.display(a)},Galaxy.router=this.router=d.Router&&new d.Router(e,d),this.masthead=new a.View(this.config),this.center=new b.CenterPanel,this.$el.attr("scroll","no"),this.$el.html(this._template()),this.$("#masthead").replaceWith(this.masthead.$el),this.$("#center").append(this.center.$el),this.$el.append(this.masthead.frame.$el),this.$el.append(this.modal.$el),this.$messagebox=this.$("#messagebox"),this.$inactivebox=this.$("#inactivebox"),this.panels={},_.each(this._panelids,function(a){var c=a.charAt(0).toUpperCase()+a.slice(1),f=d[c];if(f){var g=new f(e,d);e[g.toString()]=g,e.panels[a]=new b.SidePanel({id:a,el:e.$("#"+a),view:g})}}),this.render()},render:function(){return $(".select2-hidden-accessible").remove(),this.masthead.render(),this.renderMessageBox(),this.renderInactivityBox(),this.renderPanels(),this._checkCommunicationServerOnline(),this},renderMessageBox:function(){if(this.config.message_box_visible){var a=this.config.message_box_content||"",b=this.config.message_box_class||"info";this.$el.addClass("has-message-box"),this.$messagebox.attr("class","panel-"+b+"-message").html(a).toggle(!!a).show()}else this.$el.removeClass("has-message-box"),this.$messagebox.hide();return this},renderInactivityBox:function(){if(this.config.show_inactivity_warning){var a=this.config.inactivity_box_content||"",b=$("<a/>").attr("href",Galaxy.root+"user/resend_verification").text("Resend verification");this.$el.addClass("has-inactivity-box"),this.$inactivebox.html(a+" ").append(b).toggle(!!a).show()}else this.$el.removeClass("has-inactivity-box"),this.$inactivebox.hide();return this},renderPanels:function(){var a=this;return _.each(this._panelids,function(b){var c=a.panels[b];c?c.render():(a.$("#center").css(b,0),a.$("#"+b).hide())}),this},_template:function(){return['<div id="everything">','<div id="background"/>','<div id="masthead"/>','<div id="messagebox"/>','<div id="inactivebox" class="panel-warning-message" />','<div id="left" />','<div id="center" class="inbound" />','<div id="right" />',"</div>",'<div id="dd-helper" />'].join("")},toString:function(){return"PageLayoutView"},_checkCommunicationServerOnline:function(){var a=window.Galaxy.config.communication_server_host,b=window.Galaxy.config.communication_server_port,c=window.Galaxy.user.attributes.preferences,d=$("#show-chat-online");c&&-1!=["1","true"].indexOf(c.communication_server)?$.ajax({url:a+":"+b}).success(function(){null!==window.Galaxy.user.id&&"hidden"===d.css("visibility")&&d.css("visibility","visible")}).error(function(){d.css("visibility","hidden")}):d.css("visibility","hidden")}});return{View:d}});
|
||||
//# sourceMappingURL=../../maps/layout/page.js.map
|
||||
@@ -1,2 +1,2 @@
|
||||
define(["jquery","libs/underscore","libs/backbone"],function(a,b,c){"use strict";var d=160,e=800,f=c.View.extend({initialize:function(a){this.view=a.view,this.hidden=!1,this.saved_size=null,this.hiddenByTool=!1},$center:function(){return this.$el.siblings("#center")},$toggleButton:function(){return this.$(".unified-panel-footer > .panel-collapse")},render:function(){var a=this,c=this.view,d=this.view.model.attributes||{};this.$el.html(this._templatePanel(this.id)),b.each(d.buttons,function(b){a.$(".panel-header-buttons").append(b.$el)}),this.$el.addClass(d.cls),this.$(".panel-header-text").html(b.escape(d.title)),this.$(".unified-panel-body").append(c.$el),c.render()},_templatePanel:function(){return[this._templateHeader(),this._templateBody(),this._templateFooter()].join("")},_templateHeader:function(){return['<div class="unified-panel-header" unselectable="on">','<div class="unified-panel-header-inner">','<div class="panel-header-buttons" style="float: right"/>','<div class="panel-header-text"/>',"</div>","</div>"].join("")},_templateBody:function(){return'<div class="unified-panel-body"/>'},_templateFooter:function(){return['<div class="unified-panel-footer">','<div class="panel-collapse ',b.escape(this.id),'"/>','<div class="drag"/>',"</div>"].join("")},events:{"mousedown .unified-panel-footer > .drag":"_mousedownDragHandler","click .unified-panel-footer > .panel-collapse":"toggle"},_mousedownDragHandler:function(b){function c(a){var b=a.pageX-h;h=a.pageX;var c=f.$el.width(),i=g?c+b:c-b;i=Math.min(e,Math.max(d,i)),f.resize(i)}var f=this,g="left"===this.id,h=b.pageX;a("#dd-helper").show().on("mousemove",c).one("mouseup",function(){a(this).hide().off("mousemove",c)})},resize:function(a){return this.$el.css("width",a),this.$center().css(this.id,a),this},show:function(){if(this.hidden){var a=this,b={},c=this.id;return b[c]=0,a.$el.css(c,-this.saved_size).show().animate(b,"fast",function(){a.resize(a.saved_size)}),a.hidden=!1,a.$toggleButton().removeClass("hidden"),this}},hide:function(){if(!this.hidden){var a={},b=this.id;return this.saved_size=this.$el.width(),a[b]=-this.saved_size,this.$el.animate(a,"fast"),this.$center().css(b,0),this.hidden=!0,this.$toggleButton().addClass("hidden"),this}},toggle:function(){return this.hidden?this.show():this.hide(),this.hiddenByTool=!1,this},handle_minwidth_hint:function(a){var b=this.$center().width()-(this.hidden?this.saved_size:0);return a>b?this.hidden||(this.toggle(),this.hiddenByTool=!0):this.hiddenByTool&&(this.toggle(),this.hiddenByTool=!1),self},force_panel:function(a){return"show"==a?this.show():"hide"==a?this.hide():self},toString:function(){return"SidePanel("+this.id+")"}}),g=f.extend({id:"left"}),h=f.extend({id:"right"}),i=c.View.extend({initialize:function(){this.prev=null},render:function(){this.$el.html(this.template()),this.$("#galaxy_main").on("load",b.bind(this._iframeChangeHandler,this))},_iframeChangeHandler:function(b){var c=b.currentTarget,d=c.contentWindow&&c.contentWindow.location;d&&d.host&&(a(c).show(),this.prev&&this.prev.remove(),this.$("#center-panel").hide(),Galaxy.trigger("galaxy_main:load",{fullpath:d.pathname+d.search+d.hash,pathname:d.pathname,search:d.search,hash:d.hash}))},display:function(a){var b=this.$("#galaxy_main")[0].contentWindow||{},c=b.onbeforeunload&&b.onbeforeunload();!c||confirm(c)?(b.onbeforeunload=void 0,this.prev&&this.prev.remove(),this.prev=a,this.$("#galaxy_main").attr("src","about:blank").hide(),this.$("#center-panel").scrollTop(0).append(a.$el).show(),Galaxy.trigger("center-panel:load",a)):a&&a.remove()},template:function(){return['<div style="position: absolute; width: 100%; height: 100%">','<iframe name="galaxy_main" id="galaxy_main" frameborder="0" ','style="position: absolute; width: 100%; height: 100%;"/>','<div id="center-panel" ','style="display: none; position: absolute; width: 100%; height: 100%; padding: 10px; overflow: auto;"/>',"</div>"].join("")},toString:function(){return"CenterPanel"}});return{SidePanel:f,LeftPanel:g,RightPanel:h,CenterPanel:i}});
|
||||
define(["jquery","libs/underscore","libs/backbone"],function(a,b,c){"use strict";var d=160,e=800,f=c.View.extend({initialize:function(a){this.view=a.view,this.hidden=!1,this.saved_size=null,this.hiddenByTool=!1},$center:function(){return this.$el.siblings("#center")},$toggleButton:function(){return this.$(".unified-panel-footer > .panel-collapse")},render:function(){var a=this,c=this.view,d=this.view.model.attributes||{};this.$el.html(this._templatePanel(this.id)),b.each(d.buttons,function(b){a.$(".panel-header-buttons").append(b.$el)}),this.$el.addClass(d.cls),this.$(".panel-header-text").html(b.escape(d.title)),this.$(".unified-panel-body").append(c.$el),c.render()},_templatePanel:function(){return[this._templateHeader(),this._templateBody(),this._templateFooter()].join("")},_templateHeader:function(){return['<div class="unified-panel-header" unselectable="on">','<div class="unified-panel-header-inner">','<div class="panel-header-buttons" style="float: right"/>','<div class="panel-header-text"/>',"</div>","</div>"].join("")},_templateBody:function(){return'<div class="unified-panel-body"/>'},_templateFooter:function(){return['<div class="unified-panel-footer">','<div class="panel-collapse ',b.escape(this.id),'"/>','<div class="drag"/>',"</div>"].join("")},events:{"mousedown .unified-panel-footer > .drag":"_mousedownDragHandler","click .unified-panel-footer > .panel-collapse":"toggle"},_mousedownDragHandler:function(b){function c(a){var b=a.pageX-h;h=a.pageX;var c=f.$el.width(),i=g?c+b:c-b;i=Math.min(e,Math.max(d,i)),f.resize(i)}var f=this,g="left"===this.id,h=b.pageX;a("#dd-helper").show().on("mousemove",c).one("mouseup",function(){a(this).hide().off("mousemove",c)})},resize:function(a){return this.$el.css("width",a),this.$center().css(this.id,a),this},show:function(){if(this.hidden){var a=this,b={},c=this.id;return b[c]=0,a.$el.css(c,-this.saved_size).show().animate(b,"fast",function(){a.resize(a.saved_size)}),a.hidden=!1,a.$toggleButton().removeClass("hidden"),this}},hide:function(){if(!this.hidden){var a={},b=this.id;return this.saved_size=this.$el.width(),a[b]=-this.saved_size,this.$el.animate(a,"fast"),this.$center().css(b,0),this.hidden=!0,this.$toggleButton().addClass("hidden"),this}},toggle:function(){return this.hidden?this.show():this.hide(),this.hiddenByTool=!1,this},handle_minwidth_hint:function(a){var b=this.$center().width()-(this.hidden?this.saved_size:0);return a>b?this.hidden||(this.toggle(),this.hiddenByTool=!0):this.hiddenByTool&&(this.toggle(),this.hiddenByTool=!1),self},force_panel:function(a){return"show"==a?this.show():"hide"==a?this.hide():self},toString:function(){return"SidePanel("+this.id+")"}}),g=f.extend({id:"left"}),h=f.extend({id:"right"}),i=c.View.extend({initialize:function(){this.setElement(a(this.template())),this.$frame=this.$(".center-frame"),this.$panel=this.$(".center-panel"),this.$frame.on("load",b.bind(this._iframeChangeHandler,this))},_iframeChangeHandler:function(b){var c=b.currentTarget,d=c.contentWindow&&c.contentWindow.location;d&&d.host&&(a(c).show(),this.$panel.empty().hide(),Galaxy.trigger("center-frame:load",{fullpath:d.pathname+d.search+d.hash,pathname:d.pathname,search:d.search,hash:d.hash}))},display:function(a){var b=this.$frame[0].contentWindow||{},c=b.onbeforeunload&&b.onbeforeunload();(!c||confirm(c))&&(b.onbeforeunload=void 0,this.$frame.attr("src","about:blank").hide(),this.$panel.empty().scrollTop(0).append(a.$el).show(),Galaxy.trigger("center-panel:load",a))},template:function(){return'<div class="center-container"><iframe id="galaxy_main" name="galaxy_main" frameborder="0" class="center-frame" /><div class="center-panel" /></div>'},toString:function(){return"CenterPanel"}});return{SidePanel:f,LeftPanel:g,RightPanel:h,CenterPanel:i}});
|
||||
//# sourceMappingURL=../../maps/layout/panel.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
define(["utils/utils","mvc/grid/grid-view","mvc/history/history-model","mvc/history/copy-dialog"],function(a,b,c,d){var e=Backbone.View.extend({initialize:function(){var b=this;this.setElement($("<div/>")),this.model=new Backbone.Model,a.get({url:Galaxy.root+"history/list",success:function(a){a.dict_format=!0,_.each(a.operations,function(a){"Copy"==a.label&&(a.onclick=function(a){b._showCopyDialog(a)})}),b.model.set(a),b.render()}})},render:function(){var a=new b(this.model.attributes);this.$el.empty().append(a.$el)},_showCopyDialog:function(a){var b=new c.History({id:a});b.fetch().fail(function(){alert("History could not be fetched. Please contact an administrator")}).done(function(){d(b,{}).done(function(){window.parent&&window.parent.Galaxy&&window.parent.Galaxy.currHistoryPanel&&window.parent.Galaxy.currHistoryPanel.loadCurrentHistory(),window.location.reload(!0)})})}});return{View:e}});
|
||||
//# sourceMappingURL=../../../maps/mvc/history/history-list.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
define(["mvc/ui/popup-menu","mvc/history/copy-dialog","mvc/base-mvc","utils/localization","mvc/webhooks"],function(a,b,c,d,e){"use strict";function f(a,b,c){return _.clone(g).filter(function(d){return a&&!d.anon?!1:!b&&d.purge?!1:(d.href&&(d.href=c+d.href,d.target="galaxy_main"),d.confirm&&(d.func=function(){confirm(d.confirm)&&(galaxy_main.location=d.href)}),!0)})}var g=[{html:d("History Lists"),header:!0},{html:d("Saved Histories"),href:"history/list"},{html:d("Histories Shared with Me"),href:"history/list_shared"},{html:d("Current History"),header:!0,anon:!0},{html:d("Create New"),func:function(){Galaxy&&Galaxy.currHistoryPanel&&Galaxy.currHistoryPanel.createNewHistory()}},{html:d("Copy History"),func:function(){b(Galaxy.currHistoryPanel.model).done(function(){Galaxy.currHistoryPanel.loadCurrentHistory()})}},{html:d("Share or Publish"),href:"history/sharing"},{html:d("Show Structure"),href:"history/display_structured",anon:!0},{html:d("Extract Workflow"),href:"workflow/build_from_current_history"},{html:d("Delete"),anon:!0,func:function(){Galaxy&&Galaxy.currHistoryPanel&&confirm(d("Really delete the current history?"))&&(galaxy_main.window.location.href="history/delete?id="+Galaxy.currHistoryPanel.model.id)}},{html:d("Delete Permanently"),purge:!0,anon:!0,func:function(){Galaxy&&Galaxy.currHistoryPanel&&confirm(d("Really delete the current history permanently? This cannot be undone."))&&(galaxy_main.window.location.href="history/delete?purge=True&id="+Galaxy.currHistoryPanel.model.id)}},{html:d("Dataset Actions"),header:!0,anon:!0},{html:d("Copy Datasets"),href:"dataset/copy_datasets"},{html:d("Dataset Security"),href:"root/history_set_default_permissions"},{html:d("Resume Paused Jobs"),href:"history/resume_paused_jobs?current=True",anon:!0},{html:d("Collapse Expanded Datasets"),func:function(){Galaxy&&Galaxy.currHistoryPanel&&Galaxy.currHistoryPanel.collapseAll()}},{html:d("Unhide Hidden Datasets"),anon:!0,func:function(){Galaxy&&Galaxy.currHistoryPanel&&confirm(d("Really unhide all hidden datasets?"))&&$.post(Galaxy.root+"history/adjust_hidden",{user_action:"unhide"},function(){Galaxy.currHistoryPanel.loadCurrentHistory()})}},{html:d("Delete Hidden Datasets"),anon:!0,func:function(){Galaxy&&Galaxy.currHistoryPanel&&confirm(d("Really delete all hidden datasets?"))&&$.post(Galaxy.root+"history/adjust_hidden",{user_action:"delete"},function(){Galaxy.currHistoryPanel.loadCurrentHistory()})}},{html:d("Purge Deleted Datasets"),confirm:d("Really delete all deleted datasets permanently? This cannot be undone."),href:"history/purge_deleted_datasets",purge:!0,anon:!0},{html:d("Downloads"),header:!0},{html:d("Export Tool Citations"),href:"history/citations",anon:!0},{html:d("Export History to File"),href:"history/export_archive?preview=True",anon:!0},{html:d("Other Actions"),header:!0},{html:d("Import from File"),href:"history/import_archive"}];e.add({url:"api/webhooks/history-menu/all",async:!1,callback:function(a){var b=[];$.each(a.models,function(a,c){var e=c.toJSON();e.activate&&b.push({html:d(e.config.title),anon:!0})}),b.length>0&&(b.unshift({html:d("Webhooks"),header:!0}),$.merge(g,b))}});var h=function(b,c){c=c||{};var d=void 0===c.anonymous?!0:c.anonymous,e=c.purgeAllowed||!1,g=f(d,e,Galaxy.root);return new a(b,g)};return h});
|
||||
define(["mvc/ui/popup-menu","mvc/history/copy-dialog","mvc/base-mvc","utils/localization","mvc/webhooks"],function(a,b,c,d,e){"use strict";function f(a,b,c){return _.clone(g).filter(function(d){return a&&!d.anon?!1:!b&&d.purge?!1:(d.href&&(d.href=c+d.href,d.target=d.target||"galaxy_main"),d.confirm&&(d.func=function(){confirm(d.confirm)&&(galaxy_main.location=d.href)}),!0)})}var g=[{html:d("History Lists"),header:!0},{html:d("Saved Histories"),href:"histories/list",target:"_top"},{html:d("Histories Shared with Me"),href:"history/list_shared"},{html:d("Current History"),header:!0,anon:!0},{html:d("Create New"),func:function(){Galaxy&&Galaxy.currHistoryPanel&&Galaxy.currHistoryPanel.createNewHistory()}},{html:d("Copy History"),func:function(){b(Galaxy.currHistoryPanel.model).done(function(){Galaxy.currHistoryPanel.loadCurrentHistory()})}},{html:d("Share or Publish"),href:"history/sharing"},{html:d("Show Structure"),href:"history/display_structured",anon:!0},{html:d("Extract Workflow"),href:"workflow/build_from_current_history"},{html:d("Delete"),anon:!0,func:function(){Galaxy&&Galaxy.currHistoryPanel&&confirm(d("Really delete the current history?"))&&(galaxy_main.window.location.href="history/delete?id="+Galaxy.currHistoryPanel.model.id)}},{html:d("Delete Permanently"),purge:!0,anon:!0,func:function(){Galaxy&&Galaxy.currHistoryPanel&&confirm(d("Really delete the current history permanently? This cannot be undone."))&&(galaxy_main.window.location.href="history/delete?purge=True&id="+Galaxy.currHistoryPanel.model.id)}},{html:d("Dataset Actions"),header:!0,anon:!0},{html:d("Copy Datasets"),href:"dataset/copy_datasets"},{html:d("Dataset Security"),href:"root/history_set_default_permissions"},{html:d("Resume Paused Jobs"),href:"history/resume_paused_jobs?current=True",anon:!0},{html:d("Collapse Expanded Datasets"),func:function(){Galaxy&&Galaxy.currHistoryPanel&&Galaxy.currHistoryPanel.collapseAll()}},{html:d("Unhide Hidden Datasets"),anon:!0,func:function(){Galaxy&&Galaxy.currHistoryPanel&&confirm(d("Really unhide all hidden datasets?"))&&$.post(Galaxy.root+"history/adjust_hidden",{user_action:"unhide"},function(){Galaxy.currHistoryPanel.loadCurrentHistory()})}},{html:d("Delete Hidden Datasets"),anon:!0,func:function(){Galaxy&&Galaxy.currHistoryPanel&&confirm(d("Really delete all hidden datasets?"))&&$.post(Galaxy.root+"history/adjust_hidden",{user_action:"delete"},function(){Galaxy.currHistoryPanel.loadCurrentHistory()})}},{html:d("Purge Deleted Datasets"),confirm:d("Really delete all deleted datasets permanently? This cannot be undone."),href:"history/purge_deleted_datasets",purge:!0,anon:!0},{html:d("Downloads"),header:!0},{html:d("Export Tool Citations"),href:"history/citations",anon:!0},{html:d("Export History to File"),href:"history/export_archive?preview=True",anon:!0},{html:d("Other Actions"),header:!0},{html:d("Import from File"),href:"history/import_archive"}];e.add({url:"api/webhooks/history-menu/all",async:!1,callback:function(a){var b=[];$.each(a.models,function(a,c){var e=c.toJSON();e.activate&&b.push({html:d(e.config.title),anon:!0})}),b.length>0&&(b.unshift({html:d("Webhooks"),header:!0}),$.merge(g,b))}});var h=function(b,c){c=c||{};var d=void 0===c.anonymous?!0:c.anonymous,e=c.purgeAllowed||!1,g=f(d,e,Galaxy.root);return new a(b,g)};return h});
|
||||
//# sourceMappingURL=../../../maps/mvc/history/options-menu.js.map
|
||||
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,2 +1,2 @@
|
||||
define([],function(){var a=Backbone.View.extend({initialize:function(){this.setElement("<div/>"),this.render()},render:function(){var a=this;$.getJSON(Galaxy.root+"api/workflows/menu/",function(b){var c=b.workflows,d=b.ids_in_menu,e=null;a.$el.empty().append(a._templateConfigWorkflowHeader()),e=a.$el.find(".configure-workflows"),e.append(a._templateActionButtons()),c.length>0?(e.append(a._templateConfigureWorkflow(a,c,d)),a.save_workflow_menu(a),a.make_checked(a,d),a.register_check_uncheck_all(a)):e.append(a._templateNoWorkflow())})},register_check_uncheck_all:function(a){var b=a.$el.find(".check-all-wf"),c=a.$el.find(".uncheck-all-wf");b.click(function(){a.check_uncheck_all(a,!0)}),c.click(function(){a.check_uncheck_all(a,!1)})},check_uncheck_all:function(a,b){$.each(a.$el.find(".wf-config-item"),function(){var a=$(this)[0];a.checked=b})},make_checked:function(a,b){$.each(a.$el.find(".wf-config-item"),function(){var a=$(this)[0];_.each(b,function(b){parseInt(a.value)===b&&(a.checked=!0)})})},save_workflow_menu:function(a){var b=a.$el.find(".wf-save-menu");b.click(function(){var b=[];$.each(a.$el.find(".wf-config-item"),function(){var a=$(this)[0];(a.checked||"true"===a.checked)&&b.push(parseInt(a.value))}),$.ajax({type:"PUT",url:Galaxy.root+"api/workflows/menu/",data:JSON.stringify({workflow_ids:b}),contentType:"application/json"}).done(function(a){window.location=Galaxy.root+"workflow?status="+a.status+"&message="+a.message})})},_templateActionButtons:function(){return'<ul class="manage-table-actions"><li><a class="fa fa-check-square-o wf-action check-all-wf" title="Select all workflows" href="#"></a></li><li><a class="fa fa-square-o wf-action uncheck-all-wf" title="Unselect all workflows" href="#"></a></li></ul>'},_templateConfigureWorkflow:function(a,b,c){var d="",e="";return d+='<table class="table colored"><thead><tr class="header"><th class="wf-td">Name</th><th class="wf-td">Owner</th><th class="wf-td"># of Steps</th><th class="wf-td">Show in menu</th></tr></thead>',_.each(b,function(b){e=e+'<tr><td class="wf-td">'+_.escape(b.name)+"</td><td>"+(b.owner===Galaxy.user.attributes.username?"You":b.owner)+'</td><td class="wf-td">'+b.number_of_steps+'</td><td class="wf-td">'+a._templateInputCheckbox(a,b,c)+"</td></tr>"}),d=d+'<tbody class="workflow-config-menu">'+e+"</tbody></table>",d=d+'<a class="action-button wf-save-menu wf-action fa fa-floppy-o" href="#" title="Save"><span>Save</span></a><a class="action-button wf-back wf-action fa fa-arrow-left" href="'+Galaxy.root+'workflow" title="Back to workflow"><span>Back to workflow</span></a>'},_templateNoWorkflow:function(){return'<div class="wf-nodata"> You do not have any accessible workflows. </div>'},_templateInputCheckbox:function(a,b){return'<input type="checkbox" class="wf-config-item" name="workflow_ids" value="'+b.id+'" />'},_templateConfigWorkflowHeader:function(){return'<div class="page-container"><div class="configure-workflows wf"><h2>Configure workflow menu</h2></div></div>'}});return{View:a}});
|
||||
define([],function(){var a=Backbone.View.extend({initialize:function(){this.setElement("<div/>"),this.render()},render:function(){var a=this;$.getJSON(Galaxy.root+"api/workflows/menu/",function(b){var c=b.workflows,d=b.ids_in_menu,e=null;a.$el.empty().append(a._templateConfigWorkflowHeader()),e=a.$el.find(".configure-workflows"),e.append(a._templateActionButtons()),c.length>0?(e.append(a._templateConfigureWorkflow(a,c,d)),a.save_workflow_menu(a),a.make_checked(a,d),a.register_check_uncheck_all(a)):e.append(a._templateNoWorkflow())})},register_check_uncheck_all:function(a){var b=a.$el.find(".check-all-wf"),c=a.$el.find(".uncheck-all-wf");b.click(function(){a.check_uncheck_all(a,!0)}),c.click(function(){a.check_uncheck_all(a,!1)})},check_uncheck_all:function(a,b){$.each(a.$el.find(".wf-config-item"),function(){var a=$(this)[0];a.checked=b})},make_checked:function(a,b){$.each(a.$el.find(".wf-config-item"),function(){var a=$(this)[0];_.each(b,function(b){parseInt(a.value)===b&&(a.checked=!0)})})},save_workflow_menu:function(a){var b=a.$el.find(".wf-save-menu");b.click(function(){var b=[];$.each(a.$el.find(".wf-config-item"),function(){var a=$(this)[0];(a.checked||"true"===a.checked)&&b.push(parseInt(a.value))}),$.ajax({type:"PUT",url:Galaxy.root+"api/workflows/menu/",data:JSON.stringify({workflow_ids:b}),contentType:"application/json"}).done(function(){window.location=Galaxy.root+"user"})})},_templateActionButtons:function(){return'<ul class="manage-table-actions"><li><a class="fa fa-check-square-o wf-action check-all-wf" title="Select all workflows" href="#"></a></li><li><a class="fa fa-square-o wf-action uncheck-all-wf" title="Unselect all workflows" href="#"></a></li></ul>'},_templateConfigureWorkflow:function(a,b,c){var d="",e="";return d+='<table class="table colored"><thead><tr class="header"><th class="wf-td">Name</th><th class="wf-td">Owner</th><th class="wf-td"># of Steps</th><th class="wf-td">Show in menu</th></tr></thead>',_.each(b,function(b){e=e+'<tr><td class="wf-td">'+_.escape(b.name)+"</td><td>"+(b.owner===Galaxy.user.attributes.username?"You":b.owner)+'</td><td class="wf-td">'+b.number_of_steps+'</td><td class="wf-td">'+a._templateInputCheckbox(a,b,c)+"</td></tr>"}),d=d+'<tbody class="workflow-config-menu">'+e+"</tbody></table>",d=d+'<a class="action-button wf-save-menu wf-action fa fa-floppy-o" href="#" title="Save"><span>Save</span></a><a class="action-button wf-back wf-action fa fa-arrow-left" href="'+Galaxy.root+'user" title="Back to User Preferences"><span>Back to User Preferences</span></a>'},_templateNoWorkflow:function(){return'<div class="wf-nodata"> You do not have any accessible workflows. </div>'},_templateInputCheckbox:function(a,b){return'<input type="checkbox" class="wf-config-item" name="workflow_ids" value="'+b.id+'" />'},_templateConfigWorkflowHeader:function(){return'<div class="page-container"><div class="configure-workflows wf"><h2>Configure workflow menu</h2></div></div>'}});return{View:a}});
|
||||
//# sourceMappingURL=../../../maps/mvc/workflow/workflow-configure-menu.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
define([],function(){function a(a){return'<iframe src="'+a+'" frameborder="0" style="width: 100%; height: 100%;"/>'}function b(a,c){for(var d in a){var e=a[d];if(_.isObject(e)){var f=c(e);f&&(a[d]=f),b(e,c)}}}function c(a){var b,c,d,e;return c=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim,b=a.replace(c,'<a href="$1" target="_blank">$1</a>'),d=/(^|[^\/])(www\.[\S]+(\b|$))/gim,b=b.replace(d,'$1<a href="http://$2" target="_blank">$2</a>'),e=/(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim,b=b.replace(e,'<a href="mailto:$1">$1</a>')}function d(a){return JSON.parse(JSON.stringify(a)||null)}function e(a){return/^[\],:{}\s]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))}function f(a){return $("<div/>").text(a).html()}function g(a){if(a instanceof Array||(a=[a]),0===a.length)return!0;for(var b in a)if(["__null__","__undefined__",null,void 0].indexOf(a[b])>-1)return!0;return!1}function h(a){if($.isArray(a)){var a=a.toString().replace(/,/g,", "),b=a.lastIndexOf(", ");return-1!=b&&(a=a.substr(0,b)+" or "+a.substr(b+2)),a}return""}function i(a){top.__utils__get__=top.__utils__get__||{};var b=JSON.stringify(a);a.cache&&top.__utils__get__[b]?(a.success&&a.success(top.__utils__get__[b]),window.console.debug("utils.js::get() - Fetching from cache ["+a.url+"].")):j({url:a.url,data:a.data,success:function(c){top.__utils__get__[b]=c,a.success&&a.success(c)},error:function(b,c){a.error&&a.error(b,c)}})}function j(a){var b={contentType:"application/json",type:a.type||"GET",data:a.data||{},url:a.url};"GET"==b.type||"DELETE"==b.type?($.isEmptyObject(b.data)||(b.url+=-1==b.url.indexOf("?")?"?":"&",b.url+=$.param(b.data,!0)),b.data=null):(b.dataType="json",b.url=b.url,b.data=JSON.stringify(b.data)),$.ajax(b).done(function(b){if("string"==typeof b)try{b=b.replace("Infinity,",'"Infinity",'),b=jQuery.parseJSON(b)}catch(c){console.debug(c)}a.success&&a.success(b)}).fail(function(b){var c=null;try{c=jQuery.parseJSON(b.responseText)}catch(d){c=b.responseText}a.error&&a.error(c,b.status)}).always(function(){a.complete&&a.complete()})}function k(a,b){var c=$('<div class="'+a+'"></div>');c.appendTo(":eq(0)");var d=c.css(b);return c.remove(),d}function l(a){$('link[href^="'+a+'"]').length||$('<link href="'+Galaxy.root+a+'" rel="stylesheet">').appendTo("head")}function m(a,b){return a?_.defaults(a,b):b}function n(a,b){for(var c=1,d=0;b>d;d++)c*=10;return Math.round(a*c)/c}function o(a,b,c){c=void 0!==c?c:1;var d="";if(a>=v)a/=v,d="TB";else if(a>=u)a/=u,d="GB";else if(a>=t)a/=t,d="MB";else if(a>=s)a/=s,d="KB";else{if(!(a>0))return b?"0 b":"<strong>-</strong>";d="b"}var e="b"==d?a:n(a,c);return b?e+" "+d:"<strong>"+e+"</strong> "+d}function p(){return top.__utils__uid__=top.__utils__uid__||0,"uid-"+top.__utils__uid__++}function q(){var a=new Date,b=(a.getHours()<10?"0":"")+a.getHours(),c=(a.getMinutes()<10?"0":"")+a.getMinutes();return datetime=a.getDate()+"/"+(a.getMonth()+1)+"/"+a.getFullYear()+", "+b+":"+c}function r(a){a.script&&""!==a.script&&$("<script/>",{type:"text/javascript"}).text(a.script).appendTo("head"),a.styles&&""!==a.styles&&$("<style/>",{type:"text/css"}).text(a.styles).appendTo("head")}var s=1024,t=s*s,u=t*s,v=u*s;return{cssLoadFile:l,cssGetAttribute:k,get:i,merge:m,iframe:a,bytesToString:o,uid:p,time:q,request:j,sanitize:f,textify:h,isEmpty:g,deepeach:b,isJSON:e,clone:d,linkify:c,appendScriptStyle:r}});
|
||||
define([],function(){function a(a){return'<iframe src="'+a+'" frameborder="0" style="width: 100%; height: 100%;"/>'}function b(a,c){for(var d in a){var e=a[d];if(_.isObject(e)){var f=c(e);f&&(a[d]=f),b(e,c)}}}function c(a){var b,c,d,e;return c=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim,b=a.replace(c,'<a href="$1" target="_blank">$1</a>'),d=/(^|[^\/])(www\.[\S]+(\b|$))/gim,b=b.replace(d,'$1<a href="http://$2" target="_blank">$2</a>'),e=/(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim,b=b.replace(e,'<a href="mailto:$1">$1</a>')}function d(a){return JSON.parse(JSON.stringify(a)||null)}function e(a){return/^[\],:{}\s]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))}function f(a){return $("<div/>").text(a).html()}function g(a){if(a instanceof Array||(a=[a]),0===a.length)return!0;for(var b in a)if(["__null__","__undefined__",null,void 0].indexOf(a[b])>-1)return!0;return!1}function h(a){if($.isArray(a)){var a=a.toString().replace(/,/g,", "),b=a.lastIndexOf(", ");return-1!=b&&(a=a.substr(0,b)+" or "+a.substr(b+2)),a}return""}function i(a){top.__utils__get__=top.__utils__get__||{};var b=JSON.stringify(a);a.cache&&top.__utils__get__[b]?(a.success&&a.success(top.__utils__get__[b]),window.console.debug("utils.js::get() - Fetching from cache ["+a.url+"].")):j({url:a.url,data:a.data,success:function(c){top.__utils__get__[b]=c,a.success&&a.success(c)},error:function(b,c){a.error&&a.error(b,c)}})}function j(a){var b={contentType:"application/json",type:a.type||"GET",data:a.data||{},url:a.url};"GET"==b.type||"DELETE"==b.type?($.isEmptyObject(b.data)||(b.url+=-1==b.url.indexOf("?")?"?":"&",b.url+=$.param(b.data,!0)),b.data=null):(b.dataType="json",b.url=b.url,b.data=JSON.stringify(b.data)),$.ajax(b).done(function(b){if("string"==typeof b)try{b=b.replace("Infinity,",'"Infinity",'),b=jQuery.parseJSON(b)}catch(c){console.debug(c)}a.success&&a.success(b)}).fail(function(b){var c=null;try{c=jQuery.parseJSON(b.responseText)}catch(d){c=b.responseText}a.error&&a.error(c,b.status)}).always(function(){a.complete&&a.complete()})}function k(a,b){var c=$('<div class="'+a+'"></div>');c.appendTo(":eq(0)");var d=c.css(b);return c.remove(),d}function l(a){$('link[href^="'+a+'"]').length||$('<link href="'+Galaxy.root+a+'" rel="stylesheet">').appendTo("head")}function m(a,b){return a?_.defaults(a,b):b}function n(a,b){for(var c=1,d=0;b>d;d++)c*=10;return Math.round(a*c)/c}function o(a,b,c){c=void 0!==c?c:1;var d="";if(a>=w)a/=w,d="TB";else if(a>=v)a/=v,d="GB";else if(a>=u)a/=u,d="MB";else if(a>=t)a/=t,d="KB";else{if(!(a>0))return b?"0 b":"<strong>-</strong>";d="b"}var e="b"==d?a:n(a,c);return b?e+" "+d:"<strong>"+e+"</strong> "+d}function p(){return top.__utils__uid__=top.__utils__uid__||0,"uid-"+top.__utils__uid__++}function q(){var a=new Date,b=(a.getHours()<10?"0":"")+a.getHours(),c=(a.getMinutes()<10?"0":"")+a.getMinutes();return datetime=a.getDate()+"/"+(a.getMonth()+1)+"/"+a.getFullYear()+", "+b+":"+c}function r(a){a.script&&""!==a.script&&$("<script/>",{type:"text/javascript"}).text(a.script).appendTo("head"),a.styles&&""!==a.styles&&$("<style/>",{type:"text/css"}).text(a.styles).appendTo("head")}function s(a){return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(a).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}var t=1024,u=t*t,v=u*t,w=v*t;return{cssLoadFile:l,cssGetAttribute:k,get:i,merge:m,iframe:a,bytesToString:o,uid:p,time:q,request:j,sanitize:f,textify:h,isEmpty:g,deepeach:b,isJSON:e,clone:d,linkify:c,appendScriptStyle:r,getQueryString:s}});
|
||||
//# sourceMappingURL=../../maps/utils/utils.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,40 +0,0 @@
|
||||
<%inherit file="../grid_base.mako"/>
|
||||
|
||||
<%namespace file="grid_js.mako" import="copy_dialog_hack" />
|
||||
<%def name="load( embedded=False, insert=None )">
|
||||
<!-- saved history grid.mako -->
|
||||
${parent.load( embedded=embedded, insert=insert )}
|
||||
|
||||
## define the module required below
|
||||
${copy_dialog_hack()}
|
||||
<script type="text/javascript">
|
||||
require([ 'copy-dialog-hack' ], function( copyDialogHack ){
|
||||
function findHistoryId( menuButton ){
|
||||
var $link = $( menuButton ).children( '.menubutton-label' );
|
||||
// TODO: ohdearlord. stahp.
|
||||
return ( $link.attr( 'href' ).match( /id=(\w+)/ ) || [] )[1];
|
||||
}
|
||||
|
||||
// wait for page ready and set it all up, do it again when the grid refreshes
|
||||
$(function(){
|
||||
if( !gridView ){
|
||||
console.warn( 'no grid' );
|
||||
return;
|
||||
}
|
||||
|
||||
function replaceCopyFunction(){
|
||||
gridView.$( '.popup.menubutton' ).each( function( i ){
|
||||
copyDialogHack.call( this, i, findHistoryId );
|
||||
});
|
||||
}
|
||||
replaceCopyFunction();
|
||||
|
||||
var originalInitGrid = gridView.init_grid;
|
||||
gridView.init_grid = function __patched_init_grid( json ){
|
||||
originalInitGrid.call( gridView, json );
|
||||
replaceCopyFunction();
|
||||
};
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</%def>
|
||||
@@ -1,65 +0,0 @@
|
||||
<%def name="copy_dialog_hack()">
|
||||
## TODO: remove!!!!! when grids are iterated over again
|
||||
<script type="text/javascript">
|
||||
// define a module that has:
|
||||
// an hack for which to override the url based history copy function in the popupmenus
|
||||
// and replace it with a dialog that uses the API instead
|
||||
define( 'copy-dialog-hack', [
|
||||
'mvc/history/history-model',
|
||||
'mvc/history/copy-dialog'
|
||||
], function( mHistory, historyCopyDialog ){
|
||||
|
||||
// callbacks
|
||||
function tellTheUserItFailed(){
|
||||
// history failed to copy, put the relevant techy crap in the console and alert the user
|
||||
console.error( arguments );
|
||||
alert( "${_('History could not be fetched. Please contact an administrator')}" );
|
||||
}
|
||||
function refreshEverything(){
|
||||
// history was copied
|
||||
// if we're in a frame, check for the parent Galaxy and try to refresh the history
|
||||
if( window.parent && window.parent.Galaxy && window.parent.Galaxy.currHistoryPanel ){
|
||||
window.parent.Galaxy.currHistoryPanel.loadCurrentHistory();
|
||||
}
|
||||
// in any case reload the save history panel
|
||||
window.location.reload( true );
|
||||
}
|
||||
|
||||
// get the id from the dom somehow (the two doms (saved/shared) are different...)
|
||||
function findHistoryId( $menuButton ){
|
||||
var title = '${grid.title}';
|
||||
if( title === 'Saved Histories' ){
|
||||
var $link = $menuButton.children( '.menubutton-label' );
|
||||
// TODO: ohdearlord. stahp.
|
||||
return ( $link.attr( 'href' ).match( /id=(\w+)/ ) || [] )[1];
|
||||
}
|
||||
// Histories shared with you
|
||||
var $label = $menuButton.children( 'label' );
|
||||
return $label.attr( 'id' );
|
||||
}
|
||||
|
||||
// for each popupmenu, (this == a popup activator button), remove the link and add a click function
|
||||
// that fetches the history and shows a copy dialog for it
|
||||
// pass in a fn for extracting the id from the dom and an (optional) object with dialog options
|
||||
function copyDialogHack( i, historyIdFindFn, dialogOptions ){
|
||||
dialogOptions = dialogOptions || {};
|
||||
var $this = $( this ),
|
||||
historyId = historyIdFindFn( this ),
|
||||
menuOptions = $this.data( 'popupmenu' ).options,
|
||||
copyOption = menuOptions.filter( function( o ){ return o.html === 'Copy' })[0];
|
||||
|
||||
copyOption.href = 'javascript:void(0)';
|
||||
copyOption.func = function copyOptionClicked( ev ){
|
||||
ev.preventDefault();
|
||||
var history = new mHistory.History({ id : historyId });
|
||||
history.fetch()
|
||||
.fail( tellTheUserItFailed )
|
||||
.done( function(){
|
||||
historyCopyDialog( history, dialogOptions ).done( refreshEverything );
|
||||
});
|
||||
}
|
||||
}
|
||||
return copyDialogHack;
|
||||
});
|
||||
</script>
|
||||
</%def>
|
||||
@@ -1,69 +0,0 @@
|
||||
<%inherit file="/webapps/galaxy/base_panels.mako"/>
|
||||
<%namespace file="/message.mako" import="render_msg" />
|
||||
|
||||
<%def name="stylesheets()">
|
||||
${parent.stylesheets()}
|
||||
${h.css( "workflow" )}
|
||||
</%def>
|
||||
|
||||
<%def name="javascripts()">
|
||||
${parent.javascripts()}
|
||||
</%def>
|
||||
|
||||
<%def name="init()">
|
||||
<%
|
||||
self.has_left_panel=False
|
||||
self.has_right_panel=False
|
||||
self.active_view="workflow"
|
||||
self.message_box_visible=False
|
||||
%>
|
||||
</%def>
|
||||
|
||||
<%def name="title()">Import Galaxy workflow</%def>
|
||||
|
||||
<%def name="center_panel()">
|
||||
%if message:
|
||||
${render_msg( message, status )}
|
||||
%endif
|
||||
<div class="toolForm">
|
||||
<div class="toolFormTitle">Import Galaxy workflow</div>
|
||||
<div class="toolFormBody">
|
||||
<form name="import_workflow" id="import_workflow" action="${h.url_for( controller='workflow', action='import_workflow' )}" enctype="multipart/form-data" method="POST">
|
||||
<div class="form-row">
|
||||
<label>Galaxy workflow URL:</label>
|
||||
<input type="text" name="url" value="${url | h}" size="40">
|
||||
<div class="toolParamHelp" style="clear: both;">
|
||||
If the workflow is accessible via a URL, enter the URL above and click <b>Import</b>.
|
||||
</div>
|
||||
<div style="clear: both"></div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label>Galaxy workflow file:</label>
|
||||
<div class="form-row-input">
|
||||
<input type="file" name="file_data"/>
|
||||
</div>
|
||||
<div class="toolParamHelp" style="clear: both;">
|
||||
If the workflow is in a file on your computer, choose it and then click <b>Import</b>.
|
||||
</div>
|
||||
<div style="clear: both"></div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<input type="submit" class="primary-button" name="import_button" value="Import">
|
||||
</div>
|
||||
</form>
|
||||
<hr/>
|
||||
<div class="form-row">
|
||||
<label>Import a Galaxy workflow from myExperiment:</label>
|
||||
<div class="form-row-input">
|
||||
<a href="${h.url_for( myexperiment_target_url )}">
|
||||
Visit myExperiment
|
||||
</a>
|
||||
</div>
|
||||
<div class="toolParamHelp" style="clear: both;">
|
||||
Click the link above to visit myExperiment and browse for Galaxy workflows.
|
||||
</div>
|
||||
<div style="clear: both"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</%def>
|
||||
@@ -1,10 +0,0 @@
|
||||
<%inherit file="/base.mako"/>
|
||||
${h.js("libs/bibtex", "libs/jquery/jquery-ui")}
|
||||
${h.css('jquery-ui/smoothness/jquery-ui')}
|
||||
<script>
|
||||
require(['mvc/tool/tool-form-composite'], function( ToolForm ) {
|
||||
$(function() {
|
||||
var form = new ToolForm.View(${ h.dumps( workflow_dict ) });
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user