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
c6e642af
Commit
c6e642af
authored
Feb 08, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix basicReadOnlyExplorer
parent
c74eff01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
basicReadOnlyExplorer.js
src/app/files/basicReadOnlyExplorer.js
+3
-1
No files found.
src/app/files/basicReadOnlyExplorer.js
View file @
c6e642af
...
@@ -27,7 +27,8 @@ class BasicReadOnlyExplorer {
...
@@ -27,7 +27,8 @@ class BasicReadOnlyExplorer {
}
}
get
(
path
,
cb
)
{
get
(
path
,
cb
)
{
var
content
=
this
.
files
[
path
]
var
unprefixedPath
=
this
.
removePrefix
(
path
)
var
content
=
this
.
files
[
unprefixedPath
]
if
(
!
content
)
{
if
(
!
content
)
{
content
=
this
.
files
[
this
.
type
+
'/'
+
this
.
normalizedNames
[
path
]]
content
=
this
.
files
[
this
.
type
+
'/'
+
this
.
normalizedNames
[
path
]]
}
}
...
@@ -48,6 +49,7 @@ class BasicReadOnlyExplorer {
...
@@ -48,6 +49,7 @@ class BasicReadOnlyExplorer {
try
{
// lazy try to format JSON
try
{
// lazy try to format JSON
content
=
JSON
.
stringify
(
JSON
.
parse
(
content
),
null
,
'
\
t'
)
content
=
JSON
.
stringify
(
JSON
.
parse
(
content
),
null
,
'
\
t'
)
}
catch
(
e
)
{}
}
catch
(
e
)
{}
if
(
!
rawPath
)
rawPath
=
path
// splitting off the path in a tree structure, the json tree is used in `resolveDirectory`
// splitting off the path in a tree structure, the json tree is used in `resolveDirectory`
var
split
=
path
var
split
=
path
var
folder
=
false
var
folder
=
false
...
...
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