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
861fcfa0
Commit
861fcfa0
authored
Jan 11, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed fileExplorer bugs
parent
07190897
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
fileProvider.js
apps/remix-ide/src/app/files/fileProvider.js
+2
-2
eventManager.ts
libs/remix-lib/src/eventManager.ts
+1
-1
file-explorer-context-menu.tsx
...x-ui/file-explorer/src/lib/file-explorer-context-menu.tsx
+1
-1
No files found.
apps/remix-ide/src/app/files/fileProvider.js
View file @
861fcfa0
...
@@ -63,10 +63,10 @@ class FileProvider {
...
@@ -63,10 +63,10 @@ class FileProvider {
})
})
}
}
exists
(
path
)
{
exists
(
path
,
cb
)
{
// todo check the type (directory/file) as well #2386
// todo check the type (directory/file) as well #2386
// currently it is not possible to have a file and folder with same path
// currently it is not possible to have a file and folder with same path
return
this
.
_exists
(
path
)
return
cb
(
null
,
this
.
_exists
(
path
)
)
}
}
_exists
(
path
)
{
_exists
(
path
)
{
...
...
libs/remix-lib/src/eventManager.ts
View file @
861fcfa0
...
@@ -26,7 +26,7 @@ export class EventManager {
...
@@ -26,7 +26,7 @@ export class EventManager {
obj
=
this
.
anonymous
obj
=
this
.
anonymous
}
}
for
(
const
reg
in
this
.
registered
[
eventName
])
{
for
(
const
reg
in
this
.
registered
[
eventName
])
{
if
((
this
.
registered
[
eventName
][
reg
].
obj
.
toString
()
===
obj
.
toString
()
)
&&
(
this
.
registered
[
eventName
][
reg
].
func
.
toString
()
===
func
.
toString
()))
{
if
((
this
.
registered
[
eventName
][
reg
].
obj
===
obj
)
&&
(
this
.
registered
[
eventName
][
reg
].
func
.
toString
()
===
func
.
toString
()))
{
this
.
registered
[
eventName
].
splice
(
reg
,
1
)
this
.
registered
[
eventName
].
splice
(
reg
,
1
)
}
}
}
}
...
...
libs/remix-ui/file-explorer/src/lib/file-explorer-context-menu.tsx
View file @
861fcfa0
...
@@ -4,7 +4,7 @@ import { FileExplorerContextMenuProps } from './types'
...
@@ -4,7 +4,7 @@ import { FileExplorerContextMenuProps } from './types'
import
'./css/file-explorer-context-menu.css'
import
'./css/file-explorer-context-menu.css'
export
const
FileExplorerContextMenu
=
(
props
:
FileExplorerContextMenuProps
)
=>
{
export
const
FileExplorerContextMenu
=
(
props
:
FileExplorerContextMenuProps
)
=>
{
const
{
actions
,
createNewFile
,
createNewFolder
,
deletePath
,
renamePath
,
hideContextMenu
,
extractParentFromKey
,
publishToGist
,
runScript
,
pageX
,
pageY
,
path
,
type
,
...
otherProps
}
=
props
const
{
actions
,
createNewFile
,
createNewFolder
,
deletePath
,
renamePath
,
hideContextMenu
,
publishToGist
,
runScript
,
pageX
,
pageY
,
path
,
type
,
...
otherProps
}
=
props
const
contextMenuRef
=
useRef
(
null
)
const
contextMenuRef
=
useRef
(
null
)
useEffect
(()
=>
{
useEffect
(()
=>
{
...
...
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