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
98f5d8cc
Commit
98f5d8cc
authored
Apr 13, 2021
by
lianahus
Committed by
Liana Husikyan
Apr 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed home actions
parent
c34ce4b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
fileManager.js
apps/remix-ide/src/app/files/fileManager.js
+0
-1
workspaceFileProvider.js
apps/remix-ide/src/app/files/workspaceFileProvider.js
+2
-2
file-panel.js
apps/remix-ide/src/app/panels/file-panel.js
+2
-0
No files found.
apps/remix-ide/src/app/files/fileManager.js
View file @
98f5d8cc
...
@@ -563,7 +563,6 @@ class FileManager extends Plugin {
...
@@ -563,7 +563,6 @@ class FileManager extends Plugin {
if
(
file
.
startsWith
(
'browser'
))
{
if
(
file
.
startsWith
(
'browser'
))
{
return
this
.
_deps
.
filesProviders
.
browser
return
this
.
_deps
.
filesProviders
.
browser
}
}
const
provider
=
this
.
_deps
.
filesProviders
.
workspace
return
this
.
_deps
.
filesProviders
.
workspace
return
this
.
_deps
.
filesProviders
.
workspace
}
}
...
...
apps/remix-ide/src/app/files/workspaceFileProvider.js
View file @
98f5d8cc
...
@@ -80,8 +80,8 @@ class WorkspaceFileProvider extends FileProvider {
...
@@ -80,8 +80,8 @@ class WorkspaceFileProvider extends FileProvider {
return
path
.
replace
(
this
.
workspacesPath
+
'/'
+
this
.
workspace
+
'/'
,
''
)
return
path
.
replace
(
this
.
workspacesPath
+
'/'
+
this
.
workspace
+
'/'
,
''
)
}
}
createDefaultWorkspace
()
{
createDefaultWorkspace
()
{
this
.
workspace
=
'
workspace_default
'
this
.
workspace
=
'
generated_workspace
'
this
.
event
.
trigger
(
'create_workspace_default'
,
[
this
.
workspace
])
this
.
event
.
trigger
(
'create_workspace_default'
,
[
this
.
workspace
])
}
}
}
}
...
...
apps/remix-ide/src/app/panels/file-panel.js
View file @
98f5d8cc
...
@@ -175,10 +175,12 @@ module.exports = class Filepanel extends ViewPlugin {
...
@@ -175,10 +175,12 @@ module.exports = class Filepanel extends ViewPlugin {
}
}
async
createNewFile
()
{
async
createNewFile
()
{
if
(
!
this
.
workspaceExists
())
this
.
createWorkspace
(
'generated_workspace'
)
return
await
this
.
request
.
createNewFile
()
return
await
this
.
request
.
createNewFile
()
}
}
async
uploadFile
(
event
)
{
async
uploadFile
(
event
)
{
if
(
!
this
.
workspaceExists
())
this
.
createWorkspace
(
'generated_workspace'
)
return
await
this
.
request
.
uploadFile
(
event
)
return
await
this
.
request
.
uploadFile
(
event
)
}
}
...
...
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