mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: split up some more
This commit is contained in:
1 parent
7c6f381bbe
commit
2c9a7f9a99
24 files changed
+36
-37
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import { Region } from '@blitzkit/core';
|
import { Region } from '@blitzkit/core';
|
||||||
import { NextResponse } from 'next/server';
|
import { NextResponse } from 'next/server';
|
||||||
import getRatingInfo from '../../../../../../core/blitz/getRatingInfo';
|
import getRatingInfo from '../../../../../../../../website/src/core/blitz/getRatingInfo';
|
||||||
|
|
||||||
export async function GET(
|
export async function GET(
|
||||||
request: Request,
|
request: Request,
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import { Region } from '@blitzkit/core';
|
import { Region } from '@blitzkit/core';
|
||||||
import { NextResponse } from 'next/server';
|
import { NextResponse } from 'next/server';
|
||||||
import { getRatingLeague } from '../../../../../../../core/blitz/getRatingLeague';
|
import { getRatingLeague } from '../../../../../../../../../website/src/core/blitz/getRatingLeague';
|
||||||
|
|
||||||
export async function GET(
|
export async function GET(
|
||||||
request: Request,
|
request: Request,
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import { Region } from '@blitzkit/core';
|
import { Region } from '@blitzkit/core';
|
||||||
import { NextResponse } from 'next/server';
|
import { NextResponse } from 'next/server';
|
||||||
import { searchCurrentRatingPlayers } from '../../../../../../../core/blitz/searchCurrentRatingPlayers';
|
import { searchCurrentRatingPlayers } from '../../../../../../../../../website/src/core/blitz/searchCurrentRatingPlayers';
|
||||||
|
|
||||||
export async function GET(
|
export async function GET(
|
||||||
request: Request,
|
request: Request,
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
import { tankDefinitions, usersDatabase } from '@blitzkit/core';
|
import { tankDefinitions, usersDatabase } from '@blitzkit/core';
|
||||||
import { NextRequest, NextResponse } from 'next/server';
|
import { NextRequest, NextResponse } from 'next/server';
|
||||||
import { isValidBlitzId } from '../../../../../core/blitz/isValidBlitzId';
|
import { isValidBlitzId } from '../../../../../../../website/src/core/blitz/isValidBlitzId';
|
||||||
import {
|
import {
|
||||||
BlitzkitResponse,
|
BlitzkitResponse,
|
||||||
BlitzkitResponseError,
|
BlitzkitResponseError,
|
||||||
} from '../../../../../hooks/useTankVotes';
|
} from '../../../../../../../website/src/hooks/useTankVotes';
|
||||||
import { TankVoteCategory } from '../cast/route';
|
import { TankVoteCategory } from '../cast/route';
|
||||||
|
|
||||||
export interface TankVotes {
|
export interface TankVotes {
|
||||||
+3
-3
@@ -1,11 +1,11 @@
|
|||||||
import { tankDefinitions, usersDatabase } from '@blitzkit/core';
|
import { tankDefinitions, usersDatabase } from '@blitzkit/core';
|
||||||
import { NextRequest, NextResponse } from 'next/server';
|
import { NextRequest, NextResponse } from 'next/server';
|
||||||
import { isValidBlitzId } from '../../../../../core/blitz/isValidBlitzId';
|
import { StarsInt } from '../../../../../../../website/src/app/tools/tankopedia/[id]/components/Model/MetaSection/components/Stars';
|
||||||
|
import { isValidBlitzId } from '../../../../../../../website/src/core/blitz/isValidBlitzId';
|
||||||
import {
|
import {
|
||||||
BlitzkitResponse,
|
BlitzkitResponse,
|
||||||
BlitzkitResponseError,
|
BlitzkitResponseError,
|
||||||
} from '../../../../../hooks/useTankVotes';
|
} from '../../../../../../../website/src/hooks/useTankVotes';
|
||||||
import { StarsInt } from '../../../../tools/tankopedia/[id]/components/Model/MetaSection/components/Stars';
|
|
||||||
|
|
||||||
export const TANK_VOTE_CATEGORIES = [
|
export const TANK_VOTE_CATEGORIES = [
|
||||||
'easiness',
|
'easiness',
|
||||||
@@ -3,5 +3,5 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"plugins": [{ "name": "next" }]
|
"plugins": [{ "name": "next" }]
|
||||||
},
|
},
|
||||||
"include": ["src/**/*", "dist/website/types/**/*.ts"]
|
"include": ["src/**/*"]
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
import { Region } from '@blitzkit/core';
|
import { ClanList, Region } from '@blitzkit/core';
|
||||||
import { ClanList } from '@blitzkit/core/src/blitz/clanList';
|
|
||||||
import { Locale } from 'discord.js';
|
import { Locale } from 'discord.js';
|
||||||
import markdownEscape from 'markdown-escape';
|
import markdownEscape from 'markdown-escape';
|
||||||
import fetchBlitz from '../../../website/src/core/blitz/fetchBlitz';
|
import fetchBlitz from '../../../website/src/core/blitz/fetchBlitz';
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import {
|
|||||||
SlashCommandBuilder,
|
SlashCommandBuilder,
|
||||||
SlashCommandSubcommandBuilder,
|
SlashCommandSubcommandBuilder,
|
||||||
} from 'discord.js';
|
} from 'discord.js';
|
||||||
import {} from '../../components/Tanks/components/Item/constants';
|
|
||||||
import { translator } from '../localization/translator';
|
import { translator } from '../localization/translator';
|
||||||
import addTankChoices from './addTankChoices';
|
import addTankChoices from './addTankChoices';
|
||||||
import addTierChoices from './addTierChoices';
|
import addTierChoices from './addTierChoices';
|
||||||
|
|||||||
Vendored
+4
@@ -0,0 +1,4 @@
|
|||||||
|
declare module '*.ttf' {
|
||||||
|
const path: string;
|
||||||
|
export default path;
|
||||||
|
}
|
||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"extends": "../../tsconfig.json",
|
||||||
"noEmit": true,
|
"include": ["src/**/*"]
|
||||||
"declaration": true
|
|
||||||
},
|
|
||||||
"extends": "../../tsconfig.json"
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../tsconfig.json",
|
||||||
|
"include": ["src/**/*"]
|
||||||
|
}
|
||||||
@@ -5,10 +5,11 @@ import {
|
|||||||
BkrlWriteStream,
|
BkrlWriteStream,
|
||||||
CdonValue,
|
CdonValue,
|
||||||
CdonWriteStream,
|
CdonWriteStream,
|
||||||
|
RatingInfo,
|
||||||
|
RatingNeighbors,
|
||||||
RegionSubdomain,
|
RegionSubdomain,
|
||||||
superCompress,
|
superCompress,
|
||||||
} from '@blitzkit/core';
|
} from '@blitzkit/core';
|
||||||
import { RatingInfo, RatingNeighbors } from '@blitzkit/core/src/blitz/leagues';
|
|
||||||
import { RatingPlayer } from '@blitzkit/core/src/statistics/deltaBkrlBlitzStats';
|
import { RatingPlayer } from '@blitzkit/core/src/statistics/deltaBkrlBlitzStats';
|
||||||
import { chunk } from 'lodash';
|
import { chunk } from 'lodash';
|
||||||
import { argv } from 'process';
|
import { argv } from 'process';
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"extends": "../../tsconfig.json",
|
||||||
|
"include": ["src/**/*"]
|
||||||
|
}
|
||||||
@@ -3,12 +3,12 @@
|
|||||||
import {
|
import {
|
||||||
FIRST_MINIMAL_ARCHIVED_RATING_SEASON,
|
FIRST_MINIMAL_ARCHIVED_RATING_SEASON,
|
||||||
LEAGUES,
|
LEAGUES,
|
||||||
|
RatingInfo,
|
||||||
Region,
|
Region,
|
||||||
REGIONS,
|
REGIONS,
|
||||||
UNLOCALIZED_REGION_NAMES,
|
UNLOCALIZED_REGION_NAMES,
|
||||||
Var,
|
Var,
|
||||||
} from '@blitzkit/core';
|
} from '@blitzkit/core';
|
||||||
import { RatingInfo } from '@blitzkit/core/src/blitz/leagues';
|
|
||||||
import { RatingPlayer } from '@blitzkit/core/src/statistics/deltaBkrlBlitzStats';
|
import { RatingPlayer } from '@blitzkit/core/src/statistics/deltaBkrlBlitzStats';
|
||||||
import { blackA, orangeDark } from '@radix-ui/colors';
|
import { blackA, orangeDark } from '@radix-ui/colors';
|
||||||
import { MagnifyingGlassIcon } from '@radix-ui/react-icons';
|
import { MagnifyingGlassIcon } from '@radix-ui/react-icons';
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { Region, asset } from '@blitzkit/core';
|
import { RatingInfo, Region, asset } from '@blitzkit/core';
|
||||||
import { RatingInfo } from '@blitzkit/core/src/blitz/leagues';
|
|
||||||
import { superDecompress } from '@blitzkit/core/src/blitzkit/superDecompress';
|
import { superDecompress } from '@blitzkit/core/src/blitzkit/superDecompress';
|
||||||
|
|
||||||
const cache: Record<
|
const cache: Record<
|
||||||
|
|||||||
Vendored
+4
@@ -0,0 +1,4 @@
|
|||||||
|
declare module '*.glsl' {
|
||||||
|
const value: string;
|
||||||
|
export default value;
|
||||||
|
}
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
declare module '*.proto' {
|
||||||
|
const value: string;
|
||||||
|
export default value;
|
||||||
|
}
|
||||||
@@ -9,7 +9,6 @@
|
|||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*",
|
"src/**/*",
|
||||||
"dist/website/types/**/*.ts",
|
|
||||||
".next/types/**/*.ts"
|
".next/types/**/*.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -20,6 +20,5 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"include": ["packages/**/*", "types.d.ts"],
|
|
||||||
"exclude": ["node_modules/**/*", "dist"]
|
"exclude": ["node_modules/**/*", "dist"]
|
||||||
}
|
}
|
||||||
Vendored
-14
@@ -1,14 +0,0 @@
|
|||||||
declare module '*.glsl' {
|
|
||||||
const value: string;
|
|
||||||
export default value;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module '*.proto' {
|
|
||||||
const value: string;
|
|
||||||
export default value;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module '*.ttf' {
|
|
||||||
const path: string;
|
|
||||||
export default path;
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user