Skip to content

Commit 3cb67c6

Browse files
author
Julien Bouquillon
authored
feat(report): Tabs (#88)
* wip * fixes * fix: cosmetics * fix * test * snap * fix: add tabs icons
1 parent e9511be commit 3cb67c6

27 files changed

Lines changed: 5699 additions & 3934 deletions

report/src/summary/__snapshots__/index.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Object {
2222
"lighthouse_pwaGrade": "D",
2323
"lighthouse_seo": 0.9,
2424
"lighthouse_seoGrade": "A",
25-
"testsslExpireDate": "2021-11-30T19:40:00.000Z",
25+
"testsslExpireDate": "2021-11-30T20:40:00.000Z",
2626
"testsslExpireSoon": false,
2727
"testsslGrade": "A+",
2828
"trackersCount": 0,

report/src/summary/testssl.test.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ const tests = [
88
},
99
{
1010
title: "invalid report 2",
11-
report: [{id:"some", finding:"X"}],
12-
expected: undefined
11+
report: [{ id: "some", finding: "X" }],
12+
expected: undefined,
1313
},
1414
{
1515
title: "sample report",
16-
report: [{id:"overall_grade", finding:"X"}],
16+
report: [{ id: "overall_grade", finding: "X" }],
1717
expected: {
18-
testsslGrade: "X"
18+
testsslGrade: "X",
19+
testsslExpireDate: null,
20+
testsslExpireSoon: null,
1921
},
20-
}
22+
},
2123
];
2224

2325
describe("testssl", () => {

report/www/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
"classnames": "^2.3.1",
99
"country-flag-icons": "^1.4.10",
1010
"date-fns": "^2.24.0",
11-
"gaugeJS": "^1.3.7",
1211
"lodash.orderby": "^4.6.0",
1312
"lodash.uniq": "^4.5.0",
1413
"rc-tooltip": "^5.1.1",
1514
"react": "^17.0.2",
1615
"react-base-table": "^1.12.0",
16+
"react-d3-speedometer": "^1.0.1",
1717
"react-dom": "^17.0.2",
1818
"react-feather": "^2.0.9",
1919
"react-router": "^5.2.1",

report/www/src/__tests__/__snapshots__/Intro.test.js.snap

Lines changed: 155 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Array [
3131
ou
3232
3333
<a
34-
href="https://github.com/SocialGouv/dashlord/projects/1"
34+
href="https://github.com/orgs/SocialGouv/projects/13"
3535
rel="noopener noreferrer"
3636
target="_blank"
3737
>
@@ -71,7 +71,9 @@ Array [
7171
}
7272
}
7373
target="_blank"
74-
/>
74+
>
75+
Site officiel
76+
</a>
7577
</div>
7678
<div>
7779
Permet un audit automatique de page web :
@@ -158,7 +160,9 @@ Array [
158160
}
159161
}
160162
target="_blank"
161-
/>
163+
>
164+
Site officiel
165+
</a>
162166
</div>
163167
<div>
164168
Recense les vulnérabilités de tes dépendances dans le code source
@@ -204,7 +208,9 @@ Array [
204208
}
205209
}
206210
target="_blank"
207-
/>
211+
>
212+
Documentation
213+
</a>
208214
</div>
209215
<div>
210216
Recense les potentielles vulnérabilités dans ton code
@@ -253,7 +259,9 @@ Array [
253259
}
254260
}
255261
target="_blank"
256-
/>
262+
>
263+
Site officiel
264+
</a>
257265
</div>
258266
<div>
259267
Nmap scan les vulnérabilités d'une machine (IP) associée à un domaine
@@ -284,7 +292,9 @@ Array [
284292
}
285293
}
286294
target="_blank"
287-
/>
295+
>
296+
Site officiel
297+
</a>
288298
</div>
289299
<div>
290300
Scan de vulnérabilités passif "baseline" qui permet de détecter des risques de sécurité.
@@ -319,15 +329,43 @@ Array [
319329
<h5>
320330
testssl.sh
321331
</h5>
322-
<span>
323-
<a
324-
href="https://github.com/drwetter/testssl.sh"
325-
rel="noopener noreferrer"
326-
target="_blank"
327-
>
328-
Code source
329-
</a>
330-
</span>
332+
<svg
333+
fill="none"
334+
height={20}
335+
onMouseEnter={[Function]}
336+
onMouseLeave={[Function]}
337+
stroke="currentColor"
338+
strokeLinecap="round"
339+
strokeLinejoin="round"
340+
strokeWidth="2"
341+
style={
342+
Object {
343+
"cursor": "pointer",
344+
"marginLeft": 5,
345+
}
346+
}
347+
viewBox="0 0 24 24"
348+
width={20}
349+
xmlns="http://www.w3.org/2000/svg"
350+
>
351+
<circle
352+
cx="12"
353+
cy="12"
354+
r="10"
355+
/>
356+
<line
357+
x1="12"
358+
x2="12"
359+
y1="16"
360+
y2="12"
361+
/>
362+
<line
363+
x1="12"
364+
x2="12.01"
365+
y1="8"
366+
y2="8"
367+
/>
368+
</svg>
331369
<a
332370
href="https://testssl.sh/"
333371
rel="noreferrer noopener"
@@ -337,7 +375,9 @@ Array [
337375
}
338376
}
339377
target="_blank"
340-
/>
378+
>
379+
Site officiel
380+
</a>
341381
</div>
342382
<div>
343383
Évalue le niveau de confiance d'un certificat SSL
@@ -378,15 +418,43 @@ Array [
378418
<h5>
379419
Mozilla HTTP observatory
380420
</h5>
381-
<span>
382-
<a
383-
href="https://github.com/mozilla/http-observatory/blob/master/httpobs/docs/scoring.md"
384-
rel="noopener noreferrer"
385-
target="_blank"
386-
>
387-
Méthodologie
388-
</a>
389-
</span>
421+
<svg
422+
fill="none"
423+
height={20}
424+
onMouseEnter={[Function]}
425+
onMouseLeave={[Function]}
426+
stroke="currentColor"
427+
strokeLinecap="round"
428+
strokeLinejoin="round"
429+
strokeWidth="2"
430+
style={
431+
Object {
432+
"cursor": "pointer",
433+
"marginLeft": 5,
434+
}
435+
}
436+
viewBox="0 0 24 24"
437+
width={20}
438+
xmlns="http://www.w3.org/2000/svg"
439+
>
440+
<circle
441+
cx="12"
442+
cy="12"
443+
r="10"
444+
/>
445+
<line
446+
x1="12"
447+
x2="12"
448+
y1="16"
449+
y2="12"
450+
/>
451+
<line
452+
x1="12"
453+
x2="12.01"
454+
y1="8"
455+
y2="8"
456+
/>
457+
</svg>
390458
<a
391459
href="https://observatory.mozilla.org/"
392460
rel="noreferrer noopener"
@@ -396,7 +464,9 @@ Array [
396464
}
397465
}
398466
target="_blank"
399-
/>
467+
>
468+
Site officiel
469+
</a>
400470
</div>
401471
<div>
402472
Évalue le niveau de qualité/sécurité de la page web et de son serveur
@@ -420,15 +490,43 @@ Array [
420490
<h5>
421491
Updown.io
422492
</h5>
423-
<span>
424-
<a
425-
href="https://updown.uservoice.com/knowledgebase/articles/915588-what-is-apdex"
426-
rel="noopener noreferrer"
427-
target="_blank"
428-
>
429-
APDEX
430-
</a>
431-
</span>
493+
<svg
494+
fill="none"
495+
height={20}
496+
onMouseEnter={[Function]}
497+
onMouseLeave={[Function]}
498+
stroke="currentColor"
499+
strokeLinecap="round"
500+
strokeLinejoin="round"
501+
strokeWidth="2"
502+
style={
503+
Object {
504+
"cursor": "pointer",
505+
"marginLeft": 5,
506+
}
507+
}
508+
viewBox="0 0 24 24"
509+
width={20}
510+
xmlns="http://www.w3.org/2000/svg"
511+
>
512+
<circle
513+
cx="12"
514+
cy="12"
515+
r="10"
516+
/>
517+
<line
518+
x1="12"
519+
x2="12"
520+
y1="16"
521+
y2="12"
522+
/>
523+
<line
524+
x1="12"
525+
x2="12.01"
526+
y1="8"
527+
y2="8"
528+
/>
529+
</svg>
432530
<a
433531
href="https://updown.io/"
434532
rel="noreferrer noopener"
@@ -438,7 +536,9 @@ Array [
438536
}
439537
}
440538
target="_blank"
441-
/>
539+
>
540+
Site officiel
541+
</a>
442542
</div>
443543
<div>
444544
Évalue la qualité de service rendue par le serveur
@@ -488,7 +588,9 @@ Array [
488588
}
489589
}
490590
target="_blank"
491-
/>
591+
>
592+
Site officiel
593+
</a>
492594
</div>
493595
<div>
494596
Détecte plus de 700 erreurs de configuration courantes sur les applications webs.
@@ -518,7 +620,9 @@ Array [
518620
}
519621
}
520622
target="_blank"
521-
/>
623+
>
624+
Code source
625+
</a>
522626
</div>
523627
<div>
524628
Liste tous les scripts externes chargés par une URL et qui peuvent avoir un impact sur :
@@ -565,7 +669,9 @@ Array [
565669
}
566670
}
567671
target="_blank"
568-
/>
672+
>
673+
Site officiel
674+
</a>
569675
</div>
570676
<div>
571677
Géolocalise tous les serveurs contactés lors de l'ouverture d'une URL.
@@ -592,7 +698,9 @@ Array [
592698
}
593699
}
594700
target="_blank"
595-
/>
701+
>
702+
Site officiel
703+
</a>
596704
</div>
597705
<div>
598706
Wappalyzer reconnait +1500 technologies web, Javascript, CMS, outillage...
@@ -660,7 +768,9 @@ Array [
660768
}
661769
}
662770
target="_blank"
663-
/>
771+
>
772+
Site officiel
773+
</a>
664774
</div>
665775
<div>
666776
Trivy permet de scanner les containers docker à la recherche de vulnérabilités connues.
@@ -703,7 +813,7 @@ Array [
703813
ou
704814
705815
<a
706-
href="https://github.com/SocialGouv/dashlord/projects/1"
816+
href="https://github.com/orgs/SocialGouv/projects/13"
707817
rel="noopener noreferrer"
708818
target="_blank"
709819
>
@@ -743,7 +853,9 @@ Array [
743853
}
744854
}
745855
target="_blank"
746-
/>
856+
>
857+
Site officiel
858+
</a>
747859
</div>
748860
<div>
749861
Scan de vulnérabilités passif "baseline" qui permet de détecter des risques de sécurité.

0 commit comments

Comments
 (0)