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