1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-04-22 19:02:10 +00:00
Florian Bouillon 762ce389c1
feat: Add status Dashboard (#187)
* 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>
2021-11-23 16:12:50 +01:00

11 lines
378 B
TypeScript

import { SupportedLanguages } from '../../../interfaces'
import { FileFunction } from '../compilerInterfaces'
import { getSeries, serieToSerieSingle } from '../utils/serieUtil'
const fn: FileFunction = async (lang: SupportedLanguages) => {
const common = await getSeries(lang)
return await Promise.all(common.map((val) => serieToSerieSingle(val, lang)))
}
export default fn