mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: hot garbage
This commit is contained in:
1 parent
ae5e38139b
commit
d0170d53e4
19 files changed
+136
-210
No files matched your search
@@ -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",
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
export function entityName(entity: string) {
|
||||
const [_, ...name] = entity.split('.');
|
||||
return name.join('.');
|
||||
}
|
||||
@@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user