Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
aaaedf93
Commit
aaaedf93
authored
Mar 14, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rework AppSecurityReport
parent
b77d0331
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
AppSecurityReport.tsx
ui/marketplace/AppSecurityReport.tsx
+3
-3
ListItem.tsx
ui/marketplace/MarketplaceListWithScores/ListItem.tsx
+6
-1
TableItem.tsx
ui/marketplace/MarketplaceListWithScores/TableItem.tsx
+1
-1
No files found.
ui/marketplace/AppSecurityReport.tsx
View file @
aaaedf93
...
@@ -13,11 +13,11 @@ import SolidityscanReportScore from 'ui/shared/solidityscanReport/SolidityscanRe
...
@@ -13,11 +13,11 @@ import SolidityscanReportScore from 'ui/shared/solidityscanReport/SolidityscanRe
type
Props
=
{
type
Props
=
{
id
:
string
;
id
:
string
;
securityReport
?:
any
;
// eslint-disable-line @typescript-eslint/no-explicit-any
securityReport
?:
any
;
// eslint-disable-line @typescript-eslint/no-explicit-any
isLarge
?:
boolean
;
height
?:
string
|
undefined
;
showContractList
:
(
id
:
string
,
type
:
ContractListTypes
)
=>
void
;
showContractList
:
(
id
:
string
,
type
:
ContractListTypes
)
=>
void
;
}
}
const
AppSecurityReport
=
({
id
,
securityReport
,
isLarge
,
showContractList
}:
Props
)
=>
{
const
AppSecurityReport
=
({
id
,
securityReport
,
height
,
showContractList
}:
Props
)
=>
{
const
{
const
{
overallInfo
:
{
overallInfo
:
{
securityScore
,
securityScore
,
...
@@ -34,7 +34,7 @@ const AppSecurityReport = ({ id, securityReport, isLarge, showContractList }: Pr
...
@@ -34,7 +34,7 @@ const AppSecurityReport = ({ id, securityReport, isLarge, showContractList }: Pr
return
(
return
(
<
SolidityscanReportButton
<
SolidityscanReportButton
height=
{
isLarge
?
undefined
:
'
30px
'
}
height=
{
height
}
score=
{
securityScore
}
score=
{
securityScore
}
popoverContent=
{
(
popoverContent=
{
(
<>
<>
...
...
ui/marketplace/MarketplaceListWithScores/ListItem.tsx
View file @
aaaedf93
...
@@ -98,7 +98,12 @@ const ListItem = ({ app, onInfoClick, isFavorite, onFavoriteClick, isLoading, on
...
@@ -98,7 +98,12 @@ const ListItem = ({ app, onInfoClick, isFavorite, onFavoriteClick, isLoading, on
</
Flex
>
</
Flex
>
<
Flex
alignItems=
"center"
>
<
Flex
alignItems=
"center"
>
<
Flex
flex=
{
1
}
gap=
{
3
}
alignItems=
"center"
>
<
Flex
flex=
{
1
}
gap=
{
3
}
alignItems=
"center"
>
<
AppSecurityReport
id=
{
id
}
securityReport=
{
securityReport
}
showContractList=
{
showContractList
}
/>
<
AppSecurityReport
id=
{
id
}
securityReport=
{
securityReport
}
showContractList=
{
showContractList
}
height=
"30px"
/>
<
ContractListButton
onClick=
{
showAllContracts
}
variant=
{
ContractListButtonVariants
.
ALL_CONTRACTS
}
>
<
ContractListButton
onClick=
{
showAllContracts
}
variant=
{
ContractListButtonVariants
.
ALL_CONTRACTS
}
>
{
totalContractsNumber
}
{
totalContractsNumber
}
</
ContractListButton
>
</
ContractListButton
>
...
...
ui/marketplace/MarketplaceListWithScores/TableItem.tsx
View file @
aaaedf93
...
@@ -83,7 +83,7 @@ const TableItem = ({
...
@@ -83,7 +83,7 @@ const TableItem = ({
<
AppLink
app=
{
app
}
isLoading=
{
isLoading
}
onAppClick=
{
onAppClick
}
isLarge
/>
<
AppLink
app=
{
app
}
isLoading=
{
isLoading
}
onAppClick=
{
onAppClick
}
isLarge
/>
</
Td
>
</
Td
>
<
Td
verticalAlign=
"middle"
>
<
Td
verticalAlign=
"middle"
>
<
AppSecurityReport
id=
{
id
}
securityReport=
{
securityReport
}
showContractList=
{
showContractList
}
isLarge
/>
<
AppSecurityReport
id=
{
id
}
securityReport=
{
securityReport
}
showContractList=
{
showContractList
}
/>
</
Td
>
</
Td
>
<
Td
verticalAlign=
"middle"
>
<
Td
verticalAlign=
"middle"
>
<
ContractListButton
onClick=
{
showAllContracts
}
variant=
{
ContractListButtonVariants
.
ALL_CONTRACTS
}
>
<
ContractListButton
onClick=
{
showAllContracts
}
variant=
{
ContractListButtonVariants
.
ALL_CONTRACTS
}
>
...
...
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