File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ const path = require('path');
22const $ = require ( 'jquery' ) ;
33require ( "jquery-ui" ) ;
44
5- function vp_css_loader ( path ) {
5+ global . vp_css_loader = function ( path ) {
66 return path + '.css' ;
77}
88
9- function vp_text_loader ( path ) {
9+ global . vp_text_loader = function ( path ) {
1010 return '!!text-loader!' + path ;
1111}
1212
13- function vp_raw_loader ( path ) {
13+ global . vp_raw_loader = function ( path ) {
1414 return path ;
1515}
1616
Original file line number Diff line number Diff line change 99 * Change Date :
1010 */
1111# vp_wrapper {
12+ display : none;
13+
14+ position : fixed;
15+ height : calc (100% - 110px );
16+ overflow : hidden;
17+ left : unset !important ;
18+ object-fit : contain;
19+ color : var (--font-primary );
20+ font-family : AppleSDGothicNeo;
21+ border : 1px solid var (--border-gray-color );
22+ top : 110px ;
23+ right : 0 ;
24+ background : white;
25+ z-index : 100 ;
26+ }
27+ # vp_wrapper .colab {
1228 /* CHROME: edited to show */
1329 display : none;
1430
3046 z-index : 100 ;
3147}
3248/* CHROME: set default box-sizing for vp area */
33- div # vp_wrapper * {
49+ div # vp_wrapper . colab * {
3450 box-sizing : border-box !important ;
3551}
3652/* LAB: reset position and size */
Original file line number Diff line number Diff line change @@ -226,9 +226,7 @@ define([
226226 //========================================================================
227227 renderMainFrame ( ) {
228228 this . $pageDom = $ ( vpHtml ) ;
229- if ( vpConfig . extensionType === 'lab' ) {
230- this . $pageDom . addClass ( 'lab' ) ;
231- }
229+ this . $pageDom . addClass ( vpConfig . extensionType ) ;
232230 return this . $pageDom ;
233231 }
234232 afterAttach ( ) {
Original file line number Diff line number Diff line change 1414//============================================================================
1515require . config ( {
1616 paths : {
17- 'vp_base' : '../nbextensions/visualpython/visualpython ' ,
17+ 'vp_base' : '../nbextensions/visualpython' ,
1818 'css' : 'vp_base/lib/require/css.min'
1919 } ,
2020 config : {
@@ -48,6 +48,8 @@ function vp_raw_loader(path) {
4848 return 'text!' + path ;
4949}
5050
51+ window . vpBase = "/nbextensions/" ;
52+
5153//============================================================================
5254// Load extension
5355//============================================================================
File renamed without changes.
You can’t perform that action at this time.
0 commit comments