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
a99e650c
Commit
a99e650c
authored
Jul 30, 2021
by
aniket-engg
Committed by
Aniket
Aug 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
info icon added for Slither usage
parent
9b91337c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+3
-3
No files found.
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
a99e650c
import
React
,
{
useEffect
,
useState
,
useReducer
}
from
'react'
import
React
,
{
useEffect
,
useState
,
useReducer
,
CSSProperties
}
from
'react'
import
Button
from
'./Button/StaticAnalyserButton'
// eslint-disable-line
import
Button
from
'./Button/StaticAnalyserButton'
// eslint-disable-line
import
remixLib
from
'@remix-project/remix-lib'
import
remixLib
from
'@remix-project/remix-lib'
import
_
from
'lodash'
import
_
from
'lodash'
...
@@ -401,7 +401,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
...
@@ -401,7 +401,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
/>
/>
<
Button
buttonText=
"Run"
onClick=
{
()
=>
run
(
state
.
data
,
state
.
source
,
state
.
file
)
}
disabled=
{
(
state
.
data
===
null
||
categoryIndex
.
length
===
0
)
&&
!
slitherEnabled
}
/>
<
Button
buttonText=
"Run"
onClick=
{
()
=>
run
(
state
.
data
,
state
.
source
,
state
.
file
)
}
disabled=
{
(
state
.
data
===
null
||
categoryIndex
.
length
===
0
)
&&
!
slitherEnabled
}
/>
</
div
>
</
div
>
<
div
className=
"d-flex"
id=
"enableSlitherAnalysis"
>
<
div
className=
"d-flex"
id=
"enableSlitherAnalysis"
style=
{
{
visibility
:
showSlither
}
as
CSSProperties
}
>
<
RemixUiCheckbox
<
RemixUiCheckbox
id=
"enableSlither"
id=
"enableSlither"
inputType=
"checkbox"
inputType=
"checkbox"
...
@@ -409,8 +409,8 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
...
@@ -409,8 +409,8 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
checked=
{
slitherEnabled
}
checked=
{
slitherEnabled
}
label=
"Enable Slither Analysis"
label=
"Enable Slither Analysis"
onChange=
{
()
=>
{}
}
onChange=
{
()
=>
{}
}
visibility
=
{
showSlither
}
/>
/>
<
a
href=
"https://remix-ide.readthedocs.io/en/latest/slither.html#enable-slither-analysis"
target=
"_blank"
><
i
className=
"ml-2 fas fa-info"
title=
"Know how to use Slither Analysis"
></
i
></
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
id=
"staticanalysismodules"
className=
"list-group list-group-flush"
>
<
div
id=
"staticanalysismodules"
className=
"list-group list-group-flush"
>
...
...
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