It was fucking ASTROS fault

This commit is contained in:
MotorTruck1221 2024-11-06 21:04:30 -07:00
parent 826d37a374
commit d662a38ac7
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4
3 changed files with 353 additions and 446 deletions

View file

@ -20,49 +20,49 @@
"dependencies": {
"@astrojs/check": "^0.8.3",
"@astrojs/node": "^8.3.4",
"@astrojs/svelte": "^5.7.2",
"@astrojs/svelte": "^5.7.3",
"@astrojs/tailwind": "^5.1.2",
"@fastify/compress": "^8.0.1",
"@fastify/helmet": "^12.0.1",
"@fastify/middie": "^9.0.2",
"@fastify/multipart": "^9.0.1",
"@fastify/static": "^8.0.1",
"@fastify/static": "^8.0.2",
"@iconify-json/ph": "^1.2.1",
"@mercuryworkshop/bare-mux": "^2.1.6",
"@mercuryworkshop/epoxy-transport": "2.1.13",
"@mercuryworkshop/libcurl-transport": "^1.3.10",
"@playform/compress": "^0.1.4",
"@mercuryworkshop/libcurl-transport": "^1.3.12",
"@playform/compress": "^0.1.6",
"@svelte-drama/suspense": "0.5.1",
"@titaniumnetwork-dev/ultraviolet": "^3.2.7",
"@types/node": "^22.7.5",
"@titaniumnetwork-dev/ultraviolet": "^3.2.10",
"@types/node": "^22.9.0",
"@types/sequelize": "^4.28.20",
"astro": "^4.16.2",
"astro-icon": "^1.1.1",
"astro": "^4.16.10",
"astro-icon": "^1.1.2",
"chalk": "^5.3.0",
"concurrently": "^8.2.2",
"fastify": "^5.0.0",
"fastify": "^5.1.0",
"form-data": "^4.0.1",
"gradient-string": "^3.0.0",
"libcurl.js-new": "npm:libcurl.js@^0.6.16",
"libcurl.js-new": "npm:libcurl.js@^0.6.19",
"nanostores": "^0.10.3",
"ora": "^8.1.0",
"pg": "^8.13.0",
"ora": "^8.1.1",
"pg": "^8.13.1",
"pg-hstore": "^2.3.4",
"sequelize": "^6.37.4",
"sequelize": "^6.37.5",
"smol-toml": "^1.3.0",
"sqlite3": "^5.1.7",
"svelte": "^4.2.19",
"svelte-french-toast": "^1.2.0",
"tailwindcss": "^3.4.13",
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3",
"vite-plugin-static-copy": "^1.0.6",
"wisp-server-node": "^1.1.7"
},
"devDependencies": {
"@biomejs/biome": "^1.9.3",
"@biomejs/biome": "^1.9.4",
"@changesets/cli": "^2.27.9",
"bufferutil": "^4.0.8",
"sharp": "^0.33.5",
"tsx": "^4.19.1"
"tsx": "^4.19.2"
}
}

751
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -8,20 +8,8 @@ const t = useTranslations(lang);
const { page } = Astro.params;
let response: any = null;
try {
response = await fetch(new URL("/api/catalog-assets/", Astro.url));
}
catch (err: any) {
console.log('Error occured: ' + err);
response = {};
}
console.log(new URL("/api/catalog-assets/", Astro.url));
let assetsJson: any = {};
try {
assetsJson = await response.json();
}
catch (e) {}
const response = await fetch(new URL("/api/catalog-assets/", Astro.url));
const assetsJson = await response.json();
const nextPage = parseInt(page!) + 1;
const previousPage = parseInt(page!) - 1;