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
bd57bc5b
Commit
bd57bc5b
authored
Aug 17, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put isHardHatProject in api
parent
0be2e279
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 @
bd57bc5b
...
...
@@ -18,7 +18,7 @@ declare global {
const
_paq
=
window
.
_paq
=
window
.
_paq
||
[]
//eslint-disable-line
export
const
CompilerContainer
=
(
props
:
CompilerContainerProps
)
=>
{
const
{
api
,
compileTabLogic
,
tooltip
,
modal
,
compiledFileName
,
setHardHatCompilation
,
updateCurrentVersion
,
isHardHatProject
,
configurationSettings
}
=
props
// eslint-disable-line
const
{
api
,
compileTabLogic
,
tooltip
,
modal
,
compiledFileName
,
setHardHatCompilation
,
updateCurrentVersion
,
configurationSettings
}
=
props
// eslint-disable-line
const
[
state
,
setState
]
=
useState
({
hideWarnings
:
false
,
autoCompile
:
false
,
...
...
@@ -574,7 +574,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
</
div
>
</
div
>
{
isHardHatProject
&&
api
.
isHardHatProject
&&
<
div
className=
"mt-3 remixui_compilerConfig custom-control custom-checkbox"
>
<
input
className=
"remixui_autocompile custom-control-input"
onChange=
{
updatehhCompilation
}
id=
"enableHardhat"
type=
"checkbox"
title=
"Enable Hardhat Compilation"
checked=
{
hhCompilation
}
/>
<
label
className=
"form-check-label custom-control-label"
htmlFor=
"enableHardhat"
>
Enable Hardhat Compilation
</
label
>
...
...
libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx
View file @
bd57bc5b
...
...
@@ -9,7 +9,7 @@ import { Renderer } from '@remix-ui/renderer' // eslint-disable-line
import
'./css/style.css'
export
const
SolidityCompiler
=
(
props
:
SolidityCompilerProps
)
=>
{
const
{
plugin
,
plugin
:
{
compileTabLogic
,
contractsDetails
,
contractMap
,
compileErrors
,
isHardHatProject
,
setHardHatCompilation
,
configurationSettings
}
}
=
props
const
{
plugin
,
plugin
:
{
compileTabLogic
,
contractsDetails
,
contractMap
,
compileErrors
,
setHardHatCompilation
,
configurationSettings
}
}
=
props
const
[
state
,
setState
]
=
useState
({
contractsDetails
:
{},
eventHandlers
:
{},
...
...
@@ -79,7 +79,7 @@ export const SolidityCompiler = (props: SolidityCompilerProps) => {
return
(
<>
<
div
id=
"compileTabView"
>
<
CompilerContainer
api=
{
plugin
}
compileTabLogic=
{
compileTabLogic
}
tooltip=
{
toast
}
modal=
{
modal
}
compiledFileName=
{
currentFile
}
setHardHatCompilation=
{
setHardHatCompilation
.
bind
(
plugin
)
}
updateCurrentVersion=
{
updateCurrentVersion
}
isHardHatProject=
{
isHardHatProject
}
configurationSettings=
{
configurationSettings
}
/>
<
CompilerContainer
api=
{
plugin
}
compileTabLogic=
{
compileTabLogic
}
tooltip=
{
toast
}
modal=
{
modal
}
compiledFileName=
{
currentFile
}
setHardHatCompilation=
{
setHardHatCompilation
.
bind
(
plugin
)
}
updateCurrentVersion=
{
updateCurrentVersion
}
configurationSettings=
{
configurationSettings
}
/>
<
ContractSelection
api=
{
plugin
}
contractMap=
{
contractMap
}
contractsDetails=
{
contractsDetails
}
modal=
{
modal
}
/>
<
div
className=
"remixui_errorBlobs p-4"
data
-
id=
"compiledErrors"
>
<
span
data
-
id=
{
`compilationFinishedWith_${currentVersion}`
}
></
span
>
...
...
libs/remix-ui/solidity-compiler/src/lib/types/index.ts
View file @
bd57bc5b
...
...
@@ -4,7 +4,6 @@ export interface SolidityCompilerProps {
file
:
string
}
|
Record
<
string
,
any
>
compileErrors
:
any
,
isHardHatProject
:
boolean
,
compileTabLogic
:
any
,
contractsDetails
:
Record
<
string
,
any
>
,
contentImport
:
any
,
...
...
@@ -26,7 +25,6 @@ export interface CompilerContainerProps {
compiledFileName
:
string
,
setHardHatCompilation
:
(
value
:
boolean
)
=>
void
,
updateCurrentVersion
:
any
,
isHardHatProject
:
boolean
,
configurationSettings
:
ConfigurationSettings
}
export
interface
ContractSelectionProps
{
...
...
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