feat: lint fixes

This commit is contained in:
TrèsAbhi committed 2026-01-15 13:58:34 -06:00
1 parent 60a29ef2e7
commit 6ec7a50320
10 files changed
+55 -15

No files matched your search

@@ -3,6 +3,7 @@ import type { Strings } from "@blitzkit/i18n";
import { Avatars } from "../../protos/avatars";
import { AbstractAPI } from "./abstract";
//@ts-expect-error
export class ClientAPI extends AbstractAPI {
protected _avatars() {
return fetchPB("/api/avatars/all.pb", Avatars);
@@ -0,0 +1,32 @@
import type {
GetStaticPathsItem,
GetStaticPathsOptions,
GetStaticPathsResult,
} from "astro";
type Promisable<T> = T | Promise<T>;
export function mixStaticPaths<
TypeA extends GetStaticPathsItem,
TypeB extends GetStaticPathsItem
>(
a: (options: GetStaticPathsOptions) => Promisable<TypeA[]>,
b: (options: GetStaticPathsOptions) => Promisable<TypeB[]>
) {
return async function (options: GetStaticPathsOptions) {
const pathsA = await a(options);
const pathsB = await b(options);
const paths: GetStaticPathsResult = [];
for (const pathA of pathsA) {
for (const pathB of pathsB) {
paths.push({
params: { ...pathA.params, ...pathB.params },
props: { ...pathA.props, ...pathB.props },
});
}
}
return paths as (TypeA & TypeB)[];
};
}
@@ -252,7 +252,7 @@ export const characteristics = {
);
},
gun_depression({ parameters, tank }) {
gun_depression({ parameters }) {
return -radToDeg(
applyPitchYawLimits(
-Math.PI / 2,
+7 -3
View File
@@ -9,7 +9,7 @@ export interface Tool {
disabled?: boolean;
href?: string;
background_position: "top" | "center" | "bottom";
banner_background_position: "top" | "center" | "bottom";
}
export const tools: Record<string, Tool> = {
@@ -19,24 +19,28 @@ export const tools: Record<string, Tool> = {
button: "purple",
significant: true,
background_position: "top",
banner_background_position: "top",
},
avatars: {
id: "avatars",
button: "gold",
background_position: "bottom",
banner_background_position: "bottom",
},
backgrounds: {
id: "backgrounds",
button: "gold",
banner_background_position: "bottom",
},
api: {
id: "api",
disabled: true,
button: "lime",
banner_background_position: "bottom",
},
};