mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
fix: more imports
This commit is contained in:
1 parent
25cfb7db74
commit
4f24db0956
182 files changed
+456
-452
No files matched your search
@@ -1,14 +1,13 @@
|
||||
import { Percentile } from '@blitzkit/core/src/statistics/percentiles';
|
||||
import { getWN8Percentile, Percentile } from '@blitzkit/core';
|
||||
import { Locale } from 'discord.js';
|
||||
import { SupplementaryStats } from '../../../../website/src/core/blitz/getAccountInfo';
|
||||
import { translator } from '../../core/localization/translator';
|
||||
import { PERCENTILE_COLORS } from '../PercentileIndicator/constants';
|
||||
import { HeroStat } from './components/HeroStat';
|
||||
import {
|
||||
WN8SurroundingStat,
|
||||
WN8SurroundingStatAlign,
|
||||
} from './components/WN8SurroundingStat';
|
||||
import { translator } from '../../core/localization/translator';
|
||||
import getWN8Percentile from '@blitzkit/core/src/statistics/getWN8Percentile';
|
||||
|
||||
export interface AllStatsOverviewProps {
|
||||
stats: {
|
||||
@@ -25,7 +24,7 @@ export interface AllStatsOverviewProps {
|
||||
locale: Locale;
|
||||
}
|
||||
|
||||
export default function AllStatsOverview({
|
||||
export function AllStatsOverview({
|
||||
stats,
|
||||
locale,
|
||||
supplementaryStats,
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { TankClass, TreeType } from '@blitzkit/core';
|
||||
import { TREE_TYPE_ICONS } from '@blitzkit/core/src/blitzkit/tankDefinitions/constants';
|
||||
import { Percentile } from '@blitzkit/core/src/statistics/percentiles';
|
||||
import {
|
||||
Percentile,
|
||||
TankClass,
|
||||
TREE_TYPE_ICONS,
|
||||
TreeType,
|
||||
} from '@blitzkit/core';
|
||||
import { createColors } from 'bepaint';
|
||||
import {
|
||||
AccentColor,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Percentile } from '@blitzkit/core/src/statistics/percentiles';
|
||||
import { Percentile } from '@blitzkit/core';
|
||||
import { createColors } from 'bepaint';
|
||||
import {
|
||||
AccentColor,
|
||||
|
||||
@@ -6,7 +6,7 @@ interface CommandWrapperProps {
|
||||
fat?: boolean;
|
||||
}
|
||||
|
||||
export default function CommandWrapper({ children, fat }: CommandWrapperProps) {
|
||||
export function CommandWrapper({ children, fat }: CommandWrapperProps) {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { asset } from '@blitzkit/core/src/blitzkit/asset';
|
||||
import { asset } from '@blitzkit/core';
|
||||
|
||||
interface FlagProps {
|
||||
nation: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Percentile } from '@blitzkit/core/src/statistics/percentiles';
|
||||
import { Percentile } from '@blitzkit/core';
|
||||
import { theme } from '../../../stitches.config';
|
||||
import PercentileIndicator from '../../PercentileIndicator';
|
||||
import { PercentileIndicator } from '../../PercentileIndicator';
|
||||
|
||||
interface CardItem {
|
||||
label: string;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import { BlitzStats } from '@blitzkit/core';
|
||||
import isNumber from '@blitzkit/core/src/math/isNumber';
|
||||
import getWN8Percentile from '@blitzkit/core/src/statistics/getWN8Percentile';
|
||||
import { BlitzStats, getWN8Percentile, isNumber } from '@blitzkit/core';
|
||||
import { Locale } from 'discord.js';
|
||||
import { SupplementaryStats } from '../../../../website/src/core/blitz/getAccountInfo';
|
||||
import { translator } from '../../core/localization/translator';
|
||||
@@ -14,7 +12,7 @@ interface GenericAllStatsProps {
|
||||
locale: Locale;
|
||||
}
|
||||
|
||||
export default function GenericAllStats({
|
||||
export function GenericAllStats({
|
||||
stats,
|
||||
supplementaryStats,
|
||||
locale,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { GenericStat } from '..';
|
||||
import GenericStatsRow from './GenericStatsRow';
|
||||
import { GenericStatsRow } from './GenericStatsRow';
|
||||
|
||||
interface GenericStatsColumnProps {
|
||||
stats: GenericStat[];
|
||||
}
|
||||
|
||||
export default function GenericStatsColumn({ stats }: GenericStatsColumnProps) {
|
||||
export function GenericStatsColumn({ stats }: GenericStatsColumnProps) {
|
||||
return (
|
||||
<div style={{ flex: 1, display: 'flex', flexDirection: 'column', gap: 8 }}>
|
||||
{stats.map((stat) => (
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { GenericStat } from '..';
|
||||
import { theme } from '../../../stitches.config';
|
||||
import PercentileIndicator from '../../PercentileIndicator';
|
||||
import { PercentileIndicator } from '../../PercentileIndicator';
|
||||
|
||||
interface GenericStatsRowProps {
|
||||
stat: GenericStat;
|
||||
}
|
||||
|
||||
export default function GenericStatsRow({ stat }: GenericStatsRowProps) {
|
||||
export function GenericStatsRow({ stat }: GenericStatsRowProps) {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Percentile } from '@blitzkit/core/src/statistics/percentiles';
|
||||
import GenericStatsColumn from './components/GenericStatsColumn';
|
||||
import { Percentile } from '@blitzkit/core';
|
||||
import { GenericStatsColumn } from './components/GenericStatsColumn';
|
||||
|
||||
export type GenericStat =
|
||||
| [string, string | number | undefined]
|
||||
@@ -10,10 +10,7 @@ export interface GenericStatsProps {
|
||||
columnCount?: number;
|
||||
}
|
||||
|
||||
export default function GenericStats({
|
||||
stats,
|
||||
columnCount = 2,
|
||||
}: GenericStatsProps) {
|
||||
export function GenericStats({ stats, columnCount = 2 }: GenericStatsProps) {
|
||||
const filteredStats = stats.filter(([, value]) => value !== undefined);
|
||||
const itemsPerRow = Math.ceil(filteredStats.length / columnCount);
|
||||
const columns: GenericStat[][] = [];
|
||||
|
||||
@@ -11,7 +11,7 @@ interface NoDataProps {
|
||||
locale: Locale;
|
||||
}
|
||||
|
||||
export default function NoData({ type, locale }: NoDataProps) {
|
||||
export function NoData({ type, locale }: NoDataProps) {
|
||||
const { translate } = translator(locale);
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Percentile } from '@blitzkit/core/src/statistics/percentiles';
|
||||
import { Percentile } from '@blitzkit/core';
|
||||
import {
|
||||
amber,
|
||||
blue,
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
import { Percentile } from '@blitzkit/core/src/statistics/percentiles';
|
||||
import { Percentile } from '@blitzkit/core';
|
||||
import { PERCENTILE_COLORS } from './constants';
|
||||
|
||||
interface PercentileIndicatorProps {
|
||||
percentile: Percentile;
|
||||
}
|
||||
|
||||
export default function PercentileIndicator({
|
||||
percentile,
|
||||
}: PercentileIndicatorProps) {
|
||||
export function PercentileIndicator({ percentile }: PercentileIndicatorProps) {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { TankClass, TreeType } from '@blitzkit/core';
|
||||
import { TREE_TYPE_ICONS } from '@blitzkit/core/src/blitzkit/tankDefinitions/constants';
|
||||
import { TankClass, TREE_TYPE_ICONS, TreeType } from '@blitzkit/core';
|
||||
import { theme } from '../../../../stitches.config';
|
||||
|
||||
export interface ItemProps {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { TierWeightsRecord } from '@blitzkit/core/src/statistics/getTierWeights';
|
||||
import { TierWeightsRecord } from '@blitzkit/core';
|
||||
import { theme } from '../stitches.config';
|
||||
|
||||
interface TierWeightsProps {
|
||||
weights: TierWeightsRecord;
|
||||
}
|
||||
|
||||
export default function TierWeights({ weights }: TierWeightsProps) {
|
||||
export function TierWeights({ weights }: TierWeightsProps) {
|
||||
return (
|
||||
<div style={{ display: 'flex', gap: 8 }}>
|
||||
{Object.entries(weights).map(([tier, weight]) => (
|
||||
|
||||
@@ -6,7 +6,7 @@ interface TitleBarProps {
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export default function TitleBar({ title, image, description }: TitleBarProps) {
|
||||
export function TitleBar({ title, image, description }: TitleBarProps) {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
|
||||
Reference in new issue
Block a user