mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
move media to /media
This commit is contained in:
1 parent
1f690d11c7
commit
ae96ae34c0
37 files changed
+10
-10
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -40,14 +40,14 @@ function PriceEntry({ entry }: PriceEntryProps) {
|
||||
<>
|
||||
{entry.currency_price && (
|
||||
<PriceInternal
|
||||
icon={`/api/currencies/${entry.currency_price.currency_catalog_id}.webp`}
|
||||
icon={`/media/currencies/${entry.currency_price.currency_catalog_id}.webp`}
|
||||
value={entry.currency_price.amount}
|
||||
/>
|
||||
)}
|
||||
|
||||
{entry.stuff_price && (
|
||||
<PriceInternal
|
||||
icon={`/api/stuff/${entry.stuff_price.stuff_catalog_id}.webp`}
|
||||
icon={`/media/stuff/${entry.stuff_price.stuff_catalog_id}.webp`}
|
||||
value={entry.stuff_price.amount}
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -425,7 +425,7 @@ function LineElement({ index, lineName, stage }: LineElementProps) {
|
||||
>
|
||||
<img
|
||||
className={styles.icon}
|
||||
src={`/api/tanks/modules/${stage.stage_type}.webp`}
|
||||
src={`/media/modules/${stage.stage_type}.webp`}
|
||||
/>
|
||||
{/* {stage.display_name} */}
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import type { APIContext } from "astro";
|
||||
import { api } from "../../../api/dynamic";
|
||||
import { imageProxy } from "../../../api/imageProxy";
|
||||
|
||||
export { getStaticPaths } from "./[id].json";
|
||||
export { getStaticPaths } from "../../[api]/avatars/[id].json";
|
||||
|
||||
/**
|
||||
* Returns an avatar image based on its `id` in the `webp` format.
|
||||
+1
-1
@@ -2,7 +2,7 @@ import type { APIContext } from "astro";
|
||||
import { api } from "../../../api/dynamic";
|
||||
import { imageProxy } from "../../../api/imageProxy";
|
||||
|
||||
export { getStaticPaths } from "./[id].json";
|
||||
export { getStaticPaths } from "../../[api]/backgrounds/[id].json";
|
||||
|
||||
export async function GET({ params }: APIContext<never, { id: string }>) {
|
||||
const background = await api.background(params.id);
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+5
-5
@@ -1,13 +1,13 @@
|
||||
import type { APIContext } from "astro";
|
||||
import { api } from "../../../api/dynamic";
|
||||
import { api } from "../../../../api/dynamic";
|
||||
import {
|
||||
clientUnmountedResponse,
|
||||
notFoundResponse,
|
||||
} from "../../../api/responses";
|
||||
import { game } from "../../../game/game";
|
||||
import { clientUnmounted } from "../../../game/unmounted";
|
||||
} from "../../../../api/responses";
|
||||
import { game } from "../../../../game/game";
|
||||
import { clientUnmounted } from "../../../../game/unmounted";
|
||||
|
||||
export { getStaticPaths } from "./[id].json";
|
||||
export { getStaticPaths } from "../../../[api]/tanks/[id].json";
|
||||
|
||||
export async function GET({ params }: APIContext<never, { id: string }>) {
|
||||
if (clientUnmounted) return clientUnmountedResponse;
|
||||
Reference in new issue
Block a user