From a36de3c3febe8a09d4f0235dec54bfe0de0c6cae Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 12 Feb 2018 11:38:54 +0100 Subject: [PATCH] move comment --- src/app/panels/file-panel.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/app/panels/file-panel.js b/src/app/panels/file-panel.js index 621a8811a2..a597448bfa 100644 --- a/src/app/panels/file-panel.js +++ b/src/app/panels/file-panel.js @@ -21,6 +21,23 @@ var limit = 60 var canUpload = window.File || window.FileReader || window.FileList || window.Blob var ghostbar = yo`
` +/* + Overview of APIs: + * fileManager: @args fileProviders (browser, shared-folder, swarm, github, etc ...) & config & editor + - listen on browser & localhost file provider (`fileRenamed` & `fileRemoved`) + - update the tabs, switchFile + - trigger `currentFileChanged` + - set the current file in the config + * fileProvider: currently browser, swarm, localhost, github, gist + - link to backend + - provide properties `type`, `readonly` + - provide API `resolveDirectory`, `remove`, `exists`, `rename`, `get`, `set` + - trigger `fileExternallyChanged`, `fileRemoved`, `fileRenamed`, `fileRenamedError`, `fileAdded` + * file-explorer: treeview @args fileProvider + - listen on events triggered by fileProvider + - call fileProvider API +*/ + function filepanel (appAPI, filesProvider) { var self = this var fileExplorer = new FileExplorer(appAPI, filesProvider['browser']) @@ -317,21 +334,4 @@ function packageFiles (files, callback) { }) } -/* - Overview of APIs: - * fileManager: @args fileProviders (browser, shared-folder, swarm, github, etc ...) & config & editor - - listen on browser & localhost file provider (`fileRenamed` & `fileRemoved`) - - update the tabs, switchFile - - trigger `currentFileChanged` - - set the current file in the config - * fileProvider: currently browser, swarm, localhost, github, gist - - link to backend - - provide properties `type`, `readonly` - - provide API `resolveDirectory`, `remove`, `exists`, `rename`, `get`, `set` - - trigger `fileExternallyChanged`, `fileRemoved`, `fileRenamed`, `fileRenamedError`, `fileAdded` - * file-explorer: treeview @args fileProvider - - listen on events triggered by fileProvider - - call fileProvider API -*/ - module.exports = filepanel