Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(report): Tabs #88

Merged
merged 7 commits into from
Oct 15, 2021
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion report/src/summary/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Object {
"lighthouse_pwaGrade": "D",
"lighthouse_seo": 0.9,
"lighthouse_seoGrade": "A",
"testsslExpireDate": "2021-11-30T19:40:00.000Z",
"testsslExpireDate": "2021-11-30T20:40:00.000Z",
"testsslExpireSoon": false,
"testsslGrade": "A+",
"trackersCount": 0,
Expand Down
12 changes: 7 additions & 5 deletions report/src/summary/testssl.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ const tests = [
},
{
title: "invalid report 2",
report: [{id:"some", finding:"X"}],
expected: undefined
report: [{ id: "some", finding: "X" }],
expected: undefined,
},
{
title: "sample report",
report: [{id:"overall_grade", finding:"X"}],
report: [{ id: "overall_grade", finding: "X" }],
expected: {
testsslGrade: "X"
testsslGrade: "X",
testsslExpireDate: null,
testsslExpireSoon: null,
},
}
},
];

describe("testssl", () => {
Expand Down
2 changes: 1 addition & 1 deletion report/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"classnames": "^2.3.1",
"country-flag-icons": "^1.4.10",
"date-fns": "^2.24.0",
"gaugeJS": "^1.3.7",
"lodash.orderby": "^4.6.0",
"lodash.uniq": "^4.5.0",
"rc-tooltip": "^5.1.1",
"react": "^17.0.2",
"react-base-table": "^1.12.0",
"react-d3-speedometer": "^1.0.1",
"react-dom": "^17.0.2",
"react-feather": "^2.0.9",
"react-router": "^5.2.1",
Expand Down
198 changes: 155 additions & 43 deletions report/www/src/__tests__/__snapshots__/Intro.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Array [
ou

<a
href="https://github.com/SocialGouv/dashlord/projects/1"
href="https://github.com/orgs/SocialGouv/projects/13"
rel="noopener noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -71,7 +71,9 @@ Array [
}
}
target="_blank"
/>
>
Site officiel
</a>
</div>
<div>
Permet un audit automatique de page web :
Expand Down Expand Up @@ -158,7 +160,9 @@ Array [
}
}
target="_blank"
/>
>
Site officiel
</a>
</div>
<div>
Recense les vulnérabilités de tes dépendances dans le code source
Expand Down Expand Up @@ -204,7 +208,9 @@ Array [
}
}
target="_blank"
/>
>
Documentation
</a>
</div>
<div>
Recense les potentielles vulnérabilités dans ton code
Expand Down Expand Up @@ -253,7 +259,9 @@ Array [
}
}
target="_blank"
/>
>
Site officiel
</a>
</div>
<div>
Nmap scan les vulnérabilités d'une machine (IP) associée à un domaine
Expand Down Expand Up @@ -284,7 +292,9 @@ Array [
}
}
target="_blank"
/>
>
Site officiel
</a>
</div>
<div>
Scan de vulnérabilités passif "baseline" qui permet de détecter des risques de sécurité.
Expand Down Expand Up @@ -319,15 +329,43 @@ Array [
<h5>
testssl.sh
</h5>
<span>
<a
href="https://github.com/drwetter/testssl.sh"
rel="noopener noreferrer"
target="_blank"
>
Code source
</a>
</span>
<svg
fill="none"
height={20}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
style={
Object {
"cursor": "pointer",
"marginLeft": 5,
}
}
viewBox="0 0 24 24"
width={20}
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12"
cy="12"
r="10"
/>
<line
x1="12"
x2="12"
y1="16"
y2="12"
/>
<line
x1="12"
x2="12.01"
y1="8"
y2="8"
/>
</svg>
<a
href="https://testssl.sh/"
rel="noreferrer noopener"
Expand All @@ -337,7 +375,9 @@ Array [
}
}
target="_blank"
/>
>
Site officiel
</a>
</div>
<div>
Évalue le niveau de confiance d'un certificat SSL
Expand Down Expand Up @@ -378,15 +418,43 @@ Array [
<h5>
Mozilla HTTP observatory
</h5>
<span>
<a
href="https://github.com/mozilla/http-observatory/blob/master/httpobs/docs/scoring.md"
rel="noopener noreferrer"
target="_blank"
>
Méthodologie
</a>
</span>
<svg
fill="none"
height={20}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
style={
Object {
"cursor": "pointer",
"marginLeft": 5,
}
}
viewBox="0 0 24 24"
width={20}
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12"
cy="12"
r="10"
/>
<line
x1="12"
x2="12"
y1="16"
y2="12"
/>
<line
x1="12"
x2="12.01"
y1="8"
y2="8"
/>
</svg>
<a
href="https://observatory.mozilla.org/"
rel="noreferrer noopener"
Expand All @@ -396,7 +464,9 @@ Array [
}
}
target="_blank"
/>
>
Site officiel
</a>
</div>
<div>
Évalue le niveau de qualité/sécurité de la page web et de son serveur
Expand All @@ -420,15 +490,43 @@ Array [
<h5>
Updown.io
</h5>
<span>
<a
href="https://updown.uservoice.com/knowledgebase/articles/915588-what-is-apdex"
rel="noopener noreferrer"
target="_blank"
>
APDEX
</a>
</span>
<svg
fill="none"
height={20}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
style={
Object {
"cursor": "pointer",
"marginLeft": 5,
}
}
viewBox="0 0 24 24"
width={20}
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12"
cy="12"
r="10"
/>
<line
x1="12"
x2="12"
y1="16"
y2="12"
/>
<line
x1="12"
x2="12.01"
y1="8"
y2="8"
/>
</svg>
<a
href="https://updown.io/"
rel="noreferrer noopener"
Expand All @@ -438,7 +536,9 @@ Array [
}
}
target="_blank"
/>
>
Site officiel
</a>
</div>
<div>
Évalue la qualité de service rendue par le serveur
Expand Down Expand Up @@ -488,7 +588,9 @@ Array [
}
}
target="_blank"
/>
>
Site officiel
</a>
</div>
<div>
Détecte plus de 700 erreurs de configuration courantes sur les applications webs.
Expand Down Expand Up @@ -518,7 +620,9 @@ Array [
}
}
target="_blank"
/>
>
Code source
</a>
</div>
<div>
Liste tous les scripts externes chargés par une URL et qui peuvent avoir un impact sur :
Expand Down Expand Up @@ -565,7 +669,9 @@ Array [
}
}
target="_blank"
/>
>
Site officiel
</a>
</div>
<div>
Géolocalise tous les serveurs contactés lors de l'ouverture d'une URL.
Expand All @@ -592,7 +698,9 @@ Array [
}
}
target="_blank"
/>
>
Site officiel
</a>
</div>
<div>
Wappalyzer reconnait +1500 technologies web, Javascript, CMS, outillage...
Expand Down Expand Up @@ -660,7 +768,9 @@ Array [
}
}
target="_blank"
/>
>
Site officiel
</a>
</div>
<div>
Trivy permet de scanner les containers docker à la recherche de vulnérabilités connues.
Expand Down Expand Up @@ -703,7 +813,7 @@ Array [
ou

<a
href="https://github.com/SocialGouv/dashlord/projects/1"
href="https://github.com/orgs/SocialGouv/projects/13"
rel="noopener noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -743,7 +853,9 @@ Array [
}
}
target="_blank"
/>
>
Site officiel
</a>
</div>
<div>
Scan de vulnérabilités passif "baseline" qui permet de détecter des risques de sécurité.
Expand Down
Loading