From c2b936c9250da0098951b2c6cf74df314bfb80be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 20 Apr 2024 12:00:48 -0500 Subject: [PATCH] feat: rename to blitzrinth --- .github/workflows/cd-host.yml | 2 +- .vscode/settings.json | 1 + README.md | 12 +++---- docs/.vitepress/config.ts | 6 ++-- docs/changelogs/1.9.1.md | 2 +- docs/changelogs/1.9.2.md | 2 +- docs/guide/bkrl.md | 4 +-- docs/guide/introduction.md | 2 +- docs/guide/invite.md | 2 +- docs/guide/rts.md | 2 +- docs/index.md | 8 ++--- docs/legal/privacy-policy.md | 10 +++--- docs/legal/terms-of-service.md | 6 ++-- package.json | 2 +- scripts/applyPatches.ts | 2 +- scripts/buildAssets/boosterIcons.ts | 4 +-- scripts/buildAssets/camouflageIcons.ts | 4 +-- scripts/buildAssets/circleFlags.ts | 4 +-- .../buildAssets/consumableProvisionIcons.ts | 4 +-- scripts/buildAssets/currencies.ts | 4 +-- scripts/buildAssets/definitions.ts | 22 ++++++------- scripts/buildAssets/equipmentIcons.ts | 4 +-- scripts/buildAssets/moduleIcons.ts | 4 +-- scripts/buildAssets/scratchedFlags.ts | 4 +-- scripts/buildAssets/shellIcons.ts | 4 +-- scripts/buildAssets/skillIcons.ts | 4 +-- scripts/buildAssets/tankArmors.ts | 4 +-- scripts/buildAssets/tankIcons.ts | 4 +-- scripts/buildAssets/tankModels.ts | 4 +-- scripts/buildRatingLeaderboard.ts | 8 ++--- scripts/sitemap.ts | 2 +- scripts/test.ts | 4 +-- src/app/embeds/session/page.tsx | 4 +-- src/app/layout.tsx | 8 ++--- .../tools/compare/components/TankControl.tsx | 4 +-- src/app/tools/compare/page.tsx | 30 +++++++++--------- src/app/tools/rating/page.tsx | 6 ++-- src/app/tools/session/page.tsx | 4 +-- src/app/tools/statistics/components/Day.tsx | 4 +-- .../[id]/components/AntagonistBar.tsx | 4 +-- .../components/Consumables.tsx | 4 +-- .../Characteristics/components/Equipment.tsx | 2 +- .../components/Miscellaneous.tsx | 2 +- .../Characteristics/components/Provisions.tsx | 4 +-- .../components/Skills/index.tsx | 4 +-- .../[id]/components/Characteristics/index.tsx | 14 ++++---- .../tankopedia/[id]/components/Control.tsx | 6 ++-- .../[id]/components/Model/TankSandbox.tsx | 12 +++---- .../components/Model/components/Options.tsx | 2 +- .../components/Model/components/TankModel.tsx | 8 ++--- .../components/QuickEquipmentButton.tsx | 2 +- .../[id]/components/QuickInputs/index.tsx | 4 +-- .../tankopedia/[id]/components/Title.tsx | 4 +-- src/app/tools/tankopedia/[id]/layout.tsx | 6 ++-- src/app/tools/tankopedia/[id]/page.tsx | 2 +- .../tankopedia/components/PageTurner.tsx | 2 +- .../components/CompactSearchResultRow.tsx | 4 +-- .../TankSearch/components/Options/index.tsx | 4 +-- .../components/TankSearch/index.tsx | 18 +++++------ src/app/tools/tankopedia/map/page.tsx | 2 +- src/bot.ts | 4 +-- src/commands/about.ts | 2 +- src/commands/breakdown/render.tsx | 4 +-- src/commands/clanEvent.ts | 2 +- src/commands/eligible.ts | 6 ++-- src/commands/evolution.tsx | 4 +-- src/commands/fullStats.tsx | 4 +-- src/commands/link.tsx | 2 +- src/commands/ownedTanks.tsx | 4 +-- src/commands/ping.ts | 4 +-- src/commands/rating.tsx | 6 ++-- src/commands/ratingLeaderboard.tsx | 8 ++--- src/commands/research.tsx | 16 +++++----- src/commands/searchTanks.ts | 2 +- src/commands/stats.tsx | 4 +-- src/commands/today.ts | 2 +- .../Armor/components/CoreArmorScene.tsx | 6 ++-- .../CoreArmorSceneComponent/index.tsx | 6 ++-- .../Armor/components/SpacedArmorScene.tsx | 6 ++-- .../SpacedArmorSubExternal/index.tsx | 6 ++-- .../components/SpacedArmorSubSpaced/index.tsx | 6 ++-- .../SpacedArmorSceneComponent/index.tsx | 4 +-- src/components/ConsumablesManager.tsx | 2 +- src/components/CrewSkillManager.tsx | 8 ++--- src/components/EquipmentManager.tsx | 2 +- src/components/Flag.tsx | 2 +- .../Footer/components/WoTBVersion.tsx | 2 +- src/components/Footer/index.tsx | 4 +-- .../ModuleButtons/ConsumableButton.tsx | 2 +- .../ModuleButtons/EquipmentButton.tsx | 2 +- src/components/ModuleButtons/ModuleButton.tsx | 2 +- .../ModuleButtons/ProvisionButton.tsx | 2 +- src/components/ModuleButtons/ShellButton.tsx | 2 +- src/components/ModuleManager.tsx | 4 +-- src/components/Navbar/index.tsx | 4 +-- src/components/SmallTankIcon.tsx | 2 +- .../Tanks/components/Item/constants.ts | 2 +- src/components/TierWeights.tsx | 2 +- src/constants/equipmentPrice.ts | 2 +- src/core/blitz/applyPitchYawLimits.ts | 2 +- src/core/blitz/canRicochet.ts | 2 +- src/core/blitz/canSplash.ts | 2 +- src/core/blitz/extractModel/index.ts | 4 +-- src/core/blitz/fetchBlitz.ts | 2 +- src/core/blitz/getRatingInfo.ts | 4 +-- src/core/blitz/getRatingLeague.ts | 4 +-- src/core/blitz/getRatingNeighbors.ts | 4 +-- src/core/blitz/isExplosive.ts | 2 +- src/core/blitz/resolveTankId.ts | 2 +- src/core/blitz/searchCurrentRatingPlayers.ts | 2 +- src/core/{blitzkrieg => blitzrinth}/asset.ts | 2 +- .../assignDuelMember.ts | 0 .../availableProvisions.ts | 0 .../buildTechTreeLine.ts | 0 .../checkConsumableProvisionInclusivity.ts | 0 .../{blitzkrieg => blitzrinth}/coefficient.ts | 0 .../commitAssets.ts | 2 +- .../commitMultipleFiles.ts | 0 .../consumableDefinitions.ts | 0 .../{blitzkrieg => blitzrinth}/context.ts | 0 .../{blitzkrieg => blitzrinth}/createBlob.ts | 0 .../createDefaultSkills.ts | 0 .../degressiveStat.ts | 0 .../discordBlitzLink.ts | 0 .../{blitzkrieg => blitzrinth}/emblemURL.ts | 0 .../equipmentDefinitions.ts | 0 .../eventManager.ts | 0 .../fetchCdonLz4.ts | 0 .../filtersToDescription.ts | 0 .../gameDefinitions.ts | 0 .../getArchivedLatestSeasonNumber.ts | 2 +- .../getArchivedRatingInfo.ts | 0 .../getArchivedRatingLeaderboard.ts | 0 .../getArchivedRatingMidnightLeaderboard.ts | 0 .../{blitzkrieg => blitzrinth}/getClientId.ts | 0 .../getPeriodNow.ts | 0 .../getPeriodStart.ts | 0 .../getTankHistories.ts | 0 .../getTimeDaysAgo.ts | 0 .../hasEquipment.ts | 0 .../{blitzkrieg => blitzrinth}/iconPng.ts | 0 src/core/{blitzkrieg => blitzrinth}/isDev.ts | 8 ++++- .../{blitzkrieg => blitzrinth}/isLocalhost.ts | 0 .../{blitzkrieg => blitzrinth}/jsxToPng.ts | 0 .../jsxToPngThreaded.ts | 0 .../jsxToSvg/Roboto-Black.ttf | Bin .../jsxToSvg/Roboto-Bold.ttf | Bin .../jsxToSvg/Roboto.ttf | Bin .../jsxToSvg/index.ts | 0 .../{blitzkrieg => blitzrinth}/jsxTree.tsx | 0 .../modelDefinitions.ts | 0 .../modelTransform.ts | 0 .../nameToArmorId.ts | 0 .../normalizeBoundingBox.ts | 0 .../{blitzkrieg => blitzrinth}/octokit.ts | 0 .../patientFetch.ts | 0 .../patientFetchJSON.ts | 0 src/core/{blitzkrieg => blitzrinth}/pose.ts | 0 .../{blitzkrieg => blitzrinth}/processes.ts | 0 .../progressiveStat.ts | 0 .../provisionDefinitions.ts | 0 .../pushTankopediaPath.ts | 0 .../readTexture/constants.ts | 0 .../readTexture/index.ts | 0 .../resetSession.ts | 0 .../resolveAncestry.ts | 0 .../{blitzkrieg => blitzrinth}/resolveDpm.ts | 0 .../resolveReload.ts | 0 .../resolveThickness.ts | 0 .../{blitzkrieg => blitzrinth}/secrets.ts | 0 .../{blitzkrieg => blitzrinth}/setSession.ts | 0 .../skillDefinitions.ts | 0 src/core/{blitzkrieg => blitzrinth}/sum.ts | 0 .../superCompress.ts | 0 .../superDecompress.ts | 0 .../{blitzkrieg => blitzrinth}/svgToPng.ts | 0 .../svgToPngThreaded.ts | 0 .../tankCharacteristics.ts | 0 .../tankDefinitions/constants.ts | 0 .../tankDefinitions/index.ts | 0 .../{blitzkrieg => blitzrinth}/tankIcon.ts | 0 .../{blitzkrieg => blitzrinth}/tankIconPng.ts | 0 .../tankToCompareMember.ts | 0 .../tankToDuelMember.ts | 0 .../unionBoundingBox.ts | 0 .../withCORSProxy.ts | 0 src/core/blitzstars/getStatsInPeriod/index.ts | 2 +- src/core/blitzstars/tankAverages.ts | 4 +-- src/core/discord/addPeriodicFilterOptions.ts | 2 +- src/core/discord/autocompleteTanks.ts | 2 +- src/core/discord/manager.ts | 2 +- .../discord/normalizeInteractionReturnable.ts | 2 +- src/core/discord/resolvePeriodFromButton.ts | 6 ++-- src/core/discord/resolvePeriodFromCommand.ts | 6 ++-- .../discord/resolvePlayerFromCommand/index.ts | 2 +- src/core/github/assetCommit.ts | 16 +++++----- src/core/statistics/filterStats.ts | 2 +- src/core/statistics/getTierWeights.ts | 2 +- src/core/streams/rts.ts | 4 +-- src/core/streams/scg.ts | 10 +++--- src/events/interactionCreate/index.ts | 6 ++-- src/hooks/useAppliedEquipments.ts | 2 +- src/hooks/useArmor.ts | 2 +- src/hooks/useEquipment.ts | 2 +- src/hooks/useEquipmentPreset.ts | 2 +- src/hooks/useModel.ts | 2 +- src/hooks/useModelDefinitions.ts | 2 +- ...mark.tsx => BlitzrinthButtonWatermark.tsx} | 2 +- ...iegWormWide.tsx => BlitzrinthWormWide.tsx} | 2 +- src/lang/en-US.json | 12 +++---- src/stores/duel/index.ts | 2 +- src/stores/tankopedia.ts | 2 +- src/workers/render.ts | 2 +- 213 files changed, 314 insertions(+), 307 deletions(-) rename src/core/{blitzkrieg => blitzrinth}/asset.ts (64%) rename src/core/{blitzkrieg => blitzrinth}/assignDuelMember.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/availableProvisions.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/buildTechTreeLine.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/checkConsumableProvisionInclusivity.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/coefficient.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/commitAssets.ts (94%) rename src/core/{blitzkrieg => blitzrinth}/commitMultipleFiles.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/consumableDefinitions.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/context.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/createBlob.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/createDefaultSkills.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/degressiveStat.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/discordBlitzLink.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/emblemURL.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/equipmentDefinitions.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/eventManager.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/fetchCdonLz4.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/filtersToDescription.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/gameDefinitions.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/getArchivedLatestSeasonNumber.ts (95%) rename src/core/{blitzkrieg => blitzrinth}/getArchivedRatingInfo.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/getArchivedRatingLeaderboard.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/getArchivedRatingMidnightLeaderboard.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/getClientId.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/getPeriodNow.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/getPeriodStart.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/getTankHistories.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/getTimeDaysAgo.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/hasEquipment.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/iconPng.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/isDev.ts (70%) rename src/core/{blitzkrieg => blitzrinth}/isLocalhost.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/jsxToPng.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/jsxToPngThreaded.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/jsxToSvg/Roboto-Black.ttf (100%) rename src/core/{blitzkrieg => blitzrinth}/jsxToSvg/Roboto-Bold.ttf (100%) rename src/core/{blitzkrieg => blitzrinth}/jsxToSvg/Roboto.ttf (100%) rename src/core/{blitzkrieg => blitzrinth}/jsxToSvg/index.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/jsxTree.tsx (100%) rename src/core/{blitzkrieg => blitzrinth}/modelDefinitions.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/modelTransform.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/nameToArmorId.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/normalizeBoundingBox.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/octokit.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/patientFetch.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/patientFetchJSON.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/pose.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/processes.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/progressiveStat.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/provisionDefinitions.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/pushTankopediaPath.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/readTexture/constants.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/readTexture/index.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/resetSession.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/resolveAncestry.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/resolveDpm.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/resolveReload.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/resolveThickness.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/secrets.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/setSession.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/skillDefinitions.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/sum.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/superCompress.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/superDecompress.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/svgToPng.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/svgToPngThreaded.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/tankCharacteristics.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/tankDefinitions/constants.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/tankDefinitions/index.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/tankIcon.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/tankIconPng.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/tankToCompareMember.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/tankToDuelMember.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/unionBoundingBox.ts (100%) rename src/core/{blitzkrieg => blitzrinth}/withCORSProxy.ts (100%) rename src/icons/{BlitzkriegButtonWatermark.tsx => BlitzrinthButtonWatermark.tsx} (98%) rename src/icons/{BlitzkriegWormWide.tsx => BlitzrinthWormWide.tsx} (98%) diff --git a/.github/workflows/cd-host.yml b/.github/workflows/cd-host.yml index bf9ac84cd..9a7f82197 100644 --- a/.github/workflows/cd-host.yml +++ b/.github/workflows/cd-host.yml @@ -25,7 +25,7 @@ jobs: - name: Download release assets run: | - DOWNLOAD_URL=$(curl -s https://api.github.com/repos/tresabhi/blitzkrieg/releases/latest \ + DOWNLOAD_URL=$(curl -s https://api.github.com/repos/tresabhi/blitzrinth/releases/latest \ | grep "browser_download_url.*bot.zip" \ | cut -d : -f 2,3 \ | tr -d \") diff --git a/.vscode/settings.json b/.vscode/settings.json index 5ceb1e2b5..a5624fe48 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,6 +21,7 @@ "BKRTS", "BKRTSMANIFEST", "bkwd", + "blitzrinth", "blitzstars", "Camo", "CDON", diff --git a/README.md b/README.md index d3563766a..fcb8e14e8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Blitzkrieg +# Blitzrinth [![built with Codeium](https://codeium.com/badges/main)](https://codeium.com) @@ -6,18 +6,18 @@ Tools for everything World of Tanks Blitz ## Invite the bot -Go to [application directory for Blitzkrieg](https://discord.com/application-directory/1097673957865443370) and click "Add to Server." Voila! You're ready to go. +Go to [application directory for Blitzrinth](https://discord.com/application-directory/1097673957865443370) and click "Add to Server." Voila! You're ready to go. -![Blitzkrieg application directory](https://i.imgur.com/JlEA0J1.png) +![Blitzrinth application directory](https://i.imgur.com/JlEA0J1.png) ## Visit the website ### https://blitz-krieg.vercel.app/ -![Blitzkrieg website](https://i.imgur.com/eRIZe5P.png) +![Blitzrinth website](https://i.imgur.com/eRIZe5P.png) ## Visit the documentation website -### https://tresabhi.github.io/blitzkrieg/ +### https://tresabhi.github.io/blitzrinth/ -![Blitzkrieg documentation website](https://i.imgur.com/TOt5fMx.png) +![Blitzrinth documentation website](https://i.imgur.com/TOt5fMx.png) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 08880bb3e..343688eef 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -5,9 +5,9 @@ import { defineConfig } from 'vitepress'; import { getSidebar } from 'vitepress-plugin-auto-sidebar'; export default defineConfig({ - title: 'blitzkrieg', + title: 'blitzrinth', description: '🎉 All-in-one Discord bot for everything World of Tanks Blitz', - base: '/blitzkrieg/', + base: '/blitzrinth/', outDir: '../dist/docs', themeConfig: { @@ -33,7 +33,7 @@ export default defineConfig({ ], socialLinks: [ - { icon: 'github', link: 'https://github.com/tresabhi/blitzkrieg' }, + { icon: 'github', link: 'https://github.com/tresabhi/blitzrinth' }, ], }, }); diff --git a/docs/changelogs/1.9.1.md b/docs/changelogs/1.9.1.md index c6d86e87a..1f2b720b4 100644 --- a/docs/changelogs/1.9.1.md +++ b/docs/changelogs/1.9.1.md @@ -1,3 +1,3 @@ # Blitzkrieg 1.9.1 -Created a website for Blitzkrieg! Check it out: https://tresabhi.github.io/blitzkrieg/ +Created a website for Blitzkrieg! Check it out: https://tresabhi.github.io/blitzrinth/ diff --git a/docs/changelogs/1.9.2.md b/docs/changelogs/1.9.2.md index 720f05304..83c302e20 100644 --- a/docs/changelogs/1.9.2.md +++ b/docs/changelogs/1.9.2.md @@ -2,4 +2,4 @@ ## Fixes -- Implemented `/blitzkrieg/` as the base path +- Implemented `/blitzrinth/` as the base path diff --git a/docs/guide/bkrl.md b/docs/guide/bkrl.md index 80f1ecdd2..ba2586071 100644 --- a/docs/guide/bkrl.md +++ b/docs/guide/bkrl.md @@ -1,9 +1,9 @@ -# Blitzkrieg Rating Leaderboard +# Blitzrinth Rating Leaderboard A straightforward way of storing the entire World of Tanks Blitz rating leaderboard to disk. ```cpp -primary BlitzkriegRatingLeaderboard { +primary BlitzrinthRatingLeaderboard { utf8"BKRL" magic; Header header; primary Body
body; diff --git a/docs/guide/introduction.md b/docs/guide/introduction.md index 100e4f3dc..0a8f9b104 100644 --- a/docs/guide/introduction.md +++ b/docs/guide/introduction.md @@ -4,7 +4,7 @@ ## Bot -Blitzkrieg is available as a Discord bot and can be [installed very easily](/guide/invite). +Blitzrinth is available as a Discord bot and can be [installed very easily](/guide/invite). - Track statistics - Find inactive players in a clan diff --git a/docs/guide/invite.md b/docs/guide/invite.md index 25c6c4502..ee58330a1 100644 --- a/docs/guide/invite.md +++ b/docs/guide/invite.md @@ -1,3 +1,3 @@ # Inviting the Bot -Go to [application directory for Blitzkrieg](https://discord.com/application-directory/1097673957865443370) and click "Add to Server." Voila! You're ready to go. +Go to [application directory for Blitzrinth](https://discord.com/application-directory/1097673957865443370) and click "Add to Server." Voila! You're ready to go. diff --git a/docs/guide/rts.md b/docs/guide/rts.md index 9b071b46e..82402bd19 100644 --- a/docs/guide/rts.md +++ b/docs/guide/rts.md @@ -1,4 +1,4 @@ -# Blitzkrieg Regular Tank Stats +# Blitzrinth Regular Tank Stats A straightforward way of storing the entire World of Tanks Blitz tank statistics for players to disk. diff --git a/docs/index.md b/docs/index.md index 22e3f283d..4fc9477b3 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,12 +3,12 @@ layout: home hero: - name: 'blitzkrieg' + name: 'blitzrinth' text: Everything Blitz, right in Discord tagline: All-in-one Discord bot for everything World of Tanks Blitz image: src: '/assets/images/hero.png' - alt: 'blitzkrieg' + alt: 'blitzrinth' actions: - theme: brand text: Add to Discord Server @@ -20,11 +20,11 @@ hero: features: - title: Clean and Efficient UI icon: 🚀 - details: Blitzkrieg is where concise meets efficient. Get the information you need in the way you want. + details: Blitzrinth is where concise meets efficient. Get the information you need in the way you want. - title: Endless Possibilities icon: 🛠 details: With endless ways to customize the output, it's guaranteed that you'll always get the information you need. - title: Easy to Use icon: 💻 - details: Leveraging Discord's, Blitz Stars', and Wargaming's powerful APIS, Blitzkrieg does all the hard work for you. + details: Leveraging Discord's, Blitz Stars', and Wargaming's powerful APIS, Blitzrinth does all the hard work for you. --- diff --git a/docs/legal/privacy-policy.md b/docs/legal/privacy-policy.md index ec2541c59..3fba61b10 100644 --- a/docs/legal/privacy-policy.md +++ b/docs/legal/privacy-policy.md @@ -1,10 +1,10 @@ -# Blitzkrieg Privacy Policy +# Blitzrinth Privacy Policy -Blitzkrieg collects little to no data. Regardless, here is an exhaustive list of Blitzkrieg's data collection practices. +Blitzrinth collects little to no data. Regardless, here is an exhaustive list of Blitzrinth's data collection practices. ## Logs -All Blitzkrieg 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/blitzkrieg/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 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/blitzrinth/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 @@ -12,11 +12,11 @@ Everytime a command a command is used, the command name and parameters provided ## 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 [#🔲︱blitzkrieg-logs](https://discord.com/channels/734786591205359697/880650462540476416) in [the official Discord server](https://discord.gg/nDt7AjGJQH). +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 Blitzkrieg meaning that no data is collected outside of what has already been mentioned above. This is no permanent state. +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. ## 3rd Party diff --git a/docs/legal/terms-of-service.md b/docs/legal/terms-of-service.md index 3ec33582d..277cee63c 100644 --- a/docs/legal/terms-of-service.md +++ b/docs/legal/terms-of-service.md @@ -1,12 +1,12 @@ -# Blitzkrieg Terms of Service +# Blitzrinth Terms of Service ## About -Blitzkrieg is a multi-function Discord bot that serves users with needs specific to the game World of Tanks Blitz. +Blitzrinth is a multi-function Discord bot that serves users with needs specific to the game World of Tanks Blitz. ## License -Blitzkrieg is licensed under the MIT License. +Blitzrinth is licensed under the MIT License. ## 3rd Party diff --git a/package.json b/package.json index 630b206d9..882deb16a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "blitzkrieg", + "name": "blitzrinth", "version": "1.19.4", "description": "🎉 Tools for everything World of Tanks Blitz", "main": "src/server.ts", diff --git a/scripts/applyPatches.ts b/scripts/applyPatches.ts index 7c2b51fe1..3613da1a9 100644 --- a/scripts/applyPatches.ts +++ b/scripts/applyPatches.ts @@ -3,7 +3,7 @@ import { parse as parsePath } from 'path'; import { parse as parseYaml } from 'yaml'; import { readStringDVPL } from '../src/core/blitz/readStringDVPL'; import { writeDVPL } from '../src/core/blitz/writeDVPL'; -import { secrets } from '../src/core/blitzkrieg/secrets'; +import { secrets } from '../src/core/blitzrinth/secrets'; import { dvp } from '../submodules/closedkrieg/src/dvp'; import { DATA } from './buildAssets/constants'; diff --git a/scripts/buildAssets/boosterIcons.ts b/scripts/buildAssets/boosterIcons.ts index 2b1069ba8..1888b43b9 100644 --- a/scripts/buildAssets/boosterIcons.ts +++ b/scripts/buildAssets/boosterIcons.ts @@ -2,8 +2,8 @@ import { readdir } from 'fs/promises'; import sharp from 'sharp'; import { readDVPLFile } from '../../src/core/blitz/readDVPLFile'; import { readStringDVPL } from '../../src/core/blitz/readStringDVPL'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA, POI } from './constants'; export async function boosterIcons(production: boolean) { diff --git a/scripts/buildAssets/camouflageIcons.ts b/scripts/buildAssets/camouflageIcons.ts index c9543456c..27b5a61f3 100644 --- a/scripts/buildAssets/camouflageIcons.ts +++ b/scripts/buildAssets/camouflageIcons.ts @@ -1,6 +1,6 @@ import { readDVPLFile } from '../../src/core/blitz/readDVPLFile'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA, POI } from './constants'; export async function camouflageIcons(production: boolean) { diff --git a/scripts/buildAssets/circleFlags.ts b/scripts/buildAssets/circleFlags.ts index d293f2bb7..daa77b9db 100644 --- a/scripts/buildAssets/circleFlags.ts +++ b/scripts/buildAssets/circleFlags.ts @@ -1,7 +1,7 @@ import { readdir } from 'fs/promises'; import { readBase64DVPL } from '../../src/core/blitz/readBase64DVPL'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA, POI } from './constants'; export async function circleFlags(production: boolean) { diff --git a/scripts/buildAssets/consumableProvisionIcons.ts b/scripts/buildAssets/consumableProvisionIcons.ts index 9f1f2ca0a..948a50787 100644 --- a/scripts/buildAssets/consumableProvisionIcons.ts +++ b/scripts/buildAssets/consumableProvisionIcons.ts @@ -3,8 +3,8 @@ import { readDVPLFile } from '../../src/core/blitz/readDVPLFile'; import { readStringDVPL } from '../../src/core/blitz/readStringDVPL'; import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL'; import { readYAMLDVPL } from '../../src/core/blitz/readYAMLDVPL'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA, POI } from './constants'; import { ConsumablesCommon, ProvisionsCommon } from './definitions'; diff --git a/scripts/buildAssets/currencies.ts b/scripts/buildAssets/currencies.ts index 8764410e8..4252b0cf1 100644 --- a/scripts/buildAssets/currencies.ts +++ b/scripts/buildAssets/currencies.ts @@ -1,7 +1,7 @@ import sharp from 'sharp'; import { readDVPLFile } from '../../src/core/blitz/readDVPLFile'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA } from './constants'; const ICONS = [ diff --git a/scripts/buildAssets/definitions.ts b/scripts/buildAssets/definitions.ts index ac27aa7c8..ebfefc8f7 100644 --- a/scripts/buildAssets/definitions.ts +++ b/scripts/buildAssets/definitions.ts @@ -7,24 +7,24 @@ import { readStringDVPL } from '../../src/core/blitz/readStringDVPL'; import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL'; import { readYAMLDVPL } from '../../src/core/blitz/readYAMLDVPL'; import { toUniqueId } from '../../src/core/blitz/toUniqueId'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; import { ConsumableDefinitions, TankFilterDefinitionCategory, -} from '../../src/core/blitzkrieg/consumableDefinitions'; +} from '../../src/core/blitzrinth/consumableDefinitions'; import { EquipmentDefinitions, EquipmentPreset, EquipmentRow, -} from '../../src/core/blitzkrieg/equipmentDefinitions'; -import { GameDefinitions } from '../../src/core/blitzkrieg/gameDefinitions'; +} from '../../src/core/blitzrinth/equipmentDefinitions'; +import { GameDefinitions } from '../../src/core/blitzrinth/gameDefinitions'; import { ModelArmor, ModelDefinitions, -} from '../../src/core/blitzkrieg/modelDefinitions'; -import { ProvisionDefinitions } from '../../src/core/blitzkrieg/provisionDefinitions'; -import { SkillDefinitions } from '../../src/core/blitzkrieg/skillDefinitions'; -import { superCompress } from '../../src/core/blitzkrieg/superCompress'; +} from '../../src/core/blitzrinth/modelDefinitions'; +import { ProvisionDefinitions } from '../../src/core/blitzrinth/provisionDefinitions'; +import { SkillDefinitions } from '../../src/core/blitzrinth/skillDefinitions'; +import { superCompress } from '../../src/core/blitzrinth/superCompress'; import { Crew, CrewMember, @@ -33,7 +33,7 @@ import { TankDefinitionPrice, TankDefinitions, Tier, -} from '../../src/core/blitzkrieg/tankDefinitions'; +} from '../../src/core/blitzrinth/tankDefinitions'; import { DATA, POI } from './constants'; import { Avatar } from './skillIcons'; import { TankParameters } from './tankIcons'; @@ -325,7 +325,7 @@ type ConsumablesVehicleFilter = | { name: string } | { extendedTags: string }; -const blitzShellKindToBLitzkrieg: Record = { +const blitzShellKindToBlitzrinth: 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: blitzShellKindToBLitzkrieg[shell.kind], + type: blitzShellKindToBlitzrinth[shell.kind], explosionRadius: shell.kind === 'HIGH_EXPLOSIVE' ? shell.explosionRadius ?? 0 diff --git a/scripts/buildAssets/equipmentIcons.ts b/scripts/buildAssets/equipmentIcons.ts index 31e178b8c..31170b23d 100644 --- a/scripts/buildAssets/equipmentIcons.ts +++ b/scripts/buildAssets/equipmentIcons.ts @@ -3,8 +3,8 @@ import { readDVPLFile } from '../../src/core/blitz/readDVPLFile'; import { readStringDVPL } from '../../src/core/blitz/readStringDVPL'; import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL'; import { readYAMLDVPL } from '../../src/core/blitz/readYAMLDVPL'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA, POI } from './constants'; import { OptionalDevices } from './definitions'; diff --git a/scripts/buildAssets/moduleIcons.ts b/scripts/buildAssets/moduleIcons.ts index 99267fedc..49cfe0ad3 100644 --- a/scripts/buildAssets/moduleIcons.ts +++ b/scripts/buildAssets/moduleIcons.ts @@ -1,8 +1,8 @@ import { readdir } from 'fs/promises'; import sharp from 'sharp'; import { readDVPLFile } from '../../src/core/blitz/readDVPLFile'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA, POI } from './constants'; export async function moduleIcons(production: boolean) { diff --git a/scripts/buildAssets/scratchedFlags.ts b/scripts/buildAssets/scratchedFlags.ts index 8bde6509b..11f566146 100644 --- a/scripts/buildAssets/scratchedFlags.ts +++ b/scripts/buildAssets/scratchedFlags.ts @@ -1,7 +1,7 @@ import { readdir } from 'fs/promises'; import { readBase64DVPL } from '../../src/core/blitz/readBase64DVPL'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA, POI } from './constants'; export async function scratchedFlags(production: boolean) { diff --git a/scripts/buildAssets/shellIcons.ts b/scripts/buildAssets/shellIcons.ts index 350bfd72e..9717e4e5d 100644 --- a/scripts/buildAssets/shellIcons.ts +++ b/scripts/buildAssets/shellIcons.ts @@ -2,8 +2,8 @@ import { readdir } from 'fs/promises'; import sharp from 'sharp'; import { readDVPLFile } from '../../src/core/blitz/readDVPLFile'; import { readStringDVPL } from '../../src/core/blitz/readStringDVPL'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA, POI } from './constants'; export async function shellIcons(production: boolean) { diff --git a/scripts/buildAssets/skillIcons.ts b/scripts/buildAssets/skillIcons.ts index c321da12f..686b97034 100644 --- a/scripts/buildAssets/skillIcons.ts +++ b/scripts/buildAssets/skillIcons.ts @@ -2,8 +2,8 @@ import sharp from 'sharp'; import { TankClass } from '../../src/components/Tanks'; import { readDVPLFile } from '../../src/core/blitz/readDVPLFile'; import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA } from './constants'; interface SkillIcon { diff --git a/scripts/buildAssets/tankArmors.ts b/scripts/buildAssets/tankArmors.ts index 9e67677e2..0db2ca58d 100644 --- a/scripts/buildAssets/tankArmors.ts +++ b/scripts/buildAssets/tankArmors.ts @@ -3,8 +3,8 @@ import { readdir } from 'fs/promises'; import { extractArmor } from '../../src/core/blitz/extractArmor'; import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL'; import { toUniqueId } from '../../src/core/blitz/toUniqueId'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA, POI } from './constants'; import { VehicleDefinitionList } from './definitions'; diff --git a/scripts/buildAssets/tankIcons.ts b/scripts/buildAssets/tankIcons.ts index 11824c524..900d069fe 100644 --- a/scripts/buildAssets/tankIcons.ts +++ b/scripts/buildAssets/tankIcons.ts @@ -5,8 +5,8 @@ import { NATION_IDS } from '../../src/constants/nations'; import { readDVPLFile } from '../../src/core/blitz/readDVPLFile'; import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL'; import { readYAMLDVPL } from '../../src/core/blitz/readYAMLDVPL'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA, POI } from './constants'; import { VehicleDefinitionList } from './definitions'; diff --git a/scripts/buildAssets/tankModels.ts b/scripts/buildAssets/tankModels.ts index f639dac88..c7131b7d0 100644 --- a/scripts/buildAssets/tankModels.ts +++ b/scripts/buildAssets/tankModels.ts @@ -4,8 +4,8 @@ import { extractModel } from '../../src/core/blitz/extractModel'; import { readXMLDVPL } from '../../src/core/blitz/readXMLDVPL'; import { readYAMLDVPL } from '../../src/core/blitz/readYAMLDVPL'; import { toUniqueId } from '../../src/core/blitz/toUniqueId'; -import { commitAssets } from '../../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../../src/core/blitzrinth/commitMultipleFiles'; import { DATA, POI } from './constants'; import { VehicleDefinitionList } from './definitions'; import { TankParameters } from './tankIcons'; diff --git a/scripts/buildRatingLeaderboard.ts b/scripts/buildRatingLeaderboard.ts index 2a731485e..5df3862fa 100644 --- a/scripts/buildRatingLeaderboard.ts +++ b/scripts/buildRatingLeaderboard.ts @@ -8,10 +8,10 @@ import { import { RegionSubdomain } from '../src/constants/regions'; import { getAccountInfo } from '../src/core/blitz/getAccountInfo'; import regionSubdomainToRegion from '../src/core/blitz/regionSubdomainToRegion'; -import { commitAssets } from '../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../src/core/blitzkrieg/commitMultipleFiles.js'; -import { patientFetchJSON } from '../src/core/blitzkrieg/patientFetchJSON'; -import { superCompress } from '../src/core/blitzkrieg/superCompress'; +import { commitAssets } from '../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../src/core/blitzrinth/commitMultipleFiles.js'; +import { patientFetchJSON } from '../src/core/blitzrinth/patientFetchJSON'; +import { superCompress } from '../src/core/blitzrinth/superCompress'; import { BkrlBaseEntry, BkrlFormat, diff --git a/scripts/sitemap.ts b/scripts/sitemap.ts index 96a9f0833..95c319588 100644 --- a/scripts/sitemap.ts +++ b/scripts/sitemap.ts @@ -1,4 +1,4 @@ -import { tankDefinitions } from '../src/core/blitzkrieg/tankDefinitions'; +import { tankDefinitions } from '../src/core/blitzrinth/tankDefinitions'; // random vercel bug forces require import const { writeFileSync } = require('fs'); diff --git a/scripts/test.ts b/scripts/test.ts index 3ce2c3e8b..34e72dee9 100644 --- a/scripts/test.ts +++ b/scripts/test.ts @@ -4,8 +4,8 @@ import { argv } from 'process'; import { Region, REGIONS } from '../src/constants/regions'; import getTankStats from '../src/core/blitz/getTankStats'; import { idToRegion } from '../src/core/blitz/idToRegion'; -import { commitAssets } from '../src/core/blitzkrieg/commitAssets'; -import { FileChange } from '../src/core/blitzkrieg/commitMultipleFiles'; +import { commitAssets } from '../src/core/blitzrinth/commitAssets'; +import { FileChange } from '../src/core/blitzrinth/commitMultipleFiles'; import { RtscWritePlayer, RtscWriteStream, diff --git a/src/app/embeds/session/page.tsx b/src/app/embeds/session/page.tsx index e3dc9cacb..763ff5004 100644 --- a/src/app/embeds/session/page.tsx +++ b/src/app/embeds/session/page.tsx @@ -4,11 +4,11 @@ import { ContextMenu } from '@radix-ui/themes'; import { useEffect, useState } from 'react'; import * as Breakdown from '../../../components/Breakdown'; import fetchBlitz from '../../../core/blitz/fetchBlitz'; -import { resetSession } from '../../../core/blitzkrieg/resetSession'; +import { resetSession } from '../../../core/blitzrinth/resetSession'; import { TankDefinition, tankDefinitions, -} from '../../../core/blitzkrieg/tankDefinitions'; +} from '../../../core/blitzrinth/tankDefinitions'; import { tankAverages } from '../../../core/blitzstars/tankAverages'; import calculateWN8 from '../../../core/statistics/calculateWN8'; import { deltaTankStats } from '../../../core/statistics/deltaTankStats'; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 51ad5b5be..1f2548a2a 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -10,8 +10,8 @@ import { Footer } from '../components/Footer'; import { Google } from '../components/Google'; import { Loader } from '../components/Loader'; import Navbar from '../components/Navbar'; -import isDev from '../core/blitzkrieg/isDev'; -import { isLocalhost } from '../core/blitzkrieg/isLocalhost'; +import isDev from '../core/blitzrinth/isDev'; +import { isLocalhost } from '../core/blitzrinth/isLocalhost'; import { useFullScreen } from '../hooks/useFullScreen'; import { useApp } from '../stores/app'; @@ -50,14 +50,14 @@ export default function RootLayout({ children }: RootLayoutProps) { {isRoot && ( <> - Blitzkrieg + Blitzrinth )} - + diff --git a/src/app/tools/compare/components/TankControl.tsx b/src/app/tools/compare/components/TankControl.tsx index fb9fa5a69..e5cce2e15 100644 --- a/src/app/tools/compare/components/TankControl.tsx +++ b/src/app/tools/compare/components/TankControl.tsx @@ -2,8 +2,8 @@ import { ExternalLinkIcon, LoopIcon, TrashIcon } from '@radix-ui/react-icons'; import { Dialog, Flex, IconButton } from '@radix-ui/themes'; import Link from 'next/link'; import { use, useState } from 'react'; -import { provisionDefinitions } from '../../../../core/blitzkrieg/provisionDefinitions'; -import { tankToCompareMember } from '../../../../core/blitzkrieg/tankToCompareMember'; +import { provisionDefinitions } from '../../../../core/blitzrinth/provisionDefinitions'; +import { tankToCompareMember } from '../../../../core/blitzrinth/tankToCompareMember'; import { mutateCompareTemporary } from '../../../../stores/compare'; import { TankSearch } from '../../tankopedia/components/TankSearch'; diff --git a/src/app/tools/compare/page.tsx b/src/app/tools/compare/page.tsx index 0806db507..90e69ace8 100644 --- a/src/app/tools/compare/page.tsx +++ b/src/app/tools/compare/page.tsx @@ -31,23 +31,23 @@ import { EquipmentManager } from '../../../components/EquipmentManager'; import { ModuleManager } from '../../../components/ModuleManager'; import PageWrapper from '../../../components/PageWrapper'; import { ProvisionsManager } from '../../../components/ProvisionsManager'; -import { asset } from '../../../core/blitzkrieg/asset'; -import { availableProvisions } from '../../../core/blitzkrieg/availableProvisions'; -import { checkConsumableProvisionInclusivity } from '../../../core/blitzkrieg/checkConsumableProvisionInclusivity'; -import { consumableDefinitions } from '../../../core/blitzkrieg/consumableDefinitions'; -import { createDefaultSkills } from '../../../core/blitzkrieg/createDefaultSkills'; -import { equipmentDefinitions } from '../../../core/blitzkrieg/equipmentDefinitions'; -import { modelDefinitions } from '../../../core/blitzkrieg/modelDefinitions'; -import { provisionDefinitions } from '../../../core/blitzkrieg/provisionDefinitions'; -import { skillDefinitions } from '../../../core/blitzkrieg/skillDefinitions'; -import { tankCharacteristics } from '../../../core/blitzkrieg/tankCharacteristics'; +import { asset } from '../../../core/blitzrinth/asset'; +import { availableProvisions } from '../../../core/blitzrinth/availableProvisions'; +import { checkConsumableProvisionInclusivity } from '../../../core/blitzrinth/checkConsumableProvisionInclusivity'; +import { consumableDefinitions } from '../../../core/blitzrinth/consumableDefinitions'; +import { createDefaultSkills } from '../../../core/blitzrinth/createDefaultSkills'; +import { equipmentDefinitions } from '../../../core/blitzrinth/equipmentDefinitions'; +import { modelDefinitions } from '../../../core/blitzrinth/modelDefinitions'; +import { provisionDefinitions } from '../../../core/blitzrinth/provisionDefinitions'; +import { skillDefinitions } from '../../../core/blitzrinth/skillDefinitions'; +import { tankCharacteristics } from '../../../core/blitzrinth/tankCharacteristics'; import { TankDefinition, tankDefinitions, -} from '../../../core/blitzkrieg/tankDefinitions'; -import { tankIcon } from '../../../core/blitzkrieg/tankIcon'; -import { tankToCompareMember } from '../../../core/blitzkrieg/tankToCompareMember'; -import { BlitzkriegButtonWatermark } from '../../../icons/BlitzkriegButtonWatermark'; +} from '../../../core/blitzrinth/tankDefinitions'; +import { tankIcon } from '../../../core/blitzrinth/tankIcon'; +import { tankToCompareMember } from '../../../core/blitzrinth/tankToCompareMember'; +import { BlitzrinthButtonWatermark } from '../../../icons/BlitzrinthButtonWatermark'; 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/rating/page.tsx b/src/app/tools/rating/page.tsx index 2dd70856f..fe3d56c2a 100644 --- a/src/app/tools/rating/page.tsx +++ b/src/app/tools/rating/page.tsx @@ -35,9 +35,9 @@ import { AccountList, AccountListItem, } from '../../../core/blitz/searchPlayersAcrossRegions'; -import { getArchivedLatestSeasonNumber } from '../../../core/blitzkrieg/getArchivedLatestSeasonNumber'; -import getArchivedRatingInfo from '../../../core/blitzkrieg/getArchivedRatingInfo'; -import { getArchivedRatingLeaderboard } from '../../../core/blitzkrieg/getArchivedRatingLeaderboard'; +import { getArchivedLatestSeasonNumber } from '../../../core/blitzrinth/getArchivedLatestSeasonNumber'; +import getArchivedRatingInfo from '../../../core/blitzrinth/getArchivedRatingInfo'; +import { getArchivedRatingLeaderboard } from '../../../core/blitzrinth/getArchivedRatingLeaderboard'; import { theme } from '../../../stitches.config'; import { PageTurner } from './components/PageTurner'; diff --git a/src/app/tools/session/page.tsx b/src/app/tools/session/page.tsx index c6db4ed77..7ce6e58d4 100644 --- a/src/app/tools/session/page.tsx +++ b/src/app/tools/session/page.tsx @@ -23,8 +23,8 @@ import { UNLOCALIZED_REGION_NAMES } from '../../../constants/regions'; import searchPlayersAcrossRegions, { AccountListWithServer, } from '../../../core/blitz/searchPlayersAcrossRegions'; -import { resetSession } from '../../../core/blitzkrieg/resetSession'; -import { setSession } from '../../../core/blitzkrieg/setSession'; +import { resetSession } from '../../../core/blitzrinth/resetSession'; +import { setSession } from '../../../core/blitzrinth/setSession'; import { useSession } from '../../../stores/session'; import SessionPage from '../../embeds/session/page'; import { Menu } from './components/Menu'; diff --git a/src/app/tools/statistics/components/Day.tsx b/src/app/tools/statistics/components/Day.tsx index 3475712c3..9e08092e2 100644 --- a/src/app/tools/statistics/components/Day.tsx +++ b/src/app/tools/statistics/components/Day.tsx @@ -2,8 +2,8 @@ import { CaretDownIcon, CaretRightIcon } from '@radix-ui/react-icons'; import { Button, Flex, Table, Text } from '@radix-ui/themes'; import { random } from 'lodash'; import { use, useMemo, useState } from 'react'; -import { tankDefinitions } from '../../../../core/blitzkrieg/tankDefinitions'; -import { tankIcon } from '../../../../core/blitzkrieg/tankIcon'; +import { tankDefinitions } from '../../../../core/blitzrinth/tankDefinitions'; +import { tankIcon } from '../../../../core/blitzrinth/tankIcon'; interface DayProps { offset: number; diff --git a/src/app/tools/tankopedia/[id]/components/AntagonistBar.tsx b/src/app/tools/tankopedia/[id]/components/AntagonistBar.tsx index 8a46a2ee9..3afeee3f6 100644 --- a/src/app/tools/tankopedia/[id]/components/AntagonistBar.tsx +++ b/src/app/tools/tankopedia/[id]/components/AntagonistBar.tsx @@ -5,11 +5,11 @@ import { ModuleButton } from '../../../../../components/ModuleButtons/ModuleButt import { ShellButton } from '../../../../../components/ModuleButtons/ShellButton'; import { SmallTankIcon } from '../../../../../components/SmallTankIcon'; import { resolveNearPenetration } from '../../../../../core/blitz/resolveNearPenetration'; -import { pushTankopediaPath } from '../../../../../core/blitzkrieg/pushTankopediaPath'; +import { pushTankopediaPath } from '../../../../../core/blitzrinth/pushTankopediaPath'; import { SHELL_NAMES, TIER_ROMAN_NUMERALS, -} from '../../../../../core/blitzkrieg/tankDefinitions/constants'; +} from '../../../../../core/blitzrinth/tankDefinitions/constants'; import { mutateDuel, useDuel } from '../../../../../stores/duel'; import { mutateTankopediaTemporary, diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/components/Consumables.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/components/Consumables.tsx index 57bc4b7bc..5adbcd70b 100644 --- a/src/app/tools/tankopedia/[id]/components/Characteristics/components/Consumables.tsx +++ b/src/app/tools/tankopedia/[id]/components/Characteristics/components/Consumables.tsx @@ -9,8 +9,8 @@ import { } from '@radix-ui/themes'; import { use } from 'react'; import { ConsumablesManager } from '../../../../../../../components/ConsumablesManager'; -import { checkConsumableProvisionInclusivity } from '../../../../../../../core/blitzkrieg/checkConsumableProvisionInclusivity'; -import { consumableDefinitions } from '../../../../../../../core/blitzkrieg/consumableDefinitions'; +import { checkConsumableProvisionInclusivity } from '../../../../../../../core/blitzrinth/checkConsumableProvisionInclusivity'; +import { consumableDefinitions } from '../../../../../../../core/blitzrinth/consumableDefinitions'; import { useEquipment } from '../../../../../../../hooks/useEquipment'; import { mutateDuel, useDuel } from '../../../../../../../stores/duel'; import { ConfigurationChildWrapper } from './ConfigurationChildWrapper'; diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/components/Equipment.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/components/Equipment.tsx index 2eb7973ff..7498e9e57 100644 --- a/src/app/tools/tankopedia/[id]/components/Characteristics/components/Equipment.tsx +++ b/src/app/tools/tankopedia/[id]/components/Characteristics/components/Equipment.tsx @@ -1,7 +1,7 @@ import { Button, Flex, Heading } from '@radix-ui/themes'; import { use } from 'react'; import { EquipmentManager } from '../../../../../../../components/EquipmentManager'; -import { equipmentDefinitions } from '../../../../../../../core/blitzkrieg/equipmentDefinitions'; +import { equipmentDefinitions } from '../../../../../../../core/blitzrinth/equipmentDefinitions'; import { mutateDuel, useDuel } from '../../../../../../../stores/duel'; import { ConfigurationChildWrapper } from './ConfigurationChildWrapper'; diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/components/Miscellaneous.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/components/Miscellaneous.tsx index 192fd0810..612be4f26 100644 --- a/src/app/tools/tankopedia/[id]/components/Characteristics/components/Miscellaneous.tsx +++ b/src/app/tools/tankopedia/[id]/components/Characteristics/components/Miscellaneous.tsx @@ -2,7 +2,7 @@ import { Flex, Heading, Slider, TextField } from '@radix-ui/themes'; import { clamp, debounce } from 'lodash'; import { useEffect, useMemo, useRef, useState } from 'react'; import { GenericTankComponentButton } from '../../../../../../../components/ModuleButtons/GenericTankComponentButton'; -import { asset } from '../../../../../../../core/blitzkrieg/asset'; +import { asset } from '../../../../../../../core/blitzrinth/asset'; import { mutateDuel, useDuel } from '../../../../../../../stores/duel'; import { ConfigurationChildWrapper } from './ConfigurationChildWrapper'; diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/components/Provisions.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/components/Provisions.tsx index 0dac8c84e..e7a0897ab 100644 --- a/src/app/tools/tankopedia/[id]/components/Characteristics/components/Provisions.tsx +++ b/src/app/tools/tankopedia/[id]/components/Characteristics/components/Provisions.tsx @@ -1,8 +1,8 @@ import { Button, Flex, Heading } from '@radix-ui/themes'; import { use } from 'react'; import { ProvisionsManager } from '../../../../../../../components/ProvisionsManager'; -import { availableProvisions } from '../../../../../../../core/blitzkrieg/availableProvisions'; -import { provisionDefinitions } from '../../../../../../../core/blitzkrieg/provisionDefinitions'; +import { availableProvisions } from '../../../../../../../core/blitzrinth/availableProvisions'; +import { provisionDefinitions } from '../../../../../../../core/blitzrinth/provisionDefinitions'; import { mutateDuel, useDuel } from '../../../../../../../stores/duel'; import { ConfigurationChildWrapper } from './ConfigurationChildWrapper'; diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/components/Skills/index.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/components/Skills/index.tsx index f1b22ee53..52d99e63a 100644 --- a/src/app/tools/tankopedia/[id]/components/Characteristics/components/Skills/index.tsx +++ b/src/app/tools/tankopedia/[id]/components/Characteristics/components/Skills/index.tsx @@ -10,8 +10,8 @@ import { } from '@radix-ui/themes'; import { use } from 'react'; import { CrewSkillManager } from '../../../../../../../../components/CrewSkillManager'; -import { createDefaultSkills } from '../../../../../../../../core/blitzkrieg/createDefaultSkills'; -import { skillDefinitions } from '../../../../../../../../core/blitzkrieg/skillDefinitions'; +import { createDefaultSkills } from '../../../../../../../../core/blitzrinth/createDefaultSkills'; +import { skillDefinitions } from '../../../../../../../../core/blitzrinth/skillDefinitions'; import { mutateTankopediaTemporary, useTankopediaTemporary, diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx index 868185af3..a7b9f622f 100644 --- a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx +++ b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx @@ -14,16 +14,16 @@ import { lerp } from 'three/src/math/MathUtils'; import { ShellButton } from '../../../../../../components/ModuleButtons/ShellButton'; import { applyPitchYawLimits } from '../../../../../../core/blitz/applyPitchYawLimits'; import { isExplosive } from '../../../../../../core/blitz/isExplosive'; -import { coefficient } from '../../../../../../core/blitzkrieg/coefficient'; -import { equipmentDefinitions } from '../../../../../../core/blitzkrieg/equipmentDefinitions'; -import { modelDefinitions } from '../../../../../../core/blitzkrieg/modelDefinitions'; -import { provisionDefinitions } from '../../../../../../core/blitzkrieg/provisionDefinitions'; -import { tankCharacteristics } from '../../../../../../core/blitzkrieg/tankCharacteristics'; +import { coefficient } from '../../../../../../core/blitzrinth/coefficient'; +import { equipmentDefinitions } from '../../../../../../core/blitzrinth/equipmentDefinitions'; +import { modelDefinitions } from '../../../../../../core/blitzrinth/modelDefinitions'; +import { provisionDefinitions } from '../../../../../../core/blitzrinth/provisionDefinitions'; +import { tankCharacteristics } from '../../../../../../core/blitzrinth/tankCharacteristics'; import { CREW_MEMBER_NAMES, GUN_TYPE_NAMES, SHELL_NAMES, -} from '../../../../../../core/blitzkrieg/tankDefinitions/constants'; +} from '../../../../../../core/blitzrinth/tankDefinitions/constants'; import { useEquipment } from '../../../../../../hooks/useEquipment'; import { useFullScreen } from '../../../../../../hooks/useFullScreen'; import { mutateDuel, useDuel } from '../../../../../../stores/duel'; @@ -178,7 +178,7 @@ export function Characteristics() { name={ What's the difference? diff --git a/src/app/tools/tankopedia/[id]/components/Control.tsx b/src/app/tools/tankopedia/[id]/components/Control.tsx index b9383188a..689c32d74 100644 --- a/src/app/tools/tankopedia/[id]/components/Control.tsx +++ b/src/app/tools/tankopedia/[id]/components/Control.tsx @@ -4,9 +4,9 @@ import { useEffect, useRef } from 'react'; import { Vector3 } from 'three'; import { OrbitControls as OrbitControlsClass } from 'three-stdlib'; import { applyPitchYawLimits } from '../../../../../core/blitz/applyPitchYawLimits'; -import { hasEquipment } from '../../../../../core/blitzkrieg/hasEquipment'; -import { modelDefinitions } from '../../../../../core/blitzkrieg/modelDefinitions'; -import { Pose, poseEvent } from '../../../../../core/blitzkrieg/pose'; +import { hasEquipment } from '../../../../../core/blitzrinth/hasEquipment'; +import { modelDefinitions } from '../../../../../core/blitzrinth/modelDefinitions'; +import { Pose, poseEvent } from '../../../../../core/blitzrinth/pose'; import { useAwait } from '../../../../../hooks/useAwait'; import { useDuel } from '../../../../../stores/duel'; import { useTankopediaPersistent } from '../../../../../stores/tankopedia'; diff --git a/src/app/tools/tankopedia/[id]/components/Model/TankSandbox.tsx b/src/app/tools/tankopedia/[id]/components/Model/TankSandbox.tsx index 8b135a6b2..fec5f2c87 100644 --- a/src/app/tools/tankopedia/[id]/components/Model/TankSandbox.tsx +++ b/src/app/tools/tankopedia/[id]/components/Model/TankSandbox.tsx @@ -7,14 +7,14 @@ import { isMobile } from 'react-device-detect'; import { Armor } from '../../../../../../components/Armor'; import { ShotDisplay } from '../../../../../../components/Armor/components/ShotDisplay'; import { applyPitchYawLimits } from '../../../../../../core/blitz/applyPitchYawLimits'; -import { modelDefinitions } from '../../../../../../core/blitzkrieg/modelDefinitions'; -import { modelTransformEvent } from '../../../../../../core/blitzkrieg/modelTransform'; -import { Pose, poseEvent } from '../../../../../../core/blitzkrieg/pose'; -import { tankIcon } from '../../../../../../core/blitzkrieg/tankIcon'; +import { modelDefinitions } from '../../../../../../core/blitzrinth/modelDefinitions'; +import { modelTransformEvent } from '../../../../../../core/blitzrinth/modelTransform'; +import { Pose, poseEvent } from '../../../../../../core/blitzrinth/pose'; +import { tankIcon } from '../../../../../../core/blitzrinth/tankIcon'; import { useEquipment } from '../../../../../../hooks/useEquipment'; import { useFullScreen } from '../../../../../../hooks/useFullScreen'; import { useWideFormat } from '../../../../../../hooks/useWideFormat'; -import { BlitzkriegWormWide } from '../../../../../../icons/BlitzkriegWormWide'; +import { BlitzrinthWormWide } from '../../../../../../icons/BlitzrinthWormWide'; import { mutateDuel, useDuel } from '../../../../../../stores/duel'; import mutateTankopediaPersistent, { TankopediaMode, @@ -186,7 +186,7 @@ export function TankSandbox() { top: 11, }} > - + )} diff --git a/src/app/tools/tankopedia/[id]/components/Model/components/Options.tsx b/src/app/tools/tankopedia/[id]/components/Model/components/Options.tsx index 5886528ea..8ddf47d43 100644 --- a/src/app/tools/tankopedia/[id]/components/Model/components/Options.tsx +++ b/src/app/tools/tankopedia/[id]/components/Model/components/Options.tsx @@ -6,7 +6,7 @@ import { } from '@radix-ui/react-icons'; import { Button, DropdownMenu, Flex } from '@radix-ui/themes'; import { RefObject } from 'react'; -import { Pose, poseEvent } from '../../../../../../../core/blitzkrieg/pose'; +import { Pose, poseEvent } from '../../../../../../../core/blitzrinth/pose'; import { useApp } from '../../../../../../../stores/app'; import mutateTankopediaPersistent, { mutateTankopediaTemporary, diff --git a/src/app/tools/tankopedia/[id]/components/Model/components/TankModel.tsx b/src/app/tools/tankopedia/[id]/components/Model/components/TankModel.tsx index 32c0fde34..87ae17881 100644 --- a/src/app/tools/tankopedia/[id]/components/Model/components/TankModel.tsx +++ b/src/app/tools/tankopedia/[id]/components/Model/components/TankModel.tsx @@ -4,13 +4,13 @@ import { Euler, Group, Vector3 } from 'three'; import { degToRad } from 'three/src/math/MathUtils'; import { I_HAT, J_HAT, K_HAT } from '../../../../../../../constants/axis'; import { applyPitchYawLimits } from '../../../../../../../core/blitz/applyPitchYawLimits'; -import { hasEquipment } from '../../../../../../../core/blitzkrieg/hasEquipment'; -import { jsxTree } from '../../../../../../../core/blitzkrieg/jsxTree'; -import { modelDefinitions } from '../../../../../../../core/blitzkrieg/modelDefinitions'; +import { hasEquipment } from '../../../../../../../core/blitzrinth/hasEquipment'; +import { jsxTree } from '../../../../../../../core/blitzrinth/jsxTree'; +import { modelDefinitions } from '../../../../../../../core/blitzrinth/modelDefinitions'; import { ModelTransformEventData, modelTransformEvent, -} from '../../../../../../../core/blitzkrieg/modelTransform'; +} from '../../../../../../../core/blitzrinth/modelTransform'; import { normalizeAngleRad } from '../../../../../../../core/math/normalizeAngleRad'; import { useAwait } from '../../../../../../../hooks/useAwait'; import { useModel } from '../../../../../../../hooks/useModel'; diff --git a/src/app/tools/tankopedia/[id]/components/QuickInputs/components/QuickEquipmentButton.tsx b/src/app/tools/tankopedia/[id]/components/QuickInputs/components/QuickEquipmentButton.tsx index 7c6e1596b..989a4fb2f 100644 --- a/src/app/tools/tankopedia/[id]/components/QuickInputs/components/QuickEquipmentButton.tsx +++ b/src/app/tools/tankopedia/[id]/components/QuickInputs/components/QuickEquipmentButton.tsx @@ -1,6 +1,6 @@ import { Button } from '@radix-ui/themes'; import { ComponentProps } from 'react'; -import { asset } from '../../../../../../../core/blitzkrieg/asset'; +import { asset } from '../../../../../../../core/blitzrinth/asset'; interface QuickEquipmentButtonProps extends ComponentProps { equipment: number; diff --git a/src/app/tools/tankopedia/[id]/components/QuickInputs/index.tsx b/src/app/tools/tankopedia/[id]/components/QuickInputs/index.tsx index fda4949f6..67184ce42 100644 --- a/src/app/tools/tankopedia/[id]/components/QuickInputs/index.tsx +++ b/src/app/tools/tankopedia/[id]/components/QuickInputs/index.tsx @@ -2,8 +2,8 @@ import { Flex, TextField } from '@radix-ui/themes'; import { use, useEffect, useRef } from 'react'; import { degToRad, radToDeg } from 'three/src/math/MathUtils'; import { applyPitchYawLimits } from '../../../../../../core/blitz/applyPitchYawLimits'; -import { modelDefinitions } from '../../../../../../core/blitzkrieg/modelDefinitions'; -import { modelTransformEvent } from '../../../../../../core/blitzkrieg/modelTransform'; +import { modelDefinitions } from '../../../../../../core/blitzrinth/modelDefinitions'; +import { modelTransformEvent } from '../../../../../../core/blitzrinth/modelTransform'; import { useEquipment } from '../../../../../../hooks/useEquipment'; import { mutateDuel, useDuel } from '../../../../../../stores/duel'; import { useTankopediaPersistent } from '../../../../../../stores/tankopedia'; diff --git a/src/app/tools/tankopedia/[id]/components/Title.tsx b/src/app/tools/tankopedia/[id]/components/Title.tsx index 1c365c8f0..f7b4b0410 100644 --- a/src/app/tools/tankopedia/[id]/components/Title.tsx +++ b/src/app/tools/tankopedia/[id]/components/Title.tsx @@ -3,8 +3,8 @@ import { Button, Dialog, Flex, Heading } from '@radix-ui/themes'; import Link from 'next/link'; import { useState } from 'react'; import { TREE_TYPE_ICONS } from '../../../../../components/Tanks/components/Item/constants'; -import { assignDuelMember } from '../../../../../core/blitzkrieg/assignDuelMember'; -import { pushTankopediaPath } from '../../../../../core/blitzkrieg/pushTankopediaPath'; +import { assignDuelMember } from '../../../../../core/blitzrinth/assignDuelMember'; +import { pushTankopediaPath } from '../../../../../core/blitzrinth/pushTankopediaPath'; import { useDuel } from '../../../../../stores/duel'; import { TankSearch } from '../../components/TankSearch'; diff --git a/src/app/tools/tankopedia/[id]/layout.tsx b/src/app/tools/tankopedia/[id]/layout.tsx index c1e138b40..6668b02d3 100644 --- a/src/app/tools/tankopedia/[id]/layout.tsx +++ b/src/app/tools/tankopedia/[id]/layout.tsx @@ -1,7 +1,7 @@ import { ReactNode } from 'react'; -import { tankDefinitions } from '../../../../core/blitzkrieg/tankDefinitions'; -import { TIER_ROMAN_NUMERALS } from '../../../../core/blitzkrieg/tankDefinitions/constants'; -import { tankIcon } from '../../../../core/blitzkrieg/tankIcon'; +import { tankDefinitions } from '../../../../core/blitzrinth/tankDefinitions'; +import { TIER_ROMAN_NUMERALS } from '../../../../core/blitzrinth/tankDefinitions/constants'; +import { tankIcon } from '../../../../core/blitzrinth/tankIcon'; import strings from '../../../../lang/en-US.json'; interface TankopediaLayoutProps { diff --git a/src/app/tools/tankopedia/[id]/page.tsx b/src/app/tools/tankopedia/[id]/page.tsx index 5b5561b64..ea3aca539 100644 --- a/src/app/tools/tankopedia/[id]/page.tsx +++ b/src/app/tools/tankopedia/[id]/page.tsx @@ -3,7 +3,7 @@ import { Flex } from '@radix-ui/themes'; import { useEffect } from 'react'; import PageWrapper from '../../../../components/PageWrapper'; -import { assignDuelMember } from '../../../../core/blitzkrieg/assignDuelMember'; +import { assignDuelMember } from '../../../../core/blitzrinth/assignDuelMember'; import { useWideFormat } from '../../../../hooks/useWideFormat'; import { mutateDuel, useDuel } from '../../../../stores/duel'; import { mutateTankopediaTemporary } from '../../../../stores/tankopedia'; diff --git a/src/app/tools/tankopedia/components/PageTurner.tsx b/src/app/tools/tankopedia/components/PageTurner.tsx index 652b6c3ba..056cbec5d 100644 --- a/src/app/tools/tankopedia/components/PageTurner.tsx +++ b/src/app/tools/tankopedia/components/PageTurner.tsx @@ -1,7 +1,7 @@ import { CaretLeftIcon, CaretRightIcon } from '@radix-ui/react-icons'; import { Button, Flex, TextField } from '@radix-ui/themes'; import { useEffect, useRef } from 'react'; -import { TankDefinition } from '../../../../core/blitzkrieg/tankDefinitions'; +import { TankDefinition } from '../../../../core/blitzrinth/tankDefinitions'; import mutateTankopediaPersistent, { useTankopediaPersistent, } from '../../../../stores/tankopedia'; diff --git a/src/app/tools/tankopedia/components/TankSearch/components/CompactSearchResultRow.tsx b/src/app/tools/tankopedia/components/TankSearch/components/CompactSearchResultRow.tsx index b2016781b..bd3846a86 100644 --- a/src/app/tools/tankopedia/components/TankSearch/components/CompactSearchResultRow.tsx +++ b/src/app/tools/tankopedia/components/TankSearch/components/CompactSearchResultRow.tsx @@ -1,7 +1,7 @@ import { Button, Flex, Text } from '@radix-ui/themes'; import { SmallTankIcon } from '../../../../../../components/SmallTankIcon'; -import { TankDefinition } from '../../../../../../core/blitzkrieg/tankDefinitions'; -import { TIER_ROMAN_NUMERALS } from '../../../../../../core/blitzkrieg/tankDefinitions/constants'; +import { TankDefinition } from '../../../../../../core/blitzrinth/tankDefinitions'; +import { TIER_ROMAN_NUMERALS } from '../../../../../../core/blitzrinth/tankDefinitions/constants'; interface CompactSearchResultRowProps { tanks: TankDefinition[]; diff --git a/src/app/tools/tankopedia/components/TankSearch/components/Options/index.tsx b/src/app/tools/tankopedia/components/TankSearch/components/Options/index.tsx index 69b56d02c..c1a42fcc3 100644 --- a/src/app/tools/tankopedia/components/TankSearch/components/Options/index.tsx +++ b/src/app/tools/tankopedia/components/TankSearch/components/Options/index.tsx @@ -11,11 +11,11 @@ import { TREE_TYPE_ICONS, TREE_TYPE_IMAGES, } from '../../../../../../../components/Tanks/components/Item/constants'; -import { NATIONS } from '../../../../../../../core/blitzkrieg/tankDefinitions'; +import { NATIONS } from '../../../../../../../core/blitzrinth/tankDefinitions'; import { TIERS, TIER_ROMAN_NUMERALS, -} from '../../../../../../../core/blitzkrieg/tankDefinitions/constants'; +} from '../../../../../../../core/blitzrinth/tankDefinitions/constants'; import mutateTankopediaPersistent, { TankopediaTestTankDisplay, useTankopediaPersistent, diff --git a/src/app/tools/tankopedia/components/TankSearch/index.tsx b/src/app/tools/tankopedia/components/TankSearch/index.tsx index da1e3abd5..c0cae3777 100644 --- a/src/app/tools/tankopedia/components/TankSearch/index.tsx +++ b/src/app/tools/tankopedia/components/TankSearch/index.tsx @@ -21,24 +21,24 @@ import { use, useEffect, useMemo, useRef, useState } from 'react'; import { TreeType } from '../../../../../components/Tanks'; import { TANK_CLASSES } from '../../../../../components/Tanks/components/Item/constants'; import { resolveNearPenetration } from '../../../../../core/blitz/resolveNearPenetration'; -import { asset } from '../../../../../core/blitzkrieg/asset'; -import { modelDefinitions } from '../../../../../core/blitzkrieg/modelDefinitions'; -import { normalizeBoundingBox } from '../../../../../core/blitzkrieg/normalizeBoundingBox'; -import { resolveDpm } from '../../../../../core/blitzkrieg/resolveDpm'; -import { resolveReload } from '../../../../../core/blitzkrieg/resolveReload'; +import { asset } from '../../../../../core/blitzrinth/asset'; +import { modelDefinitions } from '../../../../../core/blitzrinth/modelDefinitions'; +import { normalizeBoundingBox } from '../../../../../core/blitzrinth/normalizeBoundingBox'; +import { resolveDpm } from '../../../../../core/blitzrinth/resolveDpm'; +import { resolveReload } from '../../../../../core/blitzrinth/resolveReload'; import { NATIONS, TankDefinition, tanksDefinitionsArray, -} from '../../../../../core/blitzkrieg/tankDefinitions'; +} from '../../../../../core/blitzrinth/tankDefinitions'; import { TANK_ICONS, TANK_ICONS_COLLECTOR, TANK_ICONS_PREMIUM, TIER_ROMAN_NUMERALS, -} from '../../../../../core/blitzkrieg/tankDefinitions/constants'; -import { tankIcon } from '../../../../../core/blitzkrieg/tankIcon'; -import { unionBoundingBox } from '../../../../../core/blitzkrieg/unionBoundingBox'; +} from '../../../../../core/blitzrinth/tankDefinitions/constants'; +import { tankIcon } from '../../../../../core/blitzrinth/tankIcon'; +import { unionBoundingBox } from '../../../../../core/blitzrinth/unionBoundingBox'; import { theme } from '../../../../../stitches.config'; import mutateTankopediaPersistent, { SORT_NAMES, diff --git a/src/app/tools/tankopedia/map/page.tsx b/src/app/tools/tankopedia/map/page.tsx index 2787a31c6..7c52606bf 100644 --- a/src/app/tools/tankopedia/map/page.tsx +++ b/src/app/tools/tankopedia/map/page.tsx @@ -1,7 +1,7 @@ import { Flex, Link } from '@radix-ui/themes'; import { use } from 'react'; import PageWrapper from '../../../../components/PageWrapper'; -import { tankDefinitions } from '../../../../core/blitzkrieg/tankDefinitions'; +import { tankDefinitions } from '../../../../core/blitzrinth/tankDefinitions'; export default function Page() { const awaitedTankDefinitions = use(tankDefinitions); diff --git a/src/bot.ts b/src/bot.ts index 709d7d44b..95660ca18 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -1,5 +1,5 @@ -import { registerProcesses } from './core/blitzkrieg/processes'; -import { secrets } from './core/blitzkrieg/secrets'; +import { registerProcesses } from './core/blitzrinth/processes'; +import { secrets } from './core/blitzrinth/secrets'; import { client } from './core/discord/client'; // console.log(`🟡 Launching bot ${client.shard?.ids[0]}`); diff --git a/src/commands/about.ts b/src/commands/about.ts index 8ecb65b2f..ff7c9537d 100644 --- a/src/commands/about.ts +++ b/src/commands/about.ts @@ -60,7 +60,7 @@ export const aboutCommand = new Promise(async (resolve) => { .join('\n')}`; } - const url = `https://raw.githubusercontent.com/tresabhi/blitzkrieg/main/docs/${DOCS[subcommand as Subcommand]}.md`; + const url = `https://raw.githubusercontent.com/tresabhi/blitzrinth/main/docs/${DOCS[subcommand as Subcommand]}.md`; const content = fetch(url).then((response) => response.text()); return content; diff --git a/src/commands/breakdown/render.tsx b/src/commands/breakdown/render.tsx index a90c877f3..0c00dd39d 100644 --- a/src/commands/breakdown/render.tsx +++ b/src/commands/breakdown/render.tsx @@ -7,11 +7,11 @@ import TitleBar from '../../components/TitleBar'; import { AllStats, getAccountInfo } from '../../core/blitz/getAccountInfo'; import { getClanAccountInfo } from '../../core/blitz/getClanAccountInfo'; import getTankStats from '../../core/blitz/getTankStats'; -import { filtersToDescription } from '../../core/blitzkrieg/filtersToDescription'; +import { filtersToDescription } from '../../core/blitzrinth/filtersToDescription'; import { TankDefinition, tankDefinitions, -} from '../../core/blitzkrieg/tankDefinitions'; +} from '../../core/blitzrinth/tankDefinitions'; import getStatsInPeriod from '../../core/blitzstars/getStatsInPeriod'; import { tankAverages } from '../../core/blitzstars/tankAverages'; import { ResolvedPeriod } from '../../core/discord/resolvePeriodFromCommand'; diff --git a/src/commands/clanEvent.ts b/src/commands/clanEvent.ts index 6be992a47..def963d19 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 Blitzkrieg'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 Blitzrinth's reset times (use `/about timezones` for more info)", // ), // ]; // }, diff --git a/src/commands/eligible.ts b/src/commands/eligible.ts index 33fcc5812..da06c83f6 100644 --- a/src/commands/eligible.ts +++ b/src/commands/eligible.ts @@ -7,9 +7,9 @@ // import { SlashCommandBuilder } from 'discord.js'; // import { getAccountInfo } from '../core/blitz/getAccountInfo'; -// import getPeriodNow from '../core/blitzkrieg/getPeriodNow'; -// import getTimeDaysAgo from '../core/blitzkrieg/getTimeDaysAgo'; -// import { tankDefinitions } from '../core/blitzkrieg/tankDefinitions'; +// import getPeriodNow from '../core/blitzrinth/getPeriodNow'; +// import getTimeDaysAgo from '../core/blitzrinth/getTimeDaysAgo'; +// import { tankDefinitions } from '../core/blitzrinth/tankDefinitions'; // import getStatsInPeriod from '../core/blitzstars/getStatsInPeriod'; // import { tankAverages } from '../core/blitzstars/tankAverages'; // import addUsernameChoices from '../core/discord/addUsernameChoices'; diff --git a/src/commands/evolution.tsx b/src/commands/evolution.tsx index 1243551fc..21ffcb363 100644 --- a/src/commands/evolution.tsx +++ b/src/commands/evolution.tsx @@ -7,8 +7,8 @@ import TitleBar from '../components/TitleBar'; import { getAccountInfo } from '../core/blitz/getAccountInfo'; import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo'; import resolveTankId from '../core/blitz/resolveTankId'; -import { emblemURL } from '../core/blitzkrieg/emblemURL'; -import getTankHistories from '../core/blitzkrieg/getTankHistories'; +import { emblemURL } from '../core/blitzrinth/emblemURL'; +import getTankHistories from '../core/blitzrinth/getTankHistories'; import { getBlitzStarsLinkButton } from '../core/blitzstars/getBlitzStarsLinkButton'; import getPlayerHistories from '../core/blitzstars/getPlayerHistories'; import { addPeriodSubCommands } from '../core/discord/addPeriodSubCommands'; diff --git a/src/commands/fullStats.tsx b/src/commands/fullStats.tsx index 79e518150..0730a5f77 100644 --- a/src/commands/fullStats.tsx +++ b/src/commands/fullStats.tsx @@ -6,8 +6,8 @@ import TierWeights from '../components/TierWeights'; import TitleBar from '../components/TitleBar'; import { getAccountInfo } from '../core/blitz/getAccountInfo'; import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo'; -import { emblemURL } from '../core/blitzkrieg/emblemURL'; -import { filtersToDescription } from '../core/blitzkrieg/filtersToDescription'; +import { emblemURL } from '../core/blitzrinth/emblemURL'; +import { filtersToDescription } from '../core/blitzrinth/filtersToDescription'; import { getBlitzStarsLinkButton } from '../core/blitzstars/getBlitzStarsLinkButton'; import getStatsInPeriod from '../core/blitzstars/getStatsInPeriod'; import addPeriodicFilterOptions from '../core/discord/addPeriodicFilterOptions'; diff --git a/src/commands/link.tsx b/src/commands/link.tsx index 591ddb13c..f661ca903 100644 --- a/src/commands/link.tsx +++ b/src/commands/link.tsx @@ -6,7 +6,7 @@ import { Glow } from '../components/AllStatsOverview/components/HeroStat/compone import CommandWrapper from '../components/CommandWrapper'; import { getAccountInfo } from '../core/blitz/getAccountInfo'; import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo'; -import { linkBlitzAndDiscord } from '../core/blitzkrieg/discordBlitzLink'; +import { linkBlitzAndDiscord } from '../core/blitzrinth/discordBlitzLink'; import addUsernameChoices from '../core/discord/addUsernameChoices'; import autocompleteUsername from '../core/discord/autocompleteUsername'; import { createLocalizedCommand } from '../core/discord/createLocalizedCommand'; diff --git a/src/commands/ownedTanks.tsx b/src/commands/ownedTanks.tsx index 8a51ffde2..113efb3c3 100644 --- a/src/commands/ownedTanks.tsx +++ b/src/commands/ownedTanks.tsx @@ -9,8 +9,8 @@ import { Tier, flags, tankDefinitions, -} from '../core/blitzkrieg/tankDefinitions'; -import { TIER_ROMAN_NUMERALS } from '../core/blitzkrieg/tankDefinitions/constants'; +} from '../core/blitzrinth/tankDefinitions'; +import { TIER_ROMAN_NUMERALS } from '../core/blitzrinth/tankDefinitions/constants'; import addTierChoices from '../core/discord/addTierChoices'; import addUsernameChoices from '../core/discord/addUsernameChoices'; import autocompleteUsername from '../core/discord/autocompleteUsername'; diff --git a/src/commands/ping.ts b/src/commands/ping.ts index 105cc4b44..1a356c2e6 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: 'blitzkrieg' }, + { subcommand: 'blitzrinth' }, { subcommand: 'wotb' }, ]), @@ -18,7 +18,7 @@ export const pingCommand = new Promise((resolve) => { const subcommand = interaction.options.getSubcommand(); const executionStart = Date.now(); - if (subcommand === 'blitzkrieg') { + if (subcommand === 'blitzrinth') { await interaction.editReply(t`bot.commands.ping.body.pong`); } else { await fetch('https://api.wotblitz.com/'); diff --git a/src/commands/rating.tsx b/src/commands/rating.tsx index 8a45b5243..98ab96c86 100644 --- a/src/commands/rating.tsx +++ b/src/commands/rating.tsx @@ -9,9 +9,9 @@ import { getLeagueFromScore } from '../core/blitz/getLeagueFromScore'; import getRatingInfo from '../core/blitz/getRatingInfo'; import { getRatingNeighbors } from '../core/blitz/getRatingNeighbors'; import { normalizeLeagueIcon } from '../core/blitz/normalizeLeagueIcon'; -import { emblemURL } from '../core/blitzkrieg/emblemURL'; -import getArchivedRatingMidnightLeaderboard from '../core/blitzkrieg/getArchivedRatingMidnightLeaderboard'; -import { webpToPng } from '../core/blitzkrieg/iconPng'; +import { emblemURL } from '../core/blitzrinth/emblemURL'; +import getArchivedRatingMidnightLeaderboard from '../core/blitzrinth/getArchivedRatingMidnightLeaderboard'; +import { webpToPng } from '../core/blitzrinth/iconPng'; import addUsernameChoices from '../core/discord/addUsernameChoices'; import { createLocalizedCommand } from '../core/discord/createLocalizedCommand'; import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand'; diff --git a/src/commands/ratingLeaderboard.tsx b/src/commands/ratingLeaderboard.tsx index ad255b73d..abcafad13 100644 --- a/src/commands/ratingLeaderboard.tsx +++ b/src/commands/ratingLeaderboard.tsx @@ -17,10 +17,10 @@ import getRatingInfo from '../core/blitz/getRatingInfo'; import { getRatingLeague } from '../core/blitz/getRatingLeague'; import { getRatingNeighbors } from '../core/blitz/getRatingNeighbors'; import { isOnGoingRatingSeason } from '../core/blitz/isOnGoingRatingSeason'; -import { getArchivedLatestSeasonNumber } from '../core/blitzkrieg/getArchivedLatestSeasonNumber'; -import getArchivedRatingInfo from '../core/blitzkrieg/getArchivedRatingInfo'; -import { getArchivedRatingLeaderboard } from '../core/blitzkrieg/getArchivedRatingLeaderboard'; -import getArchivedRatingMidnightLeaderboard from '../core/blitzkrieg/getArchivedRatingMidnightLeaderboard'; +import { getArchivedLatestSeasonNumber } from '../core/blitzrinth/getArchivedLatestSeasonNumber'; +import getArchivedRatingInfo from '../core/blitzrinth/getArchivedRatingInfo'; +import { getArchivedRatingLeaderboard } from '../core/blitzrinth/getArchivedRatingLeaderboard'; +import getArchivedRatingMidnightLeaderboard from '../core/blitzrinth/getArchivedRatingMidnightLeaderboard'; import addRegionChoices from '../core/discord/addRegionChoices'; import addUsernameChoices from '../core/discord/addUsernameChoices'; import autocompleteUsername from '../core/discord/autocompleteUsername'; diff --git a/src/commands/research.tsx b/src/commands/research.tsx index d2bfd9e21..010d1c098 100644 --- a/src/commands/research.tsx +++ b/src/commands/research.tsx @@ -6,17 +6,17 @@ import { getAccountInfo } from '../core/blitz/getAccountInfo'; import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo'; import getTankStats from '../core/blitz/getTankStats'; import resolveTankId from '../core/blitz/resolveTankId'; -import { asset } from '../core/blitzkrieg/asset'; -import { buildTechTreeLine } from '../core/blitzkrieg/buildTechTreeLine'; -import { emblemURL } from '../core/blitzkrieg/emblemURL'; -import { webpToPng } from '../core/blitzkrieg/iconPng'; -import { resolveAncestry } from '../core/blitzkrieg/resolveAncestry'; -import { tankDefinitions } from '../core/blitzkrieg/tankDefinitions'; +import { asset } from '../core/blitzrinth/asset'; +import { buildTechTreeLine } from '../core/blitzrinth/buildTechTreeLine'; +import { emblemURL } from '../core/blitzrinth/emblemURL'; +import { webpToPng } from '../core/blitzrinth/iconPng'; +import { resolveAncestry } from '../core/blitzrinth/resolveAncestry'; +import { tankDefinitions } from '../core/blitzrinth/tankDefinitions'; import { TANK_ICONS, TIER_ROMAN_NUMERALS, -} from '../core/blitzkrieg/tankDefinitions/constants'; -import { tankIconPng } from '../core/blitzkrieg/tankIconPng'; +} from '../core/blitzrinth/tankDefinitions/constants'; +import { tankIconPng } from '../core/blitzrinth/tankIconPng'; import addUsernameChoices from '../core/discord/addUsernameChoices'; import autocompleteTanks from '../core/discord/autocompleteTanks'; import { createLocalizedCommand } from '../core/discord/createLocalizedCommand'; diff --git a/src/commands/searchTanks.ts b/src/commands/searchTanks.ts index aae81e883..0d8bf8257 100644 --- a/src/commands/searchTanks.ts +++ b/src/commands/searchTanks.ts @@ -8,7 +8,7 @@ // import { SlashCommandBuilder } from 'discord.js'; // import { go } from 'fuzzysort'; // import markdownEscape from 'markdown-escape'; -// import { tankNames } from '../core/blitzkrieg/tankDefinitions'; +// import { tankNames } from '../core/blitzrinth/tankDefinitions'; // import addTankChoices from '../core/discord/addTankChoices'; // import embedInfo from '../core/discord/embedInfo'; // import { CommandRegistry } from '../events/interactionCreate'; diff --git a/src/commands/stats.tsx b/src/commands/stats.tsx index fcc773e9d..4765bf9c4 100644 --- a/src/commands/stats.tsx +++ b/src/commands/stats.tsx @@ -5,8 +5,8 @@ import NoData from '../components/NoData'; import TitleBar from '../components/TitleBar'; import { getAccountInfo } from '../core/blitz/getAccountInfo'; import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo'; -import { emblemURL } from '../core/blitzkrieg/emblemURL'; -import { filtersToDescription } from '../core/blitzkrieg/filtersToDescription'; +import { emblemURL } from '../core/blitzrinth/emblemURL'; +import { filtersToDescription } from '../core/blitzrinth/filtersToDescription'; import { getBlitzStarsLinkButton } from '../core/blitzstars/getBlitzStarsLinkButton'; import getStatsInPeriod from '../core/blitzstars/getStatsInPeriod'; import addPeriodicFilterOptions from '../core/discord/addPeriodicFilterOptions'; diff --git a/src/commands/today.ts b/src/commands/today.ts index cc0fc5c06..c3db7d9f7 100644 --- a/src/commands/today.ts +++ b/src/commands/today.ts @@ -1,4 +1,4 @@ -import { NATIONS } from '../core/blitzkrieg/tankDefinitions'; +import { NATIONS } from '../core/blitzrinth/tankDefinitions'; import { getBlitzStarsLinkButton } from '../core/blitzstars/getBlitzStarsLinkButton'; import { addFilterOptions } from '../core/discord/addFilterOptions'; import addUsernameChoices from '../core/discord/addUsernameChoices'; diff --git a/src/components/Armor/components/CoreArmorScene.tsx b/src/components/Armor/components/CoreArmorScene.tsx index 670d1b023..8e7ad4569 100644 --- a/src/components/Armor/components/CoreArmorScene.tsx +++ b/src/components/Armor/components/CoreArmorScene.tsx @@ -5,9 +5,9 @@ import { I_HAT, J_HAT, K_HAT } from '../../../constants/axis'; import { ModelTransformEventData, modelTransformEvent, -} from '../../../core/blitzkrieg/modelTransform'; -import { nameToArmorId } from '../../../core/blitzkrieg/nameToArmorId'; -import { resolveArmor } from '../../../core/blitzkrieg/resolveThickness'; +} from '../../../core/blitzrinth/modelTransform'; +import { nameToArmorId } from '../../../core/blitzrinth/nameToArmorId'; +import { resolveArmor } from '../../../core/blitzrinth/resolveThickness'; import { useArmor } from '../../../hooks/useArmor'; import { useModelDefinitions } from '../../../hooks/useModelDefinitions'; import { useDuel } from '../../../stores/duel'; diff --git a/src/components/Armor/components/CoreArmorSceneComponent/index.tsx b/src/components/Armor/components/CoreArmorSceneComponent/index.tsx index 079f04dca..a01f58de9 100644 --- a/src/components/Armor/components/CoreArmorSceneComponent/index.tsx +++ b/src/components/Armor/components/CoreArmorSceneComponent/index.tsx @@ -5,9 +5,9 @@ import { degToRad } from 'three/src/math/MathUtils'; import { canSplash } from '../../../../core/blitz/canSplash'; import { isExplosive } from '../../../../core/blitz/isExplosive'; import { resolveNearPenetration } from '../../../../core/blitz/resolveNearPenetration'; -import { hasEquipment } from '../../../../core/blitzkrieg/hasEquipment'; -import { jsxTree } from '../../../../core/blitzkrieg/jsxTree'; -import { ShellDefinition } from '../../../../core/blitzkrieg/tankDefinitions'; +import { hasEquipment } from '../../../../core/blitzrinth/hasEquipment'; +import { jsxTree } from '../../../../core/blitzrinth/jsxTree'; +import { ShellDefinition } from '../../../../core/blitzrinth/tankDefinitions'; import { EquipmentMatrix, useDuel } from '../../../../stores/duel'; import { TankopediaPersistent, diff --git a/src/components/Armor/components/SpacedArmorScene.tsx b/src/components/Armor/components/SpacedArmorScene.tsx index 6fba48d37..9d0fa5cf5 100644 --- a/src/components/Armor/components/SpacedArmorScene.tsx +++ b/src/components/Armor/components/SpacedArmorScene.tsx @@ -5,9 +5,9 @@ import { I_HAT, J_HAT, K_HAT } from '../../../constants/axis'; import { ModelTransformEventData, modelTransformEvent, -} from '../../../core/blitzkrieg/modelTransform'; -import { nameToArmorId } from '../../../core/blitzkrieg/nameToArmorId'; -import { resolveArmor } from '../../../core/blitzkrieg/resolveThickness'; +} from '../../../core/blitzrinth/modelTransform'; +import { nameToArmorId } from '../../../core/blitzrinth/nameToArmorId'; +import { resolveArmor } from '../../../core/blitzrinth/resolveThickness'; import { useArmor } from '../../../hooks/useArmor'; import { useModel } from '../../../hooks/useModel'; import { useModelDefinitions } from '../../../hooks/useModelDefinitions'; diff --git a/src/components/Armor/components/SpacedArmorSceneComponent/components/SpacedArmorSubExternal/index.tsx b/src/components/Armor/components/SpacedArmorSceneComponent/components/SpacedArmorSubExternal/index.tsx index f0f74327e..90e95a8cf 100644 --- a/src/components/Armor/components/SpacedArmorSceneComponent/components/SpacedArmorSubExternal/index.tsx +++ b/src/components/Armor/components/SpacedArmorSceneComponent/components/SpacedArmorSubExternal/index.tsx @@ -9,9 +9,9 @@ import { import { ArmorUserData, ExternalModuleVariant } from '../..'; import { isExplosive } from '../../../../../../core/blitz/isExplosive'; import { resolveNearPenetration } from '../../../../../../core/blitz/resolveNearPenetration'; -import { hasEquipment } from '../../../../../../core/blitzkrieg/hasEquipment'; -import { jsxTree } from '../../../../../../core/blitzkrieg/jsxTree'; -import { ShellDefinition } from '../../../../../../core/blitzkrieg/tankDefinitions'; +import { hasEquipment } from '../../../../../../core/blitzrinth/hasEquipment'; +import { jsxTree } from '../../../../../../core/blitzrinth/jsxTree'; +import { ShellDefinition } from '../../../../../../core/blitzrinth/tankDefinitions'; import { EquipmentMatrix, useDuel } from '../../../../../../stores/duel'; import { ArmorType } from '../../../SpacedArmorScene'; import fragmentShader from './shaders/fragment.glsl'; diff --git a/src/components/Armor/components/SpacedArmorSceneComponent/components/SpacedArmorSubSpaced/index.tsx b/src/components/Armor/components/SpacedArmorSceneComponent/components/SpacedArmorSubSpaced/index.tsx index c283f3ce2..134246005 100644 --- a/src/components/Armor/components/SpacedArmorSceneComponent/components/SpacedArmorSubSpaced/index.tsx +++ b/src/components/Armor/components/SpacedArmorSceneComponent/components/SpacedArmorSubSpaced/index.tsx @@ -9,9 +9,9 @@ import { degToRad } from 'three/src/math/MathUtils'; import { ArmorUserData } from '../..'; import { isExplosive } from '../../../../../../core/blitz/isExplosive'; import { resolveNearPenetration } from '../../../../../../core/blitz/resolveNearPenetration'; -import { hasEquipment } from '../../../../../../core/blitzkrieg/hasEquipment'; -import { jsxTree } from '../../../../../../core/blitzkrieg/jsxTree'; -import { ShellDefinition } from '../../../../../../core/blitzkrieg/tankDefinitions'; +import { hasEquipment } from '../../../../../../core/blitzrinth/hasEquipment'; +import { jsxTree } from '../../../../../../core/blitzrinth/jsxTree'; +import { ShellDefinition } from '../../../../../../core/blitzrinth/tankDefinitions'; import { EquipmentMatrix, useDuel } from '../../../../../../stores/duel'; import { ArmorType } from '../../../SpacedArmorScene'; import fragmentShader from './shaders/fragment.glsl'; diff --git a/src/components/Armor/components/SpacedArmorSceneComponent/index.tsx b/src/components/Armor/components/SpacedArmorSceneComponent/index.tsx index 607be66ec..04a370803 100644 --- a/src/components/Armor/components/SpacedArmorSceneComponent/index.tsx +++ b/src/components/Armor/components/SpacedArmorSceneComponent/index.tsx @@ -13,8 +13,8 @@ import { degToRad } from 'three/src/math/MathUtils'; import { canSplash } from '../../../../core/blitz/canSplash'; import { isExplosive } from '../../../../core/blitz/isExplosive'; import { resolveNearPenetration } from '../../../../core/blitz/resolveNearPenetration'; -import { hasEquipment } from '../../../../core/blitzkrieg/hasEquipment'; -import { jsxTree } from '../../../../core/blitzkrieg/jsxTree'; +import { hasEquipment } from '../../../../core/blitzrinth/hasEquipment'; +import { jsxTree } from '../../../../core/blitzrinth/jsxTree'; import { useDuel } from '../../../../stores/duel'; import { Shot, diff --git a/src/components/ConsumablesManager.tsx b/src/components/ConsumablesManager.tsx index 4b96e9de9..94b48a037 100644 --- a/src/components/ConsumablesManager.tsx +++ b/src/components/ConsumablesManager.tsx @@ -1,5 +1,5 @@ import { Flex } from '@radix-ui/themes'; -import { ConsumableEntry } from '../core/blitzkrieg/consumableDefinitions'; +import { ConsumableEntry } from '../core/blitzrinth/consumableDefinitions'; import { ConsumableButton } from './ModuleButtons/ConsumableButton'; interface ConsumablesManagerProps { diff --git a/src/components/CrewSkillManager.tsx b/src/components/CrewSkillManager.tsx index 606ed7161..f6469b6de 100644 --- a/src/components/CrewSkillManager.tsx +++ b/src/components/CrewSkillManager.tsx @@ -1,10 +1,10 @@ import { Flex } from '@radix-ui/themes'; import { use } from 'react'; import { permanentSkills } from '../app/tools/tankopedia/[id]/components/Characteristics/components/Skills/constants'; -import { asset } from '../core/blitzkrieg/asset'; -import { skillDefinitions } from '../core/blitzkrieg/skillDefinitions'; -import { Tier } from '../core/blitzkrieg/tankDefinitions'; -import { TIER_ROMAN_NUMERALS } from '../core/blitzkrieg/tankDefinitions/constants'; +import { asset } from '../core/blitzrinth/asset'; +import { skillDefinitions } from '../core/blitzrinth/skillDefinitions'; +import { Tier } from '../core/blitzrinth/tankDefinitions'; +import { TIER_ROMAN_NUMERALS } from '../core/blitzrinth/tankDefinitions/constants'; import { GenericTankComponentButton } from './ModuleButtons/GenericTankComponentButton'; interface CrewSkillManagerProps { diff --git a/src/components/EquipmentManager.tsx b/src/components/EquipmentManager.tsx index b132222b3..8262edb2f 100644 --- a/src/components/EquipmentManager.tsx +++ b/src/components/EquipmentManager.tsx @@ -1,6 +1,6 @@ import { Flex } from '@radix-ui/themes'; import { cloneDeep } from 'lodash'; -import { EquipmentPreset } from '../core/blitzkrieg/equipmentDefinitions'; +import { EquipmentPreset } from '../core/blitzrinth/equipmentDefinitions'; import { EquipmentMatrix } from '../stores/duel'; import { EquipmentButton } from './ModuleButtons/EquipmentButton'; diff --git a/src/components/Flag.tsx b/src/components/Flag.tsx index 21edaf8ea..8061d8fd5 100644 --- a/src/components/Flag.tsx +++ b/src/components/Flag.tsx @@ -1,4 +1,4 @@ -import { asset } from '../core/blitzkrieg/asset'; +import { asset } from '../core/blitzrinth/asset'; interface FlagProps { nation: string; diff --git a/src/components/Footer/components/WoTBVersion.tsx b/src/components/Footer/components/WoTBVersion.tsx index 0f4b1acbd..15ad7defd 100644 --- a/src/components/Footer/components/WoTBVersion.tsx +++ b/src/components/Footer/components/WoTBVersion.tsx @@ -1,6 +1,6 @@ import { Code } from '@radix-ui/themes'; import { use } from 'react'; -import { gameDefinitions } from '../../../core/blitzkrieg/gameDefinitions'; +import { gameDefinitions } from '../../../core/blitzrinth/gameDefinitions'; export function WoTBVersion() { const awaitedGameDefinitions = use(gameDefinitions); diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index a082169aa..4809cacf4 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -23,7 +23,7 @@ export function Footer() { > - Blitzkrieg + Blitzrinth @@ -56,7 +56,7 @@ export function Footer() { Full credits diff --git a/src/components/ModuleButtons/ConsumableButton.tsx b/src/components/ModuleButtons/ConsumableButton.tsx index ff51508b1..3266d0493 100644 --- a/src/components/ModuleButtons/ConsumableButton.tsx +++ b/src/components/ModuleButtons/ConsumableButton.tsx @@ -1,6 +1,6 @@ import { ClockIcon, ReloadIcon } from '@radix-ui/react-icons'; import { Flex, Text } from '@radix-ui/themes'; -import { asset } from '../../core/blitzkrieg/asset'; +import { asset } from '../../core/blitzrinth/asset'; import { useDelta } from '../../hooks/useDelta'; import { GenericTankComponentButton } from './GenericTankComponentButton'; import { TankComponentButtonProps } from './TankComponentButton'; diff --git a/src/components/ModuleButtons/EquipmentButton.tsx b/src/components/ModuleButtons/EquipmentButton.tsx index d9da23176..75517da22 100644 --- a/src/components/ModuleButtons/EquipmentButton.tsx +++ b/src/components/ModuleButtons/EquipmentButton.tsx @@ -1,4 +1,4 @@ -import { asset } from '../../core/blitzkrieg/asset'; +import { asset } from '../../core/blitzrinth/asset'; import { GenericTankComponentButton } from './GenericTankComponentButton'; import { TankComponentButtonProps } from './TankComponentButton'; diff --git a/src/components/ModuleButtons/ModuleButton.tsx b/src/components/ModuleButtons/ModuleButton.tsx index a1223c597..18bff8e37 100644 --- a/src/components/ModuleButtons/ModuleButton.tsx +++ b/src/components/ModuleButtons/ModuleButton.tsx @@ -1,4 +1,4 @@ -import { asset } from '../../core/blitzkrieg/asset'; +import { asset } from '../../core/blitzrinth/asset'; import { GenericTankComponentButton } from './GenericTankComponentButton'; import { TankComponentButtonProps } from './TankComponentButton'; diff --git a/src/components/ModuleButtons/ProvisionButton.tsx b/src/components/ModuleButtons/ProvisionButton.tsx index a8cf07eb6..6ec70ce3f 100644 --- a/src/components/ModuleButtons/ProvisionButton.tsx +++ b/src/components/ModuleButtons/ProvisionButton.tsx @@ -1,4 +1,4 @@ -import { asset } from '../../core/blitzkrieg/asset'; +import { asset } from '../../core/blitzrinth/asset'; import { GenericTankComponentButton } from './GenericTankComponentButton'; import { TankComponentButtonProps } from './TankComponentButton'; diff --git a/src/components/ModuleButtons/ShellButton.tsx b/src/components/ModuleButtons/ShellButton.tsx index 7646c0783..1a22cbd7a 100644 --- a/src/components/ModuleButtons/ShellButton.tsx +++ b/src/components/ModuleButtons/ShellButton.tsx @@ -1,4 +1,4 @@ -import { asset } from '../../core/blitzkrieg/asset'; +import { asset } from '../../core/blitzrinth/asset'; import { GenericTankComponentButton } from './GenericTankComponentButton'; import { TankComponentButtonProps } from './TankComponentButton'; diff --git a/src/components/ModuleManager.tsx b/src/components/ModuleManager.tsx index b8d40093b..802a50770 100644 --- a/src/components/ModuleManager.tsx +++ b/src/components/ModuleManager.tsx @@ -7,8 +7,8 @@ import { TankDefinition, TrackDefinition, TurretDefinition, -} from '../core/blitzkrieg/tankDefinitions'; -import { TIER_ROMAN_NUMERALS } from '../core/blitzkrieg/tankDefinitions/constants'; +} from '../core/blitzrinth/tankDefinitions'; +import { TIER_ROMAN_NUMERALS } from '../core/blitzrinth/tankDefinitions/constants'; import { ModuleButton } from './ModuleButtons/ModuleButton'; interface ModuleManagerProps { diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index 8bd2f3dd8..35ed288e4 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 { BlitzkriegWormWide } from '../../icons/BlitzkriegWormWide'; +import { BlitzrinthWormWide } from '../../icons/BlitzrinthWormWide'; import { PatreonIcon } from '../../icons/Patreon'; import { theme } from '../../stitches.config'; @@ -101,7 +101,7 @@ export default function Navbar() { justifyContent: 'center', }} > - +
diff --git a/src/components/SmallTankIcon.tsx b/src/components/SmallTankIcon.tsx index a324c818d..10ca1875e 100644 --- a/src/components/SmallTankIcon.tsx +++ b/src/components/SmallTankIcon.tsx @@ -1,4 +1,4 @@ -import { asset } from '../core/blitzkrieg/asset'; +import { asset } from '../core/blitzrinth/asset'; interface SmallTankIconProps { id: number; diff --git a/src/components/Tanks/components/Item/constants.ts b/src/components/Tanks/components/Item/constants.ts index e0eda4cf9..2d2dbe48f 100644 --- a/src/components/Tanks/components/Item/constants.ts +++ b/src/components/Tanks/components/Item/constants.ts @@ -3,7 +3,7 @@ import { TANK_ICONS, TANK_ICONS_COLLECTOR, TANK_ICONS_PREMIUM, -} from '../../../../core/blitzkrieg/tankDefinitions/constants'; +} from '../../../../core/blitzrinth/tankDefinitions/constants'; export const TREE_TYPES = ['researchable', 'premium', 'collector'] as const; // BIG TODO: REMOVE THIS AFTER LOCALIZATION diff --git a/src/components/TierWeights.tsx b/src/components/TierWeights.tsx index 199487046..61f53639c 100644 --- a/src/components/TierWeights.tsx +++ b/src/components/TierWeights.tsx @@ -1,4 +1,4 @@ -import { Tier } from '../core/blitzkrieg/tankDefinitions'; +import { Tier } from '../core/blitzrinth/tankDefinitions'; import { theme } from '../stitches.config'; export type TierWeightsRecord = Partial>; diff --git a/src/constants/equipmentPrice.ts b/src/constants/equipmentPrice.ts index 115d05fd8..56a2b35fe 100644 --- a/src/constants/equipmentPrice.ts +++ b/src/constants/equipmentPrice.ts @@ -1,5 +1,5 @@ import { Vector3Tuple } from 'three'; -import { Tier } from '../core/blitzkrieg/tankDefinitions'; +import { Tier } from '../core/blitzrinth/tankDefinitions'; export const equipmentPriceMatrix: Record = { 1: [100, 200, 300], diff --git a/src/core/blitz/applyPitchYawLimits.ts b/src/core/blitz/applyPitchYawLimits.ts index 580e1f545..b625655b1 100644 --- a/src/core/blitz/applyPitchYawLimits.ts +++ b/src/core/blitz/applyPitchYawLimits.ts @@ -1,6 +1,6 @@ import { clamp } from 'lodash'; import { degToRad } from 'three/src/math/MathUtils'; -import { PitchLimits, YawLimits } from '../blitzkrieg/modelDefinitions'; +import { PitchLimits, YawLimits } from '../blitzrinth/modelDefinitions'; import { normalizeAngleRad } from '../math/normalizeAngleRad'; export function applyPitchYawLimits( diff --git a/src/core/blitz/canRicochet.ts b/src/core/blitz/canRicochet.ts index fc03a9a99..bb157b172 100644 --- a/src/core/blitz/canRicochet.ts +++ b/src/core/blitz/canRicochet.ts @@ -1,4 +1,4 @@ -import { ShellDefinition } from '../blitzkrieg/tankDefinitions'; +import { ShellDefinition } from '../blitzrinth/tankDefinitions'; export function canRicochet( type: ShellDefinition['type'], diff --git a/src/core/blitz/canSplash.ts b/src/core/blitz/canSplash.ts index 85e3d82eb..ea342acb1 100644 --- a/src/core/blitz/canSplash.ts +++ b/src/core/blitz/canSplash.ts @@ -1,4 +1,4 @@ -import { ShellDefinition } from '../blitzkrieg/tankDefinitions'; +import { ShellDefinition } from '../blitzrinth/tankDefinitions'; export function canSplash(type: ShellDefinition['type']): type is 'he' { return type === 'he'; diff --git a/src/core/blitz/extractModel/index.ts b/src/core/blitz/extractModel/index.ts index 743c458ee..1f8ad51d7 100644 --- a/src/core/blitz/extractModel/index.ts +++ b/src/core/blitz/extractModel/index.ts @@ -2,8 +2,8 @@ import { Document, Material, Node, Scene } from '@gltf-transform/core'; import { times } from 'lodash'; import { dirname } from 'path'; import { Matrix4, Quaternion, Vector3, Vector4Tuple } from 'three'; -import { readTexture } from '../../blitzkrieg/readTexture'; -import { TextureMutation } from '../../blitzkrieg/readTexture/constants'; +import { readTexture } from '../../blitzrinth/readTexture'; +import { TextureMutation } from '../../blitzrinth/readTexture/constants'; import { Hierarchy, Sc2ReadStream, Textures } from '../../streams/sc2'; import { ScgReadStream } from '../../streams/scg'; import { VertexAttribute } from '../../streams/scpg'; diff --git a/src/core/blitz/fetchBlitz.ts b/src/core/blitz/fetchBlitz.ts index cc2df8816..19454ed00 100644 --- a/src/core/blitz/fetchBlitz.ts +++ b/src/core/blitz/fetchBlitz.ts @@ -1,6 +1,6 @@ import { Region } from '../../constants/regions'; import { WARGAMING_APPLICATION_ID } from '../../constants/wargamingApplicationID'; -import { patientFetch } from '../blitzkrieg/patientFetch'; +import { patientFetch } from '../blitzrinth/patientFetch'; type BlitzResponse = | { diff --git a/src/core/blitz/getRatingInfo.ts b/src/core/blitz/getRatingInfo.ts index 1b6c6d2cd..1bfa2a794 100644 --- a/src/core/blitz/getRatingInfo.ts +++ b/src/core/blitz/getRatingInfo.ts @@ -1,7 +1,7 @@ import { RatingInfo } from '../../commands/ratingLeaderboard'; import { Region } from '../../constants/regions'; -import { context } from '../blitzkrieg/context'; -import { patientFetch } from '../blitzkrieg/patientFetch'; +import { context } from '../blitzrinth/context'; +import { patientFetch } from '../blitzrinth/patientFetch'; import regionToRegionSubdomain from './regionToRegionSubdomain'; const cache: Partial> = {}; diff --git a/src/core/blitz/getRatingLeague.ts b/src/core/blitz/getRatingLeague.ts index d3ecd7ea5..439ea9bb7 100644 --- a/src/core/blitz/getRatingLeague.ts +++ b/src/core/blitz/getRatingLeague.ts @@ -1,7 +1,7 @@ import { LeagueTop, RatingPlayer } from '../../commands/ratingLeaderboard'; import { Region } from '../../constants/regions'; -import { context } from '../blitzkrieg/context'; -import { patientFetch } from '../blitzkrieg/patientFetch'; +import { context } from '../blitzrinth/context'; +import { patientFetch } from '../blitzrinth/patientFetch'; import regionToRegionSubdomain from './regionToRegionSubdomain'; export async function getRatingLeague( diff --git a/src/core/blitz/getRatingNeighbors.ts b/src/core/blitz/getRatingNeighbors.ts index 1f747820c..d3ed550af 100644 --- a/src/core/blitz/getRatingNeighbors.ts +++ b/src/core/blitz/getRatingNeighbors.ts @@ -1,7 +1,7 @@ import { RatingNeighbors } from '../../commands/ratingLeaderboard'; import { Region } from '../../constants/regions'; -import { patientFetch } from '../blitzkrieg/patientFetch'; -import { withCORSProxy } from '../blitzkrieg/withCORSProxy'; +import { patientFetch } from '../blitzrinth/patientFetch'; +import { withCORSProxy } from '../blitzrinth/withCORSProxy'; import regionToRegionSubdomain from './regionToRegionSubdomain'; export async function getRatingNeighbors( diff --git a/src/core/blitz/isExplosive.ts b/src/core/blitz/isExplosive.ts index cd0e0984f..60dd2209a 100644 --- a/src/core/blitz/isExplosive.ts +++ b/src/core/blitz/isExplosive.ts @@ -1,4 +1,4 @@ -import { ShellDefinition } from '../blitzkrieg/tankDefinitions'; +import { ShellDefinition } from '../blitzrinth/tankDefinitions'; export function isExplosive( type: ShellDefinition['type'], diff --git a/src/core/blitz/resolveTankId.ts b/src/core/blitz/resolveTankId.ts index 1de2635a7..eea7e74aa 100644 --- a/src/core/blitz/resolveTankId.ts +++ b/src/core/blitz/resolveTankId.ts @@ -2,7 +2,7 @@ import { Locale } from 'discord.js'; import { go } from 'fuzzysort'; import markdownEscape from 'markdown-escape'; import { UserError } from '../../hooks/userError'; -import { tankDefinitions, tankNames } from '../blitzkrieg/tankDefinitions'; +import { tankDefinitions, tankNames } from '../blitzrinth/tankDefinitions'; import { tankNamesTechTreeOnly } from '../discord/autocompleteTanks'; import { translator } from '../localization/translator'; diff --git a/src/core/blitz/searchCurrentRatingPlayers.ts b/src/core/blitz/searchCurrentRatingPlayers.ts index 55b3c7d83..02003feb7 100644 --- a/src/core/blitz/searchCurrentRatingPlayers.ts +++ b/src/core/blitz/searchCurrentRatingPlayers.ts @@ -1,5 +1,5 @@ import { Region } from '../../constants/regions'; -import { context } from '../blitzkrieg/context'; +import { context } from '../blitzrinth/context'; import regionToRegionSubdomain from './regionToRegionSubdomain'; type CurrentRatingPlayerSearch = Record< diff --git a/src/core/blitzkrieg/asset.ts b/src/core/blitzrinth/asset.ts similarity index 64% rename from src/core/blitzkrieg/asset.ts rename to src/core/blitzrinth/asset.ts index b8c31f25d..0f1a6d318 100644 --- a/src/core/blitzkrieg/asset.ts +++ b/src/core/blitzrinth/asset.ts @@ -1,5 +1,5 @@ import isDev from './isDev'; export function asset(path: string) { - return `https://raw.githubusercontent.com/tresabhi/blitzkrieg-assets/${isDev() ? 'dev' : 'main'}/${path}`; + return `https://raw.githubusercontent.com/tresabhi/blitzrinth-assets/${isDev() ? 'dev' : 'main'}/${path}`; } diff --git a/src/core/blitzkrieg/assignDuelMember.ts b/src/core/blitzrinth/assignDuelMember.ts similarity index 100% rename from src/core/blitzkrieg/assignDuelMember.ts rename to src/core/blitzrinth/assignDuelMember.ts diff --git a/src/core/blitzkrieg/availableProvisions.ts b/src/core/blitzrinth/availableProvisions.ts similarity index 100% rename from src/core/blitzkrieg/availableProvisions.ts rename to src/core/blitzrinth/availableProvisions.ts diff --git a/src/core/blitzkrieg/buildTechTreeLine.ts b/src/core/blitzrinth/buildTechTreeLine.ts similarity index 100% rename from src/core/blitzkrieg/buildTechTreeLine.ts rename to src/core/blitzrinth/buildTechTreeLine.ts diff --git a/src/core/blitzkrieg/checkConsumableProvisionInclusivity.ts b/src/core/blitzrinth/checkConsumableProvisionInclusivity.ts similarity index 100% rename from src/core/blitzkrieg/checkConsumableProvisionInclusivity.ts rename to src/core/blitzrinth/checkConsumableProvisionInclusivity.ts diff --git a/src/core/blitzkrieg/coefficient.ts b/src/core/blitzrinth/coefficient.ts similarity index 100% rename from src/core/blitzkrieg/coefficient.ts rename to src/core/blitzrinth/coefficient.ts diff --git a/src/core/blitzkrieg/commitAssets.ts b/src/core/blitzrinth/commitAssets.ts similarity index 94% rename from src/core/blitzkrieg/commitAssets.ts rename to src/core/blitzrinth/commitAssets.ts index 9b5b93be8..2fb1d5fe2 100644 --- a/src/core/blitzkrieg/commitAssets.ts +++ b/src/core/blitzrinth/commitAssets.ts @@ -12,7 +12,7 @@ export async function commitAssets( await commitMultipleFiles( 'tresabhi', - 'blitzkrieg-assets', + 'blitzrinth-assets', production ? 'main' : 'dev', `${message} - ${new Date().toDateString()}`, changes, diff --git a/src/core/blitzkrieg/commitMultipleFiles.ts b/src/core/blitzrinth/commitMultipleFiles.ts similarity index 100% rename from src/core/blitzkrieg/commitMultipleFiles.ts rename to src/core/blitzrinth/commitMultipleFiles.ts diff --git a/src/core/blitzkrieg/consumableDefinitions.ts b/src/core/blitzrinth/consumableDefinitions.ts similarity index 100% rename from src/core/blitzkrieg/consumableDefinitions.ts rename to src/core/blitzrinth/consumableDefinitions.ts diff --git a/src/core/blitzkrieg/context.ts b/src/core/blitzrinth/context.ts similarity index 100% rename from src/core/blitzkrieg/context.ts rename to src/core/blitzrinth/context.ts diff --git a/src/core/blitzkrieg/createBlob.ts b/src/core/blitzrinth/createBlob.ts similarity index 100% rename from src/core/blitzkrieg/createBlob.ts rename to src/core/blitzrinth/createBlob.ts diff --git a/src/core/blitzkrieg/createDefaultSkills.ts b/src/core/blitzrinth/createDefaultSkills.ts similarity index 100% rename from src/core/blitzkrieg/createDefaultSkills.ts rename to src/core/blitzrinth/createDefaultSkills.ts diff --git a/src/core/blitzkrieg/degressiveStat.ts b/src/core/blitzrinth/degressiveStat.ts similarity index 100% rename from src/core/blitzkrieg/degressiveStat.ts rename to src/core/blitzrinth/degressiveStat.ts diff --git a/src/core/blitzkrieg/discordBlitzLink.ts b/src/core/blitzrinth/discordBlitzLink.ts similarity index 100% rename from src/core/blitzkrieg/discordBlitzLink.ts rename to src/core/blitzrinth/discordBlitzLink.ts diff --git a/src/core/blitzkrieg/emblemURL.ts b/src/core/blitzrinth/emblemURL.ts similarity index 100% rename from src/core/blitzkrieg/emblemURL.ts rename to src/core/blitzrinth/emblemURL.ts diff --git a/src/core/blitzkrieg/equipmentDefinitions.ts b/src/core/blitzrinth/equipmentDefinitions.ts similarity index 100% rename from src/core/blitzkrieg/equipmentDefinitions.ts rename to src/core/blitzrinth/equipmentDefinitions.ts diff --git a/src/core/blitzkrieg/eventManager.ts b/src/core/blitzrinth/eventManager.ts similarity index 100% rename from src/core/blitzkrieg/eventManager.ts rename to src/core/blitzrinth/eventManager.ts diff --git a/src/core/blitzkrieg/fetchCdonLz4.ts b/src/core/blitzrinth/fetchCdonLz4.ts similarity index 100% rename from src/core/blitzkrieg/fetchCdonLz4.ts rename to src/core/blitzrinth/fetchCdonLz4.ts diff --git a/src/core/blitzkrieg/filtersToDescription.ts b/src/core/blitzrinth/filtersToDescription.ts similarity index 100% rename from src/core/blitzkrieg/filtersToDescription.ts rename to src/core/blitzrinth/filtersToDescription.ts diff --git a/src/core/blitzkrieg/gameDefinitions.ts b/src/core/blitzrinth/gameDefinitions.ts similarity index 100% rename from src/core/blitzkrieg/gameDefinitions.ts rename to src/core/blitzrinth/gameDefinitions.ts diff --git a/src/core/blitzkrieg/getArchivedLatestSeasonNumber.ts b/src/core/blitzrinth/getArchivedLatestSeasonNumber.ts similarity index 95% rename from src/core/blitzkrieg/getArchivedLatestSeasonNumber.ts rename to src/core/blitzrinth/getArchivedLatestSeasonNumber.ts index 22216d380..3b3e99a3c 100644 --- a/src/core/blitzkrieg/getArchivedLatestSeasonNumber.ts +++ b/src/core/blitzrinth/getArchivedLatestSeasonNumber.ts @@ -16,7 +16,7 @@ export async function getArchivedLatestSeasonNumber() { if (ratingInfo.detail) { const regionsURL = ( (await fetch( - 'https://api.github.com/repos/tresabhi/blitzkrieg-assets/git/trees/main', + 'https://api.github.com/repos/tresabhi/blitzrinth-assets/git/trees/main', ).then((response) => response.json())) as GitHubTrees ).tree.find(({ path }) => path === 'regions')!.url; const comURL = ( diff --git a/src/core/blitzkrieg/getArchivedRatingInfo.ts b/src/core/blitzrinth/getArchivedRatingInfo.ts similarity index 100% rename from src/core/blitzkrieg/getArchivedRatingInfo.ts rename to src/core/blitzrinth/getArchivedRatingInfo.ts diff --git a/src/core/blitzkrieg/getArchivedRatingLeaderboard.ts b/src/core/blitzrinth/getArchivedRatingLeaderboard.ts similarity index 100% rename from src/core/blitzkrieg/getArchivedRatingLeaderboard.ts rename to src/core/blitzrinth/getArchivedRatingLeaderboard.ts diff --git a/src/core/blitzkrieg/getArchivedRatingMidnightLeaderboard.ts b/src/core/blitzrinth/getArchivedRatingMidnightLeaderboard.ts similarity index 100% rename from src/core/blitzkrieg/getArchivedRatingMidnightLeaderboard.ts rename to src/core/blitzrinth/getArchivedRatingMidnightLeaderboard.ts diff --git a/src/core/blitzkrieg/getClientId.ts b/src/core/blitzrinth/getClientId.ts similarity index 100% rename from src/core/blitzkrieg/getClientId.ts rename to src/core/blitzrinth/getClientId.ts diff --git a/src/core/blitzkrieg/getPeriodNow.ts b/src/core/blitzrinth/getPeriodNow.ts similarity index 100% rename from src/core/blitzkrieg/getPeriodNow.ts rename to src/core/blitzrinth/getPeriodNow.ts diff --git a/src/core/blitzkrieg/getPeriodStart.ts b/src/core/blitzrinth/getPeriodStart.ts similarity index 100% rename from src/core/blitzkrieg/getPeriodStart.ts rename to src/core/blitzrinth/getPeriodStart.ts diff --git a/src/core/blitzkrieg/getTankHistories.ts b/src/core/blitzrinth/getTankHistories.ts similarity index 100% rename from src/core/blitzkrieg/getTankHistories.ts rename to src/core/blitzrinth/getTankHistories.ts diff --git a/src/core/blitzkrieg/getTimeDaysAgo.ts b/src/core/blitzrinth/getTimeDaysAgo.ts similarity index 100% rename from src/core/blitzkrieg/getTimeDaysAgo.ts rename to src/core/blitzrinth/getTimeDaysAgo.ts diff --git a/src/core/blitzkrieg/hasEquipment.ts b/src/core/blitzrinth/hasEquipment.ts similarity index 100% rename from src/core/blitzkrieg/hasEquipment.ts rename to src/core/blitzrinth/hasEquipment.ts diff --git a/src/core/blitzkrieg/iconPng.ts b/src/core/blitzrinth/iconPng.ts similarity index 100% rename from src/core/blitzkrieg/iconPng.ts rename to src/core/blitzrinth/iconPng.ts diff --git a/src/core/blitzkrieg/isDev.ts b/src/core/blitzrinth/isDev.ts similarity index 70% rename from src/core/blitzkrieg/isDev.ts rename to src/core/blitzrinth/isDev.ts index 4d7e00762..78e23339e 100644 --- a/src/core/blitzkrieg/isDev.ts +++ b/src/core/blitzrinth/isDev.ts @@ -1,4 +1,10 @@ -const devHostStartNames = ['blitzkrieg-', 'localhost', 'betakrieg', 'devkrieg']; +const devHostStartNames = [ + 'blitzkrieg-', + 'localhost', + 'betakrieg', + 'devkrieg', + 'blitzrinth-', +]; export default function isDev() { return ( diff --git a/src/core/blitzkrieg/isLocalhost.ts b/src/core/blitzrinth/isLocalhost.ts similarity index 100% rename from src/core/blitzkrieg/isLocalhost.ts rename to src/core/blitzrinth/isLocalhost.ts diff --git a/src/core/blitzkrieg/jsxToPng.ts b/src/core/blitzrinth/jsxToPng.ts similarity index 100% rename from src/core/blitzkrieg/jsxToPng.ts rename to src/core/blitzrinth/jsxToPng.ts diff --git a/src/core/blitzkrieg/jsxToPngThreaded.ts b/src/core/blitzrinth/jsxToPngThreaded.ts similarity index 100% rename from src/core/blitzkrieg/jsxToPngThreaded.ts rename to src/core/blitzrinth/jsxToPngThreaded.ts diff --git a/src/core/blitzkrieg/jsxToSvg/Roboto-Black.ttf b/src/core/blitzrinth/jsxToSvg/Roboto-Black.ttf similarity index 100% rename from src/core/blitzkrieg/jsxToSvg/Roboto-Black.ttf rename to src/core/blitzrinth/jsxToSvg/Roboto-Black.ttf diff --git a/src/core/blitzkrieg/jsxToSvg/Roboto-Bold.ttf b/src/core/blitzrinth/jsxToSvg/Roboto-Bold.ttf similarity index 100% rename from src/core/blitzkrieg/jsxToSvg/Roboto-Bold.ttf rename to src/core/blitzrinth/jsxToSvg/Roboto-Bold.ttf diff --git a/src/core/blitzkrieg/jsxToSvg/Roboto.ttf b/src/core/blitzrinth/jsxToSvg/Roboto.ttf similarity index 100% rename from src/core/blitzkrieg/jsxToSvg/Roboto.ttf rename to src/core/blitzrinth/jsxToSvg/Roboto.ttf diff --git a/src/core/blitzkrieg/jsxToSvg/index.ts b/src/core/blitzrinth/jsxToSvg/index.ts similarity index 100% rename from src/core/blitzkrieg/jsxToSvg/index.ts rename to src/core/blitzrinth/jsxToSvg/index.ts diff --git a/src/core/blitzkrieg/jsxTree.tsx b/src/core/blitzrinth/jsxTree.tsx similarity index 100% rename from src/core/blitzkrieg/jsxTree.tsx rename to src/core/blitzrinth/jsxTree.tsx diff --git a/src/core/blitzkrieg/modelDefinitions.ts b/src/core/blitzrinth/modelDefinitions.ts similarity index 100% rename from src/core/blitzkrieg/modelDefinitions.ts rename to src/core/blitzrinth/modelDefinitions.ts diff --git a/src/core/blitzkrieg/modelTransform.ts b/src/core/blitzrinth/modelTransform.ts similarity index 100% rename from src/core/blitzkrieg/modelTransform.ts rename to src/core/blitzrinth/modelTransform.ts diff --git a/src/core/blitzkrieg/nameToArmorId.ts b/src/core/blitzrinth/nameToArmorId.ts similarity index 100% rename from src/core/blitzkrieg/nameToArmorId.ts rename to src/core/blitzrinth/nameToArmorId.ts diff --git a/src/core/blitzkrieg/normalizeBoundingBox.ts b/src/core/blitzrinth/normalizeBoundingBox.ts similarity index 100% rename from src/core/blitzkrieg/normalizeBoundingBox.ts rename to src/core/blitzrinth/normalizeBoundingBox.ts diff --git a/src/core/blitzkrieg/octokit.ts b/src/core/blitzrinth/octokit.ts similarity index 100% rename from src/core/blitzkrieg/octokit.ts rename to src/core/blitzrinth/octokit.ts diff --git a/src/core/blitzkrieg/patientFetch.ts b/src/core/blitzrinth/patientFetch.ts similarity index 100% rename from src/core/blitzkrieg/patientFetch.ts rename to src/core/blitzrinth/patientFetch.ts diff --git a/src/core/blitzkrieg/patientFetchJSON.ts b/src/core/blitzrinth/patientFetchJSON.ts similarity index 100% rename from src/core/blitzkrieg/patientFetchJSON.ts rename to src/core/blitzrinth/patientFetchJSON.ts diff --git a/src/core/blitzkrieg/pose.ts b/src/core/blitzrinth/pose.ts similarity index 100% rename from src/core/blitzkrieg/pose.ts rename to src/core/blitzrinth/pose.ts diff --git a/src/core/blitzkrieg/processes.ts b/src/core/blitzrinth/processes.ts similarity index 100% rename from src/core/blitzkrieg/processes.ts rename to src/core/blitzrinth/processes.ts diff --git a/src/core/blitzkrieg/progressiveStat.ts b/src/core/blitzrinth/progressiveStat.ts similarity index 100% rename from src/core/blitzkrieg/progressiveStat.ts rename to src/core/blitzrinth/progressiveStat.ts diff --git a/src/core/blitzkrieg/provisionDefinitions.ts b/src/core/blitzrinth/provisionDefinitions.ts similarity index 100% rename from src/core/blitzkrieg/provisionDefinitions.ts rename to src/core/blitzrinth/provisionDefinitions.ts diff --git a/src/core/blitzkrieg/pushTankopediaPath.ts b/src/core/blitzrinth/pushTankopediaPath.ts similarity index 100% rename from src/core/blitzkrieg/pushTankopediaPath.ts rename to src/core/blitzrinth/pushTankopediaPath.ts diff --git a/src/core/blitzkrieg/readTexture/constants.ts b/src/core/blitzrinth/readTexture/constants.ts similarity index 100% rename from src/core/blitzkrieg/readTexture/constants.ts rename to src/core/blitzrinth/readTexture/constants.ts diff --git a/src/core/blitzkrieg/readTexture/index.ts b/src/core/blitzrinth/readTexture/index.ts similarity index 100% rename from src/core/blitzkrieg/readTexture/index.ts rename to src/core/blitzrinth/readTexture/index.ts diff --git a/src/core/blitzkrieg/resetSession.ts b/src/core/blitzrinth/resetSession.ts similarity index 100% rename from src/core/blitzkrieg/resetSession.ts rename to src/core/blitzrinth/resetSession.ts diff --git a/src/core/blitzkrieg/resolveAncestry.ts b/src/core/blitzrinth/resolveAncestry.ts similarity index 100% rename from src/core/blitzkrieg/resolveAncestry.ts rename to src/core/blitzrinth/resolveAncestry.ts diff --git a/src/core/blitzkrieg/resolveDpm.ts b/src/core/blitzrinth/resolveDpm.ts similarity index 100% rename from src/core/blitzkrieg/resolveDpm.ts rename to src/core/blitzrinth/resolveDpm.ts diff --git a/src/core/blitzkrieg/resolveReload.ts b/src/core/blitzrinth/resolveReload.ts similarity index 100% rename from src/core/blitzkrieg/resolveReload.ts rename to src/core/blitzrinth/resolveReload.ts diff --git a/src/core/blitzkrieg/resolveThickness.ts b/src/core/blitzrinth/resolveThickness.ts similarity index 100% rename from src/core/blitzkrieg/resolveThickness.ts rename to src/core/blitzrinth/resolveThickness.ts diff --git a/src/core/blitzkrieg/secrets.ts b/src/core/blitzrinth/secrets.ts similarity index 100% rename from src/core/blitzkrieg/secrets.ts rename to src/core/blitzrinth/secrets.ts diff --git a/src/core/blitzkrieg/setSession.ts b/src/core/blitzrinth/setSession.ts similarity index 100% rename from src/core/blitzkrieg/setSession.ts rename to src/core/blitzrinth/setSession.ts diff --git a/src/core/blitzkrieg/skillDefinitions.ts b/src/core/blitzrinth/skillDefinitions.ts similarity index 100% rename from src/core/blitzkrieg/skillDefinitions.ts rename to src/core/blitzrinth/skillDefinitions.ts diff --git a/src/core/blitzkrieg/sum.ts b/src/core/blitzrinth/sum.ts similarity index 100% rename from src/core/blitzkrieg/sum.ts rename to src/core/blitzrinth/sum.ts diff --git a/src/core/blitzkrieg/superCompress.ts b/src/core/blitzrinth/superCompress.ts similarity index 100% rename from src/core/blitzkrieg/superCompress.ts rename to src/core/blitzrinth/superCompress.ts diff --git a/src/core/blitzkrieg/superDecompress.ts b/src/core/blitzrinth/superDecompress.ts similarity index 100% rename from src/core/blitzkrieg/superDecompress.ts rename to src/core/blitzrinth/superDecompress.ts diff --git a/src/core/blitzkrieg/svgToPng.ts b/src/core/blitzrinth/svgToPng.ts similarity index 100% rename from src/core/blitzkrieg/svgToPng.ts rename to src/core/blitzrinth/svgToPng.ts diff --git a/src/core/blitzkrieg/svgToPngThreaded.ts b/src/core/blitzrinth/svgToPngThreaded.ts similarity index 100% rename from src/core/blitzkrieg/svgToPngThreaded.ts rename to src/core/blitzrinth/svgToPngThreaded.ts diff --git a/src/core/blitzkrieg/tankCharacteristics.ts b/src/core/blitzrinth/tankCharacteristics.ts similarity index 100% rename from src/core/blitzkrieg/tankCharacteristics.ts rename to src/core/blitzrinth/tankCharacteristics.ts diff --git a/src/core/blitzkrieg/tankDefinitions/constants.ts b/src/core/blitzrinth/tankDefinitions/constants.ts similarity index 100% rename from src/core/blitzkrieg/tankDefinitions/constants.ts rename to src/core/blitzrinth/tankDefinitions/constants.ts diff --git a/src/core/blitzkrieg/tankDefinitions/index.ts b/src/core/blitzrinth/tankDefinitions/index.ts similarity index 100% rename from src/core/blitzkrieg/tankDefinitions/index.ts rename to src/core/blitzrinth/tankDefinitions/index.ts diff --git a/src/core/blitzkrieg/tankIcon.ts b/src/core/blitzrinth/tankIcon.ts similarity index 100% rename from src/core/blitzkrieg/tankIcon.ts rename to src/core/blitzrinth/tankIcon.ts diff --git a/src/core/blitzkrieg/tankIconPng.ts b/src/core/blitzrinth/tankIconPng.ts similarity index 100% rename from src/core/blitzkrieg/tankIconPng.ts rename to src/core/blitzrinth/tankIconPng.ts diff --git a/src/core/blitzkrieg/tankToCompareMember.ts b/src/core/blitzrinth/tankToCompareMember.ts similarity index 100% rename from src/core/blitzkrieg/tankToCompareMember.ts rename to src/core/blitzrinth/tankToCompareMember.ts diff --git a/src/core/blitzkrieg/tankToDuelMember.ts b/src/core/blitzrinth/tankToDuelMember.ts similarity index 100% rename from src/core/blitzkrieg/tankToDuelMember.ts rename to src/core/blitzrinth/tankToDuelMember.ts diff --git a/src/core/blitzkrieg/unionBoundingBox.ts b/src/core/blitzrinth/unionBoundingBox.ts similarity index 100% rename from src/core/blitzkrieg/unionBoundingBox.ts rename to src/core/blitzrinth/unionBoundingBox.ts diff --git a/src/core/blitzkrieg/withCORSProxy.ts b/src/core/blitzrinth/withCORSProxy.ts similarity index 100% rename from src/core/blitzkrieg/withCORSProxy.ts rename to src/core/blitzrinth/withCORSProxy.ts diff --git a/src/core/blitzstars/getStatsInPeriod/index.ts b/src/core/blitzstars/getStatsInPeriod/index.ts index 38b9afd6b..35d596c1e 100644 --- a/src/core/blitzstars/getStatsInPeriod/index.ts +++ b/src/core/blitzstars/getStatsInPeriod/index.ts @@ -4,7 +4,7 @@ import { AllStats } from '../../blitz/getAccountInfo'; import getTankHistories, { TankHistories, TankHistoryRaw, -} from '../../blitzkrieg/getTankHistories'; +} from '../../blitzrinth/getTankHistories'; import { emptyAllStats } from './constants'; const emptyTankHistoryNode: TankHistoryRaw = { diff --git a/src/core/blitzstars/tankAverages.ts b/src/core/blitzstars/tankAverages.ts index 4a80d832f..35d80b30b 100644 --- a/src/core/blitzstars/tankAverages.ts +++ b/src/core/blitzstars/tankAverages.ts @@ -1,6 +1,6 @@ import { AllStats } from '../blitz/getAccountInfo'; -import { context } from '../blitzkrieg/context'; -import { tankDefinitions } from '../blitzkrieg/tankDefinitions'; +import { context } from '../blitzrinth/context'; +import { tankDefinitions } from '../blitzrinth/tankDefinitions'; interface SpecialStats { winrate: number; diff --git a/src/core/discord/addPeriodicFilterOptions.ts b/src/core/discord/addPeriodicFilterOptions.ts index e5a9d7f18..1d2eb8b6e 100644 --- a/src/core/discord/addPeriodicFilterOptions.ts +++ b/src/core/discord/addPeriodicFilterOptions.ts @@ -3,7 +3,7 @@ import { SlashCommandSubcommandBuilder, SlashCommandSubcommandGroupBuilder, } from 'discord.js'; -import { NATIONS } from '../blitzkrieg/tankDefinitions'; +import { NATIONS } from '../blitzrinth/tankDefinitions'; import { addFilterOptions } from './addFilterOptions'; import { addPeriodSubCommands } from './addPeriodSubCommands'; diff --git a/src/core/discord/autocompleteTanks.ts b/src/core/discord/autocompleteTanks.ts index 312ab7c91..f3910e6c7 100644 --- a/src/core/discord/autocompleteTanks.ts +++ b/src/core/discord/autocompleteTanks.ts @@ -4,7 +4,7 @@ import { CacheType, } from 'discord.js'; import { go } from 'fuzzysort'; -import { tankNames } from '../blitzkrieg/tankDefinitions'; +import { tankNames } from '../blitzrinth/tankDefinitions'; import { DISCORD_CHOICES_MAX_NAME_SIZE, OVERFLOW_SUFFIX, diff --git a/src/core/discord/manager.ts b/src/core/discord/manager.ts index 700b47607..755aa3b50 100644 --- a/src/core/discord/manager.ts +++ b/src/core/discord/manager.ts @@ -1,5 +1,5 @@ import { ShardingManager } from 'discord.js'; -import { secrets } from '../blitzkrieg/secrets'; +import { secrets } from '../blitzrinth/secrets'; export const manager = new ShardingManager(`${__dirname}/bot.cjs`, { token: secrets.DISCORD_TOKEN, diff --git a/src/core/discord/normalizeInteractionReturnable.ts b/src/core/discord/normalizeInteractionReturnable.ts index cfaa7750c..41f8cfde8 100644 --- a/src/core/discord/normalizeInteractionReturnable.ts +++ b/src/core/discord/normalizeInteractionReturnable.ts @@ -8,7 +8,7 @@ import { MessageEditOptions, } from 'discord.js'; import { InteractionReturnable } from '../../events/interactionCreate'; -import jsxToPngThreaded from '../blitzkrieg/jsxToPngThreaded'; +import jsxToPngThreaded from '../blitzrinth/jsxToPngThreaded'; export default async function normalizeInteractionReturnable( returnable: InteractionReturnable, diff --git a/src/core/discord/resolvePeriodFromButton.ts b/src/core/discord/resolvePeriodFromButton.ts index ce1bc95ec..bab278a54 100644 --- a/src/core/discord/resolvePeriodFromButton.ts +++ b/src/core/discord/resolvePeriodFromButton.ts @@ -1,8 +1,8 @@ import { ButtonInteraction } from 'discord.js'; import { Region } from '../../constants/regions'; -import getPeriodNow from '../blitzkrieg/getPeriodNow'; -import getPeriodStart from '../blitzkrieg/getPeriodStart'; -import getTimeDaysAgo from '../blitzkrieg/getTimeDaysAgo'; +import getPeriodNow from '../blitzrinth/getPeriodNow'; +import getPeriodStart from '../blitzrinth/getPeriodStart'; +import getTimeDaysAgo from '../blitzrinth/getTimeDaysAgo'; import { PeriodType } from './addPeriodSubCommands'; import { getPeriodOptionName } from './getPeriodOptionName'; import { ResolvedPeriod } from './resolvePeriodFromCommand'; diff --git a/src/core/discord/resolvePeriodFromCommand.ts b/src/core/discord/resolvePeriodFromCommand.ts index 4accc8e7e..a5c98d67d 100644 --- a/src/core/discord/resolvePeriodFromCommand.ts +++ b/src/core/discord/resolvePeriodFromCommand.ts @@ -1,8 +1,8 @@ import { CacheType, ChatInputCommandInteraction } from 'discord.js'; import { Region } from '../../constants/regions'; -import getPeriodNow from '../blitzkrieg/getPeriodNow'; -import getPeriodStart from '../blitzkrieg/getPeriodStart'; -import getTimeDaysAgo from '../blitzkrieg/getTimeDaysAgo'; +import getPeriodNow from '../blitzrinth/getPeriodNow'; +import getPeriodStart from '../blitzrinth/getPeriodStart'; +import getTimeDaysAgo from '../blitzrinth/getTimeDaysAgo'; import { translator } from '../localization/translator'; import { PeriodType } from './addPeriodSubCommands'; import { getPeriodOptionName } from './getPeriodOptionName'; diff --git a/src/core/discord/resolvePlayerFromCommand/index.ts b/src/core/discord/resolvePlayerFromCommand/index.ts index d658624e1..027700cb8 100644 --- a/src/core/discord/resolvePlayerFromCommand/index.ts +++ b/src/core/discord/resolvePlayerFromCommand/index.ts @@ -3,7 +3,7 @@ import markdownEscape from 'markdown-escape'; import { Region } from '../../../constants/regions'; import { UserError } from '../../../hooks/userError'; import searchPlayersAcrossRegions from '../../blitz/searchPlayersAcrossRegions'; -import { getBlitzFromDiscord } from '../../blitzkrieg/discordBlitzLink'; +import { getBlitzFromDiscord } from '../../blitzrinth/discordBlitzLink'; import { translator } from '../../localization/translator'; import { serverAndIdPattern } from './constants'; diff --git a/src/core/github/assetCommit.ts b/src/core/github/assetCommit.ts index ad5af7ce2..f1c08050b 100644 --- a/src/core/github/assetCommit.ts +++ b/src/core/github/assetCommit.ts @@ -1,5 +1,5 @@ -import { GithubChangeBlob, createBlob } from '../blitzkrieg/createBlob'; -import { octokit } from '../blitzkrieg/octokit'; +import { GithubChangeBlob, createBlob } from '../blitzrinth/createBlob'; +import { octokit } from '../blitzrinth/octokit'; export class AssetCommit { constructor( @@ -11,7 +11,7 @@ export class AssetCommit { async add(path: string, content: string, encoding: 'utf-8' | 'base64') { console.log(`Blob: adding ${path}...`); - const blob = await createBlob('tresabhi', 'blitzkrieg-assets', { + const blob = await createBlob('tresabhi', 'blitzrinth-assets', { content, encoding, path, @@ -26,14 +26,14 @@ export class AssetCommit { const latestCommitSha = ( await octokit.git.getRef({ owner: 'tresabhi', - repo: 'blitzkrieg-assets', + repo: 'blitzrinth-assets', ref: `heads/${this.production ? 'main' : 'dev'}`, }) ).data.object.sha; const treeSha = ( await octokit.git.getCommit({ owner: 'tresabhi', - repo: 'blitzkrieg-assets', + repo: 'blitzrinth-assets', commit_sha: latestCommitSha, }) ).data.tree.sha; @@ -41,20 +41,20 @@ export class AssetCommit { const { data: treeData } = await octokit.git.createTree({ owner: 'tresabhi', - repo: 'blitzkrieg-assets', + repo: 'blitzrinth-assets', base_tree: treeSha, tree: blobs, }); const { data: newCommitData } = await octokit.git.createCommit({ owner: 'tresabhi', - repo: 'blitzkrieg-assets', + repo: 'blitzrinth-assets', message: this.message, tree: treeData.sha, parents: [latestCommitSha], }); await octokit.git.updateRef({ owner: 'tresabhi', - repo: 'blitzkrieg-assets', + repo: 'blitzrinth-assets', ref: `heads/${this.production ? 'main' : 'dev'}`, sha: newCommitData.sha, }); diff --git a/src/core/statistics/filterStats.ts b/src/core/statistics/filterStats.ts index 3ca1e47a6..eeba217ab 100644 --- a/src/core/statistics/filterStats.ts +++ b/src/core/statistics/filterStats.ts @@ -1,6 +1,6 @@ import { TreeType } from '../../components/Tanks'; import { SupplementaryStats } from '../blitz/getAccountInfo'; -import { tankDefinitions } from '../blitzkrieg/tankDefinitions'; +import { tankDefinitions } from '../blitzrinth/tankDefinitions'; import { DiffedTankStats } from '../blitzstars/getStatsInPeriod'; import { tankAverages } from '../blitzstars/tankAverages'; import calculateWN8 from './calculateWN8'; diff --git a/src/core/statistics/getTierWeights.ts b/src/core/statistics/getTierWeights.ts index 532b65911..46b21d236 100644 --- a/src/core/statistics/getTierWeights.ts +++ b/src/core/statistics/getTierWeights.ts @@ -1,6 +1,6 @@ import { TierWeightsRecord } from '../../components/TierWeights'; import { AllStats } from '../blitz/getAccountInfo'; -import { tankDefinitions } from '../blitzkrieg/tankDefinitions'; +import { tankDefinitions } from '../blitzrinth/tankDefinitions'; export async function getTierWeights( stats: Record, diff --git a/src/core/streams/rts.ts b/src/core/streams/rts.ts index 2d9b0d0e9..e28945fb6 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 BlitzkriegTankStats extends AllStats { +export interface BlitzrinthTankStats 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 BlitzkriegTankStats; + } satisfies BlitzrinthTankStats; } } diff --git a/src/core/streams/scg.ts b/src/core/streams/scg.ts index 2297a799d..9f53b5891 100644 --- a/src/core/streams/scg.ts +++ b/src/core/streams/scg.ts @@ -16,10 +16,10 @@ interface PolygonGroupRaw { vertices: ArrayBuffer; } -type BlitzkriegVertex = { attribute: VertexAttribute; value: number[] }[]; +type BlitzrinthVertex = { attribute: VertexAttribute; value: number[] }[]; -interface BlitzkriegPolygonGroup { - vertices: BlitzkriegVertex[]; +interface BlitzrinthPolygonGroup { + vertices: BlitzrinthVertex[]; 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: BlitzkriegVertex[] = []; + const vertices: BlitzrinthVertex[] = []; const { format, stride } = ScgReadStream.parseVertexFormat( polygonGroupRaw.vertexFormat, ); diff --git a/src/events/interactionCreate/index.ts b/src/events/interactionCreate/index.ts index e91879d53..c80c10a83 100644 --- a/src/events/interactionCreate/index.ts +++ b/src/events/interactionCreate/index.ts @@ -32,9 +32,9 @@ import { searchClansCommand } from '../../commands/searchClans'; import { searchPlayersCommand } from '../../commands/searchPlayers'; import { statsCommand } from '../../commands/stats'; import { todayCommand } from '../../commands/today'; -import getClientId from '../../core/blitzkrieg/getClientId'; -import isDev from '../../core/blitzkrieg/isDev'; -import { secrets } from '../../core/blitzkrieg/secrets'; +import getClientId from '../../core/blitzrinth/getClientId'; +import isDev from '../../core/blitzrinth/isDev'; +import { secrets } from '../../core/blitzrinth/secrets'; import handleAutocomplete from './handlers/autocomplete'; import handleButton from './handlers/button'; import handleChatInputCommand from './handlers/chatInputCommand'; diff --git a/src/hooks/useAppliedEquipments.ts b/src/hooks/useAppliedEquipments.ts index 1c2663951..268e42fc0 100644 --- a/src/hooks/useAppliedEquipments.ts +++ b/src/hooks/useAppliedEquipments.ts @@ -1,4 +1,4 @@ -import { EquipmentPreset } from '../core/blitzkrieg/equipmentDefinitions'; +import { EquipmentPreset } from '../core/blitzrinth/equipmentDefinitions'; import { EquipmentMatrix } from '../stores/duel'; export function useAppliedEquipments( diff --git a/src/hooks/useArmor.ts b/src/hooks/useArmor.ts index 420e6089e..2d1bf7c9a 100644 --- a/src/hooks/useArmor.ts +++ b/src/hooks/useArmor.ts @@ -1,6 +1,6 @@ import { ObjectMap, useLoader } from '@react-three/fiber'; import { GLTF, GLTFLoader } from 'three-stdlib'; -import { asset } from '../core/blitzkrieg/asset'; +import { asset } from '../core/blitzrinth/asset'; const cache: Record = {}; diff --git a/src/hooks/useEquipment.ts b/src/hooks/useEquipment.ts index cc2bc3ec2..bedc8fe05 100644 --- a/src/hooks/useEquipment.ts +++ b/src/hooks/useEquipment.ts @@ -1,5 +1,5 @@ import { use, useMemo } from 'react'; -import { equipmentDefinitions } from '../core/blitzkrieg/equipmentDefinitions'; +import { equipmentDefinitions } from '../core/blitzrinth/equipmentDefinitions'; import { useDuel } from '../stores/duel'; export function useEquipment(id: number, antagonist = false) { diff --git a/src/hooks/useEquipmentPreset.ts b/src/hooks/useEquipmentPreset.ts index 6922f1658..2985fbec3 100644 --- a/src/hooks/useEquipmentPreset.ts +++ b/src/hooks/useEquipmentPreset.ts @@ -1,4 +1,4 @@ -import { equipmentDefinitions } from '../core/blitzkrieg/equipmentDefinitions'; +import { equipmentDefinitions } from '../core/blitzrinth/equipmentDefinitions'; import { useAwait } from './useAwait'; export function useEquipmentPreset(preset: string) { diff --git a/src/hooks/useModel.ts b/src/hooks/useModel.ts index df2433686..5d6842422 100644 --- a/src/hooks/useModel.ts +++ b/src/hooks/useModel.ts @@ -1,7 +1,7 @@ import { ObjectMap, useLoader } from '@react-three/fiber'; import { Mesh, MeshStandardMaterial } from 'three'; import { GLTF, GLTFLoader } from 'three-stdlib'; -import { asset } from '../core/blitzkrieg/asset'; +import { asset } from '../core/blitzrinth/asset'; const cache: Record< number, diff --git a/src/hooks/useModelDefinitions.ts b/src/hooks/useModelDefinitions.ts index 8f6b8530f..30744b31c 100644 --- a/src/hooks/useModelDefinitions.ts +++ b/src/hooks/useModelDefinitions.ts @@ -1,4 +1,4 @@ -import { modelDefinitions } from '../core/blitzkrieg/modelDefinitions'; +import { modelDefinitions } from '../core/blitzrinth/modelDefinitions'; import { useAwait } from './useAwait'; export function useModelDefinitions() { diff --git a/src/icons/BlitzkriegButtonWatermark.tsx b/src/icons/BlitzrinthButtonWatermark.tsx similarity index 98% rename from src/icons/BlitzkriegButtonWatermark.tsx rename to src/icons/BlitzrinthButtonWatermark.tsx index a24ea0000..717a7fba1 100644 --- a/src/icons/BlitzkriegButtonWatermark.tsx +++ b/src/icons/BlitzrinthButtonWatermark.tsx @@ -1,6 +1,6 @@ import { ComponentProps } from 'react'; -export function BlitzkriegButtonWatermark(props: ComponentProps<'svg'>) { +export function BlitzrinthButtonWatermark(props: ComponentProps<'svg'>) { return ( ) { +export function BlitzrinthWormWide(props: ComponentProps<'svg'>) { return (