Client: remove IE7/8 and excanvas polyfills

This commit is contained in:
carlfeberhard
2015-11-24 16:12:31 -05:00
parent d921b42431
commit 9f91b82245
37 changed files with 56435 additions and 6485 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 B

File diff suppressed because it is too large Load Diff
-166
View File
@@ -1,166 +0,0 @@
// =========================================================================
// ie7-recalc.js
// =========================================================================
(function() {
/* ---------------------------------------------------------------------
This allows refreshing of IE7 style rules. If you modify the DOM
you can update IE7 by calling document.recalc().
This should be the LAST module included.
--------------------------------------------------------------------- */
if (!IE7.loaded) return;
// remove all IE7 classes from an element
CLASSES = /\sie7_class\d+/g;
IE7.CSS.extend({
// store for elements that have style properties calculated
elements: {},
handlers: [],
// clear IE7 classes and styles
reset: function() {
this.removeEventHandlers();
// reset IE7 classes here
var elements = this.elements;
for (var i in elements) elements[i].runtimeStyle.cssText = "";
this.elements = {};
// reset runtimeStyle here
var elements = IE7.Rule.elements;
for (var i in elements) {
with (elements[i]) className = className.replace(CLASSES, "");
}
IE7.Rule.elements = {};
},
reload: function() {
this.rules = [];
this.getInlineStyles();
this.screen.load();
if (this.print) this.print.load();
this.refresh();
this.trash();
},
addRecalc: function(propertyName, test, handler, replacement) {
// call the ancestor method to add a wrapped recalc method
this.base(propertyName, test, function(element) {
// execute the original recalc method
handler(element);
// store a reference to this element so we can clear its style later
IE7.CSS.elements[element.uniqueID] = element;
}, replacement);
},
recalc: function() {
// clear IE7 styles and classes
this.reset();
// execute the ancestor method to perform recalculations
this.base();
},
addEventHandler: function(element, type, handler) {
element.attachEvent(type, handler);
// store the handler so it can be detached later
this.handlers.push(arguments);
},
removeEventHandlers: function() {
var handler;
while (handler = this.handlers.pop()) {
handler[0].detachEvent(handler[1], handler[2]);
}
},
getInlineStyles: function() {
// load inline styles
var styleSheets = document.getElementsByTagName("style"), styleSheet;
for (var i = styleSheets.length - 1; (styleSheet = styleSheets[i]); i--) {
if (!styleSheet.disabled && !styleSheet.ie7) {
var cssText = styleSheet.cssText || styleSheet.innerHTML;
this.styles.push(cssText);
styleSheet.cssText = cssText;
}
}
},
trash: function() {
// trash the old style sheets
var styleSheets = document.styleSheets, styleSheet, i;
for (i = 0; i < styleSheets.length; i++) {
styleSheet = styleSheets[i];
if (!styleSheet.ie7 && !styleSheet.cssText) {
styleSheet.cssText = styleSheet.cssText;
}
}
this.base();
},
getText: function(styleSheet) {
return styleSheet.cssText || this.base(styleSheet);
}
});
// remove event handlers (they eat memory)
IE7.CSS.addEventHandler(window, "onunload", function() {
IE7.CSS.removeEventHandlers();
});
// store all elements with an IE7 class assigned
IE7.Rule.elements = {};
IE7.Rule.prototype.extend({
add: function(element) {
// execute the ancestor "add" method
this.base(element);
// store a reference to this element so we can clear its classes later
IE7.Rule.elements[element.uniqueID] = element;
}
});
// store created pseudo elements
if (IE7.PseudoElement) {
IE7.PseudoElement.hash = {};
IE7.PseudoElement.prototype.extend({
create: function(target) {
var key = this.selector + ":" + target.uniqueID;
if (!IE7.PseudoElement.hash[key]) {
IE7.PseudoElement.hash[key] = true;
this.base(target);
}
}
});
}
IE7.HTML.extend({
elements: {},
addRecalc: function(selector, handler) {
// call the ancestor method to add a wrapped recalc method
this.base(selector, function(element) {
if (!this.elements[element.uniqueID]) {
// execute the original recalc method
handler(element);
// store a reference to this element so that
// it is not "fixed" again
this.elements[element.uniqueID] = element;
}
});
}
});
// allow refreshing of IE7 fixes
document.recalc = function(reload) {
if (IE7.CSS.screen) {
if (reload) IE7.CSS.reload();
IE7.recalc();
}
};
})();
Vendored Executable → Regular
View File
@@ -31,16 +31,12 @@ define([], function(){
destroyIfInvalid: function() {
if( this.handle1 && this.handle2 && ! this.handle2.attachable( this.handle1 ) ) {
this.destroy();
}
}
},
redraw : function () {
var canvas_container = $("#canvas-container");
if ( ! this.canvas ) {
this.canvas = document.createElement( "canvas" );
// excanvas specific hack
if ( window.G_vmlCanvasManager ) {
G_vmlCanvasManager.initElement( this.canvas );
}
canvas_container.append( $(this.canvas) );
if ( this.dragging ) {
this.canvas.style.zIndex = "300";
@@ -108,7 +104,7 @@ define([], function(){
inner_width = 1;
outer_width = 3;
}
connector.draw_outlined_curve( start_x, start_y, end_x, end_y, cp_shift, inner_width, outer_width, start_offsets[ i % start_offsets.length ], end_offsets[ i % end_offsets.length ] );
connector.draw_outlined_curve( start_x, start_y, end_x, end_y, cp_shift, inner_width, outer_width, start_offsets[ i % start_offsets.length ], end_offsets[ i % end_offsets.length ] );
}
},
draw_outlined_curve : function( start_x, start_y, end_x, end_y, cp_shift, inner_width, outer_width, offset_start, offset_end ) {
@@ -135,14 +135,6 @@ function reset_tool_search( initValue ) {
}
};
if ( window.lt_ie_7 ) {
window.show_modal(
"Browser not supported",
"Sorry, the workflow editor is not supported for IE6 and below."
);
return;
}
// Init searching.
$("#tool-search-query").click( function (){
$(this).focus();
+29 -3
View File
@@ -1,10 +1,36 @@
// phantomjs: does not have the native extend fn assign
Object.assign = Object.assign || _.extend;
/*
Perform feature inference and redirect if below some minimum (must have canvas, etc.)
and polyfill for non-standard features.
*/
(function() {
'use strict';
/*globals window, clearTimeout */
// ------------------------------------------------------------------ can't/won't polyfill
// TODO: move to modernizr or something besides us doing this...
var incompatibilities = [
{ name: 'canvas', compatible: function(){ return window.CanvasRenderingContext2D; } },
{ name: 'sessionStorage', compatible: function(){
try {
return Number.isInteger( sessionStorage.length );
} catch( err ){}
return false;
}},
];
// build a list of feature names for features that were not found
incompatibilities = incompatibilities
.filter( function( feature ){ return !feature.compatible(); })
.map( function( feature ){ return feature.name; });
if( !!incompatibilities.length ){
window.location.href = Galaxy.root + 'static/incompatible-browser.html';
console.log( 'incompatible browser:\n' + incompatibilities.join( '\n' ) );
}
// ------------------------------------------------------------------ polyfills
// phantomjs: does not have the native extend fn assign
Object.assign = Object.assign || _.extend;
// requestAnimationFrame polyfill
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
+1 -5
View File
@@ -89,8 +89,7 @@ var select_datasets = function(dataset_url, add_track_async_url, filters, succes
// --------- Models ---------
/**
* Canvas manager is used to create canvases, for browsers, this deals with
* backward comparibility using excanvas, as well as providing a pattern cache
* Canvas manager is used to create canvases for browsers as well as providing a pattern cache
*/
var CanvasManager = function(default_font) {
this.default_font = default_font !== undefined ? default_font : "9px Monaco, Lucida Console, monospace";
@@ -125,9 +124,6 @@ _.extend( CanvasManager.prototype, {
},
new_canvas: function() {
var canvas = $("<canvas/>")[0];
// If using excanvas in IE, we need to explicately attach the canvas
// methods to the DOM element
if (window.G_vmlCanvasManager) { G_vmlCanvasManager.initElement(canvas); }
// Keep a reference back to the manager
canvas.manager = this;
return canvas;
+33
View File
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Galaxy</title>
<style type="text/css">
body {
min-width: 500px;
font-family: "Lucida Grande",verdana,arial,helvetica,sans-serif;
font-size: 12px;
line-height: 1.42857;
}
.errormessagelarge {
background-color: #DD1B15;
color: white;
padding: 15px 15px 15px 52px;
margin-bottom: 17px;
border: 1px solid transparent;
border-radius: 3px;
min-height: 36px;
}
.errormessagelarge a {
color: white;
}
</style>
</head>
<body>
<div class="errormessagelarge">
<h3>This browser can't run Galaxy</h3>
<p>Galaxy requires using a <a href="https://whatbrowser.org/">modern browser</a>
with <a href="https://simple.wikipedia.org/wiki/HTTP_cookie">cookies enabled</a></p>
</div>
</body>
</html>
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
View File
@@ -1 +0,0 @@
{"version":3,"file":"ie7-recalc.js","sources":["../../../src/libs/IE/ie7-recalc.js"],"names":["IE7","loaded","CLASSES","CSS","extend","elements","handlers","reset","this","removeEventHandlers","i","runtimeStyle","cssText","Rule","className","replace","reload","rules","getInlineStyles","screen","load","print","refresh","trash","addRecalc","propertyName","test","handler","replacement","base","element","uniqueID","recalc","addEventHandler","type","attachEvent","push","arguments","pop","detachEvent","styleSheet","styleSheets","document","getElementsByTagName","length","disabled","ie7","innerHTML","styles","getText","window","prototype","add","PseudoElement","hash","create","target","key","selector","HTML"],"mappings":"CAKA,WAUOA,IAAIC,SAGTC,QAAU,kBAEVF,IAAIG,IAAIC,QAENC,YACAC,YAGAC,MAAO,WACLC,KAAKC,qBAEL,IAAIJ,UAAWG,KAAKH,QACpB,KAAK,GAAIK,KAAKL,UAAUA,SAASK,GAAGC,aAAaC,QAAU,EAC3DJ,MAAKH,WAEL,IAAIA,UAAWL,IAAIa,KAAKR,QACxB,KAAK,GAAIK,KAAKL,UACZ,KAAMA,SAASK,GAAII,UAAYA,UAAUC,QAAQb,QAAS,GAE5DF,KAAIa,KAAKR,aAGXW,OAAQ,WACNR,KAAKS,SACLT,KAAKU,kBACLV,KAAKW,OAAOC,OACRZ,KAAKa,OAAOb,KAAKa,MAAMD,OAC3BZ,KAAKc,UACLd,KAAKe,SAGPC,UAAW,SAASC,EAAcC,EAAMC,EAASC,GAE/CpB,KAAKqB,KAAKJ,EAAcC,EAAM,SAASI,GAErCH,EAAQG,GAER9B,IAAIG,IAAIE,SAASyB,EAAQC,UAAYD,GACpCF,IAGLI,OAAQ,WAENxB,KAAKD,QAELC,KAAKqB,QAGPI,gBAAiB,SAASH,EAASI,EAAMP,GACvCG,EAAQK,YAAYD,EAAMP,GAE1BnB,KAAKF,SAAS8B,KAAKC,YAGrB5B,oBAAqB,WAElB,IADD,GAAIkB,GACIA,EAAUnB,KAAKF,SAASgC,OAC7BX,EAAQ,GAAGY,YAAYZ,EAAQ,GAAIA,EAAQ,KAIhDT,gBAAiB,WAGf,IAAK,GADqDsB,GAAtDC,EAAcC,SAASC,qBAAqB,SACvCjC,EAAI+B,EAAYG,OAAS,EAAIJ,EAAaC,EAAY/B,GAAKA,IAClE,IAAK8B,EAAWK,WAAaL,EAAWM,IAAK,CAC3C,GAAIlC,GAAU4B,EAAW5B,SAAW4B,EAAWO,SAC/CvC,MAAKwC,OAAOZ,KAAKxB,GACjB4B,EAAW5B,QAAUA,IAK3BW,MAAO,WAEL,GAAwCiB,GAAY9B,EAAhD+B,EAAcC,SAASD,WAC3B,KAAK/B,EAAI,EAAGA,EAAI+B,EAAYG,OAAQlC,IAClC8B,EAAaC,EAAY/B,GACpB8B,EAAWM,KAAQN,EAAW5B,UACjC4B,EAAW5B,QAAU4B,EAAW5B,QAGpCJ,MAAKqB,QAGPoB,QAAS,SAAST,GAChB,MAAOA,GAAW5B,SAAWJ,KAAKqB,KAAKW,MAK3CxC,IAAIG,IAAI8B,gBAAgBiB,OAAQ,WAAY,WACzClD,IAAIG,IAAIM,wBAIXT,IAAIa,KAAKR,YAETL,IAAIa,KAAKsC,UAAU/C,QACjBgD,IAAK,SAAStB,GAEZtB,KAAKqB,KAAKC,GAEV9B,IAAIa,KAAKR,SAASyB,EAAQC,UAAYD,KAKtC9B,IAAIqD,gBACNrD,IAAIqD,cAAcC,QAElBtD,IAAIqD,cAAcF,UAAU/C,QAC1BmD,OAAQ,SAASC,GACf,GAAIC,GAAMjD,KAAKkD,SAAW,IAAMF,EAAOzB,QAClC/B,KAAIqD,cAAcC,KAAKG,KAC1BzD,IAAIqD,cAAcC,KAAKG,IAAO,EAC9BjD,KAAKqB,KAAK2B,QAMlBxD,IAAI2D,KAAKvD,QACPC,YAEAmB,UAAW,SAASkC,EAAU/B,GAE5BnB,KAAKqB,KAAK6B,EAAU,SAAS5B,GACtBtB,KAAKH,SAASyB,EAAQC,YAEzBJ,EAAQG,GAGRtB,KAAKH,SAASyB,EAAQC,UAAYD,QAO1CY,SAASV,OAAS,SAAShB,GACrBhB,IAAIG,IAAIgB,SACNH,GAAQhB,IAAIG,IAAIa,SACpBhB,IAAIgC"}
@@ -1 +1 @@
{"version":3,"file":"workflow-connector.js","sources":["../../../src/mvc/workflow/workflow-connector.js"],"names":["define","Connector","handle1","handle2","this","canvas","dragging","inner_color","outer_color","connect","$","extend","prototype","t1","t2","destroy","disconnect","remove","destroyIfInvalid","attachable","redraw","canvas_container","document","createElement","window","G_vmlCanvasManager","initElement","append","style","zIndex","relativeLeft","e","offset","left","relativeTop","top","start_x","element","start_y","end_x","end_y","canvas_extra","canvas_min_x","Math","min","canvas_max_x","max","canvas_min_y","canvas_max_y","cp_shift","abs","canvas_left","canvas_top","canvas_width","canvas_height","setAttribute","start_offsets","getContext","end_offsets","num_offsets","isMappedOver","connector","i","inner_width","outer_width","length","draw_outlined_curve","offset_start","offset_end","c","lineCap","strokeStyle","lineWidth","beginPath","moveTo","bezierCurveTo","stroke"],"mappings":"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"}
{"version":3,"file":"workflow-connector.js","sources":["../../../src/mvc/workflow/workflow-connector.js"],"names":["define","Connector","handle1","handle2","this","canvas","dragging","inner_color","outer_color","connect","$","extend","prototype","t1","t2","destroy","disconnect","remove","destroyIfInvalid","attachable","redraw","canvas_container","document","createElement","append","style","zIndex","relativeLeft","e","offset","left","relativeTop","top","start_x","element","start_y","end_x","end_y","canvas_extra","canvas_min_x","Math","min","canvas_max_x","max","canvas_min_y","canvas_max_y","cp_shift","abs","canvas_left","canvas_top","canvas_width","canvas_height","setAttribute","start_offsets","getContext","end_offsets","num_offsets","isMappedOver","connector","i","inner_width","outer_width","length","draw_outlined_curve","offset_start","offset_end","c","lineCap","strokeStyle","lineWidth","beginPath","moveTo","bezierCurveTo","stroke"],"mappings":"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"}
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"polyfills.js","sources":["../src/polyfills.js"],"names":["Object","assign","_","extend","lastTime","vendors","x","length","window","requestAnimationFrame","cancelRequestAnimationFrame","callback","currTime","Date","getTime","timeToCall","Math","max","id","setTimeout","cancelAnimationFrame","clearTimeout"],"mappings":"AACAA,OAAOC,OAASD,OAAOC,QAAUC,EAAEC,OAEnC,WACI,YAMA,KAAI,GAFAC,GAAW,EACXC,GAAW,KAAM,MAAO,SAAU,KAC9BC,EAAI,EAAGA,EAAID,EAAQE,SAAWC,OAAOC,wBAAyBH,EAClEE,OAAOC,sBAAwBD,OAAOH,EAAQC,GAAG,yBACjDE,OAAOE,4BAA8BF,OAAOH,EAAQC,GAClD,8BAGDE,QAAOC,wBACRD,OAAOC,sBAAwB,SAASE,GACpC,GAAIC,IAAW,GAAIC,OAAOC,UACtBC,EAAaC,KAAKC,IAAI,EAAG,IAAML,EAAWR,IAC1Cc,EAAKV,OAAOW,WAAW,WAAaR,EAASC,EAAWG,IAC1DA,EAEF,OADAX,GAAWQ,EAAWG,EACfG,IAGVV,OAAOY,uBACRZ,OAAOY,qBAAuB,SAASF,GACnCG,aAAaH"}
{"version":3,"file":"polyfills.js","sources":["../src/polyfills.js"],"names":["incompatibilities","name","compatible","window","CanvasRenderingContext2D","Number","isInteger","sessionStorage","length","err","filter","feature","map","location","href","Galaxy","root","console","log","join","Object","assign","_","extend","lastTime","vendors","x","requestAnimationFrame","cancelRequestAnimationFrame","callback","currTime","Date","getTime","timeToCall","Math","max","id","setTimeout","cancelAnimationFrame","clearTimeout"],"mappings":"CAIA,WACI,YAKA,IAAIA,KACEC,KAAM,SAAoBC,WAAY,WAAY,MAAOC,QAAOC,4BAChEH,KAAM,iBAAoBC,WAAY,WACpC,IACI,MAAOG,QAAOC,UAAWC,eAAeC,QAC1C,MAAOC,IACT,OAAO,IAIfT,GAAoBA,EACfU,OAAQ,SAAUC,GAAW,OAAQA,EAAQT,eAC7CU,IAAK,SAAUD,GAAW,MAAOA,GAAQV,OAExCD,EAAkBQ,SACpBL,OAAOU,SAASC,KAAOC,OAAOC,KAAO,mCACrCC,QAAQC,IAAK,0BAA4BlB,EAAkBmB,KAAM,QAKrEC,OAAOC,OAASD,OAAOC,QAAUC,EAAEC,MAKnC,KAAI,GAFAC,GAAW,EACXC,GAAW,KAAM,MAAO,SAAU,KAC9BC,EAAI,EAAGA,EAAID,EAAQjB,SAAWL,OAAOwB,wBAAyBD,EAClEvB,OAAOwB,sBAAwBxB,OAAOsB,EAAQC,GAAG,yBACjDvB,OAAOyB,4BAA8BzB,OAAOsB,EAAQC,GAClD,8BAGDvB,QAAOwB,wBACRxB,OAAOwB,sBAAwB,SAASE,GACpC,GAAIC,IAAW,GAAIC,OAAOC,UACtBC,EAAaC,KAAKC,IAAI,EAAG,IAAML,EAAWN,IAC1CY,EAAKjC,OAAOkC,WAAW,WAAaR,EAASC,EAAWG,IAC1DA,EAEF,OADAT,GAAWM,EAAWG,EACfG,IAGVjC,OAAOmC,uBACRnC,OAAOmC,qBAAuB,SAASF,GACnCG,aAAaH"}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+53 -1
View File
@@ -1,2 +1,54 @@
webpackJsonp([4],[function(e,n,r){(function(e){var n=r(1),o=n,a=r(83).GalaxyApp,i=r(13),l=r(5),t=r(85);window.app=function(n,r){if(window.Galaxy=new a(n,r),Galaxy.debug("login app"),!n.show_welcome_with_login)return void(window.location.href=Galaxy.root+"user/login?use_panels=True");var w=new t.PageLayoutView(e.extend(n,{el:"body",center:new i.CenterPanel({el:"#center"}),right:new i.RightPanel({title:l("Login required"),el:"#right"})}));o(function(){var e=Galaxy.root+"user/login?redirect="+encodeURI(Galaxy.root);w.render(),w.center.$("#galaxy_main").prop("src",n.welcome_url),w.right.$(".unified-panel-body").css("overflow","hidden").html('<iframe src="'+e+'" frameborder="0" style="width: 100%; height: 100%;"/>')})}}).call(n,r(3))}]);
webpackJsonp([5],[
/* 0 */
/*!**************************************!*\
!*** ./galaxy/scripts/apps/login.js ***!
\**************************************/
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(_) {
var jQuery = __webpack_require__( /*! jquery */ 3 ),
$ = jQuery,
GalaxyApp = __webpack_require__( /*! ../galaxy-app-base */ 4 ).GalaxyApp,
PANEL = __webpack_require__( /*! layout/panel */ 12 ),
_l = __webpack_require__( /*! utils/localization */ 7 ),
PAGE = __webpack_require__( /*! layout/page */ 122 );
window.app = function app( options, bootstrapped ){
window.Galaxy = new GalaxyApp( options, bootstrapped );
Galaxy.debug( 'login app' );
// TODO: remove iframe for user login (at least) and render login page from here
// then remove this redirect
if( !options.show_welcome_with_login ){
window.location.href = Galaxy.root + 'user/login?use_panels=True';
return;
}
var loginPage = new PAGE.PageLayoutView( _.extend( options, {
el : 'body',
center : new PANEL.CenterPanel({ el : '#center' }),
right : new PANEL.RightPanel({
title : _l( 'Login required' ),
el : '#right'
}),
}));
$(function(){
// TODO: incorporate *actual* referrer/redirect info as the original page does
var loginUrl = Galaxy.root + 'user/login?redirect=' + encodeURI( Galaxy.root );
loginPage.render();
// welcome page (probably) needs to remain sandboxed
loginPage.center.$( '#galaxy_main' ).prop( 'src', options.welcome_url );
loginPage.right.$( '.unified-panel-body' )
.css( 'overflow', 'hidden' )
.html( '<iframe src="' + loginUrl + '" frameborder="0" style="width: 100%; height: 100%;"/>' );
});
};
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! underscore */ 1)))
/***/ }
]);
//# sourceMappingURL=login.bundled.js.map
+1 -1
View File
@@ -1 +1 @@
{"version":3,"sources":["webpack:///login.bundled.js","webpack:///./galaxy/scripts/apps/login.js"],"names":["webpackJsonp","module","exports","__webpack_require__","_","jQuery","$","GalaxyApp","PANEL","_l","PAGE","window","app","options","bootstrapped","Galaxy","debug","show_welcome_with_login","location","href","root","loginPage","PageLayoutView","extend","el","center","CenterPanel","right","RightPanel","title","loginUrl","encodeURI","render","prop","welcome_url","css","html","call"],"mappings":"AAAAA,cAAc,IAER,SAASC,EAAQC,EAASC,IAEH,SAASC,GCHtC,GAAAC,GAAAF,EAAA,GACAG,EAAAD,EACAE,EAAAJ,EAAA,IAAAI,UACAC,EAAAL,EAAA,IACAM,EAAAN,EAAA,GACAO,EAAAP,EAAA,GAEAQ,QAAAC,IAAA,SAAAC,EAAAC,GAMA,GALAH,OAAAI,OAAA,GAAAR,GAAAM,EAAAC,GACAC,OAAAC,MAAA,cAIAH,EAAAI,wBAEA,YADAN,OAAAO,SAAAC,KAAAJ,OAAAK,KAAA,6BAIA,IAAAC,GAAA,GAAAX,GAAAY,eAAAlB,EAAAmB,OAAAV,GACAW,GAAA,OACAC,OAAA,GAAAjB,GAAAkB,aAAyCF,GAAA,YACzCG,MAAA,GAAAnB,GAAAoB,YACAC,MAAApB,EAAA,kBACAe,GAAA,aAIAlB,GAAA,WAEA,GAAAwB,GAAAf,OAAAK,KAAA,uBAAAW,UAAAhB,OAAAK,KACAC,GAAAW,SAGAX,EAAAI,OAAAnB,EAAA,gBAAA2B,KAAA,MAAApB,EAAAqB,aAEAb,EAAAM,MAAArB,EAAA,uBACA6B,IAAA,qBACAC,KAAA,gBAAAN,EAAA,+DDQ8BO,KAAKnC,EAASC,EAAoB","file":"login.bundled.js","sourcesContent":["webpackJsonp([4],[\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(_) {\n\tvar jQuery = __webpack_require__( 1 ),\n\t $ = jQuery,\n\t GalaxyApp = __webpack_require__( 83 ).GalaxyApp,\n\t PANEL = __webpack_require__( 13 ),\n\t _l = __webpack_require__( 5 ),\n\t PAGE = __webpack_require__( 85 );\n\t\n\twindow.app = function app( options, bootstrapped ){\n\t window.Galaxy = new GalaxyApp( options, bootstrapped );\n\t Galaxy.debug( 'login app' );\n\t\n\t // TODO: remove iframe for user login (at least) and render login page from here\n\t // then remove this redirect\n\t if( !options.show_welcome_with_login ){\n\t window.location.href = Galaxy.root + 'user/login?use_panels=True';\n\t return;\n\t }\n\t\n\t var loginPage = new PAGE.PageLayoutView( _.extend( options, {\n\t el : 'body',\n\t center : new PANEL.CenterPanel({ el : '#center' }),\n\t right : new PANEL.RightPanel({\n\t title : _l( 'Login required' ),\n\t el : '#right'\n\t }),\n\t }));\n\t\n\t $(function(){\n\t // TODO: incorporate *actual* referrer/redirect info as the original page does\n\t var loginUrl = Galaxy.root + 'user/login?redirect=' + encodeURI( Galaxy.root );\n\t loginPage.render();\n\t\n\t // welcome page (probably) needs to remain sandboxed\n\t loginPage.center.$( '#galaxy_main' ).prop( 'src', options.welcome_url );\n\t\n\t loginPage.right.$( '.unified-panel-body' )\n\t .css( 'overflow', 'hidden' )\n\t .html( '<iframe src=\"' + loginUrl + '\" frameborder=\"0\" style=\"width: 100%; height: 100%;\"/>' );\n\t });\n\t};\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)))\n\n/***/ }\n]);\n\n\n/** WEBPACK FOOTER **\n ** login.bundled.js\n **/","\nvar jQuery = require( 'jquery' ),\n $ = jQuery,\n GalaxyApp = require( '../galaxy-app-base' ).GalaxyApp,\n PANEL = require( 'layout/panel' ),\n _l = require( 'utils/localization' ),\n PAGE = require( 'layout/page' );\n\nwindow.app = function app( options, bootstrapped ){\n window.Galaxy = new GalaxyApp( options, bootstrapped );\n Galaxy.debug( 'login app' );\n\n // TODO: remove iframe for user login (at least) and render login page from here\n // then remove this redirect\n if( !options.show_welcome_with_login ){\n window.location.href = Galaxy.root + 'user/login?use_panels=True';\n return;\n }\n\n var loginPage = new PAGE.PageLayoutView( _.extend( options, {\n el : 'body',\n center : new PANEL.CenterPanel({ el : '#center' }),\n right : new PANEL.RightPanel({\n title : _l( 'Login required' ),\n el : '#right'\n }),\n }));\n\n $(function(){\n // TODO: incorporate *actual* referrer/redirect info as the original page does\n var loginUrl = Galaxy.root + 'user/login?redirect=' + encodeURI( Galaxy.root );\n loginPage.render();\n\n // welcome page (probably) needs to remain sandboxed\n loginPage.center.$( '#galaxy_main' ).prop( 'src', options.welcome_url );\n\n loginPage.right.$( '.unified-panel-body' )\n .css( 'overflow', 'hidden' )\n .html( '<iframe src=\"' + loginUrl + '\" frameborder=\"0\" style=\"width: 100%; height: 100%;\"/>' );\n });\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./galaxy/scripts/apps/login.js\n ** module id = 0\n ** module chunks = 4\n **/"],"sourceRoot":""}
{"version":3,"sources":["webpack:///./galaxy/scripts/apps/login.js"],"names":[],"mappings":";;;;;;;;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0CAAyC,iBAAiB;AAC1D;AACA;AACA;AACA,UAAS;AACT,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,uFAAsF,cAAc;AACpG,MAAK;AACL","file":"login.bundled.js","sourcesContent":["\nvar jQuery = require( 'jquery' ),\n $ = jQuery,\n GalaxyApp = require( '../galaxy-app-base' ).GalaxyApp,\n PANEL = require( 'layout/panel' ),\n _l = require( 'utils/localization' ),\n PAGE = require( 'layout/page' );\n\nwindow.app = function app( options, bootstrapped ){\n window.Galaxy = new GalaxyApp( options, bootstrapped );\n Galaxy.debug( 'login app' );\n\n // TODO: remove iframe for user login (at least) and render login page from here\n // then remove this redirect\n if( !options.show_welcome_with_login ){\n window.location.href = Galaxy.root + 'user/login?use_panels=True';\n return;\n }\n\n var loginPage = new PAGE.PageLayoutView( _.extend( options, {\n el : 'body',\n center : new PANEL.CenterPanel({ el : '#center' }),\n right : new PANEL.RightPanel({\n title : _l( 'Login required' ),\n el : '#right'\n }),\n }));\n\n $(function(){\n // TODO: incorporate *actual* referrer/redirect info as the original page does\n var loginUrl = Galaxy.root + 'user/login?redirect=' + encodeURI( Galaxy.root );\n loginPage.render();\n\n // welcome page (probably) needs to remain sandboxed\n loginPage.center.$( '#galaxy_main' ).prop( 'src', options.welcome_url );\n\n loginPage.right.$( '.unified-panel-body' )\n .css( 'overflow', 'hidden' )\n .html( '<iframe src=\"' + loginUrl + '\" frameborder=\"0\" style=\"width: 100%; height: 100%;\"/>' );\n });\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./galaxy/scripts/apps/login.js\n ** module id = 0\n ** module chunks = 5\n **/"],"sourceRoot":""}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 B

File diff suppressed because one or more lines are too long
-2
View File
@@ -1,2 +0,0 @@
!function(){IE7.loaded&&(CLASSES=/\sie7_class\d+/g,IE7.CSS.extend({elements:{},handlers:[],reset:function(){this.removeEventHandlers();var elements=this.elements;for(var i in elements)elements[i].runtimeStyle.cssText="";this.elements={};var elements=IE7.Rule.elements;for(var i in elements)with(elements[i])className=className.replace(CLASSES,"");IE7.Rule.elements={}},reload:function(){this.rules=[],this.getInlineStyles(),this.screen.load(),this.print&&this.print.load(),this.refresh(),this.trash()},addRecalc:function(a,b,c,d){this.base(a,b,function(a){c(a),IE7.CSS.elements[a.uniqueID]=a},d)},recalc:function(){this.reset(),this.base()},addEventHandler:function(a,b,c){a.attachEvent(b,c),this.handlers.push(arguments)},removeEventHandlers:function(){for(var a;a=this.handlers.pop();)a[0].detachEvent(a[1],a[2])},getInlineStyles:function(){for(var a,b=document.getElementsByTagName("style"),c=b.length-1;a=b[c];c--)if(!a.disabled&&!a.ie7){var d=a.cssText||a.innerHTML;this.styles.push(d),a.cssText=d}},trash:function(){var a,b,c=document.styleSheets;for(b=0;b<c.length;b++)a=c[b],a.ie7||a.cssText||(a.cssText=a.cssText);this.base()},getText:function(a){return a.cssText||this.base(a)}}),IE7.CSS.addEventHandler(window,"onunload",function(){IE7.CSS.removeEventHandlers()}),IE7.Rule.elements={},IE7.Rule.prototype.extend({add:function(a){this.base(a),IE7.Rule.elements[a.uniqueID]=a}}),IE7.PseudoElement&&(IE7.PseudoElement.hash={},IE7.PseudoElement.prototype.extend({create:function(a){var b=this.selector+":"+a.uniqueID;IE7.PseudoElement.hash[b]||(IE7.PseudoElement.hash[b]=!0,this.base(a))}})),IE7.HTML.extend({elements:{},addRecalc:function(a,b){this.base(a,function(a){this.elements[a.uniqueID]||(b(a),this.elements[a.uniqueID]=a)})}}),document.recalc=function(a){IE7.CSS.screen&&(a&&IE7.CSS.reload(),IE7.recalc())})}();
//# sourceMappingURL=../../../maps/libs/IE/ie7-recalc.js.map
@@ -1,2 +1,2 @@
define([],function(){function a(a,b){this.canvas=null,this.dragging=!1,this.inner_color="#FFFFFF",this.outer_color="#D8B365",a&&b&&this.connect(a,b)}return $.extend(a.prototype,{connect:function(a,b){this.handle1=a,this.handle1&&this.handle1.connect(this),this.handle2=b,this.handle2&&this.handle2.connect(this)},destroy:function(){this.handle1&&this.handle1.disconnect(this),this.handle2&&this.handle2.disconnect(this),$(this.canvas).remove()},destroyIfInvalid:function(){this.handle1&&this.handle2&&!this.handle2.attachable(this.handle1)&&this.destroy()},redraw:function(){var a=$("#canvas-container");this.canvas||(this.canvas=document.createElement("canvas"),window.G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this.canvas),a.append($(this.canvas)),this.dragging&&(this.canvas.style.zIndex="300"));var b=function(b){return $(b).offset().left-a.offset().left},c=function(b){return $(b).offset().top-a.offset().top};if(this.handle1&&this.handle2){var d=b(this.handle1.element)+5,e=c(this.handle1.element)+5,f=b(this.handle2.element)+5,g=c(this.handle2.element)+5,h=100,i=Math.min(d,f),j=Math.max(d,f),k=Math.min(e,g),l=Math.max(e,g),m=Math.min(Math.max(Math.abs(l-k)/2,100),300),n=i-h,o=k-h,p=j-i+2*h,q=l-k+2*h;this.canvas.style.left=n+"px",this.canvas.style.top=o+"px",this.canvas.setAttribute("width",p),this.canvas.setAttribute("height",q),d-=n,e-=o,f-=n,g-=o;var r=(this.canvas.getContext("2d"),null),s=null,t=1;if(this.handle1&&this.handle1.isMappedOver()){var r=[-6,-3,0,3,6];t=5}else var r=[0];if(this.handle2&&this.handle2.isMappedOver()){var s=[-6,-3,0,3,6];t=5}else var s=[0];for(var u=this,v=0;t>v;v++){var w=5,x=7;(r.length>1||s.length>1)&&(w=1,x=3),u.draw_outlined_curve(d,e,f,g,m,w,x,r[v%r.length],s[v%s.length])}}},draw_outlined_curve:function(a,b,c,d,e,f,g,h,i){var h=h||0,i=i||0,j=this.canvas.getContext("2d");j.lineCap="round",j.strokeStyle=this.outer_color,j.lineWidth=g,j.beginPath(),j.moveTo(a,b+h),j.bezierCurveTo(a+e,b+h,c-e,d+i,c,d+i),j.stroke(),j.strokeStyle=this.inner_color,j.lineWidth=f,j.beginPath(),j.moveTo(a,b+h),j.bezierCurveTo(a+e,b+h,c-e,d+i,c,d+i),j.stroke()}}),a});
define([],function(){function a(a,b){this.canvas=null,this.dragging=!1,this.inner_color="#FFFFFF",this.outer_color="#D8B365",a&&b&&this.connect(a,b)}return $.extend(a.prototype,{connect:function(a,b){this.handle1=a,this.handle1&&this.handle1.connect(this),this.handle2=b,this.handle2&&this.handle2.connect(this)},destroy:function(){this.handle1&&this.handle1.disconnect(this),this.handle2&&this.handle2.disconnect(this),$(this.canvas).remove()},destroyIfInvalid:function(){this.handle1&&this.handle2&&!this.handle2.attachable(this.handle1)&&this.destroy()},redraw:function(){var a=$("#canvas-container");this.canvas||(this.canvas=document.createElement("canvas"),a.append($(this.canvas)),this.dragging&&(this.canvas.style.zIndex="300"));var b=function(b){return $(b).offset().left-a.offset().left},c=function(b){return $(b).offset().top-a.offset().top};if(this.handle1&&this.handle2){var d=b(this.handle1.element)+5,e=c(this.handle1.element)+5,f=b(this.handle2.element)+5,g=c(this.handle2.element)+5,h=100,i=Math.min(d,f),j=Math.max(d,f),k=Math.min(e,g),l=Math.max(e,g),m=Math.min(Math.max(Math.abs(l-k)/2,100),300),n=i-h,o=k-h,p=j-i+2*h,q=l-k+2*h;this.canvas.style.left=n+"px",this.canvas.style.top=o+"px",this.canvas.setAttribute("width",p),this.canvas.setAttribute("height",q),d-=n,e-=o,f-=n,g-=o;var r=(this.canvas.getContext("2d"),null),s=null,t=1;if(this.handle1&&this.handle1.isMappedOver()){var r=[-6,-3,0,3,6];t=5}else var r=[0];if(this.handle2&&this.handle2.isMappedOver()){var s=[-6,-3,0,3,6];t=5}else var s=[0];for(var u=this,v=0;t>v;v++){var w=5,x=7;(r.length>1||s.length>1)&&(w=1,x=3),u.draw_outlined_curve(d,e,f,g,m,w,x,r[v%r.length],s[v%s.length])}}},draw_outlined_curve:function(a,b,c,d,e,f,g,h,i){var h=h||0,i=i||0,j=this.canvas.getContext("2d");j.lineCap="round",j.strokeStyle=this.outer_color,j.lineWidth=g,j.beginPath(),j.moveTo(a,b+h),j.bezierCurveTo(a+e,b+h,c-e,d+i,c,d+i),j.stroke(),j.strokeStyle=this.inner_color,j.lineWidth=f,j.beginPath(),j.moveTo(a,b+h),j.bezierCurveTo(a+e,b+h,c-e,d+i,c,d+i),j.stroke()}}),a});
//# sourceMappingURL=../../../maps/mvc/workflow/workflow-connector.js.map
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,2 +1,2 @@
Object.assign=Object.assign||_.extend,function(){"use strict";for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"],window.cancelRequestAnimationFrame=window[b[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(b){var c=(new Date).getTime(),d=Math.max(0,16-(c-a)),e=window.setTimeout(function(){b(c+d)},d);return a=c+d,e}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)})}();
!function(){"use strict";var a=[{name:"canvas",compatible:function(){return window.CanvasRenderingContext2D}},{name:"sessionStorage",compatible:function(){try{return Number.isInteger(sessionStorage.length)}catch(a){}return!1}}];a=a.filter(function(a){return!a.compatible()}).map(function(a){return a.name}),a.length&&(window.location.href=Galaxy.root+"static/incompatible-browser.html",console.log("incompatible browser:\n"+a.join("\n"))),Object.assign=Object.assign||_.extend;for(var b=0,c=["ms","moz","webkit","o"],d=0;d<c.length&&!window.requestAnimationFrame;++d)window.requestAnimationFrame=window[c[d]+"RequestAnimationFrame"],window.cancelRequestAnimationFrame=window[c[d]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(a){var c=(new Date).getTime(),d=Math.max(0,16-(c-b)),e=window.setTimeout(function(){a(c+d)},d);return b=c+d,e}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)})}();
//# sourceMappingURL=../maps/polyfills.js.map
File diff suppressed because one or more lines are too long
@@ -14,9 +14,6 @@
});
</script>
<!--[if lt IE 9]>
<script type='text/javascript' src="${h.url_for('/static/scripts/libs/IE/excanvas.js')}"></script>
<![endif]-->
</%def>
<%def name="stylesheets()">
@@ -14,9 +14,6 @@
});
</script>
<!--[if lt IE 9]>
<script type='text/javascript' src="${h.url_for('/static/scripts/libs/IE/excanvas.js')}"></script>
<![endif]-->
</%def>
<%def name="stylesheets()">
@@ -11,15 +11,6 @@
${parent.javascripts()}
<!--[if lt IE 9]>
<script type='text/javascript' src="${h.url_for('/static/scripts/libs/IE/excanvas.js')}"></script>
<![endif]-->
<!--[if lt IE 7]>
<script type='text/javascript'>
window.lt_ie_7 = true;
</script>
<![endif]-->
${h.js(
"libs/jquery/jquery.event.drag",
"libs/jquery/jquery.event.drop",