Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
432631f7
Commit
432631f7
authored
May 27, 2021
by
filip mertens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed comment and rm filemanager
parent
71bb22ce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
app.js
apps/remix-ide/src/app.js
+1
-1
dgitProvider.js
apps/remix-ide/src/app/files/dgitProvider.js
+2
-3
fileManager.js
apps/remix-ide/src/app/files/fileManager.js
+1
-2
No files found.
apps/remix-ide/src/app.js
View file @
432631f7
...
...
@@ -259,7 +259,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const
fileManager
=
new
FileManager
(
editor
,
appManager
)
registry
.
put
({
api
:
fileManager
,
name
:
'filemanager'
})
// ----------------- dGit provider ---------------------------------
const
dGitProvider
=
new
DGitProvider
(
fileManager
)
const
dGitProvider
=
new
DGitProvider
()
// ----------------- import content service ------------------------
const
contentImport
=
new
CompilerImport
(
fileManager
)
...
...
apps/remix-ide/src/app/files/dgitProvider.js
View file @
432631f7
...
...
@@ -24,9 +24,8 @@ const profile = {
kind
:
'file-system'
}
class
DGitProvider
extends
Plugin
{
constructor
(
fileManager
)
{
constructor
()
{
super
(
profile
)
this
.
fileManager
=
fileManager
this
.
ipfsconfig
=
{
host
:
'ipfs.komputing.org'
,
port
:
443
,
...
...
@@ -357,7 +356,7 @@ class DGitProvider extends Plugin {
async
getDirectory
(
dir
)
{
let
result
=
[]
const
files
=
await
this
.
fileManager
.
readdir
(
dir
)
const
files
=
await
this
.
call
(
'fileManager'
,
'readdir'
,
dir
)
const
fileArray
=
normalize
(
files
)
for
(
const
fi
of
fileArray
)
{
if
(
fi
)
{
...
...
apps/remix-ide/src/app/files/fileManager.js
View file @
432631f7
...
...
@@ -131,11 +131,10 @@ class FileManager extends Plugin {
/*
* refresh the file explorer
* TODO: it's a hack, can be better
*/
refresh
()
{
const
provider
=
this
.
fileProviderOf
(
'/'
)
// emit folderAdded so that File Explorer reloads the file tree
provider
.
event
.
emit
(
'folderAdded'
,
'/'
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment