mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
fix: filters
This commit is contained in:
1 parent
70bd54e03b
commit
3113bf3a47
3 files changed
+14
-5
No files matched your search
@@ -6,12 +6,16 @@ import { commitAssets } from '../core/github/commitAssets';
|
|||||||
import { FileChange } from '../core/github/commitMultipleFiles';
|
import { FileChange } from '../core/github/commitMultipleFiles';
|
||||||
|
|
||||||
export async function blitzkitTankIcons() {
|
export async function blitzkitTankIcons() {
|
||||||
console.log('Building tank icons...');
|
console.log('Building blitzkit tank icons...');
|
||||||
|
|
||||||
|
console.log('Starting website dev server...');
|
||||||
|
|
||||||
const child = exec('cd ../.. && bun dev:website');
|
const child = exec('cd ../.. && bun dev:website');
|
||||||
const browser = await launch();
|
const browser = await launch();
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
const tanks = Object.values((await fetchTankDefinitions()).tanks);
|
const tanks = Object.values((await fetchTankDefinitions()).tanks).filter(
|
||||||
|
({ id }) => id === 24657,
|
||||||
|
);
|
||||||
const files: FileChange[] = [];
|
const files: FileChange[] = [];
|
||||||
|
|
||||||
let index = 0;
|
let index = 0;
|
||||||
@@ -23,6 +27,11 @@ export async function blitzkitTankIcons() {
|
|||||||
await page.goto(`http://localhost:4321/api/tankopedia/tank-icon/${id}/`, {
|
await page.goto(`http://localhost:4321/api/tankopedia/tank-icon/${id}/`, {
|
||||||
waitUntil: 'networkidle0',
|
waitUntil: 'networkidle0',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (index === 0) {
|
||||||
|
console.log('Dev server started!');
|
||||||
|
}
|
||||||
|
|
||||||
const screenshot = await page.screenshot({
|
const screenshot = await page.screenshot({
|
||||||
type: 'webp',
|
type: 'webp',
|
||||||
omitBackground: true,
|
omitBackground: true,
|
||||||
|
|||||||
@@ -23,10 +23,10 @@
|
|||||||
|
|
||||||
.tank-search-card .image {
|
.tank-search-card .image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 5rem;
|
height: 6rem;
|
||||||
object-position: center right;
|
object-position: center right;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
filter: brightness(1) drop-shadow(-1px -1px 4px black);
|
filter: brightness(1.25) drop-shadow(-1px -1px 4px black);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tank-search-card .class-icon {
|
.tank-search-card .class-icon {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { TankopediaPersistent } from '../../../stores/tankopediaPersistent';
|
|||||||
|
|
||||||
export function Page() {
|
export function Page() {
|
||||||
return (
|
return (
|
||||||
<PageWrapper color="purple" maxWidth="64rem">
|
<PageWrapper color="purple" maxWidth="80rem">
|
||||||
<TankopediaPersistent.Provider>
|
<TankopediaPersistent.Provider>
|
||||||
<App.Provider>
|
<App.Provider>
|
||||||
<TankSearch />
|
<TankSearch />
|
||||||
|
|||||||
Reference in new issue
Block a user