mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
feat: more migration
This commit is contained in:
1 parent
a1721eb05e
commit
502dcf4e54
146 files changed
+481
-666
No files matched your search
@@ -73,7 +73,7 @@ export function fetchBlitz<Data extends object>(
|
||||
queue.push({
|
||||
url: `https://api.wotblitz.${region}/wotb/${path}/?${Object.entries({
|
||||
application_id: assertSecret(
|
||||
process.env.NEXT_PUBLIC_WARGAMING_APPLICATION_ID,
|
||||
process.env.PUBLIC_WARGAMING_APPLICATION_ID,
|
||||
),
|
||||
...params,
|
||||
})
|
||||
|
||||
@@ -11,7 +11,7 @@ export async function isValidBlitzId(id: number, token?: string) {
|
||||
|
||||
const json = await fetch(
|
||||
`https://api.wotblitz.${region}/wotb/account/info/?account_id=${id}&application_id=${assertSecret(
|
||||
process.env.NEXT_PUBLIC_WARGAMING_APPLICATION_ID,
|
||||
process.env.PUBLIC_WARGAMING_APPLICATION_ID,
|
||||
)}${
|
||||
token === undefined ? '' : `&access_token=${token}`
|
||||
}&fields=account_id%2C-account_id`,
|
||||
|
||||
@@ -2,6 +2,6 @@ import { assertSecret } from './assertSecret';
|
||||
|
||||
export function asset(path: string) {
|
||||
return `https://raw.githubusercontent.com/${assertSecret(
|
||||
process.env.NEXT_PUBLIC_ASSET_REPO,
|
||||
)}/${assertSecret(process.env.NEXT_PUBLIC_ASSET_BRANCH)}/${path}`;
|
||||
process.env.PUBLIC_ASSET_REPO,
|
||||
)}/${assertSecret(process.env.PUBLIC_ASSET_BRANCH)}/${path}`;
|
||||
}
|
||||
@@ -17,7 +17,7 @@ export async function getArchivedLatestSeasonNumber() {
|
||||
const regionsURL = (
|
||||
(await fetch(
|
||||
`https://api.github.com/repos/tresabhi/${assertSecret(
|
||||
process.env.NEXT_PUBLIC_ASSET_REPO,
|
||||
process.env.PUBLIC_ASSET_REPO,
|
||||
)}/git/trees/main`,
|
||||
).then((response) => response.json())) as GitHubTrees
|
||||
).tree.find(({ path }) => path === 'regions')!.url;
|
||||
|
||||
@@ -12,10 +12,10 @@ export * from './assertSecret';
|
||||
// export * from './discoveredIdDefinitions';
|
||||
// export * from './emblemURL';
|
||||
// export * from './equipmentDefinitions';
|
||||
// export * from './eventManager';
|
||||
export * from './eventManager';
|
||||
// export * from './fetchCdonLz4';
|
||||
// export * from './flagUserActivity';
|
||||
// export * from './gameDefinitions';
|
||||
export * from './gameDefinitions';
|
||||
// export * from './getArchivedLatestSeasonNumber';
|
||||
// export * from './getArchivedRatingInfo';
|
||||
// export * from './getArchivedRatingLeaderboard';
|
||||
@@ -36,8 +36,8 @@ export * from './assertSecret';
|
||||
// export * from './reviews';
|
||||
// export * from './skillDefinitions';
|
||||
// export * from './sum';
|
||||
// export * from './superCompress';
|
||||
// export * from './superDecompress';
|
||||
export * from './superCompress';
|
||||
export * from './superDecompress';
|
||||
// export * from './tankDefinitions';
|
||||
// export * from './tankIcon';
|
||||
// export * from './tankNames';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { deburr } from 'lodash';
|
||||
import { deburr } from 'lodash-es';
|
||||
import { camouflageDefinitions, tankDefinitionsArray } from '.';
|
||||
|
||||
export const tankNames = Promise.all([
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { forEachRight } from 'lodash';
|
||||
import { forEachRight } from 'lodash-es';
|
||||
import { GunDefinition, TurretDefinition } from './tankDefinitions';
|
||||
|
||||
export function uniqueGuns(turrets: TurretDefinition[]) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// export * from './blitz';
|
||||
export * from './blitz';
|
||||
export * from './blitzkit';
|
||||
// export * from './blitzstars';
|
||||
// export * from './databases';
|
||||
|
||||
@@ -3,8 +3,8 @@ import { assertSecret } from '../blitzkit/assertSecret';
|
||||
export function patreonLoginUrl() {
|
||||
const params = new URLSearchParams({
|
||||
response_type: 'code',
|
||||
client_id: assertSecret(process.env.NEXT_PUBLIC_PATREON_CLIENT_ID),
|
||||
redirect_uri: assertSecret(process.env.NEXT_PUBLIC_PATREON_REDIRECT_URI),
|
||||
client_id: assertSecret(process.env.PUBLIC_PATREON_CLIENT_ID),
|
||||
redirect_uri: assertSecret(process.env.PUBLIC_PATREON_REDIRECT_URI),
|
||||
scope: 'identity',
|
||||
});
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { times } from 'lodash';
|
||||
import { times } from 'lodash-es';
|
||||
import { ReadStream, WriteStream } from './buffer';
|
||||
|
||||
export enum BkrlFormat {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { times } from 'lodash';
|
||||
import { times } from 'lodash-es';
|
||||
import { ReadStream, WriteStream } from './buffer';
|
||||
|
||||
enum ValueType {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { times } from 'lodash';
|
||||
import { times } from 'lodash-es';
|
||||
import { Vector3Tuple, Vector4Tuple } from 'three';
|
||||
import { WindowsReadStream } from './windows';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { times } from 'lodash';
|
||||
import { times } from 'lodash-es';
|
||||
import { ReadStream, WriteStream } from './buffer';
|
||||
|
||||
export class DidsReadStream extends ReadStream {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { clamp, isEqual, times } from 'lodash';
|
||||
import { clamp, isEqual, times } from 'lodash-es';
|
||||
import { ReadStream } from './buffer';
|
||||
|
||||
export enum PvrFlags {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { times } from 'lodash';
|
||||
import { times } from 'lodash-es';
|
||||
import { IndividualTankStats } from '..';
|
||||
import { BlitzStats } from '../statistics/compositeStats/constants';
|
||||
import { ReadStream, WriteStream } from './buffer';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { times } from 'lodash';
|
||||
import { times } from 'lodash-es';
|
||||
import { ReadStream } from './buffer';
|
||||
|
||||
enum KAType {
|
||||
|
||||
Reference in new issue
Block a user