mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
Merge pull request #126 from tresabhi/main
This commit is contained in:
8 files changed
+35
-32
No files matched your search
@@ -5,7 +5,7 @@ on:
|
|||||||
branches: main
|
branches: main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 8 * * *'
|
- cron: '0 */6 * * *'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|||||||
Vendored
+1
@@ -95,6 +95,7 @@
|
|||||||
"Minotauro",
|
"Minotauro",
|
||||||
"MIPMAPCOUNT",
|
"MIPMAPCOUNT",
|
||||||
"mišek",
|
"mišek",
|
||||||
|
"mmnow",
|
||||||
"modeltransform",
|
"modeltransform",
|
||||||
"MURICA",
|
"MURICA",
|
||||||
"NEGATIVEX",
|
"NEGATIVEX",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { chunk, times } from 'lodash';
|
import { chunk, times, uniq } from 'lodash';
|
||||||
import { compress, decompress } from 'lz4js';
|
import { compress, decompress } from 'lz4js';
|
||||||
import { argv } from 'process';
|
import { argv } from 'process';
|
||||||
import { REGIONS, Region } from '../src/constants/regions';
|
import { REGIONS, Region } from '../src/constants/regions';
|
||||||
@@ -136,10 +136,10 @@ function post() {
|
|||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
console.log(`Uploading ${ids.length} ids...`);
|
console.log(`Uploading ${ids.length} ids...`);
|
||||||
|
|
||||||
const idsSorted = ids.sort((a, b) => a - b);
|
const idsSorted = uniq(ids).sort((a, b) => a - b);
|
||||||
const idsChunked = chunk(idsSorted, CHUNK_SIZE);
|
const idsChunked = chunk(idsSorted, CHUNK_SIZE);
|
||||||
const files = idsChunked.map((ids, chunk) => {
|
const files = idsChunked.map((ids, chunk) => {
|
||||||
const didsWriteStream = new DidsWriteStream().dids(idsSorted);
|
const didsWriteStream = new DidsWriteStream().dids(ids);
|
||||||
const compressed = compress(didsWriteStream.uint8Array);
|
const compressed = compress(didsWriteStream.uint8Array);
|
||||||
const content = Buffer.from(compressed).toString('base64');
|
const content = Buffer.from(compressed).toString('base64');
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
import { Flex, Link } from '@radix-ui/themes';
|
import { Flex, Link } from '@radix-ui/themes';
|
||||||
import { use } from 'react';
|
import { use } from 'react';
|
||||||
import { AdHorizontal } from '../../../../components/Ads/Horizontal';
|
|
||||||
import PageWrapper from '../../../../components/PageWrapper';
|
import PageWrapper from '../../../../components/PageWrapper';
|
||||||
import { tankDefinitions } from '../../../../core/blitzkit/tankDefinitions';
|
import { tankDefinitions } from '../../../../core/blitzkit/tankDefinitions';
|
||||||
|
|
||||||
@@ -13,8 +12,6 @@ export default function Page() {
|
|||||||
<PageWrapper>
|
<PageWrapper>
|
||||||
<title>Super duper secret map for SEO</title>
|
<title>Super duper secret map for SEO</title>
|
||||||
|
|
||||||
<AdHorizontal />
|
|
||||||
|
|
||||||
<Flex direction="column" align="center">
|
<Flex direction="column" align="center">
|
||||||
{Object.values(awaitedTankDefinitions)
|
{Object.values(awaitedTankDefinitions)
|
||||||
.sort((a, b) => b.tier - a.tier)
|
.sort((a, b) => b.tier - a.tier)
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { Flex } from '@radix-ui/themes';
|
import { Flex } from '@radix-ui/themes';
|
||||||
|
import { times } from 'lodash';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { useRouter } from 'next/navigation';
|
import { useRouter } from 'next/navigation';
|
||||||
|
import { Ad, AdType } from '../../../components/Ad';
|
||||||
import PageWrapper from '../../../components/PageWrapper';
|
import PageWrapper from '../../../components/PageWrapper';
|
||||||
import { TankSearch } from './components/TankSearch';
|
import { TankSearch } from './components/TankSearch';
|
||||||
|
|
||||||
@@ -17,6 +19,12 @@ export default function Page() {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<Flex justify="center" wrap="wrap">
|
||||||
|
{times(2, () => (
|
||||||
|
<Ad type={AdType.TankopediaHorizontal800} />
|
||||||
|
))}
|
||||||
|
</Flex>
|
||||||
|
|
||||||
<Flex justify="center" mt="4">
|
<Flex justify="center" mt="4">
|
||||||
<Link href="/tools/tankopedia/map">Super duper secret map</Link>
|
<Link href="/tools/tankopedia/map">Super duper secret map</Link>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
'use client';
|
||||||
|
|
||||||
|
import { ComponentProps, useEffect } from 'react';
|
||||||
|
|
||||||
|
export enum AdType {
|
||||||
|
TankopediaHorizontal800 = 738182777,
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AdProps extends ComponentProps<'div'> {
|
||||||
|
type: AdType;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function Ad({ type, ...props }: AdProps) {
|
||||||
|
useEffect(() => {
|
||||||
|
(window as any).msAdsQueue.push(function () {
|
||||||
|
(window as any).mmnow.render({ adUnitId: type, elementId: type });
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
return <div id={`${type}`} {...props} />;
|
||||||
|
}
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
export function AdHorizontal() {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<script
|
|
||||||
async
|
|
||||||
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1289406790225052"
|
|
||||||
crossOrigin="anonymous"
|
|
||||||
/>
|
|
||||||
<ins
|
|
||||||
className="adsbygoogle"
|
|
||||||
style={{ display: 'block' }}
|
|
||||||
data-ad-client="ca-pub-1289406790225052"
|
|
||||||
data-ad-slot="2391822409"
|
|
||||||
data-ad-format="auto"
|
|
||||||
data-full-width-responsive="true"
|
|
||||||
/>
|
|
||||||
<script
|
|
||||||
dangerouslySetInnerHTML={{
|
|
||||||
__html: `(adsbygoogle = window.adsbygoogle || []).push({});`,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -36,7 +36,7 @@ export function Party3() {
|
|||||||
{/* pub center */}
|
{/* pub center */}
|
||||||
<script
|
<script
|
||||||
async
|
async
|
||||||
src="https://adsdk.microsoft.com/pubcenter/sdk.js?siteId=364600&publisherId=253617120"
|
src="https://adsdk.microsoft.com/mmnow/sdk.js?siteId=364645&publisherId=253617120"
|
||||||
crossOrigin="anonymous"
|
crossOrigin="anonymous"
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in new issue
Block a user