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
d6fd5209
Commit
d6fd5209
authored
May 07, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed linting error
parent
210671fb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
file-explorer.js
src/app/files/file-explorer.js
+1
-1
fileManager.js
src/app/files/fileManager.js
+2
-2
fileProvider.js
src/app/files/fileProvider.js
+1
-1
remixDProvider.js
src/app/files/remixDProvider.js
+1
-1
remixd.js
src/lib/remixd.js
+1
-1
No files found.
src/app/files/file-explorer.js
View file @
d6fd5209
...
@@ -237,7 +237,7 @@ function fileExplorer (localRegistry, files, menuItems) {
...
@@ -237,7 +237,7 @@ function fileExplorer (localRegistry, files, menuItems) {
async
()
=>
{
async
()
=>
{
const
fileManager
=
self
.
_deps
.
fileManager
const
fileManager
=
self
.
_deps
.
fileManager
const
removeFolder
=
await
fileManager
.
remove
(
key
)
const
removeFolder
=
await
fileManager
.
remove
(
key
)
if
(
!
removeFolder
)
{
if
(
!
removeFolder
)
{
tooltip
(
`failed to remove
${
key
}
. Make sure the directory is empty before removing it.`
)
tooltip
(
`failed to remove
${
key
}
. Make sure the directory is empty before removing it.`
)
}
else
{
}
else
{
...
...
src/app/files/fileManager.js
View file @
d6fd5209
...
@@ -110,7 +110,7 @@ class FileManager extends Plugin {
...
@@ -110,7 +110,7 @@ class FileManager extends Plugin {
if
(
err
)
return
false
if
(
err
)
return
false
return
result
return
result
})
})
return
result
return
result
}
}
...
@@ -199,7 +199,7 @@ class FileManager extends Plugin {
...
@@ -199,7 +199,7 @@ class FileManager extends Plugin {
async
rename
(
oldPath
,
newPath
)
{
async
rename
(
oldPath
,
newPath
)
{
await
this
.
__handleExists
(
oldPath
,
`Cannot rename
${
oldPath
}
`
)
await
this
.
__handleExists
(
oldPath
,
`Cannot rename
${
oldPath
}
`
)
const
isFile
=
await
this
.
isFile
(
oldPath
)
const
isFile
=
await
this
.
isFile
(
oldPath
)
this
.
fileRenamedEvent
(
oldPath
,
newPath
,
!
isFile
)
this
.
fileRenamedEvent
(
oldPath
,
newPath
,
!
isFile
)
}
}
...
...
src/app/files/fileProvider.js
View file @
d6fd5209
...
@@ -140,7 +140,7 @@ class FileProvider {
...
@@ -140,7 +140,7 @@ class FileProvider {
isDirectory
(
path
)
{
isDirectory
(
path
)
{
const
unprefixedpath
=
this
.
removePrefix
(
path
)
const
unprefixedpath
=
this
.
removePrefix
(
path
)
return
path
===
this
.
type
?
true
:
window
.
remixFileSystem
.
statSync
(
unprefixedpath
).
isDirectory
()
return
path
===
this
.
type
?
true
:
window
.
remixFileSystem
.
statSync
(
unprefixedpath
).
isDirectory
()
}
}
...
...
src/app/files/remixDProvider.js
View file @
d6fd5209
...
@@ -128,7 +128,7 @@ module.exports = class RemixDProvider {
...
@@ -128,7 +128,7 @@ module.exports = class RemixDProvider {
this
.
event
.
trigger
(
'fileRemoved'
,
[
path
])
this
.
event
.
trigger
(
'fileRemoved'
,
[
path
])
})
})
})
})
return
await
this
.
_remixd
.
receiveResponse
(
callId
)
return
await
this
.
_remixd
.
receiveResponse
(
callId
)
}
}
...
...
src/lib/remixd.js
View file @
d6fd5209
...
@@ -75,7 +75,7 @@ class Remixd {
...
@@ -75,7 +75,7 @@ class Remixd {
})
})
}
}
async
receiveResponse
(
requestId
)
{
async
receiveResponse
(
requestId
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
event
.
register
(
'replied'
,
(
data
)
=>
{
this
.
event
.
register
(
'replied'
,
(
data
)
=>
{
if
(
data
.
id
===
requestId
)
{
if
(
data
.
id
===
requestId
)
{
...
...
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