Compare commits

..

No commits in common. "4add5754b68df11f81c7428b79e29aeff4dc0e71" and "98711d228b81cdcf086d681778e0b50c28560796" have entirely different histories.

6 changed files with 1334 additions and 2242 deletions

View File

@ -25,7 +25,7 @@ services:
depends_on: depends_on:
- db - db
db: db:
image: memgraph/memgraph:2.19.0 image: memgraph/memgraph:2.18.1
container_name: sixdegs-db container_name: sixdegs-db
hostname: sixdegs-db hostname: sixdegs-db
networks: networks:

File diff suppressed because it is too large Load Diff

View File

@ -5002,4 +5002,3 @@ driverId,teammateId
784,788 784,788
826,843 826,843
849,851 849,851
848,861

1 driverId teammateId
5002 784 788
5003 826 843
5004 849 851
848 861

1926
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,14 +10,14 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"@astrojs/node": "^8.3.3", "@astrojs/node": "^8.2.5",
"astro": "^4.15.1", "astro": "^4.4.14",
"neo4j-driver": "^5.24.0" "neo4j-driver": "^5.18.0"
}, },
"devDependencies": { "devDependencies": {
"@astrojs/check": "^0.9.3", "@astrojs/check": "^0.5.6",
"@picocss/pico": "^2.0.6", "@picocss/pico": "^2.0.6",
"typescript": "^5.5.4", "typescript": "^5.4.2",
"vis-network": "^9.1.9" "vis-network": "^9.1.9"
} }
} }

View File

@ -22,14 +22,8 @@ let graphProps: Awaited<ReturnType<typeof getShortestPaths>> = {
try { try {
driverNames = await getDriverNames(); driverNames = await getDriverNames();
if (noEmptyParams && paramsNotEqual) { if (noEmptyParams && paramsNotEqual)
const timestamp = new Date().toLocaleString('pl');
const clientIp =
Astro.request.headers.get('X-Forwarded-For') || Astro.clientAddress;
console.log(`[${timestamp}] ${clientIp} FROM ${source} TO ${dest}`);
graphProps = await getShortestPaths(source, dest); graphProps = await getShortestPaths(source, dest);
}
} catch (error) { } catch (error) {
return Astro.redirect('/error'); return Astro.redirect('/error');
} }