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
464f0f65
Commit
464f0f65
authored
Jun 18, 2021
by
aniket-engg
Committed by
Aniket
Jul 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable slither checkbox added
parent
040a8a91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+19
-0
No files found.
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
464f0f65
...
...
@@ -55,6 +55,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
return
indexOfCategory
}
const
[
autoRun
,
setAutoRun
]
=
useState
(
true
)
const
[
slitherEnabled
,
setSlitherEnabled
]
=
useState
(
false
)
const
[
categoryIndex
,
setCategoryIndex
]
=
useState
(
groupedModuleIndex
(
groupedModules
))
const
warningContainer
=
React
.
useRef
(
null
)
...
...
@@ -223,6 +224,14 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
}
}
const
handleSlitherEnabled
=
()
=>
{
if
(
slitherEnabled
)
{
setSlitherEnabled
(
false
)
}
else
{
setSlitherEnabled
(
true
)
}
}
const
handleAutoRun
=
()
=>
{
if
(
autoRun
)
{
setAutoRun
(
false
)
...
...
@@ -321,6 +330,16 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
onChange=
{
()
=>
{}
}
/>
<
Button
buttonText=
"Run"
onClick=
{
()
=>
run
(
state
.
data
,
state
.
source
,
state
.
file
)
}
disabled=
{
state
.
data
===
null
||
categoryIndex
.
length
===
0
}
/>
</
div
>
<
div
className=
"d-flex"
id=
"enableSlitherAnalysis"
>
<
RemixUiCheckbox
id=
"enableSlither"
inputType=
"checkbox"
onClick=
{
handleSlitherEnabled
}
checked=
{
slitherEnabled
}
label=
"Enable Slither Analysis"
onChange=
{
()
=>
{}
}
/>
</
div
>
</
div
>
<
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