mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
remove rever dependency in sesson and loginwidget
This commit is contained in:
parent
85fd9fff23
commit
cd888ad8c3
@ -2,10 +2,9 @@
|
|||||||
// Distributed under the terms of the Modified BSD License.
|
// Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
define([
|
define([
|
||||||
'base/js/namespace',
|
|
||||||
'base/js/utils',
|
'base/js/utils',
|
||||||
'jquery',
|
'jquery',
|
||||||
], function(IPython, utils, $){
|
], function(utils, $){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var LoginWidget = function (selector, options) {
|
var LoginWidget = function (selector, options) {
|
||||||
@ -19,7 +18,6 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
LoginWidget.prototype.bind_events = function () {
|
LoginWidget.prototype.bind_events = function () {
|
||||||
var that = this;
|
var that = this;
|
||||||
this.element.find("button#logout").click(function () {
|
this.element.find("button#logout").click(function () {
|
||||||
@ -36,8 +34,5 @@ define([
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// Set module variables
|
|
||||||
IPython.LoginWidget = LoginWidget;
|
|
||||||
|
|
||||||
return {'LoginWidget': LoginWidget};
|
return {'LoginWidget': LoginWidget};
|
||||||
});
|
});
|
||||||
|
@ -21,6 +21,8 @@ define(function(){
|
|||||||
|
|
||||||
Jupyter.NotificationWidget = require('base/js/notificationwidget').NotificationWidget;
|
Jupyter.NotificationWidget = require('base/js/notificationwidget').NotificationWidget;
|
||||||
Jupyter.Kernel = require('services/kernels/kernel').Kernel;
|
Jupyter.Kernel = require('services/kernels/kernel').Kernel;
|
||||||
|
Jupyter.Session = require('services/kernels/session').Session;
|
||||||
|
Jupyter.LoginWidget = require('auth/js/loginwidget').LoginWidget
|
||||||
|
|
||||||
Jupyter.version = "4.0.0.dev";
|
Jupyter.version = "4.0.0.dev";
|
||||||
Jupyter._target = '_blank';
|
Jupyter._target = '_blank';
|
||||||
|
@ -2,11 +2,10 @@
|
|||||||
// Distributed under the terms of the Modified BSD License.
|
// Distributed under the terms of the Modified BSD License.
|
||||||
|
|
||||||
define([
|
define([
|
||||||
'base/js/namespace',
|
|
||||||
'jquery',
|
'jquery',
|
||||||
'base/js/utils',
|
'base/js/utils',
|
||||||
'services/kernels/kernel',
|
'services/kernels/kernel',
|
||||||
], function(IPython, $, utils, kernel) {
|
], function($, utils, kernel) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -309,11 +308,9 @@ define([
|
|||||||
this.name = "SessionAlreadyStarting";
|
this.name = "SessionAlreadyStarting";
|
||||||
this.message = (message || "");
|
this.message = (message || "");
|
||||||
};
|
};
|
||||||
|
|
||||||
SessionAlreadyStarting.prototype = Error.prototype;
|
SessionAlreadyStarting.prototype = Error.prototype;
|
||||||
|
|
||||||
// For backwards compatability.
|
|
||||||
IPython.Session = Session;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
Session: Session,
|
Session: Session,
|
||||||
SessionAlreadyStarting: SessionAlreadyStarting
|
SessionAlreadyStarting: SessionAlreadyStarting
|
||||||
|
Loading…
Reference in New Issue
Block a user