mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: port to core 1
This commit is contained in:
1 parent
fd2e2f9c7b
commit
5e989a16bc
24 files changed
+24
-14
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { Region } from '@blitzkit/core';
|
||||
import { searchCurrentRatingPlayers } from '@blitzkit/core/src/blitz/searchCurrentRatingPlayers';
|
||||
import { NextResponse } from 'next/server';
|
||||
import { searchCurrentRatingPlayers } from '../../../../../../../../website/src/core/blitz/searchCurrentRatingPlayers';
|
||||
|
||||
export async function GET(
|
||||
request: Request,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { tankDefinitions, TankVotes, usersDatabase } from '@blitzkit/core';
|
||||
import { isValidBlitzId } from '@blitzkit/core/src/blitz/isValidBlitzId';
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
import { isValidBlitzId } from '../../../../../../website/src/core/blitz/isValidBlitzId';
|
||||
import {
|
||||
BlitzkitResponse,
|
||||
BlitzkitResponseError,
|
||||
|
||||
@@ -4,9 +4,9 @@ import {
|
||||
TankVoteCategory,
|
||||
usersDatabase,
|
||||
} from '@blitzkit/core';
|
||||
import { isValidBlitzId } from '@blitzkit/core/src/blitz/isValidBlitzId';
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
import { StarsInt } from '../../../../../../website/src/app/tools/tankopedia/[id]/components/Model/MetaSection/components/Stars';
|
||||
import { isValidBlitzId } from '../../../../../../website/src/core/blitz/isValidBlitzId';
|
||||
import {
|
||||
BlitzkitResponse,
|
||||
BlitzkitResponseError,
|
||||
|
||||
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
import { fetchBlitz, Region } from '@blitzkit/core';
|
||||
import { normalizeIds } from '../../../website/src/core/blitz/normalizeIds';
|
||||
import { normalizeIds } from './normalizeIds';
|
||||
|
||||
interface IndividualAccountAchievements {
|
||||
achievements: {
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
Region,
|
||||
fetchBlitz,
|
||||
} from '@blitzkit/core';
|
||||
import { normalizeIds } from '../../../website/src/core/blitz/normalizeIds';
|
||||
import { normalizeIds } from './normalizeIds';
|
||||
|
||||
export interface SupplementaryStats {
|
||||
WN8?: number;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { fetchBlitz, Region } from '@blitzkit/core';
|
||||
import { normalizeIds } from '../../../website/src/core/blitz/normalizeIds';
|
||||
import { normalizeIds } from './normalizeIds';
|
||||
|
||||
type IndividualClanAccountInfo = {
|
||||
account_id: number;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { fetchBlitz, Region } from '@blitzkit/core';
|
||||
import { normalizeIds } from '../../../website/src/core/blitz/normalizeIds';
|
||||
import { normalizeIds } from './normalizeIds';
|
||||
|
||||
interface IndividualClanInfo {
|
||||
recruiting_options: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { RatingInfo, Region } from '@blitzkit/core';
|
||||
import { regionToRegionSubdomain } from '../../../website/src/core/blitz/regionToRegionSubdomain';
|
||||
import { context } from '../../../website/src/core/blitzkit/context';
|
||||
import { patientFetch } from '../../../website/src/core/blitzkit/patientFetch';
|
||||
import { context } from '../blitzkit/context';
|
||||
import { regionToRegionSubdomain } from './regionToRegionSubdomain';
|
||||
|
||||
const cache: Partial<Record<Region, RatingInfo>> = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { LeagueTop, RatingPlayer, Region } from '@blitzkit/core';
|
||||
import { regionToRegionSubdomain } from '../../../website/src/core/blitz/regionToRegionSubdomain';
|
||||
import { context } from '../../../website/src/core/blitzkit/context';
|
||||
import { patientFetch } from '../../../website/src/core/blitzkit/patientFetch';
|
||||
import { context } from '../blitzkit/context';
|
||||
import { regionToRegionSubdomain } from './regionToRegionSubdomain';
|
||||
|
||||
export async function getRatingLeague(
|
||||
region: Region,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { RatingNeighbors, Region } from '@blitzkit/core';
|
||||
import { regionToRegionSubdomain } from '../../../website/src/core/blitz/regionToRegionSubdomain';
|
||||
import { patientFetch } from '../../../website/src/core/blitzkit/patientFetch';
|
||||
import { withCORSProxy } from '../../../website/src/core/blitzkit/withCORSProxy';
|
||||
import { regionToRegionSubdomain } from './regionToRegionSubdomain';
|
||||
|
||||
export async function getRatingNeighbors(
|
||||
region: Region,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from './canSplash';
|
||||
export * from './clans';
|
||||
export * from './constants';
|
||||
export * from './equipmentPrice';
|
||||
@@ -13,11 +14,19 @@ export * from './getRatingLeague';
|
||||
export * from './getRatingNeighbors';
|
||||
export * from './getTankStats';
|
||||
export * from './idToRegion';
|
||||
export * from './isOnGoingRatingSeason';
|
||||
export * from './isValidBlitzId';
|
||||
export * from './nations';
|
||||
export * from './normalizeExtra';
|
||||
export * from './normalizeIds';
|
||||
export * from './permanentSkills';
|
||||
export * from './rating';
|
||||
export * from './regions';
|
||||
export * from './regionSubdomainToRegion';
|
||||
export * from './regionToRegionSubdomain';
|
||||
export * from './resolveNearPenetration';
|
||||
export * from './searchClansAcrossRegions';
|
||||
export * from './searchCurrentRatingPlayers';
|
||||
export * from './searchPlayersAcrossRegions';
|
||||
export * from './toUniqueId';
|
||||
export * from './writeDVPL';
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -6,6 +6,7 @@ export * from './camouflageDefinitions';
|
||||
export * from './checkConsumableProvisionInclusivity';
|
||||
export * from './coefficient';
|
||||
export * from './consumableDefinitions';
|
||||
export * from './context';
|
||||
export * from './createDefaultSkills';
|
||||
export * from './degressiveStat';
|
||||
export * from './equipmentDefinitions';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BlitzStats, tankDefinitions } from '@blitzkit/core';
|
||||
import { context } from '../../../website/src/core/blitzkit/context';
|
||||
import { context } from '../blitzkit/context';
|
||||
|
||||
interface SpecialStats {
|
||||
winrate: number;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { context } from './context';
|
||||
import { context } from '@blitzkit/core/src/blitzkit/context';
|
||||
|
||||
export function withCORSProxy(url: string) {
|
||||
return context === 'website'
|
||||
|
||||
Reference in new issue
Block a user