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
64dac247
Commit
64dac247
authored
Aug 19, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure API is public
parent
bc275008
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
compile-tab.js
apps/remix-ide/src/app/tabs/compile-tab.js
+13
-1
compiler.ts
apps/solidity-compiler/src/app/compiler.ts
+13
-0
No files found.
apps/remix-ide/src/app/tabs/compile-tab.js
View file @
64dac247
...
...
@@ -196,12 +196,20 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) {
return
this
.
el
}
async
compileWithParameters
(
compilationTargets
,
settings
)
{
return
await
super
.
compileWithParameters
(
compilationTargets
,
settings
)
}
getCompilationResult
()
{
return
super
.
getCompilationResult
()
}
/**
* set the compiler configuration
* This function is used by remix-plugin compiler API.
* @param {object} settings {evmVersion, optimize, runs, version, language}
*/
setCompilerConfig
(
settings
)
{
setCompilerConfig
(
settings
)
{
super
.
setCompilerConfig
(
settings
)
this
.
renderComponent
()
// @todo(#2875) should use loading compiler return value to check whether the compiler is loaded instead of "setInterval"
...
...
@@ -213,6 +221,10 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) {
super
.
compile
(
fileName
)
}
compileFile
(
event
)
{
return
super
.
compileFile
(
event
)
}
onActivation
()
{
super
.
onActivation
()
this
.
call
(
'filePanel'
,
'registerContextMenuItem'
,
{
...
...
apps/solidity-compiler/src/app/compiler.ts
View file @
64dac247
...
...
@@ -2,6 +2,19 @@ import { PluginClient } from "@remixproject/plugin";
import
{
createClient
}
from
"@remixproject/plugin-webview"
;
import
{
CompilerApiMixin
}
from
'./compiler-api'
const
profile
=
{
name
:
'solidity'
,
displayName
:
'Solidity compiler'
,
icon
:
'assets/img/solidity.webp'
,
description
:
'Compile solidity contracts'
,
kind
:
'compiler'
,
permission
:
true
,
location
:
'sidePanel'
,
documentation
:
'https://remix-ide.readthedocs.io/en/latest/solidity_editor.html'
,
version
:
'0.0.1'
,
methods
:
[
'getCompilationResult'
,
'compile'
,
'compileWithParameters'
,
'setCompilerConfig'
,
'compileFile'
]
}
export
interface
ConfigurationSettings
{
version
:
string
,
evmVersion
:
string
,
...
...
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