From 051997d2d32694a41c5b4a9d9be662ebe9412a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Tue, 23 Apr 2024 10:19:32 -0500 Subject: [PATCH] feat: kit 3 --- docs/guide/rts.md | 2 +- docs/legal/privacy-policy.md | 12 ++--- docs/legal/terms-of-service.md | 6 +-- public/robots.txt | 6 +-- scripts/buildAssets/definitions.ts | 4 +- scripts/sitemap.ts | 4 +- src/app/layout.tsx | 6 +-- src/app/tools/compare/page.tsx | 4 +- .../[id]/components/Model/TankSandbox.tsx | 4 +- src/commands/clanEvent.ts | 2 +- src/commands/ping.ts | 4 +- src/components/Footer/index.tsx | 2 +- src/components/Navbar/index.tsx | 4 +- src/constants/assets.ts | 2 +- src/core/streams/rts.ts | 4 +- src/core/streams/scg.ts | 10 ++--- src/icons/BlitzkitButtonWatermark.tsx | 44 +++++++++++++++++++ src/icons/BlitzkitWide.tsx | 19 ++++++++ src/icons/BlitzrinthButtonWatermark.tsx | 32 -------------- src/icons/BlitzrinthWide.tsx | 18 -------- src/lang/en-US.json | 12 ++--- 21 files changed, 105 insertions(+), 96 deletions(-) create mode 100644 src/icons/BlitzkitButtonWatermark.tsx create mode 100644 src/icons/BlitzkitWide.tsx delete mode 100644 src/icons/BlitzrinthButtonWatermark.tsx delete mode 100644 src/icons/BlitzrinthWide.tsx diff --git a/docs/guide/rts.md b/docs/guide/rts.md index 82402bd19..18b814b2e 100644 --- a/docs/guide/rts.md +++ b/docs/guide/rts.md @@ -1,4 +1,4 @@ -# Blitzrinth Regular Tank Stats +# BlitzKit Regular Tank Stats A straightforward way of storing the entire World of Tanks Blitz tank statistics for players to disk. diff --git a/docs/legal/privacy-policy.md b/docs/legal/privacy-policy.md index 87b3cf06b..fb70cc170 100644 --- a/docs/legal/privacy-policy.md +++ b/docs/legal/privacy-policy.md @@ -1,22 +1,18 @@ -# Blitzrinth Privacy Policy +# BlitzKit Privacy Policy -Blitzrinth collects little to no data. Regardless, here is an exhaustive list of Blitzrinth's data collection practices. +BlitzKit collects little to no data. Regardless, here is an exhaustive list of BlitzKit's data collection practices. ## Logs -All Blitzrinth logs are available to the public as an effort for open source transparency. A history of all logs [can be found on GitHub](https://github.com/tresabhi/blitzkit/actions/workflows/host.yml). All logs expire automatically and are permanently deleted after 30 days. However, anyone may chose to save a local copy of the logs which is not tracked by GitHub. +All BlitzKit logs are available to the public as an effort for open source transparency. A history of all logs [can be found on GitHub](https://github.com/tresabhi/blitzkit/actions/workflows/host.yml). All logs expire automatically and are permanently deleted after 30 days. However, anyone may chose to save a local copy of the logs which is not tracked by GitHub. ## Commands Everytime a command a command is used, the command name and parameters provided is logged. Any identifying information like manually provided in-game usernames are also recorded. -## Errors - -Everytime an error occurs, a detailed stack trace, scope of the error, and the error message is logged both in the GitHub logs and in the public channel [#🔲︱blitzrinth-logs](https://discord.com/channels/734786591205359697/880650462540476416) in [the official Discord server](https://discord.gg/nDt7AjGJQH). - ## Databases -No databases are used by Blitzrinth meaning that no data is collected outside of what has already been mentioned above. This is no permanent state. +No databases are used by BlitzKit meaning that no data is collected outside of what has already been mentioned above. This is no permanent state. ## 3rd Party diff --git a/docs/legal/terms-of-service.md b/docs/legal/terms-of-service.md index 277cee63c..ca2dec7d1 100644 --- a/docs/legal/terms-of-service.md +++ b/docs/legal/terms-of-service.md @@ -1,12 +1,12 @@ -# Blitzrinth Terms of Service +# BlitzKit Terms of Service ## About -Blitzrinth is a multi-function Discord bot that serves users with needs specific to the game World of Tanks Blitz. +BlitzKit is a multi-function Discord bot that serves users with needs specific to the game World of Tanks Blitz. ## License -Blitzrinth is licensed under the MIT License. +BlitzKit is licensed under the MIT License. ## 3rd Party diff --git a/public/robots.txt b/public/robots.txt index acfd5503c..659838baa 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,7 +1,7 @@ User-agent: * Allow: / -Host: https://blitzrinth.vercel.app +Host: https://blitzkit.vercel.app -Sitemap: https://blitzrinth.vercel.app/sitemap.txt -Sitemap: https://blitzrinth.vercel.app/sitemap.xml \ No newline at end of file +Sitemap: https://blitzkit.vercel.app/sitemap.txt +Sitemap: https://blitzkit.vercel.app/sitemap.xml \ No newline at end of file diff --git a/scripts/buildAssets/definitions.ts b/scripts/buildAssets/definitions.ts index 7649ed4da..37a4685e0 100644 --- a/scripts/buildAssets/definitions.ts +++ b/scripts/buildAssets/definitions.ts @@ -325,7 +325,7 @@ type ConsumablesVehicleFilter = | { name: string } | { extendedTags: string }; -const blitzShellKindToBlitzrinth: Record = { +const blitzShellKindToBlitzkit: Record = { ARMOR_PIERCING: 'ap', ARMOR_PIERCING_CR: 'ap_cr', HIGH_EXPLOSIVE: 'he', @@ -852,7 +852,7 @@ export async function definitions(production: boolean) { caliber: shell.caliber, normalization: shell.normalizationAngle, ricochet: shell.ricochetAngle, - type: blitzShellKindToBlitzrinth[shell.kind], + type: blitzShellKindToBlitzkit[shell.kind], explosionRadius: shell.kind === 'HIGH_EXPLOSIVE' ? shell.explosionRadius ?? 0 diff --git a/scripts/sitemap.ts b/scripts/sitemap.ts index ae4223d3a..d3156d4a5 100644 --- a/scripts/sitemap.ts +++ b/scripts/sitemap.ts @@ -8,14 +8,14 @@ console.log('Building sitemap...'); const awaitedTankDefinitions = await tankDefinitions; const values = Object.values(awaitedTankDefinitions); const txt = values - .map((tank) => `https://blitzrinth.vercel.app/tools/tankopedia/${tank.id}/`) + .map((tank) => `https://blitzkit.vercel.app/tools/tankopedia/${tank.id}/`) .join('\n'); const xml = ` ${values .map( (tank) => - `https://blitzrinth.vercel.app/tools/tankopedia/${tank.id}/`, + `https://blitzkit.vercel.app/tools/tankopedia/${tank.id}/`, ) .join('\n')} `; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 5ea946321..3beba1710 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -50,14 +50,14 @@ export default function RootLayout({ children }: RootLayoutProps) { {isRoot && ( <> - Blitzrinth + BlitzKit )} - + @@ -90,7 +90,7 @@ export default function RootLayout({ children }: RootLayoutProps) { the official Discord server . Also consider using{' '} - + the more stable release version . You will be asked again in 8 days. diff --git a/src/app/tools/compare/page.tsx b/src/app/tools/compare/page.tsx index 9210692ee..ee2e3fd3f 100644 --- a/src/app/tools/compare/page.tsx +++ b/src/app/tools/compare/page.tsx @@ -47,7 +47,7 @@ import { } from '../../../core/blitzkit/tankDefinitions'; import { tankIcon } from '../../../core/blitzkit/tankIcon'; import { tankToCompareMember } from '../../../core/blitzkit/tankToCompareMember'; -import { BlitzrinthButtonWatermark } from '../../../icons/BlitzrinthButtonWatermark'; +import { BlitzkitButtonWatermark } from '../../../icons/BlitzkitButtonWatermark'; import { theme } from '../../../stitches.config'; import { DeltaMode, @@ -648,7 +648,7 @@ export default function Page() { align="center" justify="center" > - + diff --git a/src/app/tools/tankopedia/[id]/components/Model/TankSandbox.tsx b/src/app/tools/tankopedia/[id]/components/Model/TankSandbox.tsx index b6d81bfec..66f3b830e 100644 --- a/src/app/tools/tankopedia/[id]/components/Model/TankSandbox.tsx +++ b/src/app/tools/tankopedia/[id]/components/Model/TankSandbox.tsx @@ -14,7 +14,7 @@ import { tankIcon } from '../../../../../../core/blitzkit/tankIcon'; import { useEquipment } from '../../../../../../hooks/useEquipment'; import { useFullScreen } from '../../../../../../hooks/useFullScreen'; import { useWideFormat } from '../../../../../../hooks/useWideFormat'; -import { BlitzrinthWide } from '../../../../../../icons/BlitzrinthWide'; +import { BlitzkitWide } from '../../../../../../icons/BlitzkitWide'; import { mutateDuel, useDuel } from '../../../../../../stores/duel'; import mutateTankopediaPersistent, { TankopediaMode, @@ -186,7 +186,7 @@ export function TankSandbox() { top: 16, }} > - + )} diff --git a/src/commands/clanEvent.ts b/src/commands/clanEvent.ts index def963d19..8c869e593 100644 --- a/src/commands/clanEvent.ts +++ b/src/commands/clanEvent.ts @@ -84,7 +84,7 @@ // embedWarning( // 'This is an approximation!', -// "Wargaming provides very little information about platoons publicly. Caveats:\n- Players in two different clans platooning artificially inflates the total count\n- Game-mode battles aren't counted since Wargaming doesn't publicly share that data\n- This command is also subject to Blitzrinth's reset times (use `/about timezones` for more info)", +// "Wargaming provides very little information about platoons publicly. Caveats:\n- Players in two different clans platooning artificially inflates the total count\n- Game-mode battles aren't counted since Wargaming doesn't publicly share that data\n- This command is also subject to Blitzkit's reset times (use `/about timezones` for more info)", // ), // ]; // }, diff --git a/src/commands/ping.ts b/src/commands/ping.ts index 1a356c2e6..6aedff6e2 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -9,7 +9,7 @@ export const pingCommand = new Promise((resolve) => { handlesInteraction: true, command: createLocalizedCommand('ping', [ - { subcommand: 'blitzrinth' }, + { subcommand: 'blitzkit' }, { subcommand: 'wotb' }, ]), @@ -18,7 +18,7 @@ export const pingCommand = new Promise((resolve) => { const subcommand = interaction.options.getSubcommand(); const executionStart = Date.now(); - if (subcommand === 'blitzrinth') { + if (subcommand === 'blitzkit') { await interaction.editReply(t`bot.commands.ping.body.pong`); } else { await fetch('https://api.wotblitz.com/'); diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index ce120b2dc..fc51ddae6 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -23,7 +23,7 @@ export function Footer() { > - Blitzrinth + BlitzKit diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index 5a6dbde57..19ecd2dd0 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -14,7 +14,7 @@ import Link from 'next/link'; import { TOOLS } from '../../constants/tools'; import { useFullScreen } from '../../hooks/useFullScreen'; import { useWideFormat } from '../../hooks/useWideFormat'; -import { BlitzrinthWide } from '../../icons/BlitzrinthWide'; +import { BlitzkitWide } from '../../icons/BlitzkitWide'; import { PatreonIcon } from '../../icons/Patreon'; import { theme } from '../../stitches.config'; @@ -101,7 +101,7 @@ export default function Navbar() { justifyContent: 'center', }} > - +
diff --git a/src/constants/assets.ts b/src/constants/assets.ts index 6fd619038..f3b8ad3f8 100644 --- a/src/constants/assets.ts +++ b/src/constants/assets.ts @@ -1 +1 @@ -export const ASSETS_REPO = 'blitzrinth-assets'; +export const ASSETS_REPO = 'blitzkit-assets'; diff --git a/src/core/streams/rts.ts b/src/core/streams/rts.ts index e28945fb6..2601c0bc9 100644 --- a/src/core/streams/rts.ts +++ b/src/core/streams/rts.ts @@ -3,7 +3,7 @@ import { IndividualTankStats } from '../../types/tanksStats'; import { AllStats } from '../blitz/getAccountInfo'; import { ReadStream, WriteStream } from './buffer'; -export interface BlitzrinthTankStats extends AllStats { +export interface BlitzkitTankStats extends AllStats { id: number; battle_life_time: number; last_battle_time: number; @@ -123,7 +123,7 @@ export class RtscReadStream extends ReadStream { win_and_survived: this.uint32(), wins: this.uint32(), xp: this.uint32(), - } satisfies BlitzrinthTankStats; + } satisfies BlitzkitTankStats; } } diff --git a/src/core/streams/scg.ts b/src/core/streams/scg.ts index 9f53b5891..181137a75 100644 --- a/src/core/streams/scg.ts +++ b/src/core/streams/scg.ts @@ -16,10 +16,10 @@ interface PolygonGroupRaw { vertices: ArrayBuffer; } -type BlitzrinthVertex = { attribute: VertexAttribute; value: number[] }[]; +type BlitzkitVertex = { attribute: VertexAttribute; value: number[] }[]; -interface BlitzrinthPolygonGroup { - vertices: BlitzrinthVertex[]; +interface BlitzkitPolygonGroup { + vertices: BlitzkitVertex[]; indices: number[]; } @@ -63,7 +63,7 @@ export class ScgReadStream extends ScpgReadStream { scg() { const header = this.header(); const polygonGroupsRaw: PolygonGroupRaw[] = []; - const polygonGroups = new Map(); + const polygonGroups = new Map(); for (let index = 0; index < header.nodeCount; index++) { const polygonGroupRaw = this.ka() as PolygonGroupRaw; @@ -83,7 +83,7 @@ export class ScgReadStream extends ScpgReadStream { } const verticesStream = new ScpgReadStream(polygonGroupRaw.vertices); - const vertices: BlitzrinthVertex[] = []; + const vertices: BlitzkitVertex[] = []; const { format, stride } = ScgReadStream.parseVertexFormat( polygonGroupRaw.vertexFormat, ); diff --git a/src/icons/BlitzkitButtonWatermark.tsx b/src/icons/BlitzkitButtonWatermark.tsx new file mode 100644 index 000000000..3defdffae --- /dev/null +++ b/src/icons/BlitzkitButtonWatermark.tsx @@ -0,0 +1,44 @@ +import { ComponentProps } from 'react'; + +export function BlitzkitButtonWatermark(props: ComponentProps<'svg'>) { + return ( + + + + + + + + + + + + + + + ); +} diff --git a/src/icons/BlitzkitWide.tsx b/src/icons/BlitzkitWide.tsx new file mode 100644 index 000000000..644e436e7 --- /dev/null +++ b/src/icons/BlitzkitWide.tsx @@ -0,0 +1,19 @@ +import { ComponentProps } from 'react'; + +export function BlitzkitWide(props: ComponentProps<'svg'>) { + return ( + + + + ); +} diff --git a/src/icons/BlitzrinthButtonWatermark.tsx b/src/icons/BlitzrinthButtonWatermark.tsx deleted file mode 100644 index 4943ee9c6..000000000 --- a/src/icons/BlitzrinthButtonWatermark.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import { ComponentProps } from 'react'; - -export function BlitzrinthButtonWatermark(props: ComponentProps<'svg'>) { - return ( - - - - - - - - - - - - ); -} diff --git a/src/icons/BlitzrinthWide.tsx b/src/icons/BlitzrinthWide.tsx deleted file mode 100644 index 3df5266ef..000000000 --- a/src/icons/BlitzrinthWide.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { ComponentProps } from 'react'; - -export function BlitzrinthWide(props: ComponentProps<'svg'>) { - return ( - - - - ); -} diff --git a/src/lang/en-US.json b/src/lang/en-US.json index 9a42e5ec9..b820afa3f 100644 --- a/src/lang/en-US.json +++ b/src/lang/en-US.json @@ -70,7 +70,7 @@ "tank_id_not_found": "# Tank not found\nCould not find tank by the ID \"%s\". Try typing the name of the tank instead of a number.", "no_tank_stats": "# No tank stats available\nThis player doesn't have any stats available. This may not be the player you are looking for.", "get_help": "Help Discord server", - "uncaught_error": "# Blitzrinth ran into an error!\nWe're so sorry about this. Feel free to [join the official Discord server](https://discord.gg/nDt7AjGJQH) to get help.", + "uncaught_error": "# BlitzKit ran into an error!\nWe're so sorry about this. Feel free to [join the official Discord server](https://discord.gg/nDt7AjGJQH) to get help.", "preview": "# This command is in preview\n\nYou can only access this command in [the official Discord server](https://discord.gg/nDt7AjGJQH). The command will be generally available soon." }, @@ -250,7 +250,7 @@ "commands": { "$": "commands", "description": "List of all commands and their descriptions", - "body": "# Commands\n\nBlitzrinth offers the following commands:\n\n" + "body": "# Commands\n\nBlitzKit offers the following commands:\n\n" }, "embeds": { "$": "embeds", @@ -266,7 +266,7 @@ }, "timezones": { "$": "timezones", - "description": "How Blitzrinth infers and uses your timezone" + "description": "How BlitzKit infers and uses your timezone" }, "creators": { "$": "creators", @@ -515,9 +515,9 @@ }, "subcommands": { - "blitzrinth": { - "$": "blitzrinth", - "description": "Ping Blitzrinth" + "blitzkit": { + "$": "blitzkit", + "description": "Ping BlitzKit" }, "wotb": { "$": "wotb",