mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Webpack: test index page (Analyze Data) working, original working, history app working
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
|
||||
var App = require( '../mvc/app/app-view' );
|
||||
|
||||
//TODO: this doesn't address multiple apps per page
|
||||
window.app = function app( options, bootstrapped ){
|
||||
$( function() {
|
||||
var app = new App( options.config );
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
var GalaxyApp = require( '../galaxy-app-base' ).GalaxyApp;
|
||||
window.GalaxyApp = GalaxyApp;
|
||||
console.debug( 'galaxy.js, GalaxyApp is now in window' );
|
||||
exports = GalaxyApp;
|
||||
@@ -1,17 +1,11 @@
|
||||
|
||||
var GalaxyApp = require( '../galaxy-app-webpack' ).GalaxyApp,
|
||||
HistoryPanelEdit = require( '../mvc/history/history-panel-edit' ).HistoryPanelEdit,
|
||||
History = require( '../mvc/history/history-model' ).History;
|
||||
|
||||
var GalaxyMasthead = require( '../galaxy.masthead' ).GalaxyMasthead,
|
||||
GalaxyMenu = require( '../galaxy.menu' ).GalaxyMenu;
|
||||
GalaxyMenu = require( '../galaxy.menu' ).GalaxyMenu,
|
||||
History = require( '../mvc/history/history-model' ).History,
|
||||
HistoryPanelEdit = require( '../mvc/history/history-panel-edit' ).HistoryPanelEdit;
|
||||
|
||||
//TODO: this doesn't address multiple apps per page
|
||||
window.app = function app( options, bootstrapped ){
|
||||
if( !window.Galaxy ){
|
||||
window.Galaxy = new GalaxyApp( options, bootstrapped );
|
||||
}
|
||||
|
||||
if( !( Galaxy.masthead && Galaxy.menu ) ){
|
||||
// adapter to galaxy.masthead.mako config
|
||||
var mastheadConfig = _.extend( _.clone( Galaxy.config ), {
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
define([
|
||||
'libs/underscore',
|
||||
'libs/backbone/backbone',
|
||||
'mvc/user/user-model',
|
||||
'utils/metrics-logger',
|
||||
'utils/add-logging',
|
||||
'utils/localization',
|
||||
'bootstrapped-data'
|
||||
], function( userModel, metricsLogger, addLogging, localize, bootstrapped ){
|
||||
'utils/localization'
|
||||
], function( _, Backbone, userModel, metricsLogger, addLogging, localize ){
|
||||
console.debug( 'app-base id', jQuery.id );
|
||||
if( !jQuery.id ){
|
||||
jQuery.id = 'app-base';
|
||||
}
|
||||
// ============================================================================
|
||||
/** Base galaxy client-side application.
|
||||
* Iniitializes:
|
||||
@@ -14,30 +19,24 @@ define([
|
||||
* galaxy.ini available from the configuration API)
|
||||
* user : the current user (as a mvc/user/user-model)
|
||||
*/
|
||||
function GalaxyApp( options ){
|
||||
function GalaxyApp( options, bootstrapped ){
|
||||
console.debug( 'GalaxyApp:', options, bootstrapped );
|
||||
var self = this;
|
||||
return self._init( options || {} );
|
||||
return self._init( options || {}, bootstrapped || {} );
|
||||
}
|
||||
|
||||
// add logging shortcuts for this object
|
||||
addLogging( GalaxyApp, 'GalaxyApp' );
|
||||
|
||||
/** default options */
|
||||
GalaxyApp.prototype.defaultOptions = {
|
||||
/** monkey patch attributes from existing window.Galaxy object? */
|
||||
patchExisting : true,
|
||||
/** root url of this app */
|
||||
// move to self.root?
|
||||
root : '/'
|
||||
};
|
||||
|
||||
/** initalize options and sub-components */
|
||||
GalaxyApp.prototype._init = function init( options ){
|
||||
GalaxyApp.prototype._init = function __init( options, bootstrapped ){
|
||||
var self = this;
|
||||
_.extend( self, Backbone.Events );
|
||||
|
||||
self._processOptions( options );
|
||||
self.debug( 'GalaxyApp.options: ', self.options );
|
||||
// special case for root
|
||||
self.root = options.root || '/';
|
||||
|
||||
self._patchGalaxy( window.Galaxy );
|
||||
|
||||
@@ -47,10 +46,10 @@ GalaxyApp.prototype._init = function init( options ){
|
||||
self._initLocale();
|
||||
self.debug( 'GalaxyApp.localize: ', self.localize );
|
||||
|
||||
self.config = options.config || bootstrapped.config || {};
|
||||
self.config = options.config || {};
|
||||
self.debug( 'GalaxyApp.config: ', self.config );
|
||||
|
||||
self._initUser( options.user || bootstrapped.user || {} );
|
||||
self._initUser( options.user || {} );
|
||||
self.debug( 'GalaxyApp.user: ', self.user );
|
||||
|
||||
self._setUpListeners();
|
||||
@@ -59,6 +58,15 @@ GalaxyApp.prototype._init = function init( options ){
|
||||
return self;
|
||||
};
|
||||
|
||||
/** default options */
|
||||
GalaxyApp.prototype.defaultOptions = {
|
||||
/** monkey patch attributes from existing window.Galaxy object? */
|
||||
patchExisting : true,
|
||||
/** root url of this app */
|
||||
// move to self.root?
|
||||
root : '/'
|
||||
};
|
||||
|
||||
/** add an option from options if the key matches an option in defaultOptions */
|
||||
GalaxyApp.prototype._processOptions = function _processOptions( options ){
|
||||
var self = this,
|
||||
@@ -75,7 +83,7 @@ GalaxyApp.prototype._processOptions = function _processOptions( options ){
|
||||
};
|
||||
|
||||
/** add an option from options if the key matches an option in defaultOptions */
|
||||
GalaxyApp.prototype._patchGalaxy = function _processOptions( patchWith ){
|
||||
GalaxyApp.prototype._patchGalaxy = function _patchGalaxy( patchWith ){
|
||||
var self = this;
|
||||
// in case req or plain script tag order has created a prev. version of the Galaxy obj...
|
||||
if( self.options.patchExisting && patchWith ){
|
||||
@@ -114,6 +122,7 @@ GalaxyApp.prototype._initUser = function _initUser( userJSON ){
|
||||
var self = this;
|
||||
self.debug( '_initUser:', userJSON );
|
||||
self.user = new userModel.User( userJSON );
|
||||
|
||||
//TODO: temp - old alias
|
||||
self.currUser = self.user;
|
||||
return self;
|
||||
|
||||
@@ -67,8 +67,8 @@ $.fn.makeAbsolute = function(rebase) {
|
||||
|
||||
/**
|
||||
* Sets up popupmenu rendering and binds options functions to the appropriate links.
|
||||
* initial_options is a dict with text describing the option pointing to either (a) a
|
||||
* function to perform; or (b) another dict with two required keys, 'url' and 'action' (the
|
||||
* initial_options is a dict with text describing the option pointing to either (a) a
|
||||
* function to perform; or (b) another dict with two required keys, 'url' and 'action' (the
|
||||
* function to perform. (b) is useful for exposing the underlying URL of the option.
|
||||
*/
|
||||
function make_popupmenu(button_element, initial_options) {
|
||||
@@ -77,14 +77,14 @@ function make_popupmenu(button_element, initial_options) {
|
||||
*/
|
||||
var element_menu_exists = (button_element.data("menu_options"));
|
||||
button_element.data("menu_options", initial_options);
|
||||
|
||||
|
||||
// If element already has menu, nothing else to do since HTML and actions are already set.
|
||||
if (element_menu_exists) { return; }
|
||||
|
||||
|
||||
button_element.bind("click.show_popup", function(e) {
|
||||
// Close existing visible menus
|
||||
$(".popmenu-wrapper").remove();
|
||||
|
||||
|
||||
// Need setTimeouts so clicks don't interfere with each other
|
||||
setTimeout( function() {
|
||||
// Dynamically generate the wrapper holding all the selectable options of the menu.
|
||||
@@ -104,7 +104,7 @@ function make_popupmenu(button_element, initial_options) {
|
||||
});
|
||||
var wrapper = $( "<div class='popmenu-wrapper' style='position: absolute;left: 0; top: -1000;'></div>" )
|
||||
.append( menu_element ).appendTo( "body" );
|
||||
|
||||
|
||||
var x = e.pageX - wrapper.width() / 2 ;
|
||||
x = Math.min( x, $(document).scrollLeft() + $(window).width() - $(wrapper).width() - 5 );
|
||||
x = Math.max( x, $(document).scrollLeft() + 5 );
|
||||
@@ -114,7 +114,7 @@ function make_popupmenu(button_element, initial_options) {
|
||||
left: x
|
||||
});
|
||||
}, 10);
|
||||
|
||||
|
||||
setTimeout( function() {
|
||||
// Bind click event to current window and all frames to remove any visible menus
|
||||
// Bind to document object instead of window object for IE compat
|
||||
@@ -131,10 +131,10 @@ function make_popupmenu(button_element, initial_options) {
|
||||
close_popup(frame);
|
||||
}
|
||||
}, 50);
|
||||
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -155,7 +155,7 @@ function make_popup_menus( parent ) {
|
||||
$( parent ).find( "div[popupmenu]" ).each( function() {
|
||||
var options = {};
|
||||
var menu = $(this);
|
||||
|
||||
|
||||
// find each anchor in the menu, convert them into an options map: { a.text : click_function }
|
||||
menu.find( "a" ).each( function() {
|
||||
var link = $(this),
|
||||
@@ -163,11 +163,11 @@ function make_popup_menus( parent ) {
|
||||
confirmtext = link_dom.getAttribute( "confirm" ),
|
||||
href = link_dom.getAttribute( "href" ),
|
||||
target = link_dom.getAttribute( "target" );
|
||||
|
||||
|
||||
// no href - no function (gen. a label)
|
||||
if (!href) {
|
||||
options[ link.text() ] = null;
|
||||
|
||||
|
||||
} else {
|
||||
options[ link.text() ] = {
|
||||
url: href,
|
||||
@@ -175,8 +175,8 @@ function make_popup_menus( parent ) {
|
||||
|
||||
// if theres confirm text, send the dialog
|
||||
if ( !confirmtext || confirm( confirmtext ) ) {
|
||||
// link.click() doesn't use target for some reason,
|
||||
// so manually do it here.
|
||||
// link.click() doesn't use target for some reason,
|
||||
// so manually do it here.
|
||||
if (target) {
|
||||
window.open(href, target);
|
||||
return false;
|
||||
@@ -195,14 +195,14 @@ function make_popup_menus( parent ) {
|
||||
});
|
||||
// locate the element with the id corresponding to the menu's popupmenu attr
|
||||
var box = $( parent ).find( "#" + menu.attr( 'popupmenu' ) );
|
||||
|
||||
|
||||
// For menus with clickable link text, make clicking on the link go through instead
|
||||
// of activating the popup menu
|
||||
box.find("a").bind("click", function(e) {
|
||||
e.stopPropagation(); // Stop bubbling so clicking on the link goes through
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
// attach the click events and menu box building to the box element
|
||||
make_popupmenu(box, options);
|
||||
box.addClass("popup");
|
||||
@@ -227,7 +227,7 @@ function replace_big_select_inputs(min_length, max_length, select_elts) {
|
||||
if (!jQuery.fn.select2) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Set default for min_length and max_length
|
||||
if (min_length === undefined) {
|
||||
min_length = 20;
|
||||
@@ -245,7 +245,7 @@ function replace_big_select_inputs(min_length, max_length, select_elts) {
|
||||
if ( (num_options < min_length) || (num_options > max_length) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (select_elt.hasClass("no-autocomplete")) {
|
||||
return;
|
||||
}
|
||||
@@ -274,7 +274,7 @@ $.fn.make_text_editable = function(config_dict) {
|
||||
use_textarea = ("use_textarea" in config_dict ? config_dict.use_textarea : false),
|
||||
on_finish = ("on_finish" in config_dict ? config_dict.on_finish : null),
|
||||
help_text = ("help_text" in config_dict ? config_dict.help_text : null);
|
||||
|
||||
|
||||
// Add element behavior.
|
||||
var container = $(this);
|
||||
container.addClass("editable-text").click(function(e) {
|
||||
@@ -282,13 +282,13 @@ $.fn.make_text_editable = function(config_dict) {
|
||||
if ($(this).children(":input").length > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
container.removeClass("editable-text");
|
||||
|
||||
|
||||
// Handler for setting element text.
|
||||
var set_text = function(new_text) {
|
||||
container.find(":input").remove();
|
||||
|
||||
|
||||
if (new_text !== "") {
|
||||
container.text(new_text);
|
||||
}
|
||||
@@ -302,11 +302,11 @@ $.fn.make_text_editable = function(config_dict) {
|
||||
on_finish(new_text);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// Create input element(s) for editing.
|
||||
var cur_text = ("cur_text" in config_dict ? config_dict.cur_text : container.text() ),
|
||||
input_elt, button_elt;
|
||||
|
||||
|
||||
if (use_textarea) {
|
||||
input_elt = $("<textarea/>")
|
||||
.attr({ rows: num_rows, cols: num_cols }).text($.trim(cur_text))
|
||||
@@ -339,7 +339,7 @@ $.fn.make_text_editable = function(config_dict) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// Replace text with input object(s) and focus & select.
|
||||
container.text("");
|
||||
container.append(input_elt);
|
||||
@@ -348,16 +348,16 @@ $.fn.make_text_editable = function(config_dict) {
|
||||
}
|
||||
input_elt.focus();
|
||||
input_elt.select();
|
||||
|
||||
|
||||
// Do not propogate to elements below b/c that blurs input and prevents it from being used.
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
|
||||
// Add help text if there some.
|
||||
if (help_text) {
|
||||
container.attr("title", help_text).tooltip();
|
||||
}
|
||||
|
||||
|
||||
return container;
|
||||
};
|
||||
|
||||
@@ -373,7 +373,7 @@ function async_save_text( click_to_edit_elt, text_elt_id, save_url,
|
||||
if (num_rows === undefined) {
|
||||
num_rows = 4;
|
||||
}
|
||||
|
||||
|
||||
// Set up input element.
|
||||
$("#" + click_to_edit_elt).click(function() {
|
||||
// Check if this is already active
|
||||
@@ -383,7 +383,7 @@ function async_save_text( click_to_edit_elt, text_elt_id, save_url,
|
||||
var text_elt = $("#" + text_elt_id),
|
||||
old_text = text_elt.text(),
|
||||
t;
|
||||
|
||||
|
||||
if (use_textarea) {
|
||||
t = $("<textarea></textarea>").attr({ rows: num_rows, cols: num_cols }).text( $.trim(old_text) );
|
||||
} else {
|
||||
@@ -427,7 +427,7 @@ function async_save_text( click_to_edit_elt, text_elt_id, save_url,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
if (on_start) {
|
||||
on_start(t);
|
||||
}
|
||||
@@ -436,7 +436,7 @@ function async_save_text( click_to_edit_elt, text_elt_id, save_url,
|
||||
t.insertAfter(text_elt);
|
||||
t.focus();
|
||||
t.select();
|
||||
|
||||
|
||||
return;
|
||||
});
|
||||
}
|
||||
@@ -458,11 +458,11 @@ function reset_tool_search( initValue ) {
|
||||
if (tool_menu_frame.length === 0) {
|
||||
tool_menu_frame = $(document);
|
||||
}
|
||||
|
||||
|
||||
// Remove classes that indicate searching is active.
|
||||
$(this).removeClass("search_active");
|
||||
tool_menu_frame.find(".toolTitle").removeClass("search_match");
|
||||
|
||||
|
||||
// Reset visibility of tools and labels.
|
||||
tool_menu_frame.find(".toolSectionBody").hide();
|
||||
tool_menu_frame.find(".toolTitle").show();
|
||||
@@ -476,7 +476,7 @@ function reset_tool_search( initValue ) {
|
||||
}
|
||||
});
|
||||
tool_menu_frame.find("#search-no-results").hide();
|
||||
|
||||
|
||||
// Reset search input.
|
||||
tool_menu_frame.find("#search-spinner").hide();
|
||||
if (initValue) {
|
||||
@@ -500,26 +500,26 @@ GalaxyAsync.prototype.set_user_pref = function( pref_name, pref_value ) {
|
||||
// Get URL.
|
||||
var url = this.url_dict[arguments.callee];
|
||||
if (url === undefined) { return false; }
|
||||
$.ajax({
|
||||
$.ajax({
|
||||
url: url,
|
||||
data: { "pref_name" : pref_name, "pref_value" : pref_value },
|
||||
error: function() { return false; },
|
||||
success: function() { return true; }
|
||||
success: function() { return true; }
|
||||
});
|
||||
};
|
||||
|
||||
// Log user action asynchronously.
|
||||
GalaxyAsync.prototype.log_user_action = function( action, context, params ) {
|
||||
if (!this.log_action) { return; }
|
||||
|
||||
|
||||
// Get URL.
|
||||
var url = this.url_dict[arguments.callee];
|
||||
if (url === undefined) { return false; }
|
||||
$.ajax({
|
||||
$.ajax({
|
||||
url: url,
|
||||
data: { "action" : action, "context" : context, "params" : params },
|
||||
error: function() { return false; },
|
||||
success: function() { return true; }
|
||||
success: function() { return true; }
|
||||
});
|
||||
};
|
||||
|
||||
@@ -543,7 +543,7 @@ function init_refresh_on_change () {
|
||||
$(document).trigger("convert_to_values"); // Convert autocomplete text to values
|
||||
select_field.get(0).form.submit();
|
||||
});
|
||||
|
||||
|
||||
// checkboxes refresh on change
|
||||
$(":checkbox[refresh_on_change='true']")
|
||||
.off('click')
|
||||
@@ -562,7 +562,7 @@ function init_refresh_on_change () {
|
||||
$(window).trigger("refresh_on_change");
|
||||
select_field.get(0).form.submit();
|
||||
});
|
||||
|
||||
|
||||
// Links with confirmation
|
||||
$( "a[confirm]" )
|
||||
.off('click')
|
||||
@@ -595,23 +595,23 @@ $(document).ready( function() {
|
||||
|
||||
// Refresh events for form fields.
|
||||
init_refresh_on_change();
|
||||
|
||||
|
||||
// Tooltips
|
||||
if ( $.fn.tooltip ) {
|
||||
// Put tooltips below items in panel header so that they do not overlap masthead.
|
||||
$(".unified-panel-header [title]").tooltip( { placement: 'bottom' } );
|
||||
|
||||
|
||||
// default tooltip initialization, it will follow the data-placement tag for tooltip location
|
||||
// and fallback to 'top' if not present
|
||||
$("[title]").tooltip();
|
||||
}
|
||||
// Make popup menus.
|
||||
make_popup_menus();
|
||||
|
||||
|
||||
// Replace big selects.
|
||||
replace_big_select_inputs(20, 1500);
|
||||
|
||||
// If galaxy_main frame does not exist and link targets galaxy_main,
|
||||
|
||||
// If galaxy_main frame does not exist and link targets galaxy_main,
|
||||
// add use_panels=True and set target to self.
|
||||
$("a").click( function() {
|
||||
var anchor = $(this);
|
||||
|
||||
@@ -3,6 +3,16 @@ var jquery = require( 'jquery' );
|
||||
window.jQuery = window.$ = jquery;
|
||||
require( './jquery/jquery.migrate' );
|
||||
|
||||
// jquery plugins
|
||||
require( './jquery/select2' );
|
||||
require( './jquery/jquery.event.hover' );
|
||||
require( './jquery/jquery.form' );
|
||||
require( './jquery/jquery.rating' );
|
||||
require( './jquery.sparklines' );
|
||||
|
||||
require( './bootstrap' );
|
||||
|
||||
// MVC via backbone
|
||||
var _ = require( './underscore' );
|
||||
window._ = _;
|
||||
var Backbone = require( './backbone/backbone' );
|
||||
@@ -10,9 +20,10 @@ window.Backbone = Backbone;
|
||||
var Handlebars = require( './handlebars.runtime' );
|
||||
window.Handlebars = Handlebars;
|
||||
|
||||
require( './bootstrap' );
|
||||
require( './jquery/select2' );
|
||||
// all pages get these
|
||||
require( '../galaxy.base' );
|
||||
require( '../galaxy.panels' );
|
||||
require( '../galaxy.autocom_tagging' );
|
||||
|
||||
exports.jquery = jquery;
|
||||
exports._ = _;
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
define(['utils/utils', 'mvc/tools', 'mvc/upload/upload-view', 'mvc/ui/ui-misc',
|
||||
'mvc/history/options-menu', 'mvc/history/history-panel-edit-current', 'mvc/tools/tools-form'],
|
||||
function( Utils, Tools, Upload, Ui, optionsMenu, HistoryPanel, ToolsForm ) {
|
||||
define([
|
||||
'utils/utils',
|
||||
'mvc/tools',
|
||||
'mvc/upload/upload-view',
|
||||
'mvc/ui/ui-misc',
|
||||
'mvc/history/options-menu',
|
||||
'mvc/history/history-panel-edit-current',
|
||||
'mvc/tools/tools-form'
|
||||
], function( Utils, Tools, Upload, Ui, optionsMenu, HistoryPanel, ToolsForm ) {
|
||||
|
||||
/* Builds the center panel */
|
||||
var CenterPanel = Backbone.View.extend({
|
||||
|
||||
@@ -1,10 +1,19 @@
|
||||
/**
|
||||
This is the entrance point for the Galaxy UI.
|
||||
*/
|
||||
define(['utils/utils', 'galaxy.masthead', 'galaxy.menu', 'galaxy.frame',
|
||||
'mvc/ui/ui-portlet', 'mvc/ui/ui-misc', 'mvc/ui/ui-modal',
|
||||
'mvc/user/user-quotameter', 'mvc/app/app-analysis'],
|
||||
function( Utils, Masthead, Menu, Frame, Portlet, Ui, Modal, QuotaMeter, Analysis ) {
|
||||
define([
|
||||
'utils/utils',
|
||||
'galaxy.masthead',
|
||||
'galaxy.menu',
|
||||
'galaxy.frame',
|
||||
'mvc/ui/ui-portlet',
|
||||
'mvc/ui/ui-misc',
|
||||
'mvc/ui/ui-modal',
|
||||
'mvc/user/user-quotameter',
|
||||
'mvc/app/app-analysis'
|
||||
], function( Utils, Masthead, Menu, Frame, Portlet, Ui, Modal, QuotaMeter, Analysis ) {
|
||||
console.debug( 'loading app-view' );
|
||||
|
||||
return Backbone.View.extend({
|
||||
initialize: function( options ) {
|
||||
this.options = Utils.merge( options, {} );
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
define([
|
||||
'libs/underscore',
|
||||
'libs/backbone/backbone',
|
||||
'utils/add-logging',
|
||||
'utils/localization'
|
||||
], function( addLogging, _l ){
|
||||
], function( _, Backbone, addLogging, _l ){
|
||||
//==============================================================================
|
||||
/** @class Mixin to add logging capabilities to an object.
|
||||
* Designed to allow switching an objects log output off/on at one central
|
||||
|
||||
@@ -2,8 +2,25 @@
|
||||
* Model, view, and controller objects for Galaxy tools and tool panel.
|
||||
*/
|
||||
|
||||
define( ["libs/underscore", "viz/trackster/util", "mvc/data", "mvc/tools/tools-form" ],
|
||||
function(_, util, data, ToolsForm) {
|
||||
define([
|
||||
"libs/underscore",
|
||||
"viz/trackster/util",
|
||||
"mvc/data",
|
||||
"mvc/tools/tools-form",
|
||||
"templates/compiled/tool_form",
|
||||
"templates/compiled/tool_link",
|
||||
"templates/compiled/panel_section",
|
||||
"templates/compiled/tool_search",
|
||||
], function(_, util, data, ToolsForm, tool_form, tool_link, panel_section, tool_search) {
|
||||
console.debug( tool_form, tool_link, panel_section, tool_search );
|
||||
|
||||
// TODO: certainly not the way to do this
|
||||
var _templates = {
|
||||
tool_form : tool_form? tool_form.Handlebars.templates.tool_form : Handlebars.templates.tool_form,
|
||||
tool_link : tool_link? tool_link.Handlebars.templates.tool_link : Handlebars.templates.tool_link,
|
||||
panel_section : panel_section? panel_section.Handlebars.templates.panel_section : Handlebars.templates.panel_section,
|
||||
tool_search : tool_search? tool_search.Handlebars.templates.tool_search : Handlebars.templates.tool_search
|
||||
};
|
||||
|
||||
/**
|
||||
* Mixin for tracking model visibility.
|
||||
@@ -514,7 +531,7 @@ var ToolLinkView = BaseView.extend({
|
||||
render: function() {
|
||||
// create element
|
||||
var $link = $('<div/>');
|
||||
$link.append(Handlebars.templates.tool_link(this.model.toJSON()));
|
||||
$link.append(_templates.tool_link(this.model.toJSON()));
|
||||
|
||||
// open upload dialog for upload tool
|
||||
if (this.model.id === 'upload1') {
|
||||
@@ -569,7 +586,7 @@ var ToolSectionView = BaseView.extend({
|
||||
|
||||
render: function() {
|
||||
// Build using template.
|
||||
this.$el.append( Handlebars.templates.panel_section(this.model.toJSON()) );
|
||||
this.$el.append( _templates.panel_section(this.model.toJSON()) );
|
||||
|
||||
// Add tools to section.
|
||||
var section_body = this.$el.find(".toolSectionBody");
|
||||
@@ -625,7 +642,7 @@ var ToolSearchView = Backbone.View.extend({
|
||||
},
|
||||
|
||||
render: function() {
|
||||
this.$el.append( Handlebars.templates.tool_search(this.model.toJSON()) );
|
||||
this.$el.append( _templates.tool_search(this.model.toJSON()) );
|
||||
if (!this.model.is_visible()) {
|
||||
this.$el.hide();
|
||||
}
|
||||
@@ -729,7 +746,7 @@ var ToolFormView = Backbone.View.extend({
|
||||
|
||||
render: function() {
|
||||
this.$el.children().remove();
|
||||
this.$el.append( Handlebars.templates.tool_form(this.model.toJSON()) );
|
||||
this.$el.append( _templates.tool_form(this.model.toJSON()) );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
define([
|
||||
'libs/underscore',
|
||||
'libs/backbone/backbone',
|
||||
"mvc/base-mvc",
|
||||
"utils/localization"
|
||||
], function( baseMVC, _l ){
|
||||
], function( _, Backbone, baseMVC, _l ){
|
||||
//==============================================================================
|
||||
/** @class Model for a Galaxy user (including anonymous users).
|
||||
* @name User
|
||||
@@ -17,9 +19,9 @@ var User = Backbone.Model.extend( baseMVC.LoggableMixin ).extend(
|
||||
///** logger used to record this.log messages, commonly set to console */
|
||||
//// comment this out to suppress log output
|
||||
//logger : console,
|
||||
|
||||
|
||||
/** API location for this resource */
|
||||
urlRoot : galaxy_config.root + 'api/users',
|
||||
urlRoot : function(){ return Galaxy.options.root + 'api/users'; },
|
||||
|
||||
/** Model defaults
|
||||
* Note: don't check for anon-users with the username as the default is '(anonymous user)'
|
||||
@@ -119,7 +121,7 @@ User.getCurrentUserFromApi = function( options ){
|
||||
// (stub) collection for users (shouldn't be common unless admin UI)
|
||||
var UserCollection = Backbone.Collection.extend( baseMVC.LoggableMixin ).extend({
|
||||
model : User,
|
||||
urlRoot : galaxy_config.root + 'api/users'
|
||||
urlRoot : function(){ return Galaxy.options.root + 'api/users'; },
|
||||
//logger : console,
|
||||
});
|
||||
|
||||
|
||||
@@ -8,8 +8,12 @@ var webpack = require( 'webpack' ),
|
||||
|
||||
|
||||
module.exports = {
|
||||
devtool : 'source-map',
|
||||
entry : {
|
||||
galaxy : './galaxy/scripts/apps/galaxy.js',
|
||||
// remove when these are no longer needed from any pages
|
||||
libs : './galaxy/scripts/apps/libs.js',
|
||||
analysis : './galaxy/scripts/apps/analysis.js',
|
||||
history : './galaxy/scripts/apps/history-app.js'
|
||||
},
|
||||
output : {
|
||||
@@ -17,20 +21,18 @@ module.exports = {
|
||||
filename : '[name].bundled.js'
|
||||
},
|
||||
resolve : {
|
||||
root : scriptsBase,
|
||||
alias : {
|
||||
//TODO: correct our imports and remove these rules
|
||||
// Backbone looks for these in the same directory
|
||||
jquery : path.join( libsBase, 'jquery/jquery' ),
|
||||
underscore : path.join( libsBase, 'underscore.js' ),
|
||||
// we import these (for now) from the libs dir
|
||||
'libs/underscore' : path.join( libsBase, 'underscore.js' ),
|
||||
'libs/backbone/backbone': path.join( libsBase, 'backbone/backbone.js' ),
|
||||
// requirejs' i18n doesn't play well with webpack
|
||||
// note: strangely, order does matter here - this must come before utils below
|
||||
'utils/localization' : path.join( scriptsBase, 'utils/webpack-localization' ),
|
||||
// aliases/shims for existing AMD requires
|
||||
utils : path.join( scriptsBase, 'utils' ),
|
||||
ui : path.join( scriptsBase, 'ui' ),
|
||||
mvc : path.join( scriptsBase, 'mvc' ),
|
||||
|
||||
'galaxy.masthead' : path.join( scriptsBase, 'galaxy.masthead' )
|
||||
}
|
||||
},
|
||||
plugins : [
|
||||
|
||||
@@ -252,20 +252,22 @@ class JSAppLauncher( BaseUIController ):
|
||||
self.config_serializer = configuration.ConfigSerializer( app )
|
||||
self.admin_config_serializer = configuration.AdminConfigSerializer( app )
|
||||
|
||||
def _js_options( self, trans, **kwargs ):
|
||||
def _get_js_options( self, trans, root=None ):
|
||||
"""
|
||||
Return a dictionary of options to jsonify and pass to the js app.
|
||||
Return a dictionary of session/site configuration/options to jsonify
|
||||
and pass onto the js app.
|
||||
|
||||
Defaults to `config` and the root url. Pass kwargs to update.
|
||||
Defaults to `config`, `user`, and the root url. Pass kwargs to update further.
|
||||
"""
|
||||
standard_options = {
|
||||
'config' : self._bootstrap_config( trans ),
|
||||
'root' : web.url_for( '/' )
|
||||
root = root or web.url_for( '/' )
|
||||
js_options = {
|
||||
'root' : root,
|
||||
'user' : self.user_serializer.serialize( trans.user, self.USER_BOOTSTRAP_KEYS, trans=trans ),
|
||||
'config' : self._get_site_configuration( trans )
|
||||
}
|
||||
standard_options.update( kwargs )
|
||||
return standard_options
|
||||
return js_options
|
||||
|
||||
def _bootstrap_config( self, trans ):
|
||||
def _get_site_configuration( self, trans ):
|
||||
"""
|
||||
Return a dictionary representing Galaxy's current configuration.
|
||||
"""
|
||||
@@ -278,42 +280,24 @@ class JSAppLauncher( BaseUIController ):
|
||||
log.exception( exc )
|
||||
return {}
|
||||
|
||||
def _bootstrap_current_user( self, trans ):
|
||||
"""
|
||||
Return a dictionary representing this transaction's current user.
|
||||
"""
|
||||
return self.user_serializer.serialize( trans.user, self.USER_BOOTSTRAP_KEYS, trans=trans )
|
||||
|
||||
def _bootstrap_data( self, trans, **additional_data ):
|
||||
"""
|
||||
Return a dictionary holding any bootstrapped data the app might need.
|
||||
|
||||
Defaults to `user` and can be updated using `additional_data` kwargs.
|
||||
"""
|
||||
standard_bootstrapped = {
|
||||
'user' : self._bootstrap_current_user( trans )
|
||||
}
|
||||
standard_bootstrapped.update( additional_data )
|
||||
return standard_bootstrapped
|
||||
|
||||
def web_app_template( self, trans, app_name, entry_fn='app', options=None, **additional_bootstrapped ):
|
||||
def template( self, trans, app_name, entry_fn='app', options=None, bootstrapped_data=None ):
|
||||
"""
|
||||
Render and return the single page mako template that starts the app.
|
||||
|
||||
`app_name` (string): the first portion of the webpack bundle to as the app.
|
||||
`entry_fn` (string): the name of the window-scope function that starts the
|
||||
app. Defaults to 'app'.
|
||||
`options` (dict): (optional) update to the options sent to the app.
|
||||
`additional_bootstrapped` (dict): (optional) update containing any more data
|
||||
`bootstrapped_data` (dict): (optional) update containing any more data
|
||||
the app may need.
|
||||
`additional_config` (dict): (optional) update to the config/options sent to the app.
|
||||
"""
|
||||
options = options or {}
|
||||
options = self._js_options( trans, **options )
|
||||
bootstrapped = self._bootstrap_data( trans, **additional_bootstrapped )
|
||||
return trans.fill_template( self.JS_APP_MAKO_FILEPATH,
|
||||
js_app_name=app_name,
|
||||
js_app_entry_fn=self.DEFAULT_ENTRY_FN,
|
||||
options=options, bootstrapped=bootstrapped )
|
||||
return trans.fill_template(
|
||||
self.JS_APP_MAKO_FILEPATH,
|
||||
js_app_name=app_name,
|
||||
js_app_entry_fn=( entry_fn or self.DEFAULT_ENTRY_FN ),
|
||||
options=( options or self._get_js_options( trans ) ),
|
||||
bootstrapped=( bootstrapped_data or {} )
|
||||
)
|
||||
|
||||
|
||||
class Datatype( object ):
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"history-app.js","sources":["../../src/apps/history-app.js"],"names":["GalaxyApp","require","HistoryPanelEdit","History","GalaxyMasthead","GalaxyMenu","window","app","options","bootstrapped","Galaxy","masthead","menu","mastheadConfig","_","extend","clone","config","user","requests","currUser","get","email","valid","isAnonymous","json","toJSON","console","debug","panel","show_deleted","show_hidden","purgeAllowed","allow_user_dataset_purge","model","history","contents","$","render","$el","appendTo","panelLoc"],"mappings":"AACA,GAAIA,WAAYC,QAAS,yBAA0BD,UAC/CE,iBAAmBD,QAAS,qCAAsCC,iBAClEC,QAAUF,QAAS,gCAAiCE,QAEpDC,eAAiBH,QAAS,sBAAuBG,eACjDC,WAAaJ,QAAS,kBAAmBI,UAG7CC,QAAOC,IAAM,SAAcC,EAASC,GAKhC,GAJKH,OAAOI,SACRJ,OAAOI,OAAS,GAAIV,WAAWQ,EAASC,KAGrCC,OAAOC,WAAYD,OAAOE,KAAQ,CAErC,GAAIC,GAAiBC,EAAEC,OAAQD,EAAEE,MAAON,OAAOO,SAC3CC,MACIC,SAAcT,OAAOU,SAASC,IAAK,YACnCC,MAAcZ,OAAOU,SAASC,IAAK,SACnCE,MAAcb,OAAOU,SAASI,cAC9BC,KAAcf,OAAOU,SAASM,WAGtChB,QAAOC,SAAW,GAAIP,gBAAgBS,GACtCH,OAAOE,KAAO,GAAIP,aACdM,SAAcD,OAAOC,SACrBM,OAAcJ,IAElBc,QAAQC,MAAOlB,OAAOC,UACtBgB,QAAQC,MAAOlB,OAAOE,MAc1B,MAXAH,GAAeA,MACfH,OAAOuB,MAAQ,GAAI3B,mBACf4B,aAAkBrB,EAAaqB,aAC/BC,YAAkBtB,EAAaqB,aAC/BE,aAAkBtB,OAAOO,OAAOgB,yBAChCC,MAAkB,GAAI/B,SAASM,EAAa0B,QAAS1B,EAAa2B,YAEtEC,EAAE,WACER,MAAMS,SAASC,IAAIC,UAAYhC,OAAgBiC,UAAY,UAGxDZ"}
|
||||
{"version":3,"file":"history-app.js","sources":["../../src/apps/history-app.js"],"names":["GalaxyMasthead","require","GalaxyMenu","History","HistoryPanelEdit","window","app","options","bootstrapped","Galaxy","masthead","menu","mastheadConfig","_","extend","clone","config","user","requests","currUser","get","email","valid","isAnonymous","json","toJSON","console","debug","panel","show_deleted","show_hidden","purgeAllowed","allow_user_dataset_purge","model","history","contents","$","render","$el","appendTo","panelLoc"],"mappings":"AACA,GAAIA,gBAAiBC,QAAS,sBAAuBD,eACjDE,WAAaD,QAAS,kBAAmBC,WACzCC,QAAUF,QAAS,gCAAiCE,QACpDC,iBAAmBH,QAAS,qCAAsCG,gBAGtEC,QAAOC,IAAM,SAAcC,EAASC,GAChC,IAAOC,OAAOC,WAAYD,OAAOE,KAAQ,CAErC,GAAIC,GAAiBC,EAAEC,OAAQD,EAAEE,MAAON,OAAOO,SAC3CC,MACIC,SAAcT,OAAOU,SAASC,IAAK,YACnCC,MAAcZ,OAAOU,SAASC,IAAK,SACnCE,MAAcb,OAAOU,SAASI,cAC9BC,KAAcf,OAAOU,SAASM,WAGtChB,QAAOC,SAAW,GAAIV,gBAAgBY,GACtCH,OAAOE,KAAO,GAAIT,aACdQ,SAAcD,OAAOC,SACrBM,OAAcJ,IAElBc,QAAQC,MAAOlB,OAAOC,UACtBgB,QAAQC,MAAOlB,OAAOE,MAc1B,MAXAH,GAAeA,MACfH,OAAOuB,MAAQ,GAAIxB,mBACfyB,aAAkBrB,EAAaqB,aAC/BC,YAAkBtB,EAAaqB,aAC/BE,aAAkBtB,OAAOO,OAAOgB,yBAChCC,MAAkB,GAAI9B,SAASK,EAAa0B,QAAS1B,EAAa2B,YAEtEC,EAAE,WACER,MAAMS,SAASC,IAAIC,UAAYhC,OAAgBiC,UAAY,UAGxDZ"}
|
||||
@@ -1,5 +1 @@
|
||||
<<<<<<< HEAD
|
||||
{"version":3,"file":"galaxy-app-base.js","sources":["../src/galaxy-app-base.js"],"names":["define","userModel","metricsLogger","addLogging","localize","bootstrapped","GalaxyApp","options","self","this","_init","prototype","defaultOptions","patchExisting","root","_","extend","Backbone","Events","_processOptions","debug","_patchGalaxy","window","Galaxy","_initLogger","loggerOptions","logger","_initLocale","config","_initUser","user","_setUpListeners","trigger","defaults","k","hasOwnProperty","patchWith","MetricsLogger","_l","userJSON","User","currUser","lastAjax","$","document","bind","ev","xhr","data","JSON","parse","err","url","location","href","slice","_listenToGalaxyMain","selector","galaxy_main","size","get","contentWindow","undefined","handler","_galaxy_main","full","pathname","search","hash","fullpath","on","toString","userEmail"],"mappings":"AAAAA,QACI,sBACA,uBACA,oBACA,qBACA,qBACD,SAAUC,EAAWC,EAAeC,EAAYC,EAAUC,GAU7D,QAASC,GAAWC,GAChB,GAAIC,GAAOC,IACX,OAAOD,GAAKE,MAAOH,OAoKnB,MAhKJJ,GAAYG,EAAW,aAGvBA,EAAUK,UAAUC,gBAEhBC,eAAkB,EAGlBC,KAAkB,KAItBR,EAAUK,UAAUD,MAAQ,SAAeH,GACvC,GAAIC,GAAOC,IAuBX,OAtBAM,GAAEC,OAAQR,EAAMS,SAASC,QAEzBV,EAAKW,gBAAiBZ,GACtBC,EAAKY,MAAO,sBAAuBZ,EAAKD,SAExCC,EAAKa,aAAcC,OAAOC,QAE1Bf,EAAKgB,YAAajB,EAAQkB,mBAC1BjB,EAAKY,MAAO,qBAAsBZ,EAAKkB,QAEvClB,EAAKmB,cACLnB,EAAKY,MAAO,uBAAwBZ,EAAKJ,UAEzCI,EAAKoB,OAASrB,EAAQqB,QAAUvB,EAAauB,WAC7CpB,EAAKY,MAAO,qBAAsBZ,EAAKoB,QAEvCpB,EAAKqB,UAAWtB,EAA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UAAWC,KAAM,WAAY,SAAUC,EAAIC,EAAKxC,GAC/C,GAAIyC,GAAOzC,EAAQyC,IACnB,KACIA,EAAOC,KAAKC,MAAOF,GACrB,MAAOG,IAET3C,EAAKkC,UACDU,IAAUC,SAASC,KAAKC,MAAO,EAAG,IAAOhD,EAAQ6C,IACjDJ,KAAUA,KAIlBxC,EAAKgD,sBACEhD,GAIXF,EAAUK,UAAU6C,oBAAsB,WACtC,GAAIhD,GAAOC,KACPgD,EAAW,qBACXC,EAAcf,EAAGc,EAErB,IADAC,EAAcA,EAAYC,OAAQD,EAAYE,IAAK,GAAIC,cAAgBC,OACtD,CAEb,GAAIC,GAAU,WACV,IACI,GAAIC,GAAerB,EAAGc,GAAWG,IAAK,GAAIC,cACtCI,EAAOD,EAAaX,SAASa,SAAWF,EAAaX,SAASc,OAASH,EAAaX,SAASe,IACjG5D,GAAKwB,QAAS,oBACVqC,SAAUJ,EACVC,SAAUF,EAAaX,SAASa,SAChCC,OAAUH,EAAaX,SAASc,OAChCC,KAAUJ,EAAaX,SAASe,OAGtC,MAAOjB,GACL3C,EAAKY,MAAO,kCAAmC+B,IAGvDR,GAAGc,GAAWa,GAAI,OAAQP,OAG1BvD,GAAKY,MAAO,yBAKpBd,EAAUK,UAAU4D,SAAW,WAC3B,GAAIC,GAAY/D,KAAKqB,KAAK8B,IAAK,UAAa,aAC5C,OAAO,aAAeY,EAAY,MAM9BlE,UAAYA"}
|
||||
=======
|
||||
{"version":3,"file":"galaxy-app-base.js","sources":["../src/galaxy-app-base.js"],"names":["define","userModel","metricsLogger","addLogging","localize","bootstrapped","GalaxyApp","options","self","this","_init","prototype","defaultOptions","patchExisting","root","_","extend","Backbone","Events","_processOptions","debug","_patchGalaxy","window","Galaxy","_initLogger","loggerOptions","logger","_initLocale","config","_initUser","user","trigger","_setUpListeners","defaults","k","hasOwnProperty","patchWith","MetricsLogger","_l","userJSON","User","currUser","lastAjax","$","document","bind","ev","xhr","data","JSON","parse","err","url","location","href","slice","to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7C,KAAK,GAAIF,KAAKE,GACNA,EAAUD,eAAgBD,KAC1B1B,EAAKY,MAAO,iBAAoBc,EAAI,cACpC1B,EAAM0B,GAAME,EAAWF,MAOvC5B,EAAUK,UAAUa,YAAc,SAAsBC,GACpD,GAAIjB,GAAOC,IAGX,OAFAD,GAAKY,MAAO,eAAgBK,GAC5BjB,EAAKkB,OAAS,GAAIxB,GAAcmC,cAAeZ,GACxCjB,GAIXF,EAAUK,UAAUgB,YAAc,SAAsBpB,GACpD,GAAIC,GAAOC,IAKX,OAJAD,GAAKY,MAAO,eAAgBb,GAC5BC,EAAKJ,SAAWA,EAEhBkB,OAAOgB,GAAK9B,EAAKJ,SACVI,GAIXF,EAAUK,UAAUkB,UAAY,SAAoBU,GAChD,GAAI/B,GAAOC,IAKX,OAJAD,GAAKY,MAAO,aAAcmB,GAC1B/B,EAAKsB,KAAO,GAAI7B,GAAUuC,KAAMD,GAEhC/B,EAAKiC,SAAWjC,EAAKsB,KACdtB,GAIXF,EAAUK,UAAUqB,gBAAkB,WAClC,GAAIxB,GAAOC,IAiBX,OAbAD,GAAKkC,YACLC,EAAGC,UAAWC,KAAM,WAAY,SAAUC,EAAIC,EAAKxC,GAC/C,GAAIyC,GAAOzC,EAAQyC,IACnB,KACIA,EAAOC,KAAKC,MAAOF,GACrB,MAAOG,IAET3C,EAAKkC,UACDU,IAAUC,SAASC,KAAKC,MAAO,EAAG,IAAOhD,EAAQ6C,IACjDJ,KAAUA,KAIXxC,GAIXF,EAAUK,UAAU6C,SAAW,WAC3B,GAAIC,GAAYhD,KAAKqB,KAAK4B,IAAK,UAAa,aAC5C,OAAO,aAAeD,EAAY,MAM9BnD,UAAYA"}
|
||||
>>>>>>> upstream/dev
|
||||
{"version":3,"file":"galaxy-app-base.js","sources":["../src/galaxy-app-base.js"],"names":["define","_","Backbone","userModel","metricsLogger","addLogging","localize","GalaxyApp","options","bootstrapped","console","debug","self","this","_init","jQuery","id","prototype","extend","Events","_processOptions","root","_patchGalaxy","window","Galaxy","_initLogger","loggerOptions","logger","_initLocale","config","_initUser","user","_setUpListeners","trigger","defaultOptions","patchExisting","defaults","k","hasOwnProperty","patchWith","MetricsLogger","_l","userJSON","User","currUser","lastAjax","$","document","bind","ev","xhr","data","JSON","parse","err","url","location","href","slice","toString","userEmail","get"],"mappings":"AAAAA,QACI,kBACA,yBACA,sBACA,uBACA,oBACA,sBACD,SAAUC,EAAGC,EAAUC,EAAWC,EAAeC,EAAYC,GAchE,QAASC,GAAWC,EAASC,GACzBC,QAAQC,MAAO,aAAcH,EAASC,EACtC,IAAIG,GAAOC,IACX,OAAOD,GAAKE,MAAON,MAAeC,OAwIlC,MAxJAC,SAAQC,MAAO,cAAeI,OAAOC,IAChCD,OAAOC,KACRD,OAAOC,GAAK,YAkBpBX,EAAYE,EAAW,aAGvBA,EAAUU,UAAUH,MAAQ,SAAiBN,GACzC,GAAII,GAAOC,IAyBX,OAxBAZ,GAAEiB,OAAQN,EAAMV,EAASiB,QAEzBP,EAAKQ,gBAAiBZ,GACtBI,EAAKD,MAAO,sBAAuBC,EAAKJ,SAExCI,EAAKS,KAAOb,EAAQa,MAAQ,IAE5BT,EAAKU,aAAcC,OAAOC,QAE1BZ,EAAKa,YAAajB,EAAQkB,mBAC1Bd,EAAKD,MAAO,qBAAsBC,EAAKe,QAEvCf,EAAKgB,cACLhB,EAAKD,MAAO,uBAAwBC,EAAKN,UAEzCM,EAAKiB,OAASrB,EAAQqB,WACtBjB,EAAKD,MAAO,qBAAsBC,EAAKiB,QAEvCjB,EAAKkB,UAAWtB,EAAQuB,UACxBnB,EAAKD,MAAO,mBAAoBC,EAAKmB,MAErCnB,EAAKoB,kBACLpB,EAAKqB,QAAS,QAASrB,GAEhBA,GAIXL,EAAUU,UAAUiB,gBAEhBC,eAAkB,EAGlBd,KAAkB,KAItBd,EAAUU,UAAUG,gBAAkB,SAA0BZ,GAC5D,GAAII,GAAOC,KACPuB,EAAWxB,EAAKsB,cACpBtB,GAAKD,MAAO,o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UAAU0C,SAAW,WAC3B,GAAIC,GAAY/C,KAAKkB,KAAK8B,IAAK,UAAa,aAC5C,OAAO,aAAeD,EAAY,MAM9BrD,UAAYA"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"common-libs.js","sources":["../../src/libs/common-libs.js"],"names":["jquery","require","window","jQuery","$","_","Backbone","Handlebars","exports"],"mappings":"AACA,GAAIA,QAASC,QAAS,SACtBC,QAAOC,OAASD,OAAOE,EAAIJ,OAC3BC,QAAS,0BAET,IAAII,GAAIJ,QAAS,eACjBC,QAAOG,EAAIA,CACX,IAAIC,UAAWL,QAAS,sBACxBC,QAAOI,SAAWA,QAClB,IAAIC,YAAaN,QAAS,uBAC1BC,QAAOK,WAAaA,WAEpBN,QAAS,eACTA,QAAS,oBACTA,QAAS,kBAETO,QAAQR,OAASA,OACjBQ,QAAQH,EAAIA,EACZG,QAAQF,SAAWA,SACnBE,QAAQD,WAAaA"}
|
||||
{"version":3,"file":"common-libs.js","sources":["../../src/libs/common-libs.js"],"names":["jquery","require","window","jQuery","$","_","Backbone","Handlebars","exports"],"mappings":"AACA,GAAIA,QAASC,QAAS,SACtBC,QAAOC,OAASD,OAAOE,EAAIJ,OAC3BC,QAAS,0BAET,IAAII,GAAIJ,QAAS,eACjBC,QAAOG,EAAIA,CACX,IAAIC,UAAWL,QAAS,sBACxBC,QAAOI,SAAWA,QAClB,IAAIC,YAAaN,QAAS,uBAC1BC,QAAOK,WAAaA,WAEpBN,QAAS,eACTA,QAAS,oBACTA,QAAS,kBACTA,QAAS,oBAETO,QAAQR,OAASA,OACjBQ,QAAQH,EAAIA,EACZG,QAAQF,SAAWA,SACnBE,QAAQD,WAAaA"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"app-analysis.js","sources":["../../../src/mvc/app/app-analysis.js"],"names":["define","Utils","Tools","Upload","Ui","optionsMenu","HistoryPanel","ToolsForm","CenterPanel","Backbone","View","extend","initialize","options","this","merge","setElement","_template","self","$","on","location","contentWindow","host","show","empty","hide","Galaxy","trigger","fullpath","pathname","search","hash","params","tool_id","job_id","id","display","$el","prop","root","workflow_id","m_c","m_a","config","require_login","user","scrollTop","append","LeftPanel","tool_search","ToolSearch","spinner_url","search_url","hidden","tools","ToolCollection","toolbox","tool_panel","ToolPanel","layout","toolbox_in_panel","tool_panel_view","ToolPanelView","model","toolPanel","get","size","render","prepend","_templateTool","title","href","i","stored_workflow_menu_entries","m","stored_workflow","name","encoded_stored_workflow_id","click","parent","handle_minwidth_hint","attr","upload","components","header","buttons","RightPanel","headerButtons","buttonRefresh","ButtonLink","cls","icon","onclick","top","currHistoryPanel","loadCurrentHistory","push","buttonOptions","target","isAnonymous","buttonViewMulti","body","historyOptionsMenu","anonymous","purgeAllowed","allow_user_dataset_purge","CurrentHistoryPanel","el","linkTarget","$scrollContainer","connectToQuotaMeter","quotaMeter","listenToGalaxy","left","center","right"],"mappings":"AAAAA,QAAQ,cAAe,YAAa,yBAA0B,iBACtD,2BAA4B,yCAA0C,wBAC1E,SAAUC,EAAOC,EAAOC,EAAQC,EAAIC,EAAaC,EAAcC,GAG/D,GAAIC,GAAcC,SAASC,KAAKC,QAC5BC,WAAY,SAAUC,GAClBC,KAAKD,QAAUZ,EAAMc,MAAOF,MAC5BC,KAAKE,WAAYF,KAAKG,YACtB,IAAIC,GAAOJ,IACXA,MAAKK,EAAG,gBAAiBC,GAAI,OAAQ,WACjC,GAAIC,GAAWP,KAAKQ,eAAiBR,KAAKQ,cAAcD,QACnDA,IAAYA,EAASE,OACtBJ,EAAGL,MAAOU,OACVN,EAAKC,EAAG,iBAAkBM,QAAQC,OAClCC,OAAOC,QAAS,oBACZC,SAAUR,EAASS,SAAWT,EAASU,OAASV,EAASW,KACzDF,SAAUT,EAASS,SACnBC,OAAUV,EAASU,OACnBC,KAAUX,EAASW,SAI/B,IAAIC,GAASd,EAAER,UAAYgB,OAAOM,OACV,aAAnBA,EAAOC,UAA2BD,EAAOC,SAAWD,EAAOE,SAC5DF,EAAOC,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,KACnDkE,UAAe7E,OAAOmB,KAAKsD,cAC3BK,aAAe9E,OAAOiB,OAAO8D,yBAC7BlE,KAAeb,OAAOa,OAI1Bb,OAAOoE,iBAAmB,GAAIzF,GAAaqG,qBACvCC,GAAkB9F,KAAKwB,IACvBmE,aAAkB9E,OAAOiB,OAAO8D,yBAChCG,WAAkB,cAClBC,iBAAkB,WAAY,MAAOhG,MAAKwB,IAAI0C,YAElDrD,OAAOoE,iBAAiBgB,oBAAqBpF,OAAOqF,YACpDrF,OAAOoE,iBAAiBkB,eAAgBtF,QACxCA,OAAOoE,iBAAiBC,sBAI5B/E,UAAW,WACP,MAAO,4DAIf,QACIiG,KAAUjE,EACVkE,OAAU3G,EACV4G,MAAU7B"}
|
||||
{"version":3,"file":"app-analysis.js","sources":["../../../src/mvc/app/app-analysis.js"],"names":["define","Utils","Tools","Upload","Ui","optionsMenu","HistoryPanel","ToolsForm","CenterPanel","Backbone","View","extend","initialize","options","this","merge","setElement","_template","self","$","on","location","contentWindow","host","show","empty","hide","Galaxy","trigger","fullpath","pathname","search","hash","params","tool_id","job_id","id","display","$el","prop","root","workflow_id","m_c","m_a","config","require_login","user","scrollTop","append","LeftPanel","tool_search","ToolSearch","spinner_url","search_url","hidden","tools","ToolCollection","toolbox","tool_panel","ToolPanel","layout","toolbox_in_panel","tool_panel_view","ToolPanelView","model","toolPanel","get","size","render","prepend","_templateTool","title","href","i","stored_workflow_menu_entries","m","stored_workflow","name","encoded_stored_workflow_id","click","parent","handle_minwidth_hint","attr","upload","components","header","buttons","RightPanel","headerButtons","buttonRefresh","ButtonLink","cls","icon","onclick","top","currHistoryPanel","loadCurrentHistory","push","buttonOptions","target","isAnonymous","buttonViewMulti","body","historyOptionsMenu","anonymous","purgeAllowed","allow_user_dataset_purge","CurrentHistoryPanel","el","linkTarget","$scrollContainer","connectToQuotaMeter","quotaMeter","listenToGalaxy","left","center","right"],"mappings":"AAAAA,QACI,cACA,YACA,yBACA,iBACA,2BACA,yCACA,wBACD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B,IAAU,sBACVC,KAAU,gBACVC,QAAU,WACFC,IAAInE,QAAUmE,IAAInE,OAAOoE,kBACzBD,IAAInE,OAAOoE,iBAAiBC,uBAIxCR,GAAcS,KAAMR,EAGpB,IAAIS,GAAgB,GAAI9F,GAAGsF,YACvBtD,GAAU,yBACVmC,MAAU,kBACVoB,IAAU,sBACVQ,OAAU,cACVP,KAAU,YACVpB,KAAU7C,OAAOa,KAAO,wBAK5B,IAHAgD,EAAcS,KAAMC,IAGfvE,OAAOmB,KAAKsD,cAAe,CAC5B,GAAIC,GAAkB,GAAIjG,GAAGsF,YACzBtD,GAAU,4BACVmC,MAAU,qBACVoB,IAAU,sBACVC,KAAU,gBACVpB,KAAU7C,OAAOa,KAAO,yBAE5BgD,GAAcS,KAAMI,GAIxBvF,KAAKsE,YACDC,QACId,MAAU,UACVoB,IAAU,uBACVL,QAAUE,GAEdc,MACIX,IAAU,kCAKlBhE,OAAO4E,mBAAqBlG,EAAa6F,EAAc5D,KACnDkE,UAAe7E,OAAOmB,KAAKsD,cAC3BK,aAAe9E,OAAOiB,OAAO8D,yBAC7BlE,KAAeb,OAAOa,OAI1Bb,OAAOoE,iBAAmB,GAAIzF,GAAaqG,qBACvCC,GAAkB9F,KAAKwB,IACvBmE,aAAkB9E,OAAOiB,OAAO8D,yBAChCG,WAAkB,cAClBC,iBAAkB,WAAY,MAAOhG,MAAKwB,IAAI0C,YAElDrD,OAAOoE,iBAAiBgB,oBAAqBpF,OAAOqF,YACpDrF,OAAOoE,iBAAiBkB,eAAgBtF,QACxCA,OAAOoE,iBAAiBC,sBAI5B/E,UAAW,WACP,MAAO,4DAIf,QACIiG,KAAUjE,EACVkE,OAAU3G,EACV4G,MAAU7B"}
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"app-view.js","sources":["../../../src/mvc/app/app-view.js"],"names":["define","Utils","Masthead","Menu","Frame","Portlet","Ui","Modal","QuotaMeter","Analysis","Backbone","View","extend","initialize","options","this","merge","setElement","_template","Galaxy","app","params","router","Router","$","append","$el","ensure_dd_helper","$container","parent","attr","addClass","message_box_visible","show","show_inactivity_warning","masthead","GalaxyMasthead","modal","frame","GalaxyFrame","menu","GalaxyMenu","config","quotaMeter","UserQuotaMeter","model","user","el","render","_buildPanels","display","target","remove","panels","Views","panel_ids","i","id","view","components","header","title","cls","buttons","body","$panel","_templatePanel","find","html","Panel","center","panel","drag","toggle","right","message_box_class","message_box_content","inactivity_box_content","root"],"mappings":"AAGAA,QAAQ,cAAe,kBAAmB,cAAe,eACjD,oBAAqB,iBAAkB,kBACvC,2BAA4B,wBAChC,SAAUC,EAAOC,EAAUC,EAAMC,EAAOC,EAASC,EAAIC,EAAOC,EAAYC,GACxE,MAAOC,UAASC,KAAKC,QACjBC,WAAY,SAAUC,GAClBC,KAAKD,QAAUb,EAAMe,MAAOF,MAC5BC,KAAKE,WAAYF,KAAKG,UAAWJ,IAGjCK,OAAOC,IAAML,KAGbI,OAAOE,OAASN,KAAKD,QAAQO,OAG7BF,OAAOG,OAAS,GAAIZ,UAASa,OAG7BC,EAAG,QAASC,OAAQV,KAAKW,KACzBC,kBAGA,IAAIC,GAAaJ,EAAGT,KAAKW,IAAIG,UAAWC,KAAM,SAAU,MAAOC,SAAU,eACpEhB,MAAKD,QAAQkB,sBACdJ,EAAWG,SAAU,mBACrBhB,KAAKS,EAAG,eAAgBS,QAEvBlB,KAAKD,QAAQoB,0BACdN,EAAWG,SAAU,sBACrBhB,KAAKS,EAAG,gBAAiBS,QAIvBd,OAAOgB,WACThB,OAAOgB,SAAW,GAAIjC,GAASkC,eAAgBtB,GAC/CK,OAAOkB,MAAQ,GAAI9B,GAAMI,KACzBQ,OAAOmB,MAAQ,GAAIlC,GAAMmC,YAGzBpB,OAAOqB,KAAO,GAAIrC,GAAKsC,YACnBN,SAAchB,OAAOgB,SACrBO,OAAc5B,IAKlBK,OAAOwB,WAAa,GAAInC,GAAWoC,gBAC/BC,MAAc1B,OAAO2B,KACrBC,GAAc5B,OAAOgB,S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uB,OAAOmC,uBACV,aAAe1D,OAAO2D,KAAO"}
|
||||
{"version":3,"file":"app-view.js","sources":["../../../src/mvc/app/app-view.js"],"names":["define","Utils","Masthead","Menu","Frame","Portlet","Ui","Modal","QuotaMeter","Analysis","console","debug","Backbone","View","extend","initialize","options","this","merge","setElement","_template","Galaxy","app","params","router","Router","$","append","$el","ensure_dd_helper","$container","parent","attr","addClass","message_box_visible","show","show_inactivity_warning","masthead","GalaxyMasthead","modal","frame","GalaxyFrame","menu","GalaxyMenu","config","quotaMeter","UserQuotaMeter","model","user","el","render","_buildPanels","display","target","remove","panels","Views","panel_ids","i","id","view","components","header","title","cls","buttons","body","$panel","_templatePanel","find","html","Panel","center","panel","drag","toggle","right","message_box_class","message_box_content","inactivity_box_content","root"],"mappings":"AAGAA,QACI,cACA,kBACA,cACA,eACA,oBACA,iBACA,kBACA,2BACA,wBACD,SAAUC,EAAOC,EAAUC,EAAMC,EAAOC,EAASC,EAAIC,EAAOC,EAAYC,GAGvE,MAFAC,SAAQC,MAAO,oBAERC,SAASC,KAAKC,QACjBC,WAAY,SAAUC,GAClBC,KAAKD,QAAUf,EAAMiB,MAAOF,MAC5BC,KAAKE,WAAYF,KAAKG,UAAWJ,IAGjCK,OAAOC,IAAML,KAGbI,OAAOE,OAASN,KAAKD,QAAQO,OAG7BF,OAAOG,OAAS,GAAIZ,UAASa,OAG7BC,EAAG,QAASC,OAAQV,KAAKW,KACzBC,kBAGA,IAAIC,GAAaJ,EAAGT,KAAKW,IAAIG,UAAWC,KAAM,SAAU,MAAOC,SAAU,eACpEhB,MAAKD,QAAQkB,sBACdJ,EAAWG,SAAU,mBACrBhB,KAAKS,EAAG,eAAgBS,QAEvBlB,KAAKD,QAAQoB,0BACdN,EAAWG,SAAU,sBACrBhB,KAAKS,EAAG,gBAAiBS,QAIvBd,OAAOgB,WACThB,OAAOgB,SAAW,GAAInC,GAASoC,eAAgBtB,GAC/CK,OAAOkB,MAAQ,GAAIhC,GAAMM,KACzBQ,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IAEd1C,KAAKW,IAAID,OAAQwC,MAM7BC,eAAgB,SAAUT,GACtB,MAAQ,YAAcA,EAAK,mSASqBA,EAAK,sCAOzDvC,UAAW,WACP,MAAQ,wJAE2CC,OAAOuB,OAAOiC,kBAAoB,oCACrExD,OAAOuB,OAAOkC,oBAClB,oFAEIzD,OAAOuB,OAAOmC,uBACV,aAAe1D,OAAO2D,KAAO"}
|
||||
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-model.js","sources":["../../../src/mvc/user/user-model.js"],"names":["define","baseMVC","_l","User","Backbone","Model","extend","LoggableMixin","urlRoot","galaxy_config","root","defaults","id","username","email","total_disk_usage","nice_total_disk_usage","quota_percent","is_admin","initialize","data","this","log","on","model","resp","changes","isAnonymous","get","isAdmin","loadFromApi","idOrCurrent","options","CURRENT_ID_STR","userFn","success","newModel","response","trigger","url","prototype","fetch","call","clearSessionStorage","key","sessionStorage","indexOf","removeItem","toString","userInfo","unshift","push","join","getCurrentUserFromApi","currentUser","Collection"],"mappings":"AAAAA,QACI,eACA,sBACD,SAAUC,EAASC,GAUtB,GAAIC,GAAOC,SAASC,MAAMC,OAAQL,EAAQM,eAAgBD,QAQtDE,QAAUC,cAAcC,KAAO,YAM/BC,UACIC,GAA0B,KAC1BC,SAA0B,IAAMX,EAAI,kBAAqB,IACzDY,MAA0B,GAC1BC,iBAA0B,EAC1BC,sBAA0B,GAC1BC,cAA0B,KAC1BC,UAA0B,GAM9BC,WAAa,SAAUC,GACnBC,KAAKC,IAAK,mBAAoBF,GAE9BC,KAAKE,GAAI,SAAU,SAAUC,EAAOC,GAAQJ,KAAKC,IAAKD,KAAO,eAAgBG,EAAOC,KACpFJ,KAAKE,GAAI,SAAU,SAAUC,EAAOJ,GAAQC,KAAKC,IAAKD,KAAO,gBAAiBG,EAAOJ,EAAKM,YAG9FC,YAAc,WACV,OAAUN,KAAKO,IAAK,UAGxBC,QAAU,WACN,MAASR,MAAKO,IAAK,aAUvBE,YAAc,SAAUC,EAAaC,GACjCD,EAAcA,GAAe5B,EAAK8B,eAElCD,EAAUA,KACV,IAAIR,GAAQH,KACRa,EAASF,EAAQG,OAYrB,OATAH,GAAQG,QAAU,SAAUC,EAAUC,GAClCb,EAAMc,QAAS,SAAUF,EAAUC,GAC/BH,GAAUA,EAAQE,EAAUC,IAIhCN,IAAgB5B,EAAK8B,iBACrBD,EAAQO,IAAMlB,KAAKb,QAAU,IAAML,EAAK8B,gBAErC7B,SAASC,MAAMmC,UAAUC,MAAMC,KAAMrB,KAAMW,IAKtDW,oBAAsB,WAClB,IAAK,GAAIC,KAAOC,gBAGsB,IAA9BD,EAAIE,QAAS,YACbD,eAAeE,WAAYH,GAEZ,kBAARA,GACPC,eAAeE,WAAYH,IAMvCI,SAAW,WACP,GAAIC,IAAa5B,KAAKO,IAAK,YAK3B,OAJIP,MAAKO,IAAK,QACVqB,EAASC,QAAS7B,KAAKO,IAAK,OAC5BqB,EAASE,KAAM9B,KAAKO,IAAK,WAEtB,QAAUqB,EAASG,KAAM,KAAQ,MAKhDjD,GAAK8B,eAAiB,UAGtB9B,EAAKkD,sBAAwB,SAAUrB,GACnC,GAAIsB,GAAc,GAAInD,EAEtB,OADAmD,GAAYxB,YAAa3B,EAAK8B,eAAgBD,GACvCsB,EAIUlD,UAASmD,WAAWjD,OAAQL,EAAQM,eAAgBD,QACrEkB,MAAUrB,EACVK,QAAUC,cAAcC,KAAO,aAMnC,QACIP,KAAOA"}
|
||||
{"version":3,"file":"user-model.js","sources":["../../../src/mvc/user/user-model.js"],"names":["define","_","Backbone","baseMVC","_l","User","Model","extend","LoggableMixin","urlRoot","Galaxy","options","root","defaults","id","username","email","total_disk_usage","nice_total_disk_usage","quota_percent","is_admin","initialize","data","this","log","on","model","resp","changes","isAnonymous","get","isAdmin","loadFromApi","idOrCurrent","CURRENT_ID_STR","userFn","success","newModel","response","trigger","url","prototype","fetch","call","clearSessionStorage","key","sessionStorage","indexOf","remov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JIP,MAAKO,IAAK,QACVoB,EAASC,QAAS5B,KAAKO,IAAK,OAC5BoB,EAASE,KAAM7B,KAAKO,IAAK,WAEtB,QAAUoB,EAASG,KAAM,KAAQ,MAKhDhD,GAAK6B,eAAiB,UAGtB7B,EAAKiD,sBAAwB,SAAU3C,GACnC,GAAI4C,GAAc,GAAIlD,EAEtB,OADAkD,GAAYvB,YAAa3B,EAAK6B,eAAgBvB,GACvC4C,EAIUrD,GAASsD,WAAWjD,OAAQJ,EAAQK,eAAgBD,QACrEmB,MAAUrB,EACVI,QAAU,WAAY,MAAOC,QAAOC,QAAQC,KAAO,cAMvD,QACIP,KAAOA"}
|
||||
@@ -1,2 +1,2 @@
|
||||
var GalaxyApp=require("../galaxy-app-webpack").GalaxyApp,HistoryPanelEdit=require("../mvc/history/history-panel-edit").HistoryPanelEdit,History=require("../mvc/history/history-model").History,GalaxyMasthead=require("../galaxy.masthead").GalaxyMasthead,GalaxyMenu=require("../galaxy.menu").GalaxyMenu;window.app=function(a,b){if(window.Galaxy||(window.Galaxy=new GalaxyApp(a,b)),!Galaxy.masthead||!Galaxy.menu){var c=_.extend(_.clone(Galaxy.config),{user:{requests:Galaxy.currUser.get("requests"),email:Galaxy.currUser.get("email"),valid:Galaxy.currUser.isAnonymous(),json:Galaxy.currUser.toJSON()}});Galaxy.masthead=new GalaxyMasthead(c),Galaxy.menu=new GalaxyMenu({masthead:Galaxy.masthead,config:c}),console.debug(Galaxy.masthead),console.debug(Galaxy.menu)}return b=b||{},window.panel=new HistoryPanelEdit({show_deleted:b.show_deleted,show_hidden:b.show_deleted,purgeAllowed:Galaxy.config.allow_user_dataset_purge,model:new History(b.history,b.contents)}),$(function(){panel.render().$el.appendTo((a||{}).panelLoc||"body")}),panel};
|
||||
var GalaxyMasthead=require("../galaxy.masthead").GalaxyMasthead,GalaxyMenu=require("../galaxy.menu").GalaxyMenu,History=require("../mvc/history/history-model").History,HistoryPanelEdit=require("../mvc/history/history-panel-edit").HistoryPanelEdit;window.app=function(a,b){if(!Galaxy.masthead||!Galaxy.menu){var c=_.extend(_.clone(Galaxy.config),{user:{requests:Galaxy.currUser.get("requests"),email:Galaxy.currUser.get("email"),valid:Galaxy.currUser.isAnonymous(),json:Galaxy.currUser.toJSON()}});Galaxy.masthead=new GalaxyMasthead(c),Galaxy.menu=new GalaxyMenu({masthead:Galaxy.masthead,config:c}),console.debug(Galaxy.masthead),console.debug(Galaxy.menu)}return b=b||{},window.panel=new HistoryPanelEdit({show_deleted:b.show_deleted,show_hidden:b.show_deleted,purgeAllowed:Galaxy.config.allow_user_dataset_purge,model:new History(b.history,b.contents)}),$(function(){panel.render().$el.appendTo((a||{}).panelLoc||"body")}),panel};
|
||||
//# sourceMappingURL=../../maps/apps/history-app.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
webpackJsonp([2],[function(e,t,i){var n=i(15);t=n}]);
|
||||
@@ -1,6 +1,2 @@
|
||||
<<<<<<< HEAD
|
||||
define(["mvc/user/user-model","utils/metrics-logger","utils/add-logging","utils/localization","bootstrapped-data"],function(a,b,c,d,e){function f(a){var b=this;return b._init(a||{})}return c(f,"GalaxyApp"),f.prototype.defaultOptions={patchExisting:!0,root:"/"},f.prototype._init=function(a){var b=this;return _.extend(b,Backbone.Events),b._processOptions(a),b.debug("GalaxyApp.options: ",b.options),b._patchGalaxy(window.Galaxy),b._initLogger(a.loggerOptions||{}),b.debug("GalaxyApp.logger: ",b.logger),b._initLocale(),b.debug("GalaxyApp.localize: ",b.localize),b.config=a.config||e.config||{},b.debug("GalaxyApp.config: ",b.config),b._initUser(a.user||e.user||{}),b.debug("GalaxyApp.user: ",b.user),b._setUpListeners(),b.trigger("ready",b),b},f.prototype._processOptions=function(a){var b=this,c=b.defaultOptions;b.debug("_processOptions: ",a),b.options={};for(var d in c)c.hasOwnProperty(d)&&(b.options[d]=a.hasOwnProperty(d)?a[d]:c[d]);return b},f.prototype._patchGalaxy=function(a){var b=this;if(b.options.patchExisting&&a){b.debug("found existing Galaxy object:",a);for(var c in a)a.hasOwnProperty(c)&&(b.debug(" patching in "+c+" to Galaxy"),b[c]=a[c])}},f.prototype._initLogger=function(a){var c=this;return c.debug("_initLogger:",a),c.logger=new b.MetricsLogger(a),c},f.prototype._initLocale=function(a){var b=this;return b.debug("_initLocale:",a),b.localize=d,window._l=b.localize,b},f.prototype._initUser=function(b){var c=this;return c.debug("_initUser:",b),c.user=new a.User(b),c.currUser=c.user,c},f.prototype._setUpListeners=function(){var a=this;return a.lastAjax={},$(document).bind("ajaxSend",function(b,c,d){var e=d.data;try{e=JSON.parse(e)}catch(f){}a.lastAjax={url:location.href.slice(0,-1)+d.url,data:e}}),a._listenToGalaxyMain(),a},f.prototype._listenToGalaxyMain=function(){var a=this,b="iframe#galaxy_main",c=$(b);if(c=c.size()?c.get(0).contentWindow:void 0){var d=function(){try{var c=$(b).get(0).contentWindow,d=c.location.pathname+c.location.search+c.location.hash;a.trigger("galaxy_main:load",{fullpath:d,pathname:c.location.pathname,search:c.location.search,hash:c.location.hash})}catch(e){a.debug("Error handling main frame load:",e)}};$(b).on("load",d)}else a.debug("No galaxy_main found")},f.prototype.toString=function(){var a=this.user.get("email")||"(anonymous)";return"GalaxyApp("+a+")"},{GalaxyApp:f}});
|
||||
=======
|
||||
define(["mvc/user/user-model","utils/metrics-logger","utils/add-logging","utils/localization","bootstrapped-data"],function(a,b,c,d,e){function f(a){var b=this;return b._init(a||{})}return c(f,"GalaxyApp"),f.prototype.defaultOptions={patchExisting:!0,root:"/"},f.prototype._init=function(a){var b=this;return _.extend(b,Backbone.Events),b._processOptions(a),b.debug("GalaxyApp.options: ",b.options),b._patchGalaxy(window.Galaxy),b._initLogger(a.loggerOptions||{}),b.debug("GalaxyApp.logger: ",b.logger),b._initLocale(),b.debug("GalaxyApp.localize: ",b.localize),b.config=a.config||e.config||{},b.debug("GalaxyApp.config: ",b.config),b._initUser(a.user||e.user||{}),b.debug("GalaxyApp.user: ",b.user),b.trigger("ready",b),b._setUpListeners(),b},f.prototype._processOptions=function(a){var b=this,c=b.defaultOptions;b.debug("_processOptions: ",a),b.options={};for(var d in c)c.hasOwnProperty(d)&&(b.options[d]=a.hasOwnProperty(d)?a[d]:c[d]);return b},f.prototype._patchGalaxy=function(a){var b=this;if(b.options.patchExisting&&a){b.debug("found existing Galaxy object:",a);for(var c in a)a.hasOwnProperty(c)&&(b.debug(" patching in "+c+" to Galaxy"),b[c]=a[c])}},f.prototype._initLogger=function(a){var c=this;return c.debug("_initLogger:",a),c.logger=new b.MetricsLogger(a),c},f.prototype._initLocale=function(a){var b=this;return b.debug("_initLocale:",a),b.localize=d,window._l=b.localize,b},f.prototype._initUser=function(b){var c=this;return c.debug("_initUser:",b),c.user=new a.User(b),c.currUser=c.user,c},f.prototype._setUpListeners=function(){var a=this;return a.lastAjax={},$(document).bind("ajaxSend",function(b,c,d){var e=d.data;try{e=JSON.parse(e)}catch(f){}a.lastAjax={url:location.href.slice(0,-1)+d.url,data:e}}),a},f.prototype.toString=function(){var a=this.user.get("email")||"(anonymous)";return"GalaxyApp("+a+")"},{GalaxyApp:f}});
|
||||
>>>>>>> upstream/dev
|
||||
define(["libs/underscore","libs/backbone/backbone","mvc/user/user-model","utils/metrics-logger","utils/add-logging","utils/localization"],function(a,b,c,d,e,f){function g(a,b){console.debug("GalaxyApp:",a,b);var c=this;return c._init(a||{},b||{})}return console.debug("app-base id",jQuery.id),jQuery.id||(jQuery.id="app-base"),e(g,"GalaxyApp"),g.prototype._init=function(c){var d=this;return a.extend(d,b.Events),d._processOptions(c),d.debug("GalaxyApp.options: ",d.options),d.root=c.root||"/",d._patchGalaxy(window.Galaxy),d._initLogger(c.loggerOptions||{}),d.debug("GalaxyApp.logger: ",d.logger),d._initLocale(),d.debug("GalaxyApp.localize: ",d.localize),d.config=c.config||{},d.debug("GalaxyApp.config: ",d.config),d._initUser(c.user||{}),d.debug("GalaxyApp.user: ",d.user),d._setUpListeners(),d.trigger("ready",d),d},g.prototype.defaultOptions={patchExisting:!0,root:"/"},g.prototype._processOptions=function(a){var b=this,c=b.defaultOptions;b.debug("_processOptions: ",a),b.options={};for(var d in c)c.hasOwnProperty(d)&&(b.options[d]=a.hasOwnProperty(d)?a[d]:c[d]);return b},g.prototype._patchGalaxy=function(a){var b=this;if(b.options.patchExisting&&a){b.debug("found existing Galaxy object:",a);for(var c in a)a.hasOwnProperty(c)&&(b.debug(" patching in "+c+" to Galaxy"),b[c]=a[c])}},g.prototype._initLogger=function(a){var b=this;return b.debug("_initLogger:",a),b.logger=new d.MetricsLogger(a),b},g.prototype._initLocale=function(a){var b=this;return b.debug("_initLocale:",a),b.localize=f,window._l=b.localize,b},g.prototype._initUser=function(a){var b=this;return b.debug("_initUser:",a),b.user=new c.User(a),b.currUser=b.user,b},g.prototype._setUpListeners=function(){var a=this;return a.lastAjax={},$(document).bind("ajaxSend",function(b,c,d){var e=d.data;try{e=JSON.parse(e)}catch(f){}a.lastAjax={url:location.href.slice(0,-1)+d.url,data:e}}),a},g.prototype.toString=function(){var a=this.user.get("email")||"(anonymous)";return"GalaxyApp("+a+")"},{GalaxyApp:g}});
|
||||
//# sourceMappingURL=../maps/galaxy-app-base.js.map
|
||||
@@ -1,2 +1,19 @@
|
||||
var jquery=require("jquery");window.jQuery=window.$=jquery,require("./jquery/jquery.migrate");var _=require("./underscore");window._=_;var Backbone=require("./backbone/backbone");window.Backbone=Backbone;var Handlebars=require("./handlebars.runtime");window.Handlebars=Handlebars,require("./bootstrap"),require("./jquery/select2"),require("../galaxy.base"),exports.jquery=jquery,exports._=_,exports.Backbone=Backbone,exports.Handlebars=Handlebars;
|
||||
//# sourceMappingURL=../../maps/libs/common-libs.js.map
|
||||
var jquery = require("jquery");
|
||||
|
||||
window.jQuery = window.$ = jquery, require("./jquery/jquery.migrate"), require("./jquery/select2"),
|
||||
require("./jquery/jquery.event.hover"), require("./jquery/jquery.form"), require("./jquery/jquery.rating"),
|
||||
require("./jquery.sparklines"), require("./bootstrap");
|
||||
|
||||
var _ = require("./underscore");
|
||||
|
||||
window._ = _;
|
||||
|
||||
var Backbone = require("./backbone/backbone");
|
||||
|
||||
window.Backbone = Backbone;
|
||||
|
||||
var Handlebars = require("./handlebars.runtime");
|
||||
|
||||
window.Handlebars = Handlebars, require("../galaxy.base"), require("../galaxy.panels"),
|
||||
require("../galaxy.autocom_tagging"), exports.jquery = jquery, exports._ = _, exports.Backbone = Backbone,
|
||||
exports.Handlebars = Handlebars;
|
||||
@@ -1,2 +1,2 @@
|
||||
define(["utils/utils","galaxy.masthead","galaxy.menu","galaxy.frame","mvc/ui/ui-portlet","mvc/ui/ui-misc","mvc/ui/ui-modal","mvc/user/user-quotameter","mvc/app/app-analysis"],function(a,b,c,d,e,f,g,h,i){return Backbone.View.extend({initialize:function(e){this.options=a.merge(e,{}),this.setElement(this._template(e)),Galaxy.app=this,Galaxy.params=this.options.params,Galaxy.router=new Backbone.Router,$("body").append(this.$el),ensure_dd_helper();var f=$(this.$el.parent()).attr("scroll","no").addClass("full-content");this.options.message_box_visible&&(f.addClass("has-message-box"),this.$("#messagebox").show()),this.options.show_inactivity_warning&&(f.addClass("has-inactivity-box"),this.$("#inactivebox").show()),Galaxy.masthead||(Galaxy.masthead=new b.GalaxyMasthead(e),Galaxy.modal=new g.View,Galaxy.frame=new d.GalaxyFrame,Galaxy.menu=new c.GalaxyMenu({masthead:Galaxy.masthead,config:e}),Galaxy.quotaMeter=new h.UserQuotaMeter({model:Galaxy.user,el:Galaxy.masthead.$(".quota-meter-container")}).render()),this._buildPanels(i,e)},display:function(a,b){$(".select2-hidden-accessible").remove(),this.panels&&this.panels[b||"center"].display(a)},_buildPanels:function(b,c){this.panels=[];var d=["left","center","right"];for(var e in d){var f=d[e],g=this.panels[f]=new b[f](c);if("center"==f)this.$("#center").append(g.$el);else{var h=a.merge(g.components,{header:{title:"",cls:"",buttons:[]},body:{cls:""}}),i=$(this._templatePanel(f));i.find(".panel-header-text").html(h.header.title),i.find(".unified-panel-header-inner").addClass(h.header.cls);for(var e in h.header.buttons)i.find(".panel-header-buttons").append(h.header.buttons[e].$el);i.find(".unified-panel-body").addClass(h.body.cls).append(g.$el);{new Panel({center:this.$("#center"),panel:i,drag:i.find(".unified-panel-footer > .drag"),toggle:i.find(".unified-panel-footer > .panel-collapse"),right:"right"==f})}this.$el.append(i)}}},_templatePanel:function(a){return'<div id="'+a+'"><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><div class="unified-panel-body"/><div class="unified-panel-footer"><div class="panel-collapse '+a+'"/><div class="drag"/></div></div>'},_template:function(){return'<div id="everything" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"><div id="background"/><div id="messagebox" class="panel-'+Galaxy.config.message_box_class+'-message" style="display: none;">'+Galaxy.config.message_box_content+'</div><div id="inactivebox" class="panel-warning-message" style="display: none;">'+Galaxy.config.inactivity_box_content+' <a href="'+Galaxy.root+'user/resend_verification">Resend verification.</a></div><div id="center" class="inbound"/></div>'}})});
|
||||
define(["utils/utils","galaxy.masthead","galaxy.menu","galaxy.frame","mvc/ui/ui-portlet","mvc/ui/ui-misc","mvc/ui/ui-modal","mvc/user/user-quotameter","mvc/app/app-analysis"],function(a,b,c,d,e,f,g,h,i){return console.debug("loading app-view"),Backbone.View.extend({initialize:function(e){this.options=a.merge(e,{}),this.setElement(this._template(e)),Galaxy.app=this,Galaxy.params=this.options.params,Galaxy.router=new Backbone.Router,$("body").append(this.$el),ensure_dd_helper();var f=$(this.$el.parent()).attr("scroll","no").addClass("full-content");this.options.message_box_visible&&(f.addClass("has-message-box"),this.$("#messagebox").show()),this.options.show_inactivity_warning&&(f.addClass("has-inactivity-box"),this.$("#inactivebox").show()),Galaxy.masthead||(Galaxy.masthead=new b.GalaxyMasthead(e),Galaxy.modal=new g.View,Galaxy.frame=new d.GalaxyFrame,Galaxy.menu=new c.GalaxyMenu({masthead:Galaxy.masthead,config:e}),Galaxy.quotaMeter=new h.UserQuotaMeter({model:Galaxy.user,el:Galaxy.masthead.$(".quota-meter-container")}).render()),this._buildPanels(i,e)},display:function(a,b){$(".select2-hidden-accessible").remove(),this.panels&&this.panels[b||"center"].display(a)},_buildPanels:function(b,c){this.panels=[];var d=["left","center","right"];for(var e in d){var f=d[e],g=this.panels[f]=new b[f](c);if("center"==f)this.$("#center").append(g.$el);else{var h=a.merge(g.components,{header:{title:"",cls:"",buttons:[]},body:{cls:""}}),i=$(this._templatePanel(f));i.find(".panel-header-text").html(h.header.title),i.find(".unified-panel-header-inner").addClass(h.header.cls);for(var e in h.header.buttons)i.find(".panel-header-buttons").append(h.header.buttons[e].$el);i.find(".unified-panel-body").addClass(h.body.cls).append(g.$el);{new Panel({center:this.$("#center"),panel:i,drag:i.find(".unified-panel-footer > .drag"),toggle:i.find(".unified-panel-footer > .panel-collapse"),right:"right"==f})}this.$el.append(i)}}},_templatePanel:function(a){return'<div id="'+a+'"><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><div class="unified-panel-body"/><div class="unified-panel-footer"><div class="panel-collapse '+a+'"/><div class="drag"/></div></div>'},_template:function(){return'<div id="everything" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"><div id="background"/><div id="messagebox" class="panel-'+Galaxy.config.message_box_class+'-message" style="display: none;">'+Galaxy.config.message_box_content+'</div><div id="inactivebox" class="panel-warning-message" style="display: none;">'+Galaxy.config.inactivity_box_content+' <a href="'+Galaxy.root+'user/resend_verification">Resend verification.</a></div><div id="center" class="inbound"/></div>'}})});
|
||||
//# sourceMappingURL=../../../maps/mvc/app/app-view.js.map
|
||||
File diff suppressed because one or more lines are too long
+416
-2
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
define(["mvc/base-mvc","utils/localization"],function(a,b){var c=Backbone.Model.extend(a.LoggableMixin).extend({urlRoot:galaxy_config.root+"api/users",defaults:{id:null,username:"("+b("anonymous user")+")",email:"",total_disk_usage:0,nice_total_disk_usage:"",quota_percent:null,is_admin:!1},initialize:function(a){this.log("User.initialize:",a),this.on("loaded",function(a,b){this.log(this+" has loaded:",a,b)}),this.on("change",function(a,b){this.log(this+" has changed:",a,b.changes)})},isAnonymous:function(){return!this.get("email")},isAdmin:function(){return this.get("is_admin")},loadFromApi:function(a,b){a=a||c.CURRENT_ID_STR,b=b||{};var d=this,e=b.success;return b.success=function(a,b){d.trigger("loaded",a,b),e&&e(a,b)},a===c.CURRENT_ID_STR&&(b.url=this.urlRoot+"/"+c.CURRENT_ID_STR),Backbone.Model.prototype.fetch.call(this,b)},clearSessionStorage:function(){for(var a in sessionStorage)0===a.indexOf("history:")?sessionStorage.removeItem(a):"history-panel"===a&&sessionStorage.removeItem(a)},toString:function(){var a=[this.get("username")];return this.get("id")&&(a.unshift(this.get("id")),a.push(this.get("email"))),"User("+a.join(":")+")"}});c.CURRENT_ID_STR="current",c.getCurrentUserFromApi=function(a){var b=new c;return b.loadFromApi(c.CURRENT_ID_STR,a),b};Backbone.Collection.extend(a.LoggableMixin).extend({model:c,urlRoot:galaxy_config.root+"api/users"});return{User:c}});
|
||||
define(["libs/underscore","libs/backbone/backbone","mvc/base-mvc","utils/localization"],function(a,b,c,d){var e=b.Model.extend(c.LoggableMixin).extend({urlRoot:function(){return Galaxy.options.root+"api/users"},defaults:{id:null,username:"("+d("anonymous user")+")",email:"",total_disk_usage:0,nice_total_disk_usage:"",quota_percent:null,is_admin:!1},initialize:function(a){this.log("User.initialize:",a),this.on("loaded",function(a,b){this.log(this+" has loaded:",a,b)}),this.on("change",function(a,b){this.log(this+" has changed:",a,b.changes)})},isAnonymous:function(){return!this.get("email")},isAdmin:function(){return this.get("is_admin")},loadFromApi:function(a,c){a=a||e.CURRENT_ID_STR,c=c||{};var d=this,f=c.success;return c.success=function(a,b){d.trigger("loaded",a,b),f&&f(a,b)},a===e.CURRENT_ID_STR&&(c.url=this.urlRoot+"/"+e.CURRENT_ID_STR),b.Model.prototype.fetch.call(this,c)},clearSessionStorage:function(){for(var a in sessionStorage)0===a.indexOf("history:")?sessionStorage.removeItem(a):"history-panel"===a&&sessionStorage.removeItem(a)},toString:function(){var a=[this.get("username")];return this.get("id")&&(a.unshift(this.get("id")),a.push(this.get("email"))),"User("+a.join(":")+")"}});e.CURRENT_ID_STR="current",e.getCurrentUserFromApi=function(a){var b=new e;return b.loadFromApi(e.CURRENT_ID_STR,a),b};b.Collection.extend(c.LoggableMixin).extend({model:e,urlRoot:function(){return Galaxy.options.root+"api/users"}});return{User:e}});
|
||||
//# sourceMappingURL=../../../maps/mvc/user/user-model.js.map
|
||||
@@ -1,2 +1,54 @@
|
||||
this.Handlebars=this.Handlebars||{},this.Handlebars.templates=this.Handlebars.templates||{},this.Handlebars.templates.tool_form=Handlebars.template({1:function(a,b,c,d){var e,f,g=b.helperMissing,h="function",i=this.escapeExpression;return' <div class="form-row">\n <label for="'+i((f=null!=(f=b.name||(null!=a?a.name:a))?f:g,typeof f===h?f.call(a,{name:"name",hash:{},data:d}):f))+'">'+i((f=null!=(f=b.label||(null!=a?a.label:a))?f:g,typeof f===h?f.call(a,{name:"label",hash:{},data:d}):f))+':</label>\n <div class="form-row-input">\n '+(null!=(f=null!=(f=b.html||(null!=a?a.html:a))?f:g,e=typeof f===h?f.call(a,{name:"html",hash:{},data:d}):f)?e:"")+'\n </div>\n <div class="toolParamHelp" style="clear: both;">\n '+i((f=null!=(f=b.help||(null!=a?a.help:a))?f:g,typeof f===h?f.call(a,{name:"help",hash:{},data:d}):f))+'\n </div>\n <div style="clear: both;"></div>\n </div>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f,g=b.helperMissing,h="function",i=this.escapeExpression;return'<div class="toolFormTitle">'+i((f=null!=(f=b.name||(null!=a?a.name:a))?f:g,typeof f===h?f.call(a,{name:"name",hash:{},data:d}):f))+" (version "+i((f=null!=(f=b.version||(null!=a?a.version:a))?f:g,typeof f===h?f.call(a,{name:"version",hash:{},data:d}):f))+')</div>\n <div class="toolFormBody">\n'+(null!=(e=b.each.call(a,null!=a?a.inputs:a,{name:"each",hash:{},fn:this.program(1,d,0),inverse:this.noop,data:d}))?e:"")+' </div>\n <div class="form-row form-actions">\n <input type="submit" class="btn btn-primary" name="runtool_btn" value="Execute">\n</div>\n<div class="toolHelp">\n <div class="toolHelpBody">'+i((f=null!=(f=b.help||(null!=a?a.help:a))?f:g,typeof f===h?f.call(a,{name:"help",hash:{},data:d}):f))+"</div>\n</div>"},useData:!0});
|
||||
//# sourceMappingURL=../../../maps/templates/compiled/tool_form.js.map
|
||||
this.Handlebars = this.Handlebars || {}, this.Handlebars.templates = this.Handlebars.templates || {},
|
||||
this.Handlebars.templates.tool_form = Handlebars.template({
|
||||
"1": function(depth0, helpers, partials, data) {
|
||||
var stack1, helper, alias1 = helpers.helperMissing, alias2 = "function", alias3 = this.escapeExpression;
|
||||
return ' <div class="form-row">\n <label for="' + alias3((helper = null != (helper = helpers.name || (null != depth0 ? depth0.name : depth0)) ? helper : alias1,
|
||||
typeof helper === alias2 ? helper.call(depth0, {
|
||||
name: "name",
|
||||
hash: {},
|
||||
data: data
|
||||
}) : helper)) + '">' + alias3((helper = null != (helper = helpers.label || (null != depth0 ? depth0.label : depth0)) ? helper : alias1,
|
||||
typeof helper === alias2 ? helper.call(depth0, {
|
||||
name: "label",
|
||||
hash: {},
|
||||
data: data
|
||||
}) : helper)) + ':</label>\n <div class="form-row-input">\n ' + (null != (helper = null != (helper = helpers.html || (null != depth0 ? depth0.html : depth0)) ? helper : alias1,
|
||||
stack1 = typeof helper === alias2 ? helper.call(depth0, {
|
||||
name: "html",
|
||||
hash: {},
|
||||
data: data
|
||||
}) : helper) ? stack1 : "") + '\n </div>\n <div class="toolParamHelp" style="clear: both;">\n ' + alias3((helper = null != (helper = helpers.help || (null != depth0 ? depth0.help : depth0)) ? helper : alias1,
|
||||
typeof helper === alias2 ? helper.call(depth0, {
|
||||
name: "help",
|
||||
hash: {},
|
||||
data: data
|
||||
}) : helper)) + '\n </div>\n <div style="clear: both;"></div>\n </div>\n';
|
||||
},
|
||||
compiler: [ 6, ">= 2.0.0-beta.1" ],
|
||||
main: function(depth0, helpers, partials, data) {
|
||||
var stack1, helper, alias1 = helpers.helperMissing, alias2 = "function", alias3 = this.escapeExpression;
|
||||
return '<div class="toolFormTitle">' + alias3((helper = null != (helper = helpers.name || (null != depth0 ? depth0.name : depth0)) ? helper : alias1,
|
||||
typeof helper === alias2 ? helper.call(depth0, {
|
||||
name: "name",
|
||||
hash: {},
|
||||
data: data
|
||||
}) : helper)) + " (version " + alias3((helper = null != (helper = helpers.version || (null != depth0 ? depth0.version : depth0)) ? helper : alias1,
|
||||
typeof helper === alias2 ? helper.call(depth0, {
|
||||
name: "version",
|
||||
hash: {},
|
||||
data: data
|
||||
}) : helper)) + ')</div>\n <div class="toolFormBody">\n' + (null != (stack1 = helpers.each.call(depth0, null != depth0 ? depth0.inputs : depth0, {
|
||||
name: "each",
|
||||
hash: {},
|
||||
fn: this.program(1, data, 0),
|
||||
inverse: this.noop,
|
||||
data: data
|
||||
})) ? stack1 : "") + ' </div>\n <div class="form-row form-actions">\n <input type="submit" class="btn btn-primary" name="runtool_btn" value="Execute">\n</div>\n<div class="toolHelp">\n <div class="toolHelpBody">' + alias3((helper = null != (helper = helpers.help || (null != depth0 ? depth0.help : depth0)) ? helper : alias1,
|
||||
typeof helper === alias2 ? helper.call(depth0, {
|
||||
name: "help",
|
||||
hash: {},
|
||||
data: data
|
||||
}) : helper)) + "</div>\n</div>";
|
||||
},
|
||||
useData: !0
|
||||
});
|
||||
+18
-4
@@ -32,7 +32,7 @@
|
||||
|
||||
## Default javascripts
|
||||
<%def name="javascripts()">
|
||||
|
||||
|
||||
## Send errors to Sntry server if configured
|
||||
%if app.config.sentry_dsn:
|
||||
${h.js( "libs/tracekit", "libs/raven" )}
|
||||
@@ -67,6 +67,7 @@
|
||||
window.Galaxy = window.Galaxy || {};
|
||||
|
||||
## global configuration object
|
||||
window.Galaxy.config = {};
|
||||
window.Galaxy.root = '${h.url_for( "/" )}';
|
||||
window.galaxy_config = { root: window.Galaxy.root };
|
||||
|
||||
@@ -80,13 +81,26 @@
|
||||
assert : function(){}
|
||||
};
|
||||
|
||||
## configure require
|
||||
// configure require
|
||||
// due to our using both script tags and require, we need to access the same jq in both for plugin retention
|
||||
// source http://www.manuel-strehl.de/dev/load_jquery_before_requirejs.en.html
|
||||
define( 'jquery', [], function(){ console.debug( 'defining jQuery' ); return jQuery; })
|
||||
// TODO: use one system
|
||||
|
||||
// shims and paths
|
||||
require.config({
|
||||
baseUrl: "${h.url_for('/static/scripts') }",
|
||||
shim: {
|
||||
"libs/underscore": { exports: "_" },
|
||||
"libs/backbone/backbone": { exports: "Backbone" }
|
||||
"libs/underscore": {
|
||||
exports: "_"
|
||||
},
|
||||
"libs/backbone/backbone": {
|
||||
deps: [ 'jquery', 'libs/underscore' ],
|
||||
// deps: [ 'libs/underscore' ],
|
||||
exports: "Backbone"
|
||||
}
|
||||
},
|
||||
// cache busting using time server was restarted
|
||||
urlArgs: 'v=${app.server_starttime}'
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -83,13 +83,26 @@
|
||||
assert : function(){}
|
||||
};
|
||||
|
||||
## configure require
|
||||
// configure require
|
||||
// due to our using both script tags and require, we need to access the same jq in both for plugin retention
|
||||
// source http://www.manuel-strehl.de/dev/load_jquery_before_requirejs.en.html
|
||||
define( 'jquery', [], function(){ console.debug( 'defining jQuery' ); return jQuery; })
|
||||
// TODO: use one system
|
||||
|
||||
// shims and paths
|
||||
require.config({
|
||||
baseUrl: "${h.url_for('/static/scripts') }",
|
||||
shim: {
|
||||
"libs/underscore": { exports: "_" },
|
||||
"libs/backbone/backbone": { exports: "Backbone" }
|
||||
"libs/underscore": {
|
||||
exports: "_"
|
||||
},
|
||||
"libs/backbone/backbone": {
|
||||
deps: [ 'jquery', 'libs/underscore' ],
|
||||
// deps: [ 'libs/underscore' ],
|
||||
exports: "Backbone"
|
||||
}
|
||||
},
|
||||
// cache busting using time server was restarted
|
||||
urlArgs: 'v=${app.server_starttime}'
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -1,21 +1,18 @@
|
||||
<%def name="render_json( dictionary )">
|
||||
${ h.dumps( dictionary, indent=( 2 if trans.debug else 0 ) ) }
|
||||
</%def>
|
||||
|
||||
## ============================================================================
|
||||
<%def name="bootstrap( **kwargs )">
|
||||
## 1) Bootstap all kwargs to json, assigning to:
|
||||
## global 'bootstrapped' var
|
||||
## named require module 'bootstrapped-data'
|
||||
## 2) and automatically include json for config and user in bootstapped data
|
||||
<%
|
||||
kwargs.update({
|
||||
'config' : get_config_dict(),
|
||||
'user' : get_user_dict(),
|
||||
})
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
//TODO: global...
|
||||
%for key in kwargs:
|
||||
( window.bootstrapped = window.bootstrapped || {} )[ '${key}' ] = (
|
||||
${ h.dumps( kwargs[ key ], indent=( 2 if trans.debug else 0 ) ) } );
|
||||
${ render_json( kwargs[ key ] ) }
|
||||
);
|
||||
%endfor
|
||||
define( 'bootstrapped-data', function(){
|
||||
return window.bootstrapped;
|
||||
@@ -30,10 +27,10 @@
|
||||
require([ 'require', 'galaxy-app-base' ], function( require, galaxy ){
|
||||
//TODO: global...
|
||||
window.Galaxy = new galaxy.GalaxyApp({
|
||||
root : '${h.url_for( "/" )}',
|
||||
//TODO: get these options from the server
|
||||
loggerOptions : {}
|
||||
});
|
||||
root : '${h.url_for( "/" )}',
|
||||
config : ${ render_json( get_config_dict() )},
|
||||
user : ${ render_json( get_user_dict() )},
|
||||
}, window.bootstrapped );
|
||||
|
||||
%if app:
|
||||
require([ '${app}' ]);
|
||||
|
||||
+78
-10
@@ -1,27 +1,47 @@
|
||||
<%
|
||||
import pprint
|
||||
print js_app_name
|
||||
print js_app_entry_fn
|
||||
printable = dict( options[ 'config' ] )
|
||||
printable.pop( 'toolbox', None )
|
||||
printable.pop( 'toolbox_in_panel', None )
|
||||
pprint.pprint( printable )
|
||||
## pprint.pprint( bootstrapped )
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--test.mako-->
|
||||
<!--js-app.mako-->
|
||||
<head>
|
||||
<title>Test</title>
|
||||
<title>Galaxy</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
## For mobile browsers, don't scale up
|
||||
<meta name="viewport" content="maximum-scale=1.0">
|
||||
## Force IE to standards mode, and prefer Google Chrome Frame if the user has already installed it
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||||
${h.css(
|
||||
${ h.css(
|
||||
'base',
|
||||
'jquery.rating'
|
||||
'jquery-ui/smoothness/jquery-ui'
|
||||
)}
|
||||
<script type="text/javascript">
|
||||
window.galaxy_config = {
|
||||
root: '${h.url_for( "/" )}'
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="static/scripts/bundled/common.js"></script>
|
||||
|
||||
<script type="text/javascript" src="/static/scripts/bundled/common.js"></script>
|
||||
<script type="text/javascript" src="/static/scripts/bundled/libs.bundled.js"></script>
|
||||
${ page_setup() }
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script type="text/javascript" src="static/scripts/bundled/${js_app_name}.bundled.js"></script>
|
||||
<script type="text/javascript" src="/static/scripts/bundled/galaxy.bundled.js"></script>
|
||||
<script type="text/javascript">
|
||||
window.Galaxy = new GalaxyApp(
|
||||
${ h.dumps( options ) },
|
||||
${ h.dumps( bootstrapped ) }
|
||||
);
|
||||
// TODO: find and replace with Galaxy.root
|
||||
window.galaxy_config = { root: Galaxy.options.root };
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="/static/scripts/bundled/${js_app_name}.bundled.js"></script>
|
||||
<script type="text/javascript">
|
||||
${js_app_entry_fn}(
|
||||
${ h.dumps( options ) },
|
||||
@@ -30,3 +50,51 @@
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
## ============================================================================
|
||||
<%def name="page_setup()">
|
||||
## Send errors to Sntry server if configured
|
||||
%if app.config.sentry_dsn:
|
||||
${h.js( "libs/tracekit", "libs/raven" )}
|
||||
<script>
|
||||
Raven.config('${app.config.sentry_dsn_public}').install();
|
||||
%if trans.user:
|
||||
Raven.setUser( { email: "${trans.user.email|h}" } );
|
||||
%endif
|
||||
</script>
|
||||
%endif
|
||||
|
||||
<script type="text/javascript">
|
||||
## console protection
|
||||
window.console = window.console || {
|
||||
log : function(){},
|
||||
debug : function(){},
|
||||
info : function(){},
|
||||
warn : function(){},
|
||||
error : function(){},
|
||||
assert : function(){}
|
||||
};
|
||||
</script>
|
||||
|
||||
%if not form_input_auto_focus is UNDEFINED and form_input_auto_focus:
|
||||
<script type="text/javascript">
|
||||
$(document).ready( function() {
|
||||
// Auto Focus on first item on form
|
||||
if ( $("*:focus").html() == null ) {
|
||||
$(":input:not([type=hidden]):visible:enabled:first").focus();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
%endif
|
||||
|
||||
%if app.config.ga_code:
|
||||
<script type="text/javascript">
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', '${app.config.ga_code}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
%endif
|
||||
</%def>
|
||||
|
||||
@@ -6,7 +6,6 @@ ${h.css("base")}
|
||||
<%def name="title()">Galaxy</%def>
|
||||
<%def name="javascripts()">
|
||||
${parent.javascripts()}
|
||||
${h.templates("tool_link", "panel_section", "tool_search")}
|
||||
</%def>
|
||||
<%
|
||||
## get configuration
|
||||
|
||||
Reference in New Issue
Block a user