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
a2a1ee8f
Commit
a2a1ee8f
authored
Sep 09, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix fileManager mode
parent
8892a0ee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
app.js
apps/remix-ide/src/app.js
+1
-1
compile-tab.js
apps/remix-ide/src/app/tabs/compile-tab.js
+6
-1
compiler-api.ts
apps/solidity-compiler/src/app/compiler-api.ts
+1
-5
compiler.ts
apps/solidity-compiler/src/app/compiler.ts
+4
-0
No files found.
apps/remix-ide/src/app.js
View file @
a2a1ee8f
...
...
@@ -425,7 +425,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
}
// CONTENT VIEWS & DEFAULT PLUGINS
const
compileTab
=
new
CompileTab
(
registry
.
get
(
'config'
).
api
)
const
compileTab
=
new
CompileTab
(
registry
.
get
(
'config'
).
api
,
registry
.
get
(
'filemanager'
).
api
)
const
run
=
new
RunTab
(
blockchain
,
registry
.
get
(
'config'
).
api
,
...
...
apps/remix-ide/src/app/tabs/compile-tab.js
View file @
a2a1ee8f
...
...
@@ -32,8 +32,9 @@ const profile = {
// - methods: ['getCompilationResult']
class
CompileTab
extends
CompilerApiMixin
(
ViewPlugin
)
{
// implements ICompilerApi
constructor
(
config
)
{
constructor
(
config
,
fileManager
)
{
super
(
profile
)
this
.
fileManager
this
.
config
=
config
this
.
queryParams
=
new
QueryParams
()
this
.
compileTabLogic
=
new
CompileTabLogic
(
this
,
this
.
contentImport
)
...
...
@@ -87,6 +88,10 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) { // implements ICompilerA
return
super
.
getCompilationResult
()
}
getFileManagerMode
()
{
return
this
.
fileManager
.
mode
}
/**
* set the compiler configuration
* This function is used by remix-plugin compiler API.
...
...
apps/solidity-compiler/src/app/compiler-api.ts
View file @
a2a1ee8f
import
{
compile
}
from
'@remix-project/remix-solidity'
import
{
CompileTabLogic
,
parseContracts
}
from
'@remix-ui/solidity-compiler'
// eslint-disable-line
import
{
ConfigurationSettings
}
from
'@remix-project/remix-lib-ts'
import
type
{
ConfigurationSettings
}
from
'@remix-project/remix-lib-ts'
export
const
CompilerApiMixin
=
(
Base
)
=>
class
extends
Base
{
currentFile
:
string
...
...
@@ -158,10 +158,6 @@ export const CompilerApiMixin = (Base) => class extends Base {
this
.
configurationSettings
=
settings
}
getFileManagerMode
()
{
return
'browser'
}
fileExists
(
fileName
)
{
return
this
.
call
(
'fileManager'
,
'exists'
,
fileName
)
}
...
...
apps/solidity-compiler/src/app/compiler.ts
View file @
a2a1ee8f
...
...
@@ -68,4 +68,8 @@ export class CompilerClientApi extends CompilerApiMixin(PluginClient) implements
setAppParameter
(
name
,
value
)
{
localStorage
.
setItem
(
name
,
value
)
}
getFileManagerMode
()
{
return
'browser'
}
}
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