mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +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]
|
chunk: [default, api]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Free disk space
|
||||||
|
uses: jlumbroso/free-disk-space@main
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
|
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
|
||||||
|
|
||||||
export { getStaticPaths } from "../../index.astro";
|
export { getStaticPaths } from "../../index.astro";
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
import type { GetStaticPaths } from "astro";
|
import type { GetStaticPaths } from "astro";
|
||||||
import { embedConfigurations } from "../../../../../constants/embeds";
|
import { embedConfigurations } from "../../../../../../constants/embeds";
|
||||||
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
|
import LegacyRedirect from "../../../../../../layouts/LegacyRedirect.astro";
|
||||||
import { getStaticPaths as parentGetStaticPaths } from "../index.astro";
|
import { getStaticPaths as parentGetStaticPaths } from "../index.astro";
|
||||||
|
|
||||||
export const getStaticPaths = (() => {
|
export const getStaticPaths = (() => {
|
||||||
@@ -14,7 +14,7 @@ export const getStaticPaths = (() => {
|
|||||||
...parent.params,
|
...parent.params,
|
||||||
embed: embed as keyof typeof embedConfigurations,
|
embed: embed as keyof typeof embedConfigurations,
|
||||||
},
|
},
|
||||||
}))
|
})),
|
||||||
)
|
)
|
||||||
.flat();
|
.flat();
|
||||||
}) satisfies GetStaticPaths;
|
}) satisfies GetStaticPaths;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
import LegacyRedirect from "../../../../layouts/LegacyRedirect.astro";
|
import LegacyRedirect from "../../../../../layouts/LegacyRedirect.astro";
|
||||||
|
|
||||||
export { getStaticPaths } from "../../index.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";
|
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";
|
export { getStaticPaths } from "../../index.astro";
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
import { fetchTankDefinitions } from "@blitzkit/core";
|
|
||||||
import type { GetStaticPaths } from "astro";
|
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";
|
import { getStaticPaths as parentGetStaticPaths } from "../index.astro";
|
||||||
|
|
||||||
export const getStaticPaths = (async () => {
|
export const getStaticPaths = (async () => {
|
||||||
const tankDefinitions = await fetchTankDefinitions();
|
const tankDefinitions = await api.tankDefinitions();
|
||||||
const parentPaths = parentGetStaticPaths();
|
const parentPaths = parentGetStaticPaths();
|
||||||
|
|
||||||
return Object.values(tankDefinitions.tanks)
|
return Object.values(tankDefinitions.tanks)
|
||||||
@@ -20,7 +20,7 @@ export const getStaticPaths = (async () => {
|
|||||||
|
|
||||||
const { id } = Astro.params;
|
const { id } = Astro.params;
|
||||||
const { locale } = Astro.props;
|
const { locale } = Astro.props;
|
||||||
const tankDefinitions = await fetchTankDefinitions();
|
const tankDefinitions = await api.tankDefinitions();
|
||||||
const tank = tankDefinitions.tanks[id];
|
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";
|
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";
|
export { getStaticPaths } from "../../index.astro";
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user