diff --git a/.vscode/settings.json b/.vscode/settings.json index 4f349c236..15dda9025 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -36,6 +36,7 @@ "cacheable", "Callouts", "Camo", + "Carro", "CCPAOPTOUT", "CDON", "classname", @@ -43,6 +44,7 @@ "closedkrieg", "cockroackdb", "Coef", + "Combattimento", "cooldown", "corelations", "corsproxy", diff --git a/docs/changelogs/1.27.10.md b/docs/changelogs/1.27.10.md new file mode 100644 index 000000000..63f0f3c60 --- /dev/null +++ b/docs/changelogs/1.27.10.md @@ -0,0 +1,23 @@ +# BlitzKit 1.27.10 + +This update changes the URLs across the whole website, removing the "tools" prefix and simplifying other aspects too. + +## Changes + +- Removed "full" tank names + - For example, tanks like the "Carro 45t" had full names like "Carro Combattimento 45t" which remained pretty much unused, so they have been removed +- Reduced the shadow below the navigation bar +- Removed the "tools" prefix from the URLs; here are the paths: + - `/tools/tankopedia` -> `/tanks` + - `/tools/tankopedia/12345` -> `/tanks/tank-name` + - `/tools/compare` -> `/compare` + - `/tools/embed` -> `/embed` + - `/tools/embed/embed-name` -> `/embed/embed-name` + - `/tools/gallery` -> `/gallery` + - `/tools/performance` -> `/performance` + - `/tools/session` -> `/session` + - `/tools/tier-list` -> `/tier-list` + +## Technical Features + +- The asset mangler now uses http headers and even more heuristics to minimize re-creating unchanged assets diff --git a/package.json b/package.json index ab9377f8d..563302f6c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "blitzkit", "private": true, - "version": "1.27.9", + "version": "1.27.10", "description": "🎉 Tools for everything World of Tanks Blitz", "type": "module", "types": "./types.d.ts", diff --git a/packages/core/src/blitzkit/tankNames.ts b/packages/core/src/blitzkit/tankNames.ts index cee94d9fc..26dea0712 100644 --- a/packages/core/src/blitzkit/tankNames.ts +++ b/packages/core/src/blitzkit/tankNames.ts @@ -15,18 +15,22 @@ export async function fetchTankNames() { tankDefinitionsArray.map(async (tank) => { const searchableNameDeburr: I18nString = { locales: {} }; - Object.entries(tank.name_full ?? tank.name).forEach(([key, value]) => { + Object.entries(tank.name).forEach(([key, value]) => { searchableNameDeburr.locales[key] = deburr(value); }); return { id: tank.id, name: tank.name, - nameFull: tank.name_full, - searchableName: tank.name_full ?? tank.name, + searchableName: tank.name, searchableNameDeburr, camouflages: tank.camouflages - ?.map((id) => SUPPORTED_LOCALES.map((locale) => camouflageDefinitions.camouflages[id]?.name.locales[locale])) + ?.map((id) => + SUPPORTED_LOCALES.map( + (locale) => + camouflageDefinitions.camouflages[id]?.name.locales[locale], + ), + ) .flat() .filter(Boolean) .map(deburr)