spaCy/website/meta/recordUniverse.tsx

10 lines
323 B
TypeScript
Raw Normal View History

2022-11-17 02:30:00 +03:00
import universe from './universe.json'
export const recordUniverseCategories = Object.fromEntries(
universe.categories.flatMap((category) => category.items.map((item) => [item.id, item]))
)
2022-11-17 17:30:14 +03:00
export const recordUniverseResources = Object.fromEntries(
universe.resources.map((resource) => [resource.id, resource])
)