feat: hot garbage

This commit is contained in:
TrèsAbhi committed 2025-05-26 14:23:00 -05:00
1 parent ae5e38139b
commit d0170d53e4
19 files changed
+136 -210

No files matched your search

+1
View File
@@ -4,6 +4,7 @@
"type": "module",
"main": "src/index.ts",
"dependencies": {
"@blitzkit/closed": "workspace:*",
"@octokit/plugin-throttling": "^8.2.0",
"@octokit/rest": "^20.1.1",
"@prisma/client": "^6.6.0",
+4
View File
@@ -0,0 +1,4 @@
export function entityName(entity: string) {
const [_, ...name] = entity.split('.');
return name.join('.');
}
+2
View File
@@ -2,6 +2,7 @@ export * from './canSplash';
export * from './clans';
export * from './classes';
export * from './constants';
export * from './entityName';
export * from './equipmentPrice';
export * from './fetchBlitz';
export * from './fetchGlossary';
@@ -18,6 +19,7 @@ export * from './getTankStats';
export * from './idToRegion';
export * from './isOnGoingRatingSeason';
export * from './isValidBlitzId';
export * from './metadataAccessor';
export * from './nations';
export * from './normalizeExtra';
export * from './normalizeIds';
@@ -0,0 +1,10 @@
import { Metadata } from '@protos/blitz_metadata';
export class MetadataAccessor {
constructor() {}
loadMetadata(metadata: Metadata) {
for (const catalogItem of metadata.catalog_items) {
}
}
}