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
e1af015b
Commit
e1af015b
authored
Aug 19, 2021
by
yann300
Committed by
davidzagi93@gmail.com
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure API is public
parent
6195a1fb
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 @
e1af015b
...
@@ -196,12 +196,20 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) {
...
@@ -196,12 +196,20 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) {
return
this
.
el
return
this
.
el
}
}
async
compileWithParameters
(
compilationTargets
,
settings
)
{
return
await
super
.
compileWithParameters
(
compilationTargets
,
settings
)
}
getCompilationResult
()
{
return
super
.
getCompilationResult
()
}
/**
/**
* 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.
* @param {object} settings {evmVersion, optimize, runs, version, language}
* @param {object} settings {evmVersion, optimize, runs, version, language}
*/
*/
setCompilerConfig
(
settings
)
{
setCompilerConfig
(
settings
)
{
super
.
setCompilerConfig
(
settings
)
super
.
setCompilerConfig
(
settings
)
this
.
renderComponent
()
this
.
renderComponent
()
// @todo(#2875) should use loading compiler return value to check whether the compiler is loaded instead of "setInterval"
// @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) {
...
@@ -213,6 +221,10 @@ class CompileTab extends CompilerApiMixin(ViewPlugin) {
super
.
compile
(
fileName
)
super
.
compile
(
fileName
)
}
}
compileFile
(
event
)
{
return
super
.
compileFile
(
event
)
}
onActivation
()
{
onActivation
()
{
super
.
onActivation
()
super
.
onActivation
()
this
.
call
(
'filePanel'
,
'registerContextMenuItem'
,
{
this
.
call
(
'filePanel'
,
'registerContextMenuItem'
,
{
...
...
apps/solidity-compiler/src/app/compiler.ts
View file @
e1af015b
...
@@ -2,6 +2,19 @@ import { PluginClient } from "@remixproject/plugin";
...
@@ -2,6 +2,19 @@ import { PluginClient } from "@remixproject/plugin";
import
{
createClient
}
from
"@remixproject/plugin-webview"
;
import
{
createClient
}
from
"@remixproject/plugin-webview"
;
import
{
CompilerApiMixin
}
from
'./compiler-api'
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
{
export
interface
ConfigurationSettings
{
version
:
string
,
version
:
string
,
evmVersion
:
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