mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: re-added rest of the asset gens
This commit is contained in:
1 parent
9df47777d0
commit
9a44b1fcfb
9 files changed
+187
-183
No files matched your search
@@ -142,18 +142,16 @@ export default function Page() {
|
||||
display: 'flex',
|
||||
}}
|
||||
>
|
||||
{tank.nation !== 'other' && (
|
||||
<img
|
||||
className={styles.flag}
|
||||
src={asset(`flags/scratched/${tank.nation}.webp`)}
|
||||
style={{
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
objectFit: 'contain',
|
||||
position: 'absolute',
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
<img
|
||||
className={styles.flag}
|
||||
src={asset(`flags/scratched/${tank.nation}.webp`)}
|
||||
style={{
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
objectFit: 'contain',
|
||||
position: 'absolute',
|
||||
}}
|
||||
/>
|
||||
|
||||
<div
|
||||
style={{
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
import { readDVPL } from './readDVPL';
|
||||
|
||||
export async function readBase64DVPL(file: string) {
|
||||
const buffer = await readDVPL(file);
|
||||
return buffer.toString('base64');
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Octokit } from '@octokit/rest';
|
||||
import { octokit } from './octokit';
|
||||
|
||||
const TIME_PER_BLOB = 2 ** 4 * 1000;
|
||||
|
||||
@@ -9,7 +9,6 @@ export interface FileChange {
|
||||
}
|
||||
|
||||
export default async function commitMultipleFiles(
|
||||
octokit: Octokit,
|
||||
owner: string,
|
||||
repo: string,
|
||||
branch: string,
|
||||
@@ -61,7 +60,6 @@ export default async function commitMultipleFiles(
|
||||
`Failed blob ${changeIndex + 1} / ${
|
||||
changes.length
|
||||
}; retrying in ${TIME_PER_BLOB}ms...`,
|
||||
error,
|
||||
);
|
||||
|
||||
await new Promise((resolve) => setTimeout(resolve, TIME_PER_BLOB));
|
||||
|
||||
@@ -3,13 +3,13 @@ import { TankType, TreeTypeString } from '../../../components/Tanks';
|
||||
import { asset } from '../asset';
|
||||
|
||||
export interface TankDefinition {
|
||||
id: number;
|
||||
nation: string;
|
||||
name: string;
|
||||
name_short?: string;
|
||||
tree_type: TreeTypeString;
|
||||
tier: Tier;
|
||||
type: TankType;
|
||||
testing?: boolean;
|
||||
}
|
||||
|
||||
export type TankDefinitions = Record<number, TankDefinition>;
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import { throttling } from '@octokit/plugin-throttling';
|
||||
import { Octokit } from '@octokit/rest';
|
||||
import { secrets } from './secrets';
|
||||
|
||||
Octokit.plugin(throttling);
|
||||
|
||||
export const octokit = new Octokit({ auth: secrets.GH_TOKEN });
|
||||
Reference in new issue
Block a user