mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
s'more fixes
This commit is contained in:
1 parent
f587bc0983
commit
f1f29b85b7
9 files changed
+16
-13
No files matched your search
@@ -45,6 +45,9 @@ jobs:
|
||||
chunk: [default, api]
|
||||
|
||||
steps:
|
||||
- name: Free disk space
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
|
||||
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
|
||||
|
||||
export { getStaticPaths } from "../../index.astro";
|
||||
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
---
|
||||
import type { GetStaticPaths } from "astro";
|
||||
import { embedConfigurations } from "../../../../../constants/embeds";
|
||||
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
|
||||
import { embedConfigurations } from "../../../../../../constants/embeds";
|
||||
import LegacyRedirect from "../../../../../../layouts/LegacyRedirect.astro";
|
||||
import { getStaticPaths as parentGetStaticPaths } from "../index.astro";
|
||||
|
||||
export const getStaticPaths = (() => {
|
||||
@@ -14,7 +14,7 @@ export const getStaticPaths = (() => {
|
||||
...parent.params,
|
||||
embed: embed as keyof typeof embedConfigurations,
|
||||
},
|
||||
}))
|
||||
})),
|
||||
)
|
||||
.flat();
|
||||
}) satisfies GetStaticPaths;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
|
||||
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
|
||||
|
||||
export { getStaticPaths } from "../../index.astro";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
|
||||
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
|
||||
|
||||
export { getStaticPaths } from "../../index.astro";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
|
||||
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
|
||||
|
||||
export { getStaticPaths } from "../../index.astro";
|
||||
|
||||
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
---
|
||||
import { fetchTankDefinitions } from "@blitzkit/core";
|
||||
import type { GetStaticPaths } from "astro";
|
||||
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
|
||||
import { api } from "../../../../../../core/blitzkit/api";
|
||||
import LegacyRedirect from "../../../../../../layouts/LegacyRedirect.astro";
|
||||
import { getStaticPaths as parentGetStaticPaths } from "../index.astro";
|
||||
|
||||
export const getStaticPaths = (async () => {
|
||||
const tankDefinitions = await fetchTankDefinitions();
|
||||
const tankDefinitions = await api.tankDefinitions();
|
||||
const parentPaths = parentGetStaticPaths();
|
||||
|
||||
return Object.values(tankDefinitions.tanks)
|
||||
@@ -20,7 +20,7 @@ export const getStaticPaths = (async () => {
|
||||
|
||||
const { id } = Astro.params;
|
||||
const { locale } = Astro.props;
|
||||
const tankDefinitions = await fetchTankDefinitions();
|
||||
const tankDefinitions = await api.tankDefinitions();
|
||||
const tank = tankDefinitions.tanks[id];
|
||||
---
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
|
||||
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
|
||||
|
||||
export { getStaticPaths } from "../../index.astro";
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
|
||||
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
|
||||
|
||||
export { getStaticPaths } from "../../index.astro";
|
||||
|
||||
|
||||
Reference in new issue
Block a user