@@ -8,6 +8,7 @@ import PatternInfo from './patternInfo';
8
8
import DependencyChecker from './dependencyChecker' ;
9
9
import Divider from '@mui/material/Divider' ;
10
10
import Chip from '@mui/material/Chip' ;
11
+ import Link from '@mui/material/Link' ;
11
12
import Button from '@mui/material/Button' ;
12
13
import PatternSearchResults from './searchResultComponents/patternSearchResults' ;
13
14
import TelemetrySearchResults from './searchResultComponents/telemetrySearchResults' ;
@@ -17,6 +18,7 @@ import Paper from '@mui/material/Paper';
17
18
import { virusTotalScan } from '../../workers/virusTotalScan' ;
18
19
import { useState , useEffect , FormEvent } from 'react' ;
19
20
import { AnalysisResponse } from '../../types' ;
21
+ import { Typography } from '@mui/material' ;
20
22
// import { Input } from '@mui/material';
21
23
22
24
const vscode = acquireVsCodeApi ( ) ;
@@ -219,33 +221,53 @@ export default function TabPanels(props: any) {
219
221
>
220
222
< DependencyChecker depResults = { patternMatchPanel . depVulns } />
221
223
</ Paper >
222
- < Box >
223
-
224
- < Box sx = { {
225
- // height: "150px",
226
- width : "150px" ,
227
- mt : "30px" ,
228
- marginBottom : '-3px' ,
229
- // bgcolor: "purple"
230
- } } >
231
- < Button sx = { {
232
- bgcolor : virusTotal [ extensionName ] !== undefined ? '#3D3D3D' : '#1769aa' , color : virusTotal [ extensionName ] !== undefined ? '#33ab9f' : '#b3b3b5' , boxShadow : virusTotal [ extensionName ] !== undefined ? 'none' : 1 , width : '220px' , '&:hover' : {
233
- bgcolor : '#33ab9f' ,
234
- color : 'black' ,
235
- } ,
236
- } } variant = "contained" id = 'virusScanBtn' onClick = { ( ) => {
237
- console . log ( 'the button got clicked' ) ;
238
- // setClicked(true);
239
- setModalOpen ( true ) ;
240
- handleClicking ( extensionName ) ;
241
- } } > Run VirusTotal Scan</ Button >
224
+ { /* <Box> */ }
225
+ < Divider sx = { { marginTop : '8px' , marginBottom : '8px' } } >
226
+ < Chip label = 'EXTERNAL SCANS' variant = 'outlined' color = 'primary' />
227
+ </ Divider >
228
+ < Paper
229
+ style = { {
230
+ maxHeight : virusTotal [ extensionName ] === undefined ? 50 : 500 ,
231
+ overflow : virusTotal [ extensionName ] === undefined ? 'hidden' : 'auto' ,
232
+ background : 'inherit' ,
233
+ padding : 20 ,
234
+ } }
235
+ elevation = { 4 }
236
+ >
237
+ < Box sx = { { display : 'flex' , alignItems : 'center' , gap : '20px' , border : 'none' , marginBottom : virusTotal [ extensionName ] !== undefined ? '-7px' : '10px' } } >
238
+ < Button sx = { {
239
+ bgcolor : virusTotal [ extensionName ] !== undefined ? '#3D3D3D' : '#1769aa' ,
240
+ color : virusTotal [ extensionName ] !== undefined ? '#33ab9f' : '#b3b3b5' ,
241
+ boxShadow : virusTotal [ extensionName ] !== undefined ? 'none' : 1 ,
242
+ marginBottom : '-3px' ,
243
+ width : '220px' , '&:hover' : {
244
+ bgcolor : '#33ab9f' ,
245
+ color : 'black' } ,
246
+
247
+ } } variant = "contained" id = 'virusScanBtn' onClick = { ( ) => {
248
+ console . log ( 'the button got clicked' ) ;
249
+ // setClicked(true);
250
+ // setModalOpen(true);
251
+ handleClicking ( extensionName ) ;
252
+ } } > Run VirusTotal Scan</ Button >
253
+ < Typography sx = { { visibility : virusTotal [ extensionName ] !== undefined ? 'hidden' : 'visible' ,
254
+ color : '#b3b3b5' ,
255
+ fontSize : '16px' ,
256
+ maxWidth : 1000 ,
257
+ } } > VirusTotal is an external resource that
258
+ "...inspects items with over 70 antivirus scanners and URL/domain blocklisting services,
259
+ in addition to a myriad of tools to extract signals from the studied content."
260
+ If you's like to sus them out yourself, click { ' ' }
261
+ < Link href = "https://www.virustotal.com/gui/home/upload" > HERE</ Link > .</ Typography >
262
+
242
263
</ Box >
243
- < Paper sx = { { marginTop : 0 , paddingTop : 0 , marginBottom : 0 } } >
264
+ < Paper sx = { { marginTop : 0 , paddingTop : 0 , marginBottom : 2 } } >
244
265
< VirusTotalHowToModal modalOpen = { modalOpen } setModalOpen = { setModalOpen } vscode = { vscode } extensionName = { extensionName } />
245
266
< VirusTotalResults keyError = { keyError } modalOpen = { modalOpen } VTResults = { virusTotal [ extensionName ] || { } } loading = { loading } />
246
267
</ Paper >
268
+ </ Paper >
247
269
< Box sx = { { height : '200px' } } > </ Box >
248
- </ Box >
270
+ { /* </Box> */ }
249
271
</ TabPanel >
250
272
) ;
251
273
} ) ;
0 commit comments