Skip to content

Commit

Permalink
Improve Cyber TODO (css, translations, etc.)
Browse files Browse the repository at this point in the history
  • Loading branch information
csavelief committed Oct 9, 2024
1 parent 2a6f3ca commit 3e1455b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ public function vulns(string $hash)
$hash->views = (int)$hash->views + 1;
$hash->update();

$assets = Asset::select('assets.*')
->where('is_monitored', true)
->join('assets_tags', 'assets_tags.asset_id', '=', 'assets.id')
->join('assets_tags_hashes', 'assets_tags_hashes.tag', '=', 'assets_tags.tag')
->where('assets_tags_hashes.hash', $hash->hash)
$assets = Asset::select('am_assets.*')
->where('am_assets.is_monitored', true)
->join('am_assets_tags', 'am_assets_tags.asset_id', '=', 'am_assets.id')
->join('am_assets_tags_hashes', 'am_assets_tags_hashes.tag', '=', 'am_assets_tags.tag')
->where('am_assets_tags_hashes.hash', $hash->hash)
->get();

return $assets->flatMap(fn(Asset $asset) => $asset->alerts()->get()->map(function (Alert $alert) use ($asset) {
Expand Down
Binary file added public/images/nothing-to-show.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion resources/lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,6 @@
"An error occurred.": "Une erreur est survenue.",
"An error occurred. Try again in a moment or contact the support.": "Une erreur est survenue. Réessayez dans un instant ou contactez le support.",
"Your file has been successfully uploaded. It will be available shortly.": "Votre fichier a bien été importé. Il sera disponible dans quelques instants.",
"Text successfully copied to clipboard.": "Le text a été copié dans le presse-papiers."
"Text successfully copied to clipboard.": "Le text a été copié dans le presse-papiers.",
"Someone has shared vulnerabilities with you on assets for which you are responsible. Please fix the vulnerabilities below and check the corresponding box. A new scan will verify that the problem has been solved.": "Quelqu'un a partagé avec vous des vulnérabilités sur des actifs dont vous êtes responsable. Veuillez corriger les vulnérabilités ci-dessous et cocher la case correspondante. Un nouveau scan vérifiera que le problème a été résolu."
}
14 changes: 6 additions & 8 deletions resources/views/cyber-todo.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
.header .logo {
float: left;
margin: 0;
padding: 15px 0 5px 30px;
padding: 5px 0 5px 15px;
}
.content {
Expand Down Expand Up @@ -202,24 +202,22 @@
<div class="page">
<div class="header">
<div class="logo">
<a href="{{ app_url() }}" rel="noreferrer">
<img src="/images/adversarymeter.png" alt="Logo AdversaryMeter" title="Logo AdversaryMeter" height="55">
<a href="{{ config('towerify.website') }}" rel="noreferrer">
<img src="/favicon-cywise.png" alt="Cywise" title="Cywise" height="55">
</a>
</div>
<br clear="all">
</div>
<div class="content">
<h1>My Cyber TODO</h1>
<h1>Cyber TODO</h1>
<p>
Someone has shared vulnerabilities with you on assets for which you are responsible. Please fix the
vulnerabilities below and check the corresponding box. A new scan will verify that the problem has been
solved.
{{ __('Someone has shared vulnerabilities with you on assets for which you are responsible. Please fix the vulnerabilities below and check the corresponding box. A new scan will verify that the problem has been solved.') }}
</p>
<div class="loader" id="loader"></div>
<div id="vulnerabilities" class="list d-none"></div>
</div>
<div class="footer">
<span class="copyright">ComputableFacts - 178 boulevard Haussmann 75008 Paris France - 844389882</span>
<span class="copyright">{{ config('app.name') }} - 178 boulevard Haussmann 75008 Paris France - 844389882</span>
<a href="/terms" class="terms">Conditions d'utilisation</a>
</div>
</div>
Expand Down

0 comments on commit 3e1455b

Please sign in to comment.