mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-04-23 19:32:11 +00:00
* feat: Add status Dashboard Still need some polishing like using the compiler instead of the live DB Signed-off-by: Avior <github@avior.me> * refactor: Simplified compiler files generators Signed-off-by: Avior <florian.bouillon@delta-wings.net> * chore: Add step to compiler for stats and optimize Signed-off-by: Avior <github@avior.me> * refactor: Remove unused variable Signed-off-by: Avior <github@avior.me>
11 lines
385 B
TypeScript
11 lines
385 B
TypeScript
import { SupportedLanguages } from '../../../interfaces'
|
|
import { FileFunction } from '../compilerInterfaces'
|
|
import { cardToCardSingle, getCards } from '../utils/cardUtil'
|
|
|
|
const fn: FileFunction = async (lang: SupportedLanguages) => {
|
|
const common = await getCards(lang)
|
|
return await Promise.all(common.map((card) => cardToCardSingle(card[0], card[1], lang)))
|
|
}
|
|
|
|
export default fn
|