mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 07:43:49 +01:00
start of title
This commit is contained in:
11 files changed
+79
-35
No files matched your search
+6
-6
@@ -1,11 +1,11 @@
|
||||
import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import { mixStaticPaths } from "../../../../astro/mixStaticPaths";
|
||||
import { mixStaticPaths } from "../../../../../astro/mixStaticPaths";
|
||||
import {
|
||||
readPackedSprite,
|
||||
type PackedSpriteProps,
|
||||
} from "../../../../core/blitz/readSprite";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
} from "../../../../../core/blitz/readSprite";
|
||||
import { vfs } from "../../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const paths: GetStaticPathsItem[] = [];
|
||||
@@ -22,10 +22,10 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
|
||||
for (const flag of circleFiles) {
|
||||
const path = `Data/Gfx/Lobby/flags/${flag}`;
|
||||
const id = flag.match(/flag_profile-stat_(.+)\.packed\.webp/)![1];
|
||||
const nation = flag.match(/flag_profile-stat_(.+)\.packed\.webp/)![1];
|
||||
|
||||
paths.push({
|
||||
params: { id },
|
||||
params: { nation },
|
||||
props: { packed: path },
|
||||
});
|
||||
}
|
||||
+6
-6
@@ -1,11 +1,11 @@
|
||||
import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import { mixStaticPaths } from "../../../../astro/mixStaticPaths";
|
||||
import { mixStaticPaths } from "../../../../../astro/mixStaticPaths";
|
||||
import {
|
||||
readPackedSprite,
|
||||
type PackedSpriteProps,
|
||||
} from "../../../../core/blitz/readSprite";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
} from "../../../../../core/blitz/readSprite";
|
||||
import { vfs } from "../../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const paths: GetStaticPathsItem[] = [];
|
||||
@@ -21,10 +21,10 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
|
||||
for (const flag of fadedFiles) {
|
||||
const path = `Data/Gfx/Lobby/flags/${flag}`;
|
||||
const id = flag.match(/flag_filter_(.+)@2x\.packed\.webp/)![1];
|
||||
const nation = flag.match(/flag_filter_(.+)@2x\.packed\.webp/)![1];
|
||||
|
||||
paths.push({
|
||||
params: { id },
|
||||
params: { nation },
|
||||
props: { packed: path },
|
||||
});
|
||||
}
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
import type { APIContext, GetStaticPathsItem } from "astro";
|
||||
import { mixStaticPaths } from "../../../../astro/mixStaticPaths";
|
||||
import { vfs } from "../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../_index";
|
||||
import { mixStaticPaths } from "../../../../../astro/mixStaticPaths";
|
||||
import { vfs } from "../../../../../core/blitzkit/vfs";
|
||||
import { getStaticPaths as _getStaticPaths } from "../../../_index";
|
||||
|
||||
export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
const paths: GetStaticPathsItem[] = [];
|
||||
@@ -18,10 +18,10 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
|
||||
|
||||
for (const flag of scratchedFiles) {
|
||||
const path = `Data/Gfx/Lobby/flags/${flag}`;
|
||||
const id = flag.match(/flag_tutor-tank_(.+)\.packed\.webp/)![1];
|
||||
const nation = flag.match(/flag_tutor-tank_(.+)\.packed\.webp/)![1];
|
||||
|
||||
paths.push({
|
||||
params: { id },
|
||||
params: { nation },
|
||||
props: { path },
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user