@@ -25,8 +25,8 @@ import { Widget } from '@lumino/widgets';
2525
2626import { driveBrowserIcon } from '../icons' ;
2727import { Drive } from '../contents' ;
28- import { getDrivesList , setListingLimit } from '../requests' ;
29- import { IDriveInfo , IDrivesList , CommandIDs } from '../token' ;
28+ import { setListingLimit } from '../requests' ;
29+ import { CommandIDs } from '../token' ;
3030
3131/**
3232 * The file browser factory ID.
@@ -48,24 +48,6 @@ const FILE_DIALOG_CLASS = 'jp-FileDialog';
4848 */
4949const CREATE_DRIVE_TITLE_CLASS = 'jp-new-drive-title' ;
5050
51- /**
52- * The drives list provider.
53- */
54- export const drivesListProvider : JupyterFrontEndPlugin < IDriveInfo [ ] > = {
55- id : 'jupyter-drives:drives-list' ,
56- description : 'The drives list provider.' ,
57- provides : IDrivesList ,
58- activate : async ( _ : JupyterFrontEnd ) : Promise < IDriveInfo [ ] > => {
59- let drives : IDriveInfo [ ] = [ ] ;
60- try {
61- drives = await getDrivesList ( ) ;
62- } catch ( error ) {
63- console . log ( 'Failed loading available drives list, with error: ' , error ) ;
64- }
65- return drives ;
66- }
67- } ;
68-
6951/**
7052 * The drive file browser factory provider.
7153 */
@@ -77,8 +59,7 @@ export const driveFileBrowser: JupyterFrontEndPlugin<void> = {
7759 IFileBrowserFactory ,
7860 IToolbarWidgetRegistry ,
7961 ISettingRegistry ,
80- ITranslator ,
81- IDrivesList
62+ ITranslator
8263 ] ,
8364 optional : [
8465 IRouter ,
@@ -92,7 +73,6 @@ export const driveFileBrowser: JupyterFrontEndPlugin<void> = {
9273 toolbarRegistry : IToolbarWidgetRegistry ,
9374 settingsRegistry : ISettingRegistry ,
9475 translator : ITranslator ,
95- drivesList : IDriveInfo [ ] ,
9676 router : IRouter | null ,
9777 tree : JupyterFrontEnd . ITreeResolver | null ,
9878 labShell : ILabShell | null ,
@@ -105,8 +85,7 @@ export const driveFileBrowser: JupyterFrontEndPlugin<void> = {
10585
10686 // create drive for drive file browser
10787 const drive = new Drive ( {
108- name : 's3' ,
109- drivesList : drivesList
88+ name : 's3'
11089 } ) ;
11190
11291 app . serviceManager . contents . addDrive ( drive ) ;
@@ -266,7 +245,7 @@ namespace Private {
266245 /**
267246 * Create the node for a creating a new drive handler.
268247 */
269- const createNewDriveNode = ( newDriveName : string ) : HTMLElement => {
248+ const createNewDriveNode = ( ) : HTMLElement => {
270249 const body = document . createElement ( 'div' ) ;
271250
272251 const drive = document . createElement ( 'label' ) ;
@@ -295,7 +274,7 @@ namespace Private {
295274 * Construct a new "create-drive" dialog.
296275 */
297276 constructor ( newDriveName : string ) {
298- super ( { node : createNewDriveNode ( newDriveName ) } ) ;
277+ super ( { node : createNewDriveNode ( ) } ) ;
299278 this . onAfterAttach ( ) ;
300279 }
301280
0 commit comments