Skip to content
Open
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5c29279
feat: update raw test output design
PavelKopecky Apr 1, 2026
01924e4
fix: network logo attribution render condition and rel
PavelKopecky Apr 1, 2026
cdc798a
feat: show cdn names on hover
PavelKopecky Apr 1, 2026
3468b09
refactor: destructure getNetworkByIp return value
PavelKopecky Apr 1, 2026
60ac0d7
fix: network data lookup
PavelKopecky Apr 2, 2026
f4da52b
Merge branch 'master' into gh-79
PavelKopecky Apr 2, 2026
f6edeb5
Merge branch 'master' into gh-79
MartinKolarik Apr 3, 2026
9b71fef
Update package-lock.json
MartinKolarik Apr 3, 2026
26648bc
refactor: rename
MartinKolarik Apr 3, 2026
20d9417
fix: log noise
MartinKolarik Apr 3, 2026
2799a4c
build: fix less source maps
MartinKolarik Apr 3, 2026
805c115
fix: caching
MartinKolarik Apr 3, 2026
d0d5465
fix: adjust sizes
MartinKolarik Apr 3, 2026
3235519
Update results-raw-output.less
MartinKolarik Apr 3, 2026
71e1060
Merge branch 'master' into gh-79
PavelKopecky Apr 4, 2026
175f67b
Merge branch 'master' into gh-79
PavelKopecky Apr 4, 2026
ab60a08
Merge branch 'master' into gh-79
PavelKopecky Apr 6, 2026
19af089
Merge branch 'master' into gh-79
PavelKopecky Apr 7, 2026
2c78d99
Merge branch 'master' into gh-79
PavelKopecky Apr 10, 2026
287d13b
feat: update resolved address design
PavelKopecky Apr 13, 2026
e420e8f
fix: cdn logo alt
PavelKopecky Apr 13, 2026
b1b4c94
Merge branch 'master' into gh-79
MartinKolarik Apr 13, 2026
acda3ae
fix: show raw output as soon as it's ready
PavelKopecky Apr 15, 2026
505dbc8
fix: show raw output as soon as it's ready for the second target
PavelKopecky Apr 15, 2026
5874768
feat: add the domain logo endpoint
PavelKopecky Apr 15, 2026
3bc7ccd
Merge branch 'master' into gh-79
PavelKopecky Apr 16, 2026
3112d1c
refactor: update dropdown button
PavelKopecky Apr 16, 2026
7a0fa5b
feat: update /domain-logo/:domain error handling
PavelKopecky Apr 16, 2026
ef024a2
refactor: update logo processing
PavelKopecky Apr 16, 2026
6ed32fc
fix: only use inProgressUpdates in infinite measurements
PavelKopecky Apr 16, 2026
fc36ce2
Revert "fix: show raw output as soon as it's ready for the second tar…
PavelKopecky Apr 16, 2026
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ LOCAL_APPDATA_FONTCONFIG_CACHE/
node_modules/
config/local*
data/asn-domain.json
data/IPINFO_LITE_ASN.mmdb
test/screenshots
yarn.lock
.eslintcache
Expand Down
21 changes: 17 additions & 4 deletions bin/fetch-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const fs = require('fs');
const path = require('path');
const { pipeline } = require('node:stream/promises');

const ASN_COLUMN_NUM = 5;
const DOMAIN_COLUMN_NUM = 7;
const ASN_COLUMN_NUM = 2;
const DOMAIN_COLUMN_NUM = 4;

async function fetchAndSaveAsnDomainMap (url) {
let asnDomainMap = {};
Expand All @@ -20,7 +20,7 @@ async function fetchAndSaveAsnDomainMap (url) {
});

let pipelinePromise = pipeline(
got.stream(url),
got.stream(`${url}.csv.gz`),
zlib.createGunzip(),
parser,
);
Expand Down Expand Up @@ -50,11 +50,24 @@ async function fetchAndSaveAsnDomainMap (url) {
console.log(`ASN-domain map saved to: ${outputPath}`);
}

async function downloadMmdb (url) {
let outputPath = path.resolve(__dirname, '../data/IPINFO_LITE_ASN.mmdb');
fs.mkdirSync(path.dirname(outputPath), { recursive: true });

await pipeline(
got.stream(`${url}.mmdb`),
fs.createWriteStream(outputPath),
);

console.log(`MMDB file saved to: ${outputPath}`);
}
Comment thread
MartinKolarik marked this conversation as resolved.

async function main () {
let url = `https://download.jsdelivr.com/IPINFO_LITE.csv.gz`;
let url = `https://download.jsdelivr.com/IPINFO_LITE_ASN`;

try {
await fetchAndSaveAsnDomainMap(url);
await downloadMmdb(url);
} catch (err) {
console.error('Failed to fetch or process data:', err);
process.exit(1);
Expand Down
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ gulp.task('less', () => {
return gulp.src([ `${srcAssetsDir}/less/app.less` ])
.pipe(plumber())
.pipe(sourcemaps.init())
.pipe(less({ relativeUrls: true, strictMath: true }))
.pipe(less({ relativeUrls: true, strictMath: true, sourceMap: { outputSourceFiles: true } }))
.pipe(rename('app.css'))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(`${dstAssetsDir}/css`));
Expand All @@ -108,7 +108,7 @@ gulp.task('nuxt:less', () => {
return gulp.src([ `${srcAssetsDir}/less/reduced.less` ])
.pipe(plumber())
.pipe(sourcemaps.init())
.pipe(less({ relativeUrls: true, strictMath: true }))
.pipe(less({ relativeUrls: true, strictMath: true, sourceMap: { outputSourceFiles: true } }))
.pipe(postcss([
prefixSelector({
prefix: '.ractive-component',
Expand All @@ -122,7 +122,7 @@ gulp.task('nuxt:less', () => {
gulp.task('less:prod', () => {
return gulp.src([ `${srcAssetsDir}/less/app.less` ])
.pipe(sourcemaps.init())
.pipe(less({ relativeUrls: true, strictMath: true }))
.pipe(less({ relativeUrls: true, strictMath: true, sourceMap: { outputSourceFiles: true } }))
.pipe(autoprefixer())
.pipe(minifyCss())
.pipe(rename('app.css'))
Expand Down
224 changes: 224 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading