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
9c380339
Commit
9c380339
authored
Sep 11, 2019
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed 'focus' event registration to explorer
parent
ce5e0580
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
33 deletions
+5
-33
file-explorer.js
src/app/files/file-explorer.js
+4
-0
file-panel.js
src/app/panels/file-panel.js
+1
-33
No files found.
src/app/files/file-explorer.js
View file @
9c380339
...
@@ -62,6 +62,10 @@ function fileExplorer (localRegistry, files, menuItems) {
...
@@ -62,6 +62,10 @@ function fileExplorer (localRegistry, files, menuItems) {
fileManager
:
self
.
_components
.
registry
.
get
(
'filemanager'
).
api
fileManager
:
self
.
_components
.
registry
.
get
(
'filemanager'
).
api
}
}
self
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
self
.
_components
.
registry
.
put
({
api
:
self
,
name
:
`fileexplorer/
${
self
.
files
.
type
}
`
})
self
.
_components
.
registry
.
put
({
api
:
self
,
name
:
`fileexplorer/
${
self
.
files
.
type
}
`
})
// warn if file changed outside of Remix
// warn if file changed outside of Remix
...
...
src/app/panels/file-panel.js
View file @
9c380339
...
@@ -56,7 +56,7 @@ module.exports = class Filepanel extends ViewPlugin {
...
@@ -56,7 +56,7 @@ module.exports = class Filepanel extends ViewPlugin {
[
'createNewFile'
,
'publishToGist'
,
'copyFiles'
,
canUpload
?
'uploadFile'
:
''
]
[
'createNewFile'
,
'publishToGist'
,
'copyFiles'
,
canUpload
?
'uploadFile'
:
''
]
)
)
function
createProvider
(
key
)
{
function
createProvider
(
key
)
{
return
new
FileExplorer
(
self
.
_components
.
registry
,
self
.
_deps
.
fileProviders
[
key
])
return
new
FileExplorer
(
self
.
_components
.
registry
,
self
.
_deps
.
fileProviders
[
key
])
}
}
...
@@ -113,38 +113,6 @@ module.exports = class Filepanel extends ViewPlugin {
...
@@ -113,38 +113,6 @@ module.exports = class Filepanel extends ViewPlugin {
fileSystemExplorer
.
hide
()
fileSystemExplorer
.
hide
()
})
})
fileExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
fileSystemExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
swarmExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
githubExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
gistExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
httpExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
httpsExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
ipfsExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
self
.
render
=
function
render
()
{
return
element
}
self
.
render
=
function
render
()
{
return
element
}
}
}
}
}
...
...
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