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
2363841f
Commit
2363841f
authored
Nov 01, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed boken UI for workspace named 'test', pass directory name for fileManager refresh.
parent
e61d08f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
fileManager.js
apps/remix-ide/src/app/files/fileManager.js
+1
-1
workspaceFileProvider.js
apps/remix-ide/src/app/files/workspaceFileProvider.js
+7
-1
workspace.ts
libs/remix-ui/workspace/src/lib/reducers/workspace.ts
+2
-1
No files found.
apps/remix-ide/src/app/files/fileManager.js
View file @
2363841f
...
...
@@ -140,7 +140,7 @@ class FileManager extends Plugin {
refresh
()
{
const
provider
=
this
.
fileProviderOf
(
'/'
)
// emit rootFolderChanged so that File Explorer reloads the file tree
provider
.
event
.
emit
(
'rootFolderChanged'
)
provider
.
event
.
emit
(
'rootFolderChanged'
,
provider
.
workspace
||
'/'
)
}
/**
...
...
apps/remix-ide/src/app/files/workspaceFileProvider.js
View file @
2363841f
...
...
@@ -33,7 +33,13 @@ class WorkspaceFileProvider extends FileProvider {
removePrefix
(
path
)
{
path
=
path
.
replace
(
/^
\/
|
\/
$/g
,
''
)
// remove first and last slash
if
(
path
.
startsWith
(
this
.
workspacesPath
+
'/'
+
this
.
workspace
))
return
path
if
(
path
.
startsWith
(
this
.
workspace
))
return
path
.
replace
(
this
.
workspace
,
this
.
workspacesPath
+
'/'
+
this
.
workspace
)
const
splitPath
=
path
.
split
(
'/'
)
if
(
splitPath
[
0
]
===
this
.
workspace
)
{
splitPath
[
0
]
=
this
.
workspacesPath
+
'/'
+
this
.
workspace
path
=
splitPath
.
join
(
'/'
)
return
path
}
path
=
super
.
removePrefix
(
path
)
let
ret
=
this
.
workspacesPath
+
'/'
+
this
.
workspace
+
'/'
+
(
path
===
'/'
?
''
:
path
)
...
...
libs/remix-ui/workspace/src/lib/reducers/workspace.ts
View file @
2363841f
...
...
@@ -231,7 +231,8 @@ export const browserReducer = (state = browserInitialState, action: Action) => {
files
:
state
.
mode
===
'localhost'
?
fetchWorkspaceDirectoryContent
(
state
,
payload
)
:
state
.
localhost
.
files
,
isRequestingWorkspace
:
false
,
isSuccessfulWorkspace
:
true
,
error
:
null
error
:
null
,
sharedFolder
:
null
}
}
}
...
...
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