mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 12:51:30 +00:00
24 lines
610 B
JavaScript
24 lines
610 B
JavaScript
import { Data } from '#miao'
|
|
import lodash from 'lodash'
|
|
|
|
let data = Data.readJSON('/resources/meta-sr/artifact/data.json', 'miao')
|
|
let meta = Data.readJSON('/resources/meta-sr/artifact/meta.json', 'miao')
|
|
|
|
let artiMap = {}
|
|
let idMap = {}
|
|
lodash.forEach(data, (setData) => {
|
|
lodash.forEach(setData.idxs, (ds, idx) => {
|
|
artiMap[ds.name] = {
|
|
...ds,
|
|
set: setData.name,
|
|
setId: setData.id,
|
|
idx
|
|
}
|
|
idMap[ds.name] = artiMap[ds.name]
|
|
lodash.forEach(ds.ids, (star, id) => {
|
|
idMap[id] = artiMap[ds.name]
|
|
})
|
|
})
|
|
})
|
|
export const metaData = meta
|
|
export { artiMap, idMap } |