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
33b2e383
Commit
33b2e383
authored
Sep 07, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix getFile and setFile
parent
75a98c3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pluginAPI.js
src/app/plugin/pluginAPI.js
+2
-2
No files found.
src/app/plugin/pluginAPI.js
View file @
33b2e383
...
@@ -78,7 +78,7 @@ module.exports = (pluginManager, fileProviders, fileManager, compiler, udapp) =>
...
@@ -78,7 +78,7 @@ module.exports = (pluginManager, fileProviders, fileManager, compiler, udapp) =>
var
provider
=
fileManager
.
fileProviderOf
(
path
)
var
provider
=
fileManager
.
fileProviderOf
(
path
)
if
(
provider
)
{
if
(
provider
)
{
// TODO add approval to user for external plugin to get the content of the given `path`
// TODO add approval to user for external plugin to get the content of the given `path`
provider
.
get
(
mod
+
'/'
+
path
,
(
error
,
content
)
=>
{
provider
.
get
(
path
,
(
error
,
content
)
=>
{
cb
(
error
,
content
)
cb
(
error
,
content
)
})
})
}
else
{
}
else
{
...
@@ -89,7 +89,7 @@ module.exports = (pluginManager, fileProviders, fileManager, compiler, udapp) =>
...
@@ -89,7 +89,7 @@ module.exports = (pluginManager, fileProviders, fileManager, compiler, udapp) =>
var
provider
=
fileManager
.
fileProviderOf
(
path
)
var
provider
=
fileManager
.
fileProviderOf
(
path
)
if
(
provider
)
{
if
(
provider
)
{
// TODO add approval to user for external plugin to set the content of the given `path`
// TODO add approval to user for external plugin to set the content of the given `path`
provider
.
set
(
mod
+
'/'
+
path
,
content
,
(
error
)
=>
{
provider
.
set
(
path
,
content
,
(
error
)
=>
{
cb
(
error
)
cb
(
error
)
})
})
}
else
{
}
else
{
...
...
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