Merge branch 'dev' into replace_page_edit_form

This commit is contained in:
guerler
2017-09-27 15:35:02 -04:00
26 changed files with 218 additions and 153 deletions
@@ -17,81 +17,164 @@ function display_spinner(){
$('#main').append('<img id="spinner" src="' + galaxy_root + 'static/style/largespinner.gif" style="position:absolute;margin:auto;top:0;left:0;right:0;bottom:0;">');
}
function not_ready(timeout, timeout_values, timeout_time_max, timeout_time_step) {
if(timeout_values.count == 0){
display_spinner();
toastr.info(
"Galaxy is launching a container in which to run this interactive environment. Please wait...",
{'closeButton': true, 'tapToDismiss': false}
);
/* Create a spin_state object used by spin() and spin_again() */
function make_spin_state(type, ajax_timeout_init, ajax_timeout_max, ajax_timeout_step, sleep_init, sleep_max, sleep_step, log_attempts){
var s = {
type: (typeof type !== 'undefined') ? type : "GIE spin",
ajax_timeout: (typeof ajax_timeout_init !== 'undefined') ? ajax_timeout_init : 2000,
ajax_timeout_max: (typeof ajax_timeout_max !== 'undefined') ? ajax_timeout_max : 16000,
ajax_timeout_step: (typeof ajax_timeout_step !== 'undefined') ? ajax_timeout_step : 500,
sleep: (typeof sleep_init !== 'undefined') ? sleep_init : 500,
sleep_max: (typeof sleep_max !== 'undefined') ? sleep_max : 8000,
sleep_step: (typeof sleep_step !== 'undefined') ? sleep_step : 100,
log_attempts: (typeof log_attempts !== 'undefined') ? log_attempts : true,
count: 0,
}
timeout_values.count++;
if(timeout_values.time < timeout_time_max){
timeout_values.time += timeout_time_step;
}
console.log("Readiness request " + timeout_values.count + " sleeping " + timeout_values.time / 1000 + "s");
window.setTimeout(timeout, timeout_values.time)
return s;
}
/**
* Check a URL for a boolean true/false and call a callback when done.
/* Log/display an error when spinning fails. */
function spin_error(console_msg, user_msg, clear){
console.log(console_msg);
if(clear) clear_main_area();
if(typeof user_msg == "string"){
toastr.clear();
toastr.error(
user_msg,
"Error",
{'closeButton': true, 'timeOut': 0, 'extendedTimeOut': 0, 'tapToDismiss': false}
);
}
}
/* Increase sleep time and spin again. */
function spin_again(spin_state){
if(spin_state.sleep < spin_state.sleep_max){
spin_state.sleep += spin_state.sleep_step;
}
if(spin_state.log_attempts){
console.log(spin_state.type + " request " + spin_state.count + " request timeout " + spin_state.ajax_timeout + "ms sleeping " + spin_state.sleep / 1000 + "s");
}
window.setTimeout(spin_state.spinner, spin_state.sleep);
}
/*
* Spin on a URL as long as it times out, otherwise, call the provided success or error callback. If the callback
* returns `true`, the condition is considered "resolved" and spinning stops. Otherwise, continue spinning, increasing
* AJAX timeouts and/or sleep values as configured in the spin_state.
*/
function load_when_ready(url, success_callback){
var ajax_timeout = 500;
var ajax_timeout_max = 10000;
var ajax_timeout_step = 250;
var timeout_values = { time: 1000, count: 0 };
var timeout_time_max = 15000;
var timeout_time_step = 1000;
var timeout = function(){
$.ajax({
function spin(url, bool_response, success_callback, timeout_callback, error_callback, spin_state){
var spinner = function(){
var ajax_params = {
url: url,
xhrFields: {
withCredentials: true
},
type: "GET",
timeout: ajax_timeout,
dataType: "json",
success: function(data){
if(data == true){
console.log("Galaxy reports IE container ready, returning");
clear_main_area();
toastr.clear();
success_callback();
}else if(data == false){
not_ready(timeout, timeout_values, timeout_time_max, timeout_time_step);
timeout: spin_state.ajax_timeout,
success: function(data, status, jqxhr){
if(!success_callback(data, status, jqxhr)) spin_again(spin_state);
},
error: function(jqxhr, status, error){
if(status == "timeout"){
if(spin_state.ajax_timeout < spin_state.ajax_timeout_max){
spin_state.ajax_timeout += spin_state.ajax_timeout_step;
}
spin_state.count++;
if(!timeout_callback(jqxhr, status, error)) spin_again(spin_state);
}else{
clear_main_area();
toastr.clear();
toastr.error(
"Galaxy failed to launch a container in which to run this interactive environment, contact your administrator.",
"Error",
{'closeButton': true, 'tapToDismiss': false}
);
spin_state.count++;
if(!error_callback(jqxhr, status, error)) spin_again(spin_state);
}
},
error: function(jqXHR, textStatus, errorThrown){
if(textStatus == "timeout"){
if(ajax_timeout < ajax_timeout_max){
ajax_timeout += ajax_timeout_step;
}
not_ready(timeout, timeout_values, timeout_time_max, timeout_time_step);
}else{
clear_main_area();
toastr.clear();
toastr.error(
"Galaxy encountered an error while attempting to determine the readiness of this interactive environment, contact your administrator.",
"Error",
{'closeButton': true, 'tapToDismiss': false}
);
}
}
});
}
if(bool_response) ajax_params["dataType"] = "json";
$.ajax(ajax_params);
}
window.setTimeout(timeout, timeout_values.time);
console.log("Setting up new spinner for " + spin_state.type + " on " + url);
spin_state.spinner = spinner;
window.setTimeout(spinner, spin_state.sleep);
}
/*
* Spin on a URL forever until there is an acceptable response.
* @param {String} url: URL to test response of. Must return a 200 (302->200 is OK).
* @param {Boolean} bool_response: If set to `true`, do not stop spinning until the response is `true`. Otherwise, stop
* as soon as a successful response is received.
*/
function spin_until(url, bool_response, messages, success_callback, spin_state){
var warn_at = 40; // ~2 mins
var message_once = function(message, spin_state){
if(spin_state.count == 1){
display_spinner();
toastr.info(
message,
null,
{'closeButton': true, 'timeOut': 0, 'extendedTimeOut': 0, 'tapToDismiss': false}
);
}
}
var wrapped_success = function(data){
if(!bool_response || (bool_response && data == true)){
console.log(messages["success"]);
clear_main_area();
toastr.clear();
success_callback();
}else if(bool_response && data == false){
message_once(messages["not_ready"], spin_state);
return false; // keep spinning
}else{
spin_error("Invalid response to " + spin_state.type + " request", messages["invalid_response"], true);
}
return true; // stop spinning
}
var timeout_error = function(jqxhr, status, error){
message_once(messages["waiting"], spin_state)
if(spin_state.count == warn_at){
toastr.warning(
messages["wait_warn"],
"Warning",
{'closeButton': true, 'timeOut': 0, 'extendedTimeOut': 0, 'tapToDismiss': false}
);
}
return false; // keep spinning
}
spin(
url,
bool_response,
wrapped_success,
timeout_error,
timeout_error,
spin_state
);
}
/**
* Test a boolean (json) response from a URL, and call a callback when done.
* http://stackoverflow.com/q/25390206/347368
* @param {String} url: URL to test response of. Must return a 200 (302->200 is OK) and either `true` or `false`.
* @param {String} callback: function to call once successfully connected.
*
*/
function load_when_ready(url, success_callback){
var messages = {
success: "Galaxy reports IE container ready, returning",
not_ready: "Galaxy is launching a container in which to run this interactive environment. Please wait...",
unknown_response: "Galaxy failed to launch a container in which to run this interactive environment, contact a Galaxy administrator.",
waiting: "Galaxy is launching a container in which to run this interactive environment. Please wait...",
wait_warn: "It is taking an usually long time to start a container. Attempts will continue but you may want to report this condition to a Galaxy administrator if it does not succeed soon.",
error: "Galaxy encountered an error while attempting to determine the readiness of this interactive environment's container, contact a Galaxy administrator."
}
var spin_state = make_spin_state("IE container readiness");
spin_until(url, true, messages, success_callback, spin_state);
}
/**
* Test availability of a URL, and call a callback when done.
@@ -101,34 +184,12 @@ function load_when_ready(url, success_callback){
*
*/
function test_ie_availability(url, success_callback){
var request_count = 0;
display_spinner();
interval = setInterval(function(){
$.ajax({
url: url,
xhrFields: {
withCredentials: true
},
type: "GET",
timeout: 500,
success: function(){
console.log("Connected to IE, returning");
clearInterval(interval);
success_callback();
},
error: function(jqxhr, status, error){
request_count++;
console.log("Availability request " + request_count);
if(request_count > 30){
clearInterval(interval);
clear_main_area();
toastr.error(
"Could not connect to IE, contact your administrator",
"Error",
{'closeButton': true, 'timeOut': 20000, 'tapToDismiss': false}
);
}
}
});
}, 1000);
var messages = {
success: "IE connection succeeded, returning",
waiting: "Interactive environment container is running, attempting to connect to the IE. Please wait...",
wait_warn: "It is taking an usually long time to connect to the interactive environment. Attempts will continue but you may want to report this condition to a Galaxy administrator if it does not succeed soon.",
error: "An error was encountered while attempting to connect to the interactive environment, contact your administrator."
}
var spin_state = make_spin_state("IE availability");
spin_until(url, false, messages, success_callback, spin_state);
}
@@ -13,7 +13,7 @@ var logNamespace = 'workflow';
var WorkflowItem = Backbone.Model.extend( baseMVC.LoggableMixin ).extend({
_logNamespace : logNamespace,
urlRoot: '/api/workflows',
urlRoot: Galaxy.root + 'api/workflows',
toJSON: function(){
// need to overwrite this as endpoint expects the 'workflow' key in payload
@@ -29,7 +29,7 @@ var WorkflowItem = Backbone.Model.extend( baseMVC.LoggableMixin ).extend({
*/
var WorkflowCollection = Backbone.Collection.extend({
model: WorkflowItem,
url: '/api/workflows',
url: Galaxy.root + 'api/workflows',
});
+1 -1
View File
@@ -185,7 +185,7 @@ $(document).ready( function() {
}
// Load all webhooks with the type 'onload'
$.getJSON('/api/webhooks/onload/all', function(webhooks) {
$.getJSON( Galaxy.root + '/api/webhooks/onload/all', function(webhooks) {
_.each(webhooks, function(webhook) {
if (webhook.activate && webhook.script) {
$('<script/>', {type: 'text/javascript'}).text(webhook.script).appendTo('head');
@@ -4,11 +4,11 @@ define([], function() {
// TS GROUP RELATED MODELS
var Group = Backbone.Model.extend({
urlRoot: '/api/groups',
urlRoot: Galaxy.root + 'api/groups',
});
var Groups = Backbone.Collection.extend({
url: '/api/groups',
url: Galaxy.root + 'api/groups',
model: Group,
@@ -38,6 +38,7 @@ function load_notebook(password, notebook_login_url, notebook_access_url){
// we've successfully connected to the IE.
test_ie_availability(notebook_login_url, function(){
_handle_notebook_loading(password, notebook_login_url, notebook_access_url);
keep_alive();
});
}
@@ -48,34 +49,44 @@ function keep_alive(){
* this function is not constantly pinging the container, the container will
* terminate itself.
*/
var request_count = 0;
interval = setInterval(function(){
$.ajax({
url: notebook_access_url,
xhrFields: {
withCredentials: true
},
type: "GET",
timeout: 500,
success: function(){
console.log("Connected to IE, returning");
},
error: function(jqxhr, status, error){
request_count++;
console.log("Request " + request_count);
if(request_count > 30){
clearInterval(interval);
clear_main_area();
toastr.error(
"Could not connect to IE, contact your administrator",
"Error",
{'closeButton': true, 'timeOut': 20000, 'tapToDismiss': false}
);
}
}
});
}, 30000);
var warn_at = 4;
var count_max = 60;
// we sleep 15 seconds between requests and the default timeout for the Jupyter container is 120 seconds, so start
// with a pretty high ajax timeout. sleep starts low because we want to get the warning up pretty quickly
var spin_state = make_spin_state("IE keep alive", 8000, 16000, 2000, 5000, 15000, 5000, false);
var success = function(){
console.log("IE keepalive request succeeded");
toastr.clear()
if(spin_state.count >= warn_at){
toastr.clear();
toastr.success(
"Interactive environment connection restored",
{'closeButton': true, 'timeOut': 5000, 'extendedTimeOut': 2000, 'tapToDismiss': true}
);
}
spin_state.count = 0;
spin_state.timeout_count = 0;
spin_state.error_count = 0;
return false; // keep spinning
}
var timeout_error = function(jqxhr, status, error){
console.log("IE keepalive request failed " + spin_state.count + " time(s) of " + count_max + " max: " + status + ": " + error);
if(spin_state.count == warn_at){
toastr.warning(
"Your browser has been unable to contact the interactive environment for "
+ spin_state.count + " consecutive attempts, if you do not reestablish "
+ "a connection, your IE container may be terminated.",
"Warning",
{'closeButton': true, 'timeOut': 0, 'extendedTimeOut': 0, 'tapToDismiss': false}
);
return false; // keep spinning
}else if(spin_state.count >= count_max){
spin_error("IE keepalive failure limit reached", "Lost connection to interactive environment, contact your administrator", false);
return true; // stop spinning
}
}
console.log("IE keep alive worker starting");
spin(notebook_access_url, false, success, timeout_error, timeout_error, spin_state);
}
@@ -58,12 +58,6 @@ var notebook_login_url = '${ notebook_login_url }';
var notebook_access_url = '${ notebook_access_url }';
${ ie.plugin_require_config() }
// Keep container running
requirejs(['interactive_environments', 'plugin/jupyter'], function(){
keep_alive();
});
// Load notebook
requirejs(['interactive_environments', 'plugin/jupyter'], function(){
+5 -6
View File
@@ -28,10 +28,8 @@ CONDA_LICENSE = "http://docs.continuum.io/anaconda/eula"
VERSIONED_ENV_DIR_NAME = re.compile(r"__(.*)@(.*)")
UNVERSIONED_ENV_DIR_NAME = re.compile(r"__(.*)@_uv_")
USE_PATH_EXEC_DEFAULT = False
CONDA_VERSION = "4.2.13"
# 2.1.5 is incompatible with 4.2 Conda because of
# https://github.com/conda/conda-build/pull/1766
CONDA_BUILD_VERSION = "2.1.4"
CONDA_VERSION = "4.3.24"
CONDA_BUILD_VERSION = "2.1.17"
USE_LOCAL_DEFAULT = False
@@ -154,7 +152,7 @@ class CondaContext(installable.InstallableContext):
def ensure_conda_build_installed_if_needed(self):
if self.use_local and not self.conda_build_available:
conda_targets = [CondaTarget("conda-build", version=CONDA_BUILD_VERSION)]
# Cannot use --use-local during installation fo conda-build.
# Cannot use --use-local during installation of conda-build.
return install_conda_targets(conda_targets, conda_context=self, env_name=None, allow_local=False)
else:
return 0
@@ -532,7 +530,8 @@ def build_isolated_environment(
# Adjust fix if they fix Conda - xref
# - https://github.com/galaxyproject/galaxy/issues/3635
# - https://github.com/conda/conda/issues/2035
offline_works = conda_context.conda_version < LooseVersion("4.3")
offline_works = (conda_context.conda_version < LooseVersion("4.3")) or \
(conda_context.conda_version >= LooseVersion("4.3.18"))
if offline_works:
create_args.extend(["--offline"])
else:
+1 -1
View File
@@ -888,7 +888,7 @@ class GalaxyWebTransaction(base.DefaultWebTransaction,
token = ''
if self.galaxy_session:
token = self.security.encode_id(
self.galaxy_session.id, kind="session_csrf_token"
self.galaxy_session.id, kind="csrf"
)
return token
@@ -1 +1 @@
{"version":3,"file":"galaxy.interactive_environments.js","sources":["../src/galaxy.interactive_environments.js"],"names":["append_notebook","url","clear_main_area","$","append","remove","children","display_spinner","galaxy_root","not_ready","timeout","timeout_values","timeout_time_max","timeout_time_step","count","toastr","info","closeButton","tapToDismiss","time","console","log","window","setTimeout","load_when_ready","success_callback","ajax_timeout","ajax_timeout_max","ajax_timeout_step","ajax","xhrFields","withCredentials","type","dataType","success","data","clear","error","jqXHR","textStatus","test_ie_availability","request_count","interval","setInterval","clearInterval","timeOut"],"mappings":"AAIA,QAASA,iBAAgBC,GACrBC,kBACAC,EAAE,SAASC,OAAO,uHAAwHH,EAAK,eAInJ,QAASC,mBACLC,EAAE,YAAYE,SACdF,EAAE,SAASG,WAAWD,SAG1B,QAASE,mBACDJ,EAAE,SAASC,OAAO,0BAA4BI,YAAc,wGAGpE,QAASC,WAAUC,EAASC,EAAgBC,EAAkBC,GAC/B,GAAxBF,EAAeG,QACdP,kBACAQ,OAAOC,KACH,gGACCC,aAAe,EAAMC,cAAgB,KAG9CP,EAAeG,QACZH,EAAeQ,KAAOP,IACrBD,EAAeQ,MAAQN,GAE3BO,QAAQC,IAAI,qBAAuBV,EAAeG,MAAQ,aAAeH,EAAeQ,KAAO,IAAO,KACtGG,OAAOC,WAAWb,EAASC,EAAeQ,MAM9C,QAASK,iBAAgBvB,EAAKwB,GAC1B,GAAIC,GAAe,IACfC,EAAmB,IACnBC,EAAoB,IACpBjB,GAAmBQ,KAAM,IAAML,MAAO,GACtCF,EAAmB,KACnBC,EAAoB,IACpBH,EAAU,WACVP,EAAE0B,MACE5B,IAAKA,EACL6B,WACIC,iBAAiB,GAErBC,KAAM,MACNtB,QAASgB,EACTO,SAAU,OACVC,QAAS,SAASC,GACH,GAARA,GACCf,QAAQC,IAAI,gDACZnB,kBACAa,OAAOqB,QACPX,KACa,GAARU,EACL1B,UAAUC,EAASC,EAAgBC,EAAkBC,IAErDX,kBACAa,OAAOqB,QACPrB,OAAOsB,MACH,gHACA,SACCpB,aAAe,EAAMC,cAAgB,MAIlDmB,MAAO,SAASC,EAAOC,GACF,WAAdA,GACmBZ,EAAfD,IACCA,GAAgBE,GAEpBnB,UAAUC,EAASC,EAAgBC,EAAkBC,KAErDX,kBACAa,OAAOqB,QACPrB,OAAOsB,MACH,uIACA,SACCpB,aAAe,EAAMC,cAAgB,QAM1DI,QAAOC,WAAWb,EAASC,EAAeQ,MAY9C,QAASqB,sBAAqBvC,EAAKwB,GAC/B,GAAIgB,GAAgB,CACpBlC,mBACAmC,SAAWC,YAAY,WACnBxC,EAAE0B,MACE5B,IAAKA,EACL6B,WACIC,iBAAiB,GAErBC,KAAM,MACNtB,QAAS,IACTwB,QAAS,WACLd,QAAQC,IAAI,8BACZuB,cAAcF,UACdjB,KAEJY,MAAO,WACHI,IACArB,QAAQC,IAAI,wBAA0BoB,GACnCA,EAAgB,KACfG,cAAcF,UACdxC,kBACAa,OAAOsB,MACH,sDACA,SACCpB,aAAe,EAAM4B,QAAW,IAAO3B,cAAgB,SAKzE"}
{"version":3,"file":"galaxy.interactive_environments.js","sources":["../src/galaxy.interactive_environments.js"],"names":["append_notebook","url","clear_main_area","$","append","remove","children","display_spinner","galaxy_root","make_spin_state","type","ajax_timeout_init","ajax_timeout_max","ajax_timeout_step","sleep_init","sleep_max","sleep_step","log_attempts","s","ajax_timeout","sleep","count","spin_error","console_msg","user_msg","clear","console","log","toastr","error","closeButton","timeOut","extendedTimeOut","tapToDismiss","spin_again","spin_state","window","setTimeout","spinner","spin","bool_response","success_callback","timeout_callback","error_callback","ajax_params","xhrFields","withCredentials","timeout","success","data","status","jqxhr","ajax","spin_until","messages","warn_at","message_once","message","info","wrapped_success","timeout_error","warning","load_when_ready","not_ready","unknown_response","waiting","wait_warn","test_ie_availability"],"mappings":"AAIA,QAASA,iBAAgBC,GACrBC,kBACAC,EAAE,SAASC,OAAO,uHAAwHH,EAAK,eAInJ,QAASC,mBACLC,EAAE,YAAYE,SACdF,EAAE,SAASG,WAAWD,SAG1B,QAASE,mBACDJ,EAAE,SAASC,OAAO,0BAA4BI,YAAc,wGAKpE,QAASC,iBAAgBC,EAAMC,EAAmBC,EAAkBC,EAAmBC,EAAYC,EAAWC,EAAYC,GACtH,GAAIC,IACAR,KAAuB,mBAATA,GAAwBA,EAAO,WAC7CS,aAA4C,mBAAtBR,GAAqCA,EAAoB,IAC/EC,iBAA+C,mBAArBA,GAAoCA,EAAmB,KACjFC,kBAAiD,mBAAtBA,GAAqCA,EAAoB,IACpFO,MAA8B,mBAAfN,GAA8BA,EAAa,IAC1DC,UAAiC,mBAAdA,GAA6BA,EAAY,IAC5DC,WAAmC,mBAAfA,GAA8BA,EAAa,IAC/DC,aAAuC,mBAAjBA,GAAgCA,GAAe,EACrEI,MAAO,EAEX,OAAOH,GAKX,QAASI,YAAWC,EAAaC,EAAUC,GACvCC,QAAQC,IAAIJ,GACTE,GAAOvB,kBACY,gBAAZsB,KACNI,OAAOH,QACPG,OAAOC,MACHL,EACA,SACCM,aAAe,EAAMC,QAAW,EAAGC,gBAAmB,EAAGC,cAAgB,KAOtF,QAASC,YAAWC,GACbA,EAAWf,MAAQe,EAAWpB,YAC7BoB,EAAWf,OAASe,EAAWnB,YAEhCmB,EAAWlB,cACVS,QAAQC,IAAIQ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AAO,WAAY4C,EAA2B,kBAAG,GAEpG,OAAO,GAEPM,EAAgB,WAShB,MARAJ,GAAaF,EAAkB,QAAGnB,GAC/BA,EAAWd,OAASkC,GACnB3B,OAAOiC,QACHP,EAAoB,UACpB,WACCxB,aAAe,EAAMC,QAAW,EAAGC,gBAAmB,EAAGC,cAAgB,KAG3E,EAEXM,MACItC,EACAuC,EACAmB,EACAC,EACAA,EACAzB,GAYR,QAAS2B,iBAAgB7D,EAAKwC,GAC1B,GAAIa,IACAN,QAAS,+CACTe,UAAW,+FACXC,iBAAkB,oHAClBC,QAAS,+FACTC,UAAW,kLACXrC,MAAO,wJAEPM,EAAa1B,gBAAgB,yBACjC4C,YAAWpD,GAAK,EAAMqD,EAAUb,EAAkBN,GAWtD,QAASgC,sBAAqBlE,EAAKwC,GAC/B,GAAIa,IACAN,QAAS,qCACTiB,QAAS,gGACTC,UAAW,uMACXrC,MAAO,oHAEPM,EAAa1B,gBAAgB,kBACjC4C,YAAWpD,GAAK,EAAOqD,EAAUb,EAAkBN"}
@@ -1 +1 @@
{"version":3,"file":"workflow-model.js","sources":["../../../src/mvc/workflow/workflow-model.js"],"names":["define","baseMVC","logNamespace","WorkflowItem","Backbone","Model","extend","LoggableMixin","_logNamespace","urlRoot","toJSON","workflow","this","attributes","WorkflowCollection","Collection","model","url"],"mappings":"AAAAA,QACI,gBACD,SAAUC,GAIb,GAAIC,GAAe,WAMfC,EAAeC,SAASC,MAAMC,OAAQL,EAAQM,eAAgBD,QAC9DE,cAAgBN,EAEhBO,QAAS,iBAETC,OAAQ,WAER,OAAQC,SAAWC,KAAKC,eAUxBC,EAAqBV,SAASW,WAAWT,QACzCU,MAAOb,EACPc,IAAK,kBAMT,QACId,aAAcA,EACdW,mBAAoBA"}
{"version":3,"file":"workflow-model.js","sources":["../../../src/mvc/workflow/workflow-model.js"],"names":["define","baseMVC","logNamespace","WorkflowItem","Backbone","Model","extend","LoggableMixin","_logNamespace","urlRoot","Galaxy","root","toJSON","workflow","this","attributes","WorkflowCollection","Collection","model","url"],"mappings":"AAAAA,QACI,gBACD,SAAUC,GAIb,GAAIC,GAAe,WAMfC,EAAeC,SAASC,MAAMC,OAAQL,EAAQM,eAAgBD,QAC9DE,cAAgBN,EAEhBO,QAASC,OAAOC,KAAO,gBAEvBC,OAAQ,WAER,OAAQC,SAAWC,KAAKC,eAUxBC,EAAqBZ,SAASa,WAAWX,QACzCY,MAAOf,EACPgB,IAAKT,OAAOC,KAAO,iBAMvB,QACIR,aAAcA,EACda,mBAAoBA"}
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"onload.js","sources":["../src/onload.js"],"names":["replace_big_select_inputs","min_length","max_length","select_elts","refresh_select2","element","select_elt","$","options","placeholder","closeOnSelect","is","dropdownAutoWidth","containerCssClass","select2","jQuery","fn","undefined","each","this","not","num_options","find","length","hasClass","init_refresh_on_change","off","change","select_field","select_val","val","ref_on_change_vals","attr","split","last_selected_value","inArray","window","trigger","document","get","form","submit","click","confirm","_","Backbone","panels","require","extend","async_save_text","POPUPMENU","make_popupmenu","make_popup_menus","init_tag_click_function","TOURS","QUERY_STRING","ready","tooltip","placement","anchor","galaxy_main_exists","parent","frames","galaxy_main","href","indexOf","et","JSON","parse","sessionStorage","getItem","hooked_tour_from_data","steps","self","top","tour","Tour","tour_opts","init","restart","getJSON","webhooks","webhook","activate","script","type","text","appendTo","styles"],"mappings":"AA6BA,QAASA,2BAA0BC,EAAYC,EAAYC,GAEvD,QAASC,GAAiBC,GACtB,GAAIC,GAAaC,EAAEF,GACfG,GAAYC,YAAY,kBACZC,eAAgBJ,EAAWK,GAAG,cAC9BC,mBAAsB,EACtBC,kBAAmB,mBAEnC,OAAOR,GAAQS,QAASN,GAIvBO,OAAOC,GAAGF,UAKIG,SAAfhB,IACAA,EAAa,IAEEgB,SAAff,IACAA,EAAa,KAGjBC,EAAcA,GAAeI,EAAE,UAE/BJ,EAAYe,KAAM,WACd,GAAIZ,GAAaC,EAAEY,MAAMC,IAAI,cAEz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f,OAAOgB,iBAAmBF,UAAUE,iBACpChB,OAAOiB,wBAA0BN,QAAS,qBAC1C,IAAIO,OAAQP,QAAS,aACjBQ,aAAeR,QAAS,6BAyG5BX,QAAOX,uBAAyBA,uBAEhClB,EAAE+B,UAAUkB,MAAO,WAEf/B,yBAGKlB,EAAES,GAAGyC,UAENlD,EAAE,iCAAiCkD,SAAWC,UAAW,WAIzDnD,EAAE,WAAWkD,WAGjBL,mBAGApD,0BAA0B,GAAI,MAI9BO,EAAE,KAAKmC,MAAO,WACV,GAAIiB,GAASpD,EAAEY,MACXyC,EAAsBC,OAAOC,QAAUD,OAAOC,OAAOC,WACzD,IAAkC,eAA3BJ,EAAO3B,KAAM,YAAoC4B,EAAuB,CAC3E,GAAII,GAAOL,EAAO3B,KAAK,OAEnBgC,IADqB,IAArBA,EAAKC,QAAQ,KACL,IAGA,IAEZD,GAAQ,kBACRL,EAAO3B,KAAK,OAAQgC,GACpBL,EAAO3B,KAAK,SAAU,SAE1B,MAAO2B,IAGX,IAAIO,GAAKC,KAAKC,MAAMC,eAAeC,QAAQ,oBAC3C,IAAIJ,IACAA,EAAKZ,MAAMiB,sBAAsBL,GAC7BA,GAAMA,EAAGM,OACLpC,QAAUA,OAAOqC,OAASrC,OAAOsC,KAAI,CAKrC,GAAIC,GAAO,GAAIC,MAAKhC,EAAEI,QAClBwB,MAAON,EAAGM,OACXlB,MAAMuB,WACTF,GAAKG,OACLH,EAAKI,UAMjBxE,EAAEyE,QAAQ,2BAA4B,SAASC,GAC3CrC,EAAE1B,KAAK+D,EAAU,SAASC,GAClBA,EAAQC,UAAYD,EAAQE,SAC5B7E,EAAE,aAAc8E,KAAM,oBAAoBC,KAAKJ,EAAQE,QAAQG,SAAS,QACxEhF,EAAE,YAAa8E,KAAM,aAAaC,KAAKJ,EAAQM,QAAQD,SAAS"}
{"version":3,"file":"onload.js","sources":["../src/onload.js"],"names":["replace_big_select_inputs","min_length","max_length","select_elts","refresh_select2","element","select_elt","$","options","placeholder","closeOnSelect","is","dropdownAutoWidth","containerCssClass","select2","jQuery","fn","undefined","each","this","not","num_options","find","length","hasClass","init_refresh_on_change","off","change","select_field","select_val","val","ref_on_change_vals","attr","split","last_selected_value","inArray","window","trigger","document","get","form","submit","click","confirm","_","Backbone","panels","require","extend","async_save_text","POPUPMENU","make_popupmenu","make_popup_menus","init_tag_click_function","TOURS","QUERY_STRING","ready","tooltip","placement","anchor","galaxy_main_exists","parent","frames","galaxy_main","href","indexOf","et","JSON","parse","sessionStorage","getItem","hooked_tour_from_data","steps","self","top","tour","Tour","tour_opts","init","restart","getJSON","Galaxy","root","webhooks","webhook","activate","script","type","text","appendTo","styles"],"mappings":"AA6BA,QAASA,2BAA0BC,EAAYC,EAAYC,GAEvD,QAASC,GAAiBC,GACtB,GAAIC,GAAaC,EAAEF,GACfG,GAAYC,YAAY,kBACZC,eAAgBJ,EAAWK,GAAG,cAC9BC,mBAAsB,EACtBC,kBAAmB,mBAEnC,OAAOR,GAAQS,QAASN,GAIvBO,OAAOC,GAAGF,UAKIG,SAAfhB,IACAA,EAAa,IAEEgB,SAAff,IACAA,EAAa,KAGjBC,EAAcA,GAAeI,EAAE,UAE/BJ,EAAYe,KAAM,WACd,GAAIZ,GAAaC,EAAEY,MAAMC,IAAI,cAEzBC,EAAcf,EAAWgB,KAAK,UAAUC,MACxBtB,GAAdoB,GAA8BA,EAAcnB,GAI9CI,EAAWkB,SAAS,oBAWxBpB,EAAiBE,MAKzB,QAASmB,0BACLlB,EAAE,oCACGmB,IAAI,UACJC,OAAO,WACJ,GAAIC,GAAerB,EAAEY,MACjBU,EAAaD,EAAaE,MAE1BC,EAAqBH,EAAaI,KAAK,2BAC3C,IAAID,EAAoB,CACpBA,EAAqBA,EAAmBE,MAAM,IAC9C,IAAIC,GAAsBN,EAAaI,KAAK,sBAC5C,IAAkD,KAA9CzB,EAAE4B,QAAQN,EAAYE,IAAqF,KAAvDxB,EAAE4B,QAAQD,EAAqBH,GACnF,OAGRxB,EAAE6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4B,EAAuB,CAC3E,GAAII,GAAOL,EAAO3B,KAAK,OAEnBgC,IADqB,IAArBA,EAAKC,QAAQ,KACL,IAGA,IAEZD,GAAQ,kBACRL,EAAO3B,KAAK,OAAQgC,GACpBL,EAAO3B,KAAK,SAAU,SAE1B,MAAO2B,IAGX,IAAIO,GAAKC,KAAKC,MAAMC,eAAeC,QAAQ,oBAC3C,IAAIJ,IACAA,EAAKZ,MAAMiB,sBAAsBL,GAC7BA,GAAMA,EAAGM,OACLpC,QAAUA,OAAOqC,OAASrC,OAAOsC,KAAI,CAKrC,GAAIC,GAAO,GAAIC,MAAKhC,EAAEI,QAClBwB,MAAON,EAAGM,OACXlB,MAAMuB,WACTF,GAAKG,OACLH,EAAKI,UAMjBxE,EAAEyE,QAASC,OAAOC,KAAO,2BAA4B,SAASC,GAC1DvC,EAAE1B,KAAKiE,EAAU,SAASC,GAClBA,EAAQC,UAAYD,EAAQE,SAC5B/E,EAAE,aAAcgF,KAAM,oBAAoBC,KAAKJ,EAAQE,QAAQG,SAAS,QACxElF,EAAE,YAAagF,KAAM,aAAaC,KAAKJ,EAAQM,QAAQD,SAAS"}
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 @@
function append_notebook(a){clear_main_area(),$("#main").append('<iframe frameBorder="0" seamless="seamless" style="width: 100%; height: 100%; overflow:hidden;" scrolling="no" src="'+a+'"></iframe>')}function clear_main_area(){$("#spinner").remove(),$("#main").children().remove()}function display_spinner(){$("#main").append('<img id="spinner" src="'+galaxy_root+'static/style/largespinner.gif" style="position:absolute;margin:auto;top:0;left:0;right:0;bottom:0;">')}function not_ready(a,b,c,d){0==b.count&&(display_spinner(),toastr.info("Galaxy is launching a container in which to run this interactive environment. Please wait...",{closeButton:!0,tapToDismiss:!1})),b.count++,b.time<c&&(b.time+=d),console.log("Readiness request "+b.count+" sleeping "+b.time/1e3+"s"),window.setTimeout(a,b.time)}function load_when_ready(a,b){var c=500,d=1e4,e=250,f={time:1e3,count:0},g=15e3,h=1e3,i=function(){$.ajax({url:a,xhrFields:{withCredentials:!0},type:"GET",timeout:c,dataType:"json",success:function(a){1==a?(console.log("Galaxy reports IE container ready, returning"),clear_main_area(),toastr.clear(),b()):0==a?not_ready(i,f,g,h):(clear_main_area(),toastr.clear(),toastr.error("Galaxy failed to launch a container in which to run this interactive environment, contact your administrator.","Error",{closeButton:!0,tapToDismiss:!1}))},error:function(a,b){"timeout"==b?(d>c&&(c+=e),not_ready(i,f,g,h)):(clear_main_area(),toastr.clear(),toastr.error("Galaxy encountered an error while attempting to determine the readiness of this interactive environment, contact your administrator.","Error",{closeButton:!0,tapToDismiss:!1}))}})};window.setTimeout(i,f.time)}function test_ie_availability(a,b){var c=0;display_spinner(),interval=setInterval(function(){$.ajax({url:a,xhrFields:{withCredentials:!0},type:"GET",timeout:500,success:function(){console.log("Connected to IE, returning"),clearInterval(interval),b()},error:function(){c++,console.log("Availability request "+c),c>30&&(clearInterval(interval),clear_main_area(),toastr.error("Could not connect to IE, contact your administrator","Error",{closeButton:!0,timeOut:2e4,tapToDismiss:!1}))}})},1e3)}
function append_notebook(a){clear_main_area(),$("#main").append('<iframe frameBorder="0" seamless="seamless" style="width: 100%; height: 100%; overflow:hidden;" scrolling="no" src="'+a+'"></iframe>')}function clear_main_area(){$("#spinner").remove(),$("#main").children().remove()}function display_spinner(){$("#main").append('<img id="spinner" src="'+galaxy_root+'static/style/largespinner.gif" style="position:absolute;margin:auto;top:0;left:0;right:0;bottom:0;">')}function make_spin_state(a,b,c,d,e,f,g,h){var i={type:"undefined"!=typeof a?a:"GIE spin",ajax_timeout:"undefined"!=typeof b?b:2e3,ajax_timeout_max:"undefined"!=typeof c?c:16e3,ajax_timeout_step:"undefined"!=typeof d?d:500,sleep:"undefined"!=typeof e?e:500,sleep_max:"undefined"!=typeof f?f:8e3,sleep_step:"undefined"!=typeof g?g:100,log_attempts:"undefined"!=typeof h?h:!0,count:0};return i}function spin_error(a,b,c){console.log(a),c&&clear_main_area(),"string"==typeof b&&(toastr.clear(),toastr.error(b,"Error",{closeButton:!0,timeOut:0,extendedTimeOut:0,tapToDismiss:!1}))}function spin_again(a){a.sleep<a.sleep_max&&(a.sleep+=a.sleep_step),a.log_attempts&&console.log(a.type+" request "+a.count+" request timeout "+a.ajax_timeout+"ms sleeping "+a.sleep/1e3+"s"),window.setTimeout(a.spinner,a.sleep)}function spin(a,b,c,d,e,f){var g=function(){var g={url:a,xhrFields:{withCredentials:!0},type:"GET",timeout:f.ajax_timeout,success:function(a,b,d){c(a,b,d)||spin_again(f)},error:function(a,b,c){"timeout"==b?(f.ajax_timeout<f.ajax_timeout_max&&(f.ajax_timeout+=f.ajax_timeout_step),f.count++,d(a,b,c)||spin_again(f)):(f.count++,e(a,b,c)||spin_again(f))}};b&&(g.dataType="json"),$.ajax(g)};console.log("Setting up new spinner for "+f.type+" on "+a),f.spinner=g,window.setTimeout(g,f.sleep)}function spin_until(a,b,c,d,e){var f=40,g=function(a,b){1==b.count&&(display_spinner(),toastr.info(a,null,{closeButton:!0,timeOut:0,extendedTimeOut:0,tapToDismiss:!1}))},h=function(a){if(!b||b&&1==a)console.log(c.success),clear_main_area(),toastr.clear(),d();else{if(b&&0==a)return g(c.not_ready,e),!1;spin_error("Invalid response to "+e.type+" request",c.invalid_response,!0)}return!0},i=function(){return g(c.waiting,e),e.count==f&&toastr.warning(c.wait_warn,"Warning",{closeButton:!0,timeOut:0,extendedTimeOut:0,tapToDismiss:!1}),!1};spin(a,b,h,i,i,e)}function load_when_ready(a,b){var c={success:"Galaxy reports IE container ready, returning",not_ready:"Galaxy is launching a container in which to run this interactive environment. Please wait...",unknown_response:"Galaxy failed to launch a container in which to run this interactive environment, contact a Galaxy administrator.",waiting:"Galaxy is launching a container in which to run this interactive environment. Please wait...",wait_warn:"It is taking an usually long time to start a container. Attempts will continue but you may want to report this condition to a Galaxy administrator if it does not succeed soon.",error:"Galaxy encountered an error while attempting to determine the readiness of this interactive environment's container, contact a Galaxy administrator."},d=make_spin_state("IE container readiness");spin_until(a,!0,c,b,d)}function test_ie_availability(a,b){var c={success:"IE connection succeeded, returning",waiting:"Interactive environment container is running, attempting to connect to the IE. Please wait...",wait_warn:"It is taking an usually long time to connect to the interactive environment. Attempts will continue but you may want to report this condition to a Galaxy administrator if it does not succeed soon.",error:"An error was encountered while attempting to connect to the interactive environment, contact your administrator."},d=make_spin_state("IE availability");spin_until(a,!1,c,b,d)}
//# sourceMappingURL=../maps/galaxy.interactive_environments.js.map
@@ -1,2 +1,2 @@
define(["mvc/base-mvc"],function(a){var b="workflow",c=Backbone.Model.extend(a.LoggableMixin).extend({_logNamespace:b,urlRoot:"/api/workflows",toJSON:function(){return{workflow:this.attributes}}}),d=Backbone.Collection.extend({model:c,url:"/api/workflows"});return{WorkflowItem:c,WorkflowCollection:d}});
define(["mvc/base-mvc"],function(a){var b="workflow",c=Backbone.Model.extend(a.LoggableMixin).extend({_logNamespace:b,urlRoot:Galaxy.root+"api/workflows",toJSON:function(){return{workflow:this.attributes}}}),d=Backbone.Collection.extend({model:c,url:Galaxy.root+"api/workflows"});return{WorkflowItem:c,WorkflowCollection:d}});
//# sourceMappingURL=../../../maps/mvc/workflow/workflow-model.js.map
+1 -1
View File
@@ -1,2 +1,2 @@
function replace_big_select_inputs(a,b,c){function d(a){var b=$(a),c={placeholder:"Click to select",closeOnSelect:!b.is("[MULTIPLE]"),dropdownAutoWidth:!0,containerCssClass:"select2-minwidth"};return a.select2(c)}jQuery.fn.select2&&(void 0===a&&(a=20),void 0===b&&(b=3e3),c=c||$("select"),c.each(function(){var c=$(this).not("[multiple]"),e=c.find("option").length;a>e||e>b||c.hasClass("no-autocomplete")||d(c)}))}function init_refresh_on_change(){$("select[refresh_on_change='true']").off("change").change(function(){var a=$(this),b=a.val(),c=a.attr("refresh_on_change_values");if(c){c=c.split(",");var d=a.attr("last_selected_value");if(-1===$.inArray(b,c)&&-1===$.inArray(d,c))return}$(window).trigger("refresh_on_change"),$(document).trigger("convert_to_values"),a.get(0).form.submit()}),$(":checkbox[refresh_on_change='true']").off("click").click(function(){var a=$(this),b=a.val(),c=a.attr("refresh_on_change_values");if(c){c=c.split(",");var d=a.attr("last_selected_value");if(-1===$.inArray(b,c)&&-1===$.inArray(d,c))return}$(window).trigger("refresh_on_change"),a.get(0).form.submit()}),$("a[confirm]").off("click").click(function(){return confirm($(this).attr("confirm"))})}window.jQuery=jQuery,window.$=jQuery,window._=_,window.Backbone=Backbone,window.panels=require("layout/panel"),_.extend(window,require("layout/modal")),window.async_save_text=require("utils/async-save-text");var POPUPMENU=require("ui/popupmenu");window.make_popupmenu=POPUPMENU.make_popupmenu,window.make_popup_menus=POPUPMENU.make_popup_menus,window.init_tag_click_function=require("ui/autocom_tagging");var TOURS=require("mvc/tours"),QUERY_STRING=require("utils/query-string-parsing");window.init_refresh_on_change=init_refresh_on_change,$(document).ready(function(){init_refresh_on_change(),$.fn.tooltip&&($(".unified-panel-header [title]").tooltip({placement:"bottom"}),$("[title]").tooltip()),make_popup_menus(),replace_big_select_inputs(20,1500),$("a").click(function(){var a=$(this),b=parent.frames&&parent.frames.galaxy_main;if("galaxy_main"==a.attr("target")&&!b){var c=a.attr("href");c+=-1==c.indexOf("?")?"?":"&",c+="use_panels=True",a.attr("href",c),a.attr("target","_self")}return a});var a=JSON.parse(sessionStorage.getItem("activeGalaxyTour"));if(a&&(a=TOURS.hooked_tour_from_data(a),a&&a.steps&&window&&window.self===window.top)){var b=new Tour(_.extend({steps:a.steps},TOURS.tour_opts));b.init(),b.restart()}$.getJSON("/api/webhooks/onload/all",function(a){_.each(a,function(a){a.activate&&a.script&&($("<script/>",{type:"text/javascript"}).text(a.script).appendTo("head"),$("<style/>",{type:"text/css"}).text(a.styles).appendTo("head"))})})});
function replace_big_select_inputs(a,b,c){function d(a){var b=$(a),c={placeholder:"Click to select",closeOnSelect:!b.is("[MULTIPLE]"),dropdownAutoWidth:!0,containerCssClass:"select2-minwidth"};return a.select2(c)}jQuery.fn.select2&&(void 0===a&&(a=20),void 0===b&&(b=3e3),c=c||$("select"),c.each(function(){var c=$(this).not("[multiple]"),e=c.find("option").length;a>e||e>b||c.hasClass("no-autocomplete")||d(c)}))}function init_refresh_on_change(){$("select[refresh_on_change='true']").off("change").change(function(){var a=$(this),b=a.val(),c=a.attr("refresh_on_change_values");if(c){c=c.split(",");var d=a.attr("last_selected_value");if(-1===$.inArray(b,c)&&-1===$.inArray(d,c))return}$(window).trigger("refresh_on_change"),$(document).trigger("convert_to_values"),a.get(0).form.submit()}),$(":checkbox[refresh_on_change='true']").off("click").click(function(){var a=$(this),b=a.val(),c=a.attr("refresh_on_change_values");if(c){c=c.split(",");var d=a.attr("last_selected_value");if(-1===$.inArray(b,c)&&-1===$.inArray(d,c))return}$(window).trigger("refresh_on_change"),a.get(0).form.submit()}),$("a[confirm]").off("click").click(function(){return confirm($(this).attr("confirm"))})}window.jQuery=jQuery,window.$=jQuery,window._=_,window.Backbone=Backbone,window.panels=require("layout/panel"),_.extend(window,require("layout/modal")),window.async_save_text=require("utils/async-save-text");var POPUPMENU=require("ui/popupmenu");window.make_popupmenu=POPUPMENU.make_popupmenu,window.make_popup_menus=POPUPMENU.make_popup_menus,window.init_tag_click_function=require("ui/autocom_tagging");var TOURS=require("mvc/tours"),QUERY_STRING=require("utils/query-string-parsing");window.init_refresh_on_change=init_refresh_on_change,$(document).ready(function(){init_refresh_on_change(),$.fn.tooltip&&($(".unified-panel-header [title]").tooltip({placement:"bottom"}),$("[title]").tooltip()),make_popup_menus(),replace_big_select_inputs(20,1500),$("a").click(function(){var a=$(this),b=parent.frames&&parent.frames.galaxy_main;if("galaxy_main"==a.attr("target")&&!b){var c=a.attr("href");c+=-1==c.indexOf("?")?"?":"&",c+="use_panels=True",a.attr("href",c),a.attr("target","_self")}return a});var a=JSON.parse(sessionStorage.getItem("activeGalaxyTour"));if(a&&(a=TOURS.hooked_tour_from_data(a),a&&a.steps&&window&&window.self===window.top)){var b=new Tour(_.extend({steps:a.steps},TOURS.tour_opts));b.init(),b.restart()}$.getJSON(Galaxy.root+"/api/webhooks/onload/all",function(a){_.each(a,function(a){a.activate&&a.script&&($("<script/>",{type:"text/javascript"}).text(a.script).appendTo("head"),$("<style/>",{type:"text/css"}).text(a.styles).appendTo("head"))})})});
//# sourceMappingURL=../maps/onload.js.map
@@ -1 +1 @@
{"version":3,"file":"group-detail-view.js","sources":["../../../src/mvc/groups/group-detail-view.js"],"names":["define","mod_toastr","mod_group_model","GroupDetailView","Backbone","View","extend","el","options","app","initialize","this","_","window","globalTS","groups","collection","model","get","group_id","render","fetchGroup","that","Group","id","fetch","success","console","log","error","response","responseJSON","err_msg","template","templateRow","$el","html","group","$","tooltip","css","join"],"mappings":"AAAAA,QACI,cACA,2CAEJ,SACIC,EACAC,GAIJ,GAAIC,GAAkBC,SAASC,KAAKC,QAChCC,GAAI,kBACJC,WACAC,IAAK,KAELC,WAAa,SAAUF,GACnBG,KAAKH,QAAUI,EAAEN,OAAQK,KAAKH,QAASA,GACvCG,KAAKF,IAAMI,OAAOC,SAASC,OAEE,OAAxBJ,KAAKF,IAAIO,YACVL,KAAKM,MAAQN,KAAKF,IAAIO,WAAWE,IAAKP,KAAKH,QAAQW,UACnDR,KAAKS,UAELT,KAAKU,cAKbA,WAAY,SAAUb,GAClB,GAAIc,GAAOX,IACXA,MAAKH,QAAUI,EAAEN,OAAQK,KAAKH,QAASA,GACvCG,KAAKM,MAAQ,GAAIf,GAAgBqB,OAASC,GAAIb,KAAKH,QAAQW,WAC3DR,KAAKM,MAAMQ,OACTC,QAAS,SAAUT,GACjBU,QAAQC,IAAK,mBACbD,QAAQC,IAAKX,GACbK,EAAKF,UAEPS,MAAO,SAAUZ,EAAOa,GAElB7B,EAAW4B,MADyB,mBAA1BC,GAASC,aACDD,EAASC,aAAaC,QAEtB,yBAM9BZ,OAAQ,WACJ,GAAIa,GAAWtB,KAAKuB,aACpBvB,MAAKwB,IAAIC,KAAMH,GAAYI,MAAO1B,KAAKM,SACvCqB,EAAG,yBAA0BC,UAC7BD,EAAG,WAAYE,IAAK,WAAW,SAGnCN,YAAa,WACT,MAAOtB,GAAEqB,UACD,QACI,oCACA,mCACA,qMAEA,mBACA,6CACI,UACI,gBACA,wBACA,sBACJ,WACA,UACI,wDACA,OACI,OACI,yBACJ,QACA,OACI,gPACJ,QACA,OACI,6BACJ,QACJ,QACA,YACJ,WACJ,WAEA,wBACA,6CACI,UACI,gBACA,uBACA,kBACA,iBACA,sBACA,mBACA,mBACA,kBACA,oBACJ,WACA,UACI,2DACI,OACI,OACI,6KACJ,QACA,OACI,0BACJ,QACA,OACI,+BACJ,QACA,OACI,oBACJ,QACA,OACI,kDACI,qMAEJ,YACJ,QACA,wFACI,2BACJ,QACA,wFACI,2BACJ,QACA,OACI,2BACJ,QACA,OACI,uBACJ,QACJ,QACJ,YACJ,WACJ,WACJ,UACNQ,KAAK,OAGf,QACItC,gBAAiBA"}
{"version":3,"file":"group-detail-view.js","sources":["../../../src/mvc/groups/group-detail-view.js"],"names":["define","mod_toastr","mod_group_model","GroupDetailView","Backbone","View","extend","el","options","app","initialize","this","_","window","globalTS","groups","collection","model","get","group_id","render","fetchGroup","that","Group","id","fetch","success","console","log","error","response","responseJSON","err_msg","template","templateRow","$el","html","group","$","tooltip","css","join"],"mappings":"AAAAA,QACI,cACA,2CAEJ,SACIC,EACAC,GAIJ,GAAIC,GAAkBC,SAASC,KAAKC,QAChCC,GAAI,kBACJC,WACAC,IAAK,KAELC,WAAa,SAAUF,GACnBG,KAAKH,QAAUI,EAAEN,OAAQK,KAAKH,QAASA,GACvCG,KAAKF,IAAMI,OAAOC,SAASC,OAEE,OAAxBJ,KAAKF,IAAIO,YACVL,KAAKM,MAAQN,KAAKF,IAAIO,WAAWE,IAAKP,KAAKH,QAAQW,UACnDR,KAAKS,UAELT,KAAKU,cAKbA,WAAY,SAAUb,GAClB,GAAIc,GAAOX,IACXA,MAAKH,QAAUI,EAAEN,OAAQK,KAAKH,QAASA,GACvCG,KAAKM,MAAQ,GAAIf,GAAgBqB,OAASC,GAAIb,KAAKH,QAAQW,WAC3DR,KAAKM,MAAMQ,OACTC,QAAS,SAAUT,GACjBU,QAAQC,IAAK,mBACbD,QAAQC,IAAKX,GACbK,EAAKF,UAEPS,MAAO,SAAUZ,EAAOa,GAElB7B,EAAW4B,MADyB,mBAA1BC,GAASC,aACDD,EAASC,aAAaC,QAEtB,0BAM9BZ,OAAQ,WACJ,GAAIa,GAAWtB,KAAKuB,aACpBvB,MAAKwB,IAAIC,KAAMH,GAAYI,MAAO1B,KAAKM,SACvCqB,EAAG,yBAA0BC,UAC7BD,EAAG,WAAYE,IAAK,WAAW,SAGnCN,YAAa,WACT,MAAOtB,GAAEqB,UACD,QACI,8CACA,mCACA,qMAEA,mBACA,6CACI,UACI,gBACA,wBACA,sBACJ,WACA,UACI,wDACA,OACI,OACI,mCACJ,QACA,OACI,0PACJ,QACA,OACI,6BACJ,QACJ,QACA,YACJ,WACJ,WAEA,wBACA,6CACI,UACI,gBACA,uBACA,kBACA,iBACA,sBACA,mBACA,mBACA,kBACA,oBACJ,WACA,UACI,2DACI,OACI,OACI,oNACJ,QACA,OACI,oCACJ,QACA,OACI,+BACJ,QACA,OACI,8BACJ,QACA,OACI,kDACI,qMAEJ,YACJ,QACA,wFACI,2BACJ,QACA,wFACI,2BACJ,QACA,OACI,2BACJ,QACA,OACI,uBACJ,QACJ,QACJ,YACJ,WACJ,WACJ,UACNQ,KAAK,OAGf,QACItC,gBAAiBA"}
@@ -1 +1 @@
{"version":3,"file":"group-list-view.js","sources":["../../../src/mvc/groups/group-list-view.js"],"names":["define","mod_toastr","mod_group_model","mod_group_row","GroupListView","Backbone","View","extend","el","defaults","initialize","options","this","_","that","window","globalTS","groups","collection","Groups","fetch","success","model","console","log","render","error","response","responseJSON","err_msg","$","hide","template","templateGroupsList","$el","html","length","models","renderRows","tooltip","css","groups_to_render","i","group","renderOne","rowView","GroupListRowView","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C,KAAK,uCAChBD,WAAWC,KAAK,iBAChBD,WAAWC,KAAK,8CAChBD,WAAWC,KAAK,cAChBD,WAAWC,KAAK,sBAEhBD,WAAWC,KAAK,0BAChBD,WAAWC,KAAK,8BAChBD,WAAWC,KAAK,eAChBD,WAAWC,KAAK,mCAEhBD,WAAWC,KAAK,eAChBD,WAAWC,KAAK,YAChBD,WAAWC,KAAK,UAChBD,WAAWC,KAAK,UAETrC,EAAEmB,SAASiB,WAAWE,KAAK,OAK1C,QACI/C,cAAeA"}
{"version":3,"file":"group-list-view.js","sources":["../../../src/mvc/groups/group-list-view.js"],"names":["define","mod_toastr","mod_group_model","mod_group_row","GroupListView","Backbone","View","extend","el","defaults","initialize","options","this","_","that","window","globalTS","groups","collection","Groups","fetch","success","model","console","log","render","error","response","responseJSON","err_msg","$","hide","template","templateGroupsList","$el","html","length","models","renderRows","tooltip","css","groups_to_render","i","group","renderOne","rowView","GroupListRowView","find","append","tmpl_array","push","join"],"mappings":"AAAAA,QACI,cACA,0CACA,kDAED,SACCC,EACAC,EACAC,GAGJ,GAAIC,GAAgBC,SAASC,KAAKC,QAC9BC,GAAI,kBACJC,YAOAC,WAAa,SAAUC,GACnBC,KAAKD,QAAUE,EAAEJ,SAAUG,KAAKD,YAAeC,KAAKH,SAAUE,EAC9D,IAAIG,GAAOF,IACXG,QAAOC,SAASC,OAAOC,WAAa,GAAIhB,GAAgBiB,OACxDJ,OAAOC,SAASC,OAAOC,WAAWE,OAChCC,QAAS,SAAUC,GACjBC,QAAQC,IAAK,mBACbD,QAAQC,IAAKF,GACbR,EAAKW,UAEPC,MAAO,SAAUJ,EAAOK,GAElB1B,EAAWyB,MADyB,mBAA1BC,GAASC,aACDD,EAASC,aAAaC,QAEtB,0BAO9BT,MAAO,aAMPK,OAAQ,SAAWd,GACfC,KAAKD,QAAUE,EAAEN,OAAQK,KAAKD,QAASA,GACvCmB,EAAG,YAAaC,MAChB,IAAIC,GAAWpB,KAAKqB,oBACpBrB,MAAKsB,IAAIC,KAAMH,GAAYI,OAAQrB,OAAOC,SAASC,OAAOC,WAAWmB,OAAOD,UAC5ExB,KAAK0B,WAAYvB,OAAOC,SAASC,OAAOC,WAAWmB,QACnDP,EAAG,yBAA0BS,UAC7BT,EAAG,WAAYU,IAAK,WAAW,SAOnCF,WAAY,SAAUG,GAClB,IAAM,GAAIC,GAAI,EAAGA,EAAID,EAAiBL,OAAQM,IAAM,CAChD,GAAIC,GAAQF,EAAiBC,EAC7B9B,MAAKgC,WAAaD,MAAOA,MAQjCC,UAAW,SAAUjC,GACjB,GAAIkC,GAAU,GAAI1C,GAAc2C,iBAAkBnC,EAClDC,MAAKsB,IAAIa,KAAM,oBAAqBC,OAAQH,EAAQrC,KAkCxDyB,mBAAoB,WAChB,GAAIgB,KAsBJ,OApBAA,GAAWC,KAAK,qBAChBD,EAAWC,KAAK,UAChBD,EAAWC,KAAK,mDAChBD,EAAWC,KAAK,4BAChBD,EAAWC,KAAK,uCAChBD,EAAWC,KAAK,iBAChBD,EAAWC,KAAK,8CAChBD,EAAWC,KAAK,cAChBD,EAAWC,KAAK,sBAEhBD,EAAWC,KAAK,0BAChBD,EAAWC,KAAK,8BAChBD,EAAWC,KAAK,eAChBD,EAAWC,KAAK,mCAEhBD,EAAWC,KAAK,eAChBD,EAAWC,KAAK,YAChBD,EAAWC,KAAK,UAChBD,EAAWC,KAAK,UAETrC,EAAEmB,SAASiB,EAAWE,KAAK,OAK1C,QACI/C,cAAeA"}
@@ -1 +1 @@
{"version":3,"file":"group-listrow-view.js","sources":["../../../src/mvc/groups/group-listrow-view.js"],"names":["define","GroupListRowView","Backbone","View","extend","events","initialize","options","this","render","group","tmpl","templateRow","setElement","$el","show","_","template","join"],"mappings":"AAAAA,UACA,WAGA,GAAIC,GAAmBC,SAASC,KAAKC,QACjCC,UAEAC,WAAa,SAAUC,GACnBC,KAAKC,OAAQF,EAAQG,QAGzBD,OAAQ,SAAUC,GACd,GAAIC,GAAOH,KAAKI,aAGhB,OAFAJ,MAAKK,WAAWF,GAAQD,MAAMA,KAC9BF,KAAKM,IAAIC,OACFP,MAGXI,YAAa,WACT,MAAOI,GAAEC,UACD,iDACA,iFAEA,6CACA,2CACA,SACNC,KAAK,OAKf,QACIjB,iBAAkBA"}
{"version":3,"file":"group-listrow-view.js","sources":["../../../src/mvc/groups/group-listrow-view.js"],"names":["define","GroupListRowView","Backbone","View","extend","events","initialize","options","this","render","group","tmpl","templateRow","setElement","$el","show","_","template","join"],"mappings":"AAAAA,UACA,WAGA,GAAIC,GAAmBC,SAASC,KAAKC,QACjCC,UAEAC,WAAa,SAAUC,GACnBC,KAAKC,OAAQF,EAAQG,QAGzBD,OAAQ,SAAUC,GACd,GAAIC,GAAOH,KAAKI,aAGhB,OAFAJ,MAAKK,WAAWF,GAAQD,MAAMA,KAC9BF,KAAKM,IAAIC,OACFP,MAGXI,YAAa,WACT,MAAOI,GAAEC,UACD,iDACA,2FAEA,6CACA,2CACA,SACNC,KAAK,OAKf,QACIjB,iBAAkBA"}
@@ -1 +1 @@
{"version":3,"file":"group-model.js","sources":["../../../src/mvc/groups/group-model.js"],"names":["define","Group","Backbone","Model","extend","urlRoot","Groups","Collection","url","model"],"mappings":"AAAAA,UAAW,WAKP,GAAIC,GAAQC,SAASC,MAAMC,QACzBC,QAAS,gBAGPC,EAASJ,SAASK,WAAWH,QAC/BI,IAAK,cAELC,MAAOR,GAIb,QACIA,MAAOA,EACPK,OAAQA"}
{"version":3,"file":"group-model.js","sources":["../../../src/mvc/groups/group-model.js"],"names":["define","Group","Backbone","Model","extend","urlRoot","Galaxy","root","Groups","Collection","url","model"],"mappings":"AAAAA,UAAW,WAKP,GAAIC,GAAQC,SAASC,MAAMC,QACzBC,QAASC,OAAOC,KAAO,eAGrBC,EAASN,SAASO,WAAWL,QAC/BM,IAAKJ,OAAOC,KAAO,aAEnBI,MAAOV,GAIb,QACIA,MAAOA,EACPO,OAAQA"}
@@ -1,2 +1,2 @@
define(["libs/toastr","toolshed/scripts/mvc/groups/group-model"],function(a,b){var c=Backbone.View.extend({el:"#groups_element",options:{},app:null,initialize:function(a){this.options=_.extend(this.options,a),this.app=window.globalTS.groups,null!==this.app.collection?(this.model=this.app.collection.get(this.options.group_id),this.render()):this.fetchGroup()},fetchGroup:function(c){var d=this;this.options=_.extend(this.options,c),this.model=new b.Group({id:this.options.group_id}),this.model.fetch({success:function(a){console.log("received data: "),console.log(a),d.render()},error:function(b,c){a.error("undefined"!=typeof c.responseJSON?c.responseJSON.err_msg:"An error occurred.")}})},render:function(){var a=this.templateRow();this.$el.html(a({group:this.model})),$("#center [data-toggle]").tooltip(),$("#center").css("overflow","auto")},templateRow:function(){return _.template(["<div>",'<h3><%= group.get("name") %></h3>','<p class="" style="color:gray;">','A group of <%= group.get("members").length %> members with <%= group.get("repositories").length %> repositories and a total of <%= group.get("total_downloads") %> combined repository clones.</p>',"<h3>Members</h3>",'<table class="grid table table-condensed">',"<thead>","<th>Name</th>","<th>Repositories</th>","<th>Registered</th>","</thead>","<tbody>",'<% _.each(group.get("members"), function(member) { %>',"<tr>","<td>","<%= member.username %>","</td>","<td>",'<a data-toggle="tooltip" data-placement="top" title="Repositories of <%= member.username %>" href="/repository/browse_repositories_by_user?user_id=<%= member.id %>&use_panels=true" id="<%= member.id %>"><%= member.user_repos_count %></a>',"</td>","<td>","<%= member.time_created %>","</td>","</tr>","<% }); %>","</tbody>","</table>","<h3>Repositories</h3>",'<table class="grid table table-condensed">',"<thead>","<th>Name</th>","<th>Description</th>","<th>Clones</th>","<th>Owner</th>","<th>Categories</th>","<th>Created</th>","<th>Updated</th>","<th>Rating</th>","<th>Verified</th>","</thead>","<tbody>",'<% _.each(group.get("repositories"), function(repo) { %>',"<tr>","<td>",'<a data-toggle="tooltip" data-placement="top" title="Details of <%= repo.name %>" href="/view/<%= repo.owner %>/<%= repo.name %>" id="<%= repo.id %>"><%= repo.name %></a>',"</td>","<td>","<%= repo.description %>","</td>","<td>","<%= repo.times_downloaded %>","</td>","<td>","<%= repo.owner %>","</td>","<td>","<% _.each((repo.categories), function(cat) { %>",'<a data-toggle="tooltip" data-placement="top" title="Repositories in <%= cat.name %>" href="/repository/browse_repositories_in_category?id=<%= cat.id %>&use_panels=true"><%= cat.name %></a><br/>',"<% }); %>","</td>",'<td data-toggle="tooltip" data-placement="top" title="<%= repo.time_created_full %>">',"<%= repo.time_created %>","</td>",'<td data-toggle="tooltip" data-placement="top" title="<%= repo.time_updated_full %>">',"<%= repo.time_updated %>","</td>","<td>","<%= repo.ratings_mean %>","</td>","<td>","<%= repo.approved %>","</td>","</tr>","<% }); %>","</tbody>","</table>","</div>"].join(""))}});return{GroupDetailView:c}});
define(["libs/toastr","toolshed/scripts/mvc/groups/group-model"],function(a,b){var c=Backbone.View.extend({el:"#groups_element",options:{},app:null,initialize:function(a){this.options=_.extend(this.options,a),this.app=window.globalTS.groups,null!==this.app.collection?(this.model=this.app.collection.get(this.options.group_id),this.render()):this.fetchGroup()},fetchGroup:function(c){var d=this;this.options=_.extend(this.options,c),this.model=new b.Group({id:this.options.group_id}),this.model.fetch({success:function(a){console.log("received data: "),console.log(a),d.render()},error:function(b,c){a.error("undefined"!=typeof c.responseJSON?c.responseJSON.err_msg:"An error occurred.")}})},render:function(){var a=this.templateRow();this.$el.html(a({group:this.model})),$("#center [data-toggle]").tooltip(),$("#center").css("overflow","auto")},templateRow:function(){return _.template(["<div>",'<h3><%= _.escape(group.get("name")) %></h3>','<p class="" style="color:gray;">','A group of <%= group.get("members").length %> members with <%= group.get("repositories").length %> repositories and a total of <%= group.get("total_downloads") %> combined repository clones.</p>',"<h3>Members</h3>",'<table class="grid table table-condensed">',"<thead>","<th>Name</th>","<th>Repositories</th>","<th>Registered</th>","</thead>","<tbody>",'<% _.each(group.get("members"), function(member) { %>',"<tr>","<td>","<%= _.escape(member.username) %>","</td>","<td>",'<a data-toggle="tooltip" data-placement="top" title="Repositories of <%= _.escape(member.username) %>" href="/repository/browse_repositories_by_user?user_id=<%= member.id %>&use_panels=true" id="<%= member.id %>"><%= member.user_repos_count %></a>',"</td>","<td>","<%= member.time_created %>","</td>","</tr>","<% }); %>","</tbody>","</table>","<h3>Repositories</h3>",'<table class="grid table table-condensed">',"<thead>","<th>Name</th>","<th>Description</th>","<th>Clones</th>","<th>Owner</th>","<th>Categories</th>","<th>Created</th>","<th>Updated</th>","<th>Rating</th>","<th>Verified</th>","</thead>","<tbody>",'<% _.each(group.get("repositories"), function(repo) { %>',"<tr>","<td>",'<a data-toggle="tooltip" data-placement="top" title="Details of <%= _.escape(repo.name) %>" href="/view/<%= _.escape(repo.owner) %>/<%= _escape(repo.name) %>" id="<%= repo.id %>"><%= _.escape(repo.name) %></a>',"</td>","<td>","<%= _.escape(repo.description) %>","</td>","<td>","<%= repo.times_downloaded %>","</td>","<td>","<%= _.escape(repo.owner) %>","</td>","<td>","<% _.each((repo.categories), function(cat) { %>",'<a data-toggle="tooltip" data-placement="top" title="Repositories in <%= cat.name %>" href="/repository/browse_repositories_in_category?id=<%= cat.id %>&use_panels=true"><%= cat.name %></a><br/>',"<% }); %>","</td>",'<td data-toggle="tooltip" data-placement="top" title="<%= repo.time_created_full %>">',"<%= repo.time_created %>","</td>",'<td data-toggle="tooltip" data-placement="top" title="<%= repo.time_updated_full %>">',"<%= repo.time_updated %>","</td>","<td>","<%= repo.ratings_mean %>","</td>","<td>","<%= repo.approved %>","</td>","</tr>","<% }); %>","</tbody>","</table>","</div>"].join(""))}});return{GroupDetailView:c}});
//# sourceMappingURL=../../../maps/mvc/groups/group-detail-view.js.map
@@ -1,2 +1,2 @@
define(["libs/toastr","toolshed/scripts/mvc/groups/group-model","toolshed/scripts/mvc/groups/group-listrow-view"],function(a,b,c){var d=Backbone.View.extend({el:"#groups_element",defaults:{},initialize:function(c){this.options=_.defaults(this.options||{},this.defaults,c);var d=this;window.globalTS.groups.collection=new b.Groups,window.globalTS.groups.collection.fetch({success:function(a){console.log("received data: "),console.log(a),d.render()},error:function(b,c){a.error("undefined"!=typeof c.responseJSON?c.responseJSON.err_msg:"An error occurred.")}})},fetch:function(){},render:function(a){this.options=_.extend(this.options,a),$(".tooltip").hide();var b=this.templateGroupsList();this.$el.html(b({length:window.globalTS.groups.collection.models.length})),this.renderRows(window.globalTS.groups.collection.models),$("#center [data-toggle]").tooltip(),$("#center").css("overflow","auto")},renderRows:function(a){for(var b=0;b<a.length;b++){var c=a[b];this.renderOne({group:c})}},renderOne:function(a){var b=new c.GroupListRowView(a);this.$el.find("#group_list_body").append(b.el)},templateGroupsList:function(){return tmpl_array=[],tmpl_array.push('<div id="groups">'),tmpl_array.push("</div>"),tmpl_array.push('<div class="groups_container table-responsive">'),tmpl_array.push("<% if(length === 0) { %>"),tmpl_array.push("<div>There are no groups yet.</div>"),tmpl_array.push("<% } else{ %>"),tmpl_array.push('<table class="grid table table-condensed">'),tmpl_array.push(" <thead>"),tmpl_array.push(" <th>Name</th>"),tmpl_array.push(" <th>Members</th> "),tmpl_array.push(" <th>Repositories</th>"),tmpl_array.push(" </thead>"),tmpl_array.push(' <tbody id="group_list_body">'),tmpl_array.push(" </tbody>"),tmpl_array.push("</table>"),tmpl_array.push("<% }%>"),tmpl_array.push("</div>"),_.template(tmpl_array.join(""))}});return{GroupListView:d}});
define(["libs/toastr","toolshed/scripts/mvc/groups/group-model","toolshed/scripts/mvc/groups/group-listrow-view"],function(a,b,c){var d=Backbone.View.extend({el:"#groups_element",defaults:{},initialize:function(c){this.options=_.defaults(this.options||{},this.defaults,c);var d=this;window.globalTS.groups.collection=new b.Groups,window.globalTS.groups.collection.fetch({success:function(a){console.log("received data: "),console.log(a),d.render()},error:function(b,c){a.error("undefined"!=typeof c.responseJSON?c.responseJSON.err_msg:"An error occurred.")}})},fetch:function(){},render:function(a){this.options=_.extend(this.options,a),$(".tooltip").hide();var b=this.templateGroupsList();this.$el.html(b({length:window.globalTS.groups.collection.models.length})),this.renderRows(window.globalTS.groups.collection.models),$("#center [data-toggle]").tooltip(),$("#center").css("overflow","auto")},renderRows:function(a){for(var b=0;b<a.length;b++){var c=a[b];this.renderOne({group:c})}},renderOne:function(a){var b=new c.GroupListRowView(a);this.$el.find("#group_list_body").append(b.el)},templateGroupsList:function(){var a=[];return a.push('<div id="groups">'),a.push("</div>"),a.push('<div class="groups_container table-responsive">'),a.push("<% if(length === 0) { %>"),a.push("<div>There are no groups yet.</div>"),a.push("<% } else{ %>"),a.push('<table class="grid table table-condensed">'),a.push(" <thead>"),a.push(" <th>Name</th>"),a.push(" <th>Members</th> "),a.push(" <th>Repositories</th>"),a.push(" </thead>"),a.push(' <tbody id="group_list_body">'),a.push(" </tbody>"),a.push("</table>"),a.push("<% }%>"),a.push("</div>"),_.template(a.join(""))}});return{GroupListView:d}});
//# sourceMappingURL=../../../maps/mvc/groups/group-list-view.js.map
@@ -1,2 +1,2 @@
define([],function(){var a=Backbone.View.extend({events:{},initialize:function(a){this.render(a.group)},render:function(a){var b=this.templateRow();return this.setElement(b({group:a})),this.$el.show(),this},templateRow:function(){return _.template(['<tr class="" data-id="<%- group.get("id") %>">','<td><a href="groups#/<%= group.get("id") %>"><%= group.get("name") %></a></td>','<td><%= group.get("total_members") %></td>','<td><%= group.get("total_repos") %></td>',"</tr>"].join(""))}});return{GroupListRowView:a}});
define([],function(){var a=Backbone.View.extend({events:{},initialize:function(a){this.render(a.group)},render:function(a){var b=this.templateRow();return this.setElement(b({group:a})),this.$el.show(),this},templateRow:function(){return _.template(['<tr class="" data-id="<%- group.get("id") %>">','<td><a href="groups#/<%= group.get("id") %>"><%= _.escape(group.get("name")) %></a></td>','<td><%= group.get("total_members") %></td>','<td><%= group.get("total_repos") %></td>',"</tr>"].join(""))}});return{GroupListRowView:a}});
//# sourceMappingURL=../../../maps/mvc/groups/group-listrow-view.js.map
@@ -1,2 +1,2 @@
define([],function(){var a=Backbone.Model.extend({urlRoot:"/api/groups"}),b=Backbone.Collection.extend({url:"/api/groups",model:a});return{Group:a,Groups:b}});
define([],function(){var a=Backbone.Model.extend({urlRoot:Galaxy.root+"api/groups"}),b=Backbone.Collection.extend({url:Galaxy.root+"api/groups",model:a});return{Group:a,Groups:b}});
//# sourceMappingURL=../../../maps/mvc/groups/group-model.js.map