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
8f952134
Commit
8f952134
authored
Aug 17, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setHardHatCompilation in api
parent
bd57bc5b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
compiler-container.tsx
...remix-ui/solidity-compiler/src/lib/compiler-container.tsx
+2
-2
solidity-compiler.tsx
.../remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx
+2
-2
index.ts
libs/remix-ui/solidity-compiler/src/lib/types/index.ts
+0
-2
No files found.
libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx
View file @
8f952134
...
@@ -18,7 +18,7 @@ declare global {
...
@@ -18,7 +18,7 @@ declare global {
const
_paq
=
window
.
_paq
=
window
.
_paq
||
[]
//eslint-disable-line
const
_paq
=
window
.
_paq
=
window
.
_paq
||
[]
//eslint-disable-line
export
const
CompilerContainer
=
(
props
:
CompilerContainerProps
)
=>
{
export
const
CompilerContainer
=
(
props
:
CompilerContainerProps
)
=>
{
const
{
api
,
compileTabLogic
,
tooltip
,
modal
,
compiledFileName
,
setHardHatCompilation
,
updateCurrentVersion
,
configurationSettings
}
=
props
// eslint-disable-line
const
{
api
,
compileTabLogic
,
tooltip
,
modal
,
compiledFileName
,
updateCurrentVersion
,
configurationSettings
}
=
props
// eslint-disable-line
const
[
state
,
setState
]
=
useState
({
const
[
state
,
setState
]
=
useState
({
hideWarnings
:
false
,
hideWarnings
:
false
,
autoCompile
:
false
,
autoCompile
:
false
,
...
@@ -483,7 +483,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
...
@@ -483,7 +483,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
const
checked
=
event
.
target
.
checked
const
checked
=
event
.
target
.
checked
sethhCompilation
(
checked
)
sethhCompilation
(
checked
)
setHardHatCompilation
(
checked
)
api
.
setHardHatCompilation
(
checked
)
}
}
/*
/*
...
...
libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx
View file @
8f952134
...
@@ -9,7 +9,7 @@ import { Renderer } from '@remix-ui/renderer' // eslint-disable-line
...
@@ -9,7 +9,7 @@ import { Renderer } from '@remix-ui/renderer' // eslint-disable-line
import
'./css/style.css'
import
'./css/style.css'
export
const
SolidityCompiler
=
(
props
:
SolidityCompilerProps
)
=>
{
export
const
SolidityCompiler
=
(
props
:
SolidityCompilerProps
)
=>
{
const
{
plugin
,
plugin
:
{
compileTabLogic
,
contractsDetails
,
contractMap
,
compileErrors
,
setHardHatCompilation
,
configurationSettings
}
}
=
props
const
{
plugin
,
plugin
:
{
compileTabLogic
,
contractsDetails
,
contractMap
,
compileErrors
,
configurationSettings
}
}
=
props
const
[
state
,
setState
]
=
useState
({
const
[
state
,
setState
]
=
useState
({
contractsDetails
:
{},
contractsDetails
:
{},
eventHandlers
:
{},
eventHandlers
:
{},
...
@@ -79,7 +79,7 @@ export const SolidityCompiler = (props: SolidityCompilerProps) => {
...
@@ -79,7 +79,7 @@ export const SolidityCompiler = (props: SolidityCompilerProps) => {
return
(
return
(
<>
<>
<
div
id=
"compileTabView"
>
<
div
id=
"compileTabView"
>
<
CompilerContainer
api=
{
plugin
}
compileTabLogic=
{
compileTabLogic
}
tooltip=
{
toast
}
modal=
{
modal
}
compiledFileName=
{
currentFile
}
setHardHatCompilation=
{
setHardHatCompilation
.
bind
(
plugin
)
}
updateCurrentVersion=
{
updateCurrentVersion
}
configurationSettings=
{
configurationSettings
}
/>
<
CompilerContainer
api=
{
plugin
}
compileTabLogic=
{
compileTabLogic
}
tooltip=
{
toast
}
modal=
{
modal
}
compiledFileName=
{
currentFile
}
updateCurrentVersion=
{
updateCurrentVersion
}
configurationSettings=
{
configurationSettings
}
/>
<
ContractSelection
api=
{
plugin
}
contractMap=
{
contractMap
}
contractsDetails=
{
contractsDetails
}
modal=
{
modal
}
/>
<
ContractSelection
api=
{
plugin
}
contractMap=
{
contractMap
}
contractsDetails=
{
contractsDetails
}
modal=
{
modal
}
/>
<
div
className=
"remixui_errorBlobs p-4"
data
-
id=
"compiledErrors"
>
<
div
className=
"remixui_errorBlobs p-4"
data
-
id=
"compiledErrors"
>
<
span
data
-
id=
{
`compilationFinishedWith_${currentVersion}`
}
></
span
>
<
span
data
-
id=
{
`compilationFinishedWith_${currentVersion}`
}
></
span
>
...
...
libs/remix-ui/solidity-compiler/src/lib/types/index.ts
View file @
8f952134
...
@@ -9,7 +9,6 @@ export interface SolidityCompilerProps {
...
@@ -9,7 +9,6 @@ export interface SolidityCompilerProps {
contentImport
:
any
,
contentImport
:
any
,
call
:
(...
args
)
=>
void
call
:
(...
args
)
=>
void
on
:
(...
args
)
=>
void
,
on
:
(...
args
)
=>
void
,
setHardHatCompilation
:
(
value
:
boolean
)
=>
void
,
setSelectedVersion
:
(
value
:
string
)
=>
void
,
setSelectedVersion
:
(
value
:
string
)
=>
void
,
configurationSettings
:
ConfigurationSettings
,
configurationSettings
:
ConfigurationSettings
,
getConfiguration
:
(
value
:
string
)
=>
string
,
getConfiguration
:
(
value
:
string
)
=>
string
,
...
@@ -23,7 +22,6 @@ export interface CompilerContainerProps {
...
@@ -23,7 +22,6 @@ export interface CompilerContainerProps {
tooltip
:
(
message
:
string
|
JSX
.
Element
)
=>
void
,
tooltip
:
(
message
:
string
|
JSX
.
Element
)
=>
void
,
modal
:
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
void
,
modal
:
(
title
:
string
,
message
:
string
|
JSX
.
Element
,
okLabel
:
string
,
okFn
:
()
=>
void
,
cancelLabel
?:
string
,
cancelFn
?:
()
=>
void
)
=>
void
,
compiledFileName
:
string
,
compiledFileName
:
string
,
setHardHatCompilation
:
(
value
:
boolean
)
=>
void
,
updateCurrentVersion
:
any
,
updateCurrentVersion
:
any
,
configurationSettings
:
ConfigurationSettings
configurationSettings
:
ConfigurationSettings
}
}
...
...
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