Spider results and webapp update

This commit is contained in:
Marian Steinbach 2018-04-09 23:25:36 +02:00
parent 9672e41dba
commit a6664f0503
7 changed files with 24898 additions and 2108 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,11 @@
background-color: #cfeaa8;
font-size: 1rem;
}
.icon {
width: 20px;
height: 20px;
}
</style>
</head>
<body>
@ -34,9 +39,11 @@
<tr>
<th scope="col">URL</th>
<th scope="col">IP-Adresse</th>
<th scope="col">Icon</th>
<th scope="col"><abbr title="Site ist sowohl mit www. als auch ohne www. in URL erreichbar">www. optional</abbr></th>
<th scope="col"><abbr title="URL-Varianten leiten auf eine einzige Startseiten-URL weiter">Kanonische URL</abbr></th>
<th scope="col"><abbr title="Site nutzt HTTP-Verschlüsselung">HTTPS</abbr></th>
<th scope="col">Feed</th>
</tr>
</thead>
<tbody>

26
webapp/dist/bundle.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,11 @@
background-color: #cfeaa8;
font-size: 1rem;
}
.icon {
width: 20px;
height: 20px;
}
</style>
</head>
<body>
@ -34,9 +39,11 @@
<tr>
<th scope="col">URL</th>
<th scope="col">IP-Adresse</th>
<th scope="col">Icon</th>
<th scope="col"><abbr title="Site ist sowohl mit www. als auch ohne www. in URL erreichbar">www. optional</abbr></th>
<th scope="col"><abbr title="URL-Varianten leiten auf eine einzige Startseiten-URL weiter">Kanonische URL</abbr></th>
<th scope="col"><abbr title="Site nutzt HTTP-Verschlüsselung">HTTPS</abbr></th>
<th scope="col">Feed</th>
</tr>
</thead>
<tbody>

View File

@ -20,6 +20,15 @@ $(function(){
var ips = _.join(_.uniq(_.flatten(_.map(item.hostnames, 'ip_addresses'))), ', ');
row.append('<td class="'+ (ips === '' ? 'bad' : 'good') +' text-center">' + (ips === '' ? '❌ Keine' : ips) + '</td>');
// icon
var icons = [];
var icon = false;
icons = _.uniq(_.map(item.urlchecks, 'content.icon'));
if (icons.length > 0 && icons[0]) {
icon = icons[0];
}
row.append('<td class="' + (icon ? 'good' : 'bad') + ' text-center">' + (icon ? ('<img src="' + icon + '" class="icon"/>') : '❌') + '</td>');
// hostnames
var twoHostnames = false;
if (_.filter(item.hostnames, {'resolvable': true}).length === 2) {
@ -30,6 +39,8 @@ $(function(){
// one canonical URL
var canonical = false;
if (item.canonical_urls.length === 1 ) canonical = true;
var canonical_links = _.uniq(_.map(item.urlchecks, 'content.canonical_link'));
if (canonical_links.length === 1) canonical = true;
row.append('<td class="'+ (canonical ? 'good' : 'bad') +' text-center">' + (canonical ? '✅' : '❌') + '</td>');
// https
@ -39,6 +50,11 @@ $(function(){
});
row.append('<td class="'+ (hasHTTPS ? 'good' : 'bad') +' text-center">' + (hasHTTPS ? '✅' : '❌') + '</td>');
// feeds
var feeds = false;
feeds = _.uniq(_.flatten(_.map(item.urlchecks, 'content.feeds')));
row.append('<td class="'+ (feeds.length ? 'good' : 'bad') +' text-center">' + (feeds.length ? '✅' : '❌') + '</td>');
tbody.append(row);
});