mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Bundle toastr in common libs
This commit is contained in:
@@ -28,6 +28,7 @@ var commonLibs = [
|
||||
// mvc
|
||||
"libs/underscore",
|
||||
"libs/backbone",
|
||||
"libs/toastr",
|
||||
// all pages get these
|
||||
"ui/autocom_tagging",
|
||||
"layout/modal",
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
webpackJsonp([4],{114:function(e,i,t){"use strict";(function(e,i){var n=t(0),a=n,r=t(42).GalaxyApp,o=t(4),l=t(43);window.app=function(t,c){window.Galaxy=new r(t,c),Galaxy.debug("login app");var p=encodeURI(t.redirect);if(!t.show_welcome_with_login){var d=n.param({use_panels:"True",redirect:p});return void(window.location.href=Galaxy.root+"user/login?"+d)}var s=e.View.extend({initialize:function(i){this.page=i,this.model=new e.Model({title:o("Login required")}),this.setElement(this._template())},render:function(){this.page.$("#galaxy_main").prop("src",t.welcome_url)},_template:function(){return'<iframe src="'+t.root+"user/login?"+a.param({redirect:p})+'" frameborder="0" style="width: 100%; height: 100%;"/>'}});a(function(){Galaxy.page=new l.View(i.extend(t,{Right:s}))})}}).call(i,t(1),t(2))}},[114]);
|
||||
webpackJsonp([4],{116:function(e,i,t){"use strict";(function(e,i){var n=t(0),a=n,r=t(42).GalaxyApp,o=t(4),l=t(43);window.app=function(t,c){window.Galaxy=new r(t,c),Galaxy.debug("login app");var p=encodeURI(t.redirect);if(!t.show_welcome_with_login){var d=n.param({use_panels:"True",redirect:p});return void(window.location.href=Galaxy.root+"user/login?"+d)}var s=e.View.extend({initialize:function(i){this.page=i,this.model=new e.Model({title:o("Login required")}),this.setElement(this._template())},render:function(){this.page.$("#galaxy_main").prop("src",t.welcome_url)},_template:function(){return'<iframe src="'+t.root+"user/login?"+a.param({redirect:p})+'" frameborder="0" style="width: 100%; height: 100%;"/>'}});a(function(){Galaxy.page=new l.View(i.extend(t,{Right:s}))})}}).call(i,t(1),t(2))}},[116]);
|
||||
//# sourceMappingURL=login.bundled.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["webpack:///login.bundled.js","webpack:///./galaxy/scripts/apps/login.js"],"names":["webpackJsonp","114","module","exports","__webpack_require__","Backbone","_","jQuery","$","GalaxyApp","_l","Page","window","app","options","bootstrapped","Galaxy","debug","redirect","encodeURI","show_welcome_with_login","params","param","use_panels","location","href","root","LoginPage","View","extend","initialize","page","this","model","Model","title","setElement","_template","render","prop","welcome_url","Right","call"],"mappings":"AAAAA,cAAc,IAERC,IACA,SAAUC,EAAQC,EAASC,GAEjC,cAC4B,SAASC,EAAUC,GCN/C,GAAIC,GAASH,EAAS,GAClBI,EAAID,EACJE,EAAYL,EAAS,IAAWK,UAChCC,EAAKN,EAAS,GACdO,EAAOP,EAAS,GAEpBQ,QAAOC,IAAM,SAAcC,EAASC,GAChCH,OAAOI,OAAS,GAAIP,GAAWK,EAASC,GACxCC,OAAOC,MAAO,YACd,IAAIC,GAAWC,UAAWL,EAAQI,SAIlC,KAAKJ,EAAQM,wBAAyB,CAClC,GAAIC,GAASd,EAAOe,OAAQC,WAAa,OAAQL,SAAWA,GAE5D,aADAN,OAAOY,SAASC,KAAOT,OAAOU,KAAO,cAAgBL,GAIzD,GAAIM,GAAYtB,EAASuB,KAAKC,QAC1BC,WAAY,SAAUC,GAClBC,KAAKD,KAAOA,EACZC,KAAKC,MAAQ,GAAI5B,GAAS6B,OAAQC,MAAQzB,EAAI,oBAC9CsB,KAAKI,WAAYJ,KAAKK,cAE1BC,OAAQ,WACJN,KAAKD,KAAKvB,EAAG,gBAAiB+B,KAAM,MAAOzB,EAAQ0B,cAEvDH,UAAY,WAER,MAAO,gBADSvB,EAAQY,KAAO,cAAgBlB,EAAEc,OAASJ,SAAWA,IAChC,2DAI7CV,GAAE,WACEQ,OAAOe,KAAO,GAAIpB,GAAKiB,KAAMtB,EAAEuB,OAAQf,GACnC2B,MAAQd,UDYSe,KAAKvC,EAASC,EAAoB,GAAIA,EAAoB,OAIpF","file":"login.bundled.js","sourcesContent":["webpackJsonp([4],{\n\n/***/ 114:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(Backbone, _) {\n\nvar jQuery = __webpack_require__(0),\n $ = jQuery,\n GalaxyApp = __webpack_require__(42).GalaxyApp,\n _l = __webpack_require__(4),\n Page = __webpack_require__(43);\n\nwindow.app = function app(options, bootstrapped) {\n window.Galaxy = new GalaxyApp(options, bootstrapped);\n Galaxy.debug('login app');\n var redirect = encodeURI(options.redirect);\n\n // TODO: remove iframe for user login (at least) and render login page from here\n // then remove this redirect\n if (!options.show_welcome_with_login) {\n var params = jQuery.param({ use_panels: 'True', redirect: redirect });\n window.location.href = Galaxy.root + 'user/login?' + params;\n return;\n }\n\n var LoginPage = Backbone.View.extend({\n initialize: function initialize(page) {\n this.page = page;\n this.model = new Backbone.Model({ title: _l('Login required') });\n this.setElement(this._template());\n },\n render: function render() {\n this.page.$('#galaxy_main').prop('src', options.welcome_url);\n },\n _template: function _template() {\n var login_url = options.root + 'user/login?' + $.param({ redirect: redirect });\n return '<iframe src=\"' + login_url + '\" frameborder=\"0\" style=\"width: 100%; height: 100%;\"/>';\n }\n });\n\n $(function () {\n Galaxy.page = new Page.View(_.extend(options, {\n Right: LoginPage\n }));\n });\n};\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(2)))\n\n/***/ })\n\n},[114]);\n\n\n// WEBPACK FOOTER //\n// login.bundled.js","var jQuery = require( 'jquery' ),\n $ = jQuery,\n GalaxyApp = require( 'galaxy' ).GalaxyApp,\n _l = require( 'utils/localization' ),\n Page = require( 'layout/page' );\n\nwindow.app = function app( options, bootstrapped ){\n window.Galaxy = new GalaxyApp( options, bootstrapped );\n Galaxy.debug( 'login app' );\n var redirect = encodeURI( options.redirect );\n\n // TODO: remove iframe for user login (at least) and render login page from here\n // then remove this redirect\n if( !options.show_welcome_with_login ){\n var params = jQuery.param({ use_panels : 'True', redirect : redirect });\n window.location.href = Galaxy.root + 'user/login?' + params;\n return;\n }\n\n var LoginPage = Backbone.View.extend({\n initialize: function( page ) {\n this.page = page;\n this.model = new Backbone.Model({ title : _l( 'Login required' ) } );\n this.setElement( this._template() );\n },\n render: function() {\n this.page.$( '#galaxy_main' ).prop( 'src', options.welcome_url );\n },\n _template : function() {\n var login_url = options.root + 'user/login?' + $.param( { redirect : redirect } );\n return '<iframe src=\"' + login_url + '\" frameborder=\"0\" style=\"width: 100%; height: 100%;\"/>';\n }\n });\n\n $(function(){\n Galaxy.page = new Page.View( _.extend( options, {\n Right : LoginPage\n } ) );\n });\n};\n\n\n\n// WEBPACK FOOTER //\n// ./galaxy/scripts/apps/login.js"],"sourceRoot":""}
|
||||
{"version":3,"sources":["webpack:///login.bundled.js","webpack:///./galaxy/scripts/apps/login.js"],"names":["webpackJsonp","116","module","exports","__webpack_require__","Backbone","_","jQuery","$","GalaxyApp","_l","Page","window","app","options","bootstrapped","Galaxy","debug","redirect","encodeURI","show_welcome_with_login","params","param","use_panels","location","href","root","LoginPage","View","extend","initialize","page","this","model","Model","title","setElement","_template","render","prop","welcome_url","Right","call"],"mappings":"AAAAA,cAAc,IAERC,IACA,SAAUC,EAAQC,EAASC,GAEjC,cAC4B,SAASC,EAAUC,GCN/C,GAAIC,GAASH,EAAS,GAClBI,EAAID,EACJE,EAAYL,EAAS,IAAWK,UAChCC,EAAKN,EAAS,GACdO,EAAOP,EAAS,GAEpBQ,QAAOC,IAAM,SAAcC,EAASC,GAChCH,OAAOI,OAAS,GAAIP,GAAWK,EAASC,GACxCC,OAAOC,MAAO,YACd,IAAIC,GAAWC,UAAWL,EAAQI,SAIlC,KAAKJ,EAAQM,wBAAyB,CAClC,GAAIC,GAASd,EAAOe,OAAQC,WAAa,OAAQL,SAAWA,GAE5D,aADAN,OAAOY,SAASC,KAAOT,OAAOU,KAAO,cAAgBL,GAIzD,GAAIM,GAAYtB,EAASuB,KAAKC,QAC1BC,WAAY,SAAUC,GAClBC,KAAKD,KAAOA,EACZC,KAAKC,MAAQ,GAAI5B,GAAS6B,OAAQC,MAAQzB,EAAI,oBAC9CsB,KAAKI,WAAYJ,KAAKK,cAE1BC,OAAQ,WACJN,KAAKD,KAAKvB,EAAG,gBAAiB+B,KAAM,MAAOzB,EAAQ0B,cAEvDH,UAAY,WAER,MAAO,gBADSvB,EAAQY,KAAO,cAAgBlB,EAAEc,OAASJ,SAAWA,IAChC,2DAI7CV,GAAE,WACEQ,OAAOe,KAAO,GAAIpB,GAAKiB,KAAMtB,EAAEuB,OAAQf,GACnC2B,MAAQd,UDYSe,KAAKvC,EAASC,EAAoB,GAAIA,EAAoB,OAIpF","file":"login.bundled.js","sourcesContent":["webpackJsonp([4],{\n\n/***/ 116:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(Backbone, _) {\n\nvar jQuery = __webpack_require__(0),\n $ = jQuery,\n GalaxyApp = __webpack_require__(42).GalaxyApp,\n _l = __webpack_require__(4),\n Page = __webpack_require__(43);\n\nwindow.app = function app(options, bootstrapped) {\n window.Galaxy = new GalaxyApp(options, bootstrapped);\n Galaxy.debug('login app');\n var redirect = encodeURI(options.redirect);\n\n // TODO: remove iframe for user login (at least) and render login page from here\n // then remove this redirect\n if (!options.show_welcome_with_login) {\n var params = jQuery.param({ use_panels: 'True', redirect: redirect });\n window.location.href = Galaxy.root + 'user/login?' + params;\n return;\n }\n\n var LoginPage = Backbone.View.extend({\n initialize: function initialize(page) {\n this.page = page;\n this.model = new Backbone.Model({ title: _l('Login required') });\n this.setElement(this._template());\n },\n render: function render() {\n this.page.$('#galaxy_main').prop('src', options.welcome_url);\n },\n _template: function _template() {\n var login_url = options.root + 'user/login?' + $.param({ redirect: redirect });\n return '<iframe src=\"' + login_url + '\" frameborder=\"0\" style=\"width: 100%; height: 100%;\"/>';\n }\n });\n\n $(function () {\n Galaxy.page = new Page.View(_.extend(options, {\n Right: LoginPage\n }));\n });\n};\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(2)))\n\n/***/ })\n\n},[116]);\n\n\n// WEBPACK FOOTER //\n// login.bundled.js","var jQuery = require( 'jquery' ),\n $ = jQuery,\n GalaxyApp = require( 'galaxy' ).GalaxyApp,\n _l = require( 'utils/localization' ),\n Page = require( 'layout/page' );\n\nwindow.app = function app( options, bootstrapped ){\n window.Galaxy = new GalaxyApp( options, bootstrapped );\n Galaxy.debug( 'login app' );\n var redirect = encodeURI( options.redirect );\n\n // TODO: remove iframe for user login (at least) and render login page from here\n // then remove this redirect\n if( !options.show_welcome_with_login ){\n var params = jQuery.param({ use_panels : 'True', redirect : redirect });\n window.location.href = Galaxy.root + 'user/login?' + params;\n return;\n }\n\n var LoginPage = Backbone.View.extend({\n initialize: function( page ) {\n this.page = page;\n this.model = new Backbone.Model({ title : _l( 'Login required' ) } );\n this.setElement( this._template() );\n },\n render: function() {\n this.page.$( '#galaxy_main' ).prop( 'src', options.welcome_url );\n },\n _template : function() {\n var login_url = options.root + 'user/login?' + $.param( { redirect : redirect } );\n return '<iframe src=\"' + login_url + '\" frameborder=\"0\" style=\"width: 100%; height: 100%;\"/>';\n }\n });\n\n $(function(){\n Galaxy.page = new Page.View( _.extend( options, {\n Right : LoginPage\n } ) );\n });\n};\n\n\n\n// WEBPACK FOOTER //\n// ./galaxy/scripts/apps/login.js"],"sourceRoot":""}
|
||||
Reference in New Issue
Block a user