mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-05 02:23:40 +02:00
Spider results and webapp update
This commit is contained in:
parent
9672e41dba
commit
a6664f0503
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
|
@ -21,6 +21,11 @@
|
||||||
background-color: #cfeaa8;
|
background-color: #cfeaa8;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -34,9 +39,11 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">URL</th>
|
<th scope="col">URL</th>
|
||||||
<th scope="col">IP-Adresse</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="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="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"><abbr title="Site nutzt HTTP-Verschlüsselung">HTTPS</abbr></th>
|
||||||
|
<th scope="col">Feed</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
26
webapp/dist/bundle.js
vendored
26
webapp/dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
13462
webapp/dist/data/spider_result.json
vendored
13462
webapp/dist/data/spider_result.json
vendored
File diff suppressed because it is too large
Load diff
7
webapp/dist/index.html
vendored
7
webapp/dist/index.html
vendored
|
@ -21,6 +21,11 @@
|
||||||
background-color: #cfeaa8;
|
background-color: #cfeaa8;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -34,9 +39,11 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">URL</th>
|
<th scope="col">URL</th>
|
||||||
<th scope="col">IP-Adresse</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="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="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"><abbr title="Site nutzt HTTP-Verschlüsselung">HTTPS</abbr></th>
|
||||||
|
<th scope="col">Feed</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
@ -20,6 +20,15 @@ $(function(){
|
||||||
var ips = _.join(_.uniq(_.flatten(_.map(item.hostnames, 'ip_addresses'))), ', ');
|
var ips = _.join(_.uniq(_.flatten(_.map(item.hostnames, 'ip_addresses'))), ', ');
|
||||||
row.append('<td class="'+ (ips === '' ? 'bad' : 'good') +' text-center">' + (ips === '' ? '❌ Keine' : ips) + '</td>');
|
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
|
// hostnames
|
||||||
var twoHostnames = false;
|
var twoHostnames = false;
|
||||||
if (_.filter(item.hostnames, {'resolvable': true}).length === 2) {
|
if (_.filter(item.hostnames, {'resolvable': true}).length === 2) {
|
||||||
|
@ -30,6 +39,8 @@ $(function(){
|
||||||
// one canonical URL
|
// one canonical URL
|
||||||
var canonical = false;
|
var canonical = false;
|
||||||
if (item.canonical_urls.length === 1 ) canonical = true;
|
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>');
|
row.append('<td class="'+ (canonical ? 'good' : 'bad') +' text-center">' + (canonical ? '✅' : '❌') + '</td>');
|
||||||
|
|
||||||
// https
|
// https
|
||||||
|
@ -39,6 +50,11 @@ $(function(){
|
||||||
});
|
});
|
||||||
row.append('<td class="'+ (hasHTTPS ? 'good' : 'bad') +' text-center">' + (hasHTTPS ? '✅' : '❌') + '</td>');
|
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);
|
tbody.append(row);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue