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
fe8b42a9
Commit
fe8b42a9
authored
Jun 25, 2021
by
aniket-engg
Committed by
Aniket
Jul 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
visibility to display
parent
44d2846f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
remix-ui-checkbox.tsx
libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx
+4
-2
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+4
-4
No files found.
libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx
View file @
fe8b42a9
...
@@ -13,6 +13,7 @@ export interface RemixUiCheckboxProps {
...
@@ -13,6 +13,7 @@ export interface RemixUiCheckboxProps {
itemName
?:
string
itemName
?:
string
categoryId
?:
string
categoryId
?:
string
visibility
?:
string
visibility
?:
string
display
?:
string
}
}
export
const
RemixUiCheckbox
=
({
export
const
RemixUiCheckbox
=
({
...
@@ -25,10 +26,11 @@ export const RemixUiCheckbox = ({
...
@@ -25,10 +26,11 @@ export const RemixUiCheckbox = ({
onChange
,
onChange
,
itemName
,
itemName
,
categoryId
,
categoryId
,
visibility
visibility
,
display
}:
RemixUiCheckboxProps
)
=>
{
}:
RemixUiCheckboxProps
)
=>
{
return
(
return
(
<
div
className=
"listenOnNetwork_2A0YE0 custom-control custom-checkbox"
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
,
visibility
:
visibility
}
as
CSSProperties
}
onClick=
{
onClick
}
>
<
div
className=
"listenOnNetwork_2A0YE0 custom-control custom-checkbox"
style=
{
{
display
:
display
?
display
:
'flex'
,
alignItems
:
'center'
,
visibility
:
visibility
}
as
CSSProperties
}
onClick=
{
onClick
}
>
<
input
<
input
id=
{
id
}
id=
{
id
}
type=
{
inputType
}
type=
{
inputType
}
...
...
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
fe8b42a9
...
@@ -58,7 +58,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
...
@@ -58,7 +58,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
const
[
slitherEnabled
,
setSlitherEnabled
]
=
useState
(
false
)
const
[
slitherEnabled
,
setSlitherEnabled
]
=
useState
(
false
)
const
[
showSlither
,
setShowSlither
]
=
useState
(
'hidden'
)
const
[
showSlither
,
setShowSlither
]
=
useState
(
'hidden'
)
// Show checkbox to select to display only Slither Analysis
// Show checkbox to select to display only Slither Analysis
const
[
showSlitherResult
,
setShowSlitherResult
]
=
useState
(
'
hidden
'
)
const
[
showSlitherResult
,
setShowSlitherResult
]
=
useState
(
'
none
'
)
const
[
slitherResultEnabled
,
setSlitherResultEnabled
]
=
useState
(
false
)
const
[
slitherResultEnabled
,
setSlitherResultEnabled
]
=
useState
(
false
)
const
[
categoryIndex
,
setCategoryIndex
]
=
useState
(
groupedModuleIndex
(
groupedModules
))
const
[
categoryIndex
,
setCategoryIndex
]
=
useState
(
groupedModuleIndex
(
groupedModules
))
...
@@ -255,14 +255,14 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
...
@@ -255,14 +255,14 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
warningMessage
.
push
({
msg
,
options
,
hasWarning
:
true
,
warningModuleName
:
'Slither Analysis'
})
warningMessage
.
push
({
msg
,
options
,
hasWarning
:
true
,
warningModuleName
:
'Slither Analysis'
})
})
})
showWarnings
(
warningMessage
,
'warningModuleName'
)
showWarnings
(
warningMessage
,
'warningModuleName'
)
setShowSlitherResult
(
'
visible
'
)
setShowSlitherResult
(
'
block
'
)
props
.
event
.
trigger
(
'staticAnaysisWarning'
,
[
warningCount
])
props
.
event
.
trigger
(
'staticAnaysisWarning'
,
[
warningCount
])
}
}
})
})
})
})
}
else
{
}
else
{
showWarnings
(
warningMessage
,
'warningModuleName'
)
showWarnings
(
warningMessage
,
'warningModuleName'
)
setShowSlitherResult
(
'
hidden
'
)
setShowSlitherResult
(
'
node
'
)
if
(
categoryIndex
.
length
>
0
)
{
if
(
categoryIndex
.
length
>
0
)
{
props
.
event
.
trigger
(
'staticAnaysisWarning'
,
[
warningCount
])
props
.
event
.
trigger
(
'staticAnaysisWarning'
,
[
warningCount
])
}
}
...
@@ -458,7 +458,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
...
@@ -458,7 +458,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
checked=
{
slitherResultEnabled
}
checked=
{
slitherResultEnabled
}
label=
"Show Only Slither Analysis"
label=
"Show Only Slither Analysis"
onChange=
{
()
=>
{}
}
onChange=
{
()
=>
{}
}
visibilit
y
=
{
showSlitherResult
}
displa
y
=
{
showSlitherResult
}
/>
/>
</
div
>
</
div
>
<
br
/>
<
br
/>
...
...
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