mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
flatten structure
This commit is contained in:
1 parent
050cb7a834
commit
734db0957e
32 files changed
+34
-30
No files matched your search
@@ -12,7 +12,8 @@ permissions:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref == 'refs/heads/main' }}
|
||||
# cancel-in-progress: ${{ github.ref == 'refs/heads/main' }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
# blitzkit
|
||||
@@ -46,7 +47,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- chunk: default
|
||||
|
||||
@@ -10,6 +10,6 @@ export function chunkedStaticPaths(chunk: string) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return [{ params: { [`chunk_${chunk}`]: chunk } }];
|
||||
return [{ params: { [`chunk_${chunk}`]: undefined } }];
|
||||
} satisfies GetStaticPaths;
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { CamouflageDefinitions } from "@blitzkit/core";
|
||||
import { api } from "../../../core/blitzkit/api";
|
||||
|
||||
export { getStaticPaths } from "../_index";
|
||||
export { getStaticPaths } from "../../_index";
|
||||
|
||||
export async function GET() {
|
||||
const definitions = await api.camouflageDefinitions();
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { ConsumableDefinitions } from "@blitzkit/core";
|
||||
import { api } from "../../../core/blitzkit/api";
|
||||
|
||||
export { getStaticPaths } from "../_index";
|
||||
export { getStaticPaths } from "../../_index";
|
||||
|
||||
export async function GET() {
|
||||
const definitions = await api.consumableDefinitions();
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { EquipmentDefinitions } from "@blitzkit/core";
|
||||
import { api } from "../../../core/blitzkit/api";
|
||||
|
||||
export { getStaticPaths } from "../_index";
|
||||
export { getStaticPaths } from "../../_index";
|
||||
|
||||
export async function GET() {
|
||||
const definitions = await api.equipmentDefinitions();
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { Gallery } from "@blitzkit/core";
|
||||
import { api } from "../../../core/blitzkit/api";
|
||||
|
||||
export { getStaticPaths } from "../_index";
|
||||
export { getStaticPaths } from "../../_index";
|
||||
|
||||
export async function GET() {
|
||||
const definitions = await api.galleryDefinitions();
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { GameDefinitions } from "@blitzkit/core";
|
||||
import { api } from "../../../core/blitzkit/api";
|
||||
|
||||
export { getStaticPaths } from "../_index";
|
||||
export { getStaticPaths } from "../../_index";
|
||||
|
||||
export async function GET() {
|
||||
const definitions = await api.gameDefinitions();
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { ModelDefinitions } from "@blitzkit/core";
|
||||
import { api } from "../../../core/blitzkit/api";
|
||||
|
||||
export { getStaticPaths } from "../_index";
|
||||
export { getStaticPaths } from "../../_index";
|
||||
|
||||
export async function GET() {
|
||||
const definitions = await api.modelDefinitions();
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { ProvisionDefinitions } from "@blitzkit/core";
|
||||
import { api } from "../../../core/blitzkit/api";
|
||||
|
||||
export { getStaticPaths } from "../_index";
|
||||
export { getStaticPaths } from "../../_index";
|
||||
|
||||
export async function GET() {
|
||||
const definitions = await api.provisionDefinitions();
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { SkillDefinitions } from "@blitzkit/core";
|
||||
import { api } from "../../../core/blitzkit/api";
|
||||
|
||||
export { getStaticPaths } from "../_index";
|
||||
export { getStaticPaths } from "../../_index";
|
||||
|
||||
export async function GET() {
|
||||
const definitions = await api.skillDefinitions();
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { TankDefinitions } from "@blitzkit/core";
|
||||
import { api } from "../../../core/blitzkit/api";
|
||||
|
||||
export { getStaticPaths } from "../_index";
|
||||
export { getStaticPaths } from "../../_index";
|
||||
|
||||
export async function GET() {
|
||||
const definitions = await api.tankDefinitions();
|
||||
+1
-1
@@ -2,7 +2,7 @@ import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import sharp from "sharp";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const paths: GetStaticPathsItem[] = [];
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const paths: GetStaticPathsItem[] = [];
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const paths: GetStaticPathsItem[] = [];
|
||||
+1
-1
@@ -3,7 +3,7 @@ import locales from "@blitzkit/i18n/locales.json";
|
||||
import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import { extname } from "path";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const paths: GetStaticPathsItem[] = [];
|
||||
+1
-1
@@ -3,7 +3,7 @@ import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import sharp from "sharp";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const paths: GetStaticPathsItem[] = [];
|
||||
+1
-1
@@ -2,7 +2,7 @@ import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import sharp from "sharp";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const paths: GetStaticPathsItem[] = [];
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { vfs } from "../../../core/blitzkit/vfs";
|
||||
|
||||
export { getStaticPaths } from "../_index";
|
||||
export { getStaticPaths } from "../../_index";
|
||||
|
||||
export async function GET() {
|
||||
const bytes = await vfs.file("Data/Gfx/UI/Hangar/IconCamouflage.packed.webp");
|
||||
+1
-1
@@ -5,7 +5,7 @@ import { extractPackedIcon } from "../../../../core/blitz/extractPackedIcon";
|
||||
import { parsePackedSpriteRect } from "../../../../core/blitz/parsePackedSpriteRect";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
interface Mappings {
|
||||
Header: { version: number };
|
||||
+1
-1
@@ -3,7 +3,7 @@ import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import sharp from "sharp";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
const ICONS = [
|
||||
["currency_silver_m.packed.webp", "silver"],
|
||||
+1
-1
@@ -3,7 +3,7 @@ import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import sharp from "sharp";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
interface Mappings {
|
||||
Header: { version: number };
|
||||
+1
-1
@@ -2,7 +2,7 @@ import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import sharp from "sharp";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const paths: GetStaticPathsItem[] = [];
|
||||
+1
-1
@@ -5,7 +5,7 @@ import { extractPackedIcon } from "../../../../core/blitz/extractPackedIcon";
|
||||
import { parsePackedSpriteRect } from "../../../../core/blitz/parsePackedSpriteRect";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
interface Mappings {
|
||||
Header: { version: number };
|
||||
+1
-1
@@ -2,7 +2,7 @@ import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import sharp from "sharp";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const paths: GetStaticPathsItem[] = [];
|
||||
+1
-1
@@ -3,7 +3,7 @@ import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import sharp from "sharp";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const paths: GetStaticPathsItem[] = [];
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { api } from "../../../../core/blitzkit/api";
|
||||
import { mixStaticPaths } from "../../../../core/blitzkit/mixStaticPaths";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const tanks = await api.tankDefinitions();
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -4,14 +4,15 @@ import { assertSecret } from "@blitzkit/core";
|
||||
import locales from "@blitzkit/i18n/locales.json";
|
||||
import { literals } from "@blitzkit/i18n/src/literals";
|
||||
import { Box, Flex, Link } from "@radix-ui/themes";
|
||||
import type { GetStaticPaths } from "astro";
|
||||
import { AesonPlug } from "../../../components/AesonPlug";
|
||||
import HomeHero from "../../../components/HomeHero.astro";
|
||||
import { Plugs } from "../../../components/Plugs";
|
||||
import ToolCard from "../../../components/ToolCard.astro";
|
||||
import { tools, type Tool } from "../../../constants/tools";
|
||||
import { mixStaticPaths } from "../../../core/blitzkit/mixStaticPaths";
|
||||
import { getStrings } from "../../../core/i18n/getStrings";
|
||||
import BaseLayout from "../../../layouts/BaseLayout.astro";
|
||||
import { getStaticPaths as _getStaticPaths } from "../_index";
|
||||
|
||||
const MAX_TOOLS_PER_ROW = 2;
|
||||
|
||||
@@ -38,14 +39,14 @@ for (const id in tools) {
|
||||
}
|
||||
}
|
||||
|
||||
export const getStaticPaths = (() => {
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, () => {
|
||||
return [
|
||||
...locales.supported
|
||||
.filter(({ locale }) => locale !== locales.default)
|
||||
.map(({ locale }) => ({ params: { locale }, props: { locale } })),
|
||||
{ params: { locale: undefined }, props: { locale: locales.default } },
|
||||
];
|
||||
}) satisfies GetStaticPaths;
|
||||
});
|
||||
---
|
||||
|
||||
<AstroSeo
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
import { chunkedStaticPaths } from "../../core/blitzkit/chunkedStaticPaths";
|
||||
|
||||
export const getStaticPaths = chunkedStaticPaths("default");
|
||||
Reference in new issue
Block a user