It was fucking ASTROS fault
This commit is contained in:
parent
826d37a374
commit
d662a38ac7
3 changed files with 353 additions and 446 deletions
32
package.json
32
package.json
|
|
@ -20,49 +20,49 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/check": "^0.8.3",
|
"@astrojs/check": "^0.8.3",
|
||||||
"@astrojs/node": "^8.3.4",
|
"@astrojs/node": "^8.3.4",
|
||||||
"@astrojs/svelte": "^5.7.2",
|
"@astrojs/svelte": "^5.7.3",
|
||||||
"@astrojs/tailwind": "^5.1.2",
|
"@astrojs/tailwind": "^5.1.2",
|
||||||
"@fastify/compress": "^8.0.1",
|
"@fastify/compress": "^8.0.1",
|
||||||
"@fastify/helmet": "^12.0.1",
|
"@fastify/helmet": "^12.0.1",
|
||||||
"@fastify/middie": "^9.0.2",
|
"@fastify/middie": "^9.0.2",
|
||||||
"@fastify/multipart": "^9.0.1",
|
"@fastify/multipart": "^9.0.1",
|
||||||
"@fastify/static": "^8.0.1",
|
"@fastify/static": "^8.0.2",
|
||||||
"@iconify-json/ph": "^1.2.1",
|
"@iconify-json/ph": "^1.2.1",
|
||||||
"@mercuryworkshop/bare-mux": "^2.1.6",
|
"@mercuryworkshop/bare-mux": "^2.1.6",
|
||||||
"@mercuryworkshop/epoxy-transport": "2.1.13",
|
"@mercuryworkshop/epoxy-transport": "2.1.13",
|
||||||
"@mercuryworkshop/libcurl-transport": "^1.3.10",
|
"@mercuryworkshop/libcurl-transport": "^1.3.12",
|
||||||
"@playform/compress": "^0.1.4",
|
"@playform/compress": "^0.1.6",
|
||||||
"@svelte-drama/suspense": "0.5.1",
|
"@svelte-drama/suspense": "0.5.1",
|
||||||
"@titaniumnetwork-dev/ultraviolet": "^3.2.7",
|
"@titaniumnetwork-dev/ultraviolet": "^3.2.10",
|
||||||
"@types/node": "^22.7.5",
|
"@types/node": "^22.9.0",
|
||||||
"@types/sequelize": "^4.28.20",
|
"@types/sequelize": "^4.28.20",
|
||||||
"astro": "^4.16.2",
|
"astro": "^4.16.10",
|
||||||
"astro-icon": "^1.1.1",
|
"astro-icon": "^1.1.2",
|
||||||
"chalk": "^5.3.0",
|
"chalk": "^5.3.0",
|
||||||
"concurrently": "^8.2.2",
|
"concurrently": "^8.2.2",
|
||||||
"fastify": "^5.0.0",
|
"fastify": "^5.1.0",
|
||||||
"form-data": "^4.0.1",
|
"form-data": "^4.0.1",
|
||||||
"gradient-string": "^3.0.0",
|
"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",
|
"nanostores": "^0.10.3",
|
||||||
"ora": "^8.1.0",
|
"ora": "^8.1.1",
|
||||||
"pg": "^8.13.0",
|
"pg": "^8.13.1",
|
||||||
"pg-hstore": "^2.3.4",
|
"pg-hstore": "^2.3.4",
|
||||||
"sequelize": "^6.37.4",
|
"sequelize": "^6.37.5",
|
||||||
"smol-toml": "^1.3.0",
|
"smol-toml": "^1.3.0",
|
||||||
"sqlite3": "^5.1.7",
|
"sqlite3": "^5.1.7",
|
||||||
"svelte": "^4.2.19",
|
"svelte": "^4.2.19",
|
||||||
"svelte-french-toast": "^1.2.0",
|
"svelte-french-toast": "^1.2.0",
|
||||||
"tailwindcss": "^3.4.13",
|
"tailwindcss": "^3.4.14",
|
||||||
"typescript": "^5.6.3",
|
"typescript": "^5.6.3",
|
||||||
"vite-plugin-static-copy": "^1.0.6",
|
"vite-plugin-static-copy": "^1.0.6",
|
||||||
"wisp-server-node": "^1.1.7"
|
"wisp-server-node": "^1.1.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "^1.9.3",
|
"@biomejs/biome": "^1.9.4",
|
||||||
"@changesets/cli": "^2.27.9",
|
"@changesets/cli": "^2.27.9",
|
||||||
"bufferutil": "^4.0.8",
|
"bufferutil": "^4.0.8",
|
||||||
"sharp": "^0.33.5",
|
"sharp": "^0.33.5",
|
||||||
"tsx": "^4.19.1"
|
"tsx": "^4.19.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
751
pnpm-lock.yaml
generated
751
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -8,20 +8,8 @@ const t = useTranslations(lang);
|
||||||
|
|
||||||
const { page } = Astro.params;
|
const { page } = Astro.params;
|
||||||
|
|
||||||
let response: any = null;
|
const response = await fetch(new URL("/api/catalog-assets/", Astro.url));
|
||||||
try {
|
const assetsJson = await response.json();
|
||||||
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 nextPage = parseInt(page!) + 1;
|
const nextPage = parseInt(page!) + 1;
|
||||||
const previousPage = parseInt(page!) - 1;
|
const previousPage = parseInt(page!) - 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue