mirror of
https://github.com/one-among-us/data.git
synced 2024-11-22 11:14:53 +08:00
[R] Refactor exclude list
This commit is contained in:
parent
d38c43ef05
commit
188569aa91
@ -1,3 +0,0 @@
|
||||
[
|
||||
"tdor"
|
||||
]
|
@ -1 +0,0 @@
|
||||
[]
|
7
data/hdata.json
Normal file
7
data/hdata.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"commentOnly": [
|
||||
"tdor"
|
||||
],
|
||||
"exclude": [],
|
||||
"notShowOnHome": []
|
||||
}
|
@ -27,8 +27,16 @@ const people = fs.readdirSync(peopleDir).map(person => ({
|
||||
distPath: path.join(projectRoot, DIST_DIR, PEOPLE_DIR, person)
|
||||
}));
|
||||
|
||||
const commentOnlyList = JSON.parse(fs.readFileSync(path.join(projectRoot, DATA_DIR, "comment-only.json")).toString()) as String[];
|
||||
const excludeList = commentOnlyList.concat(JSON.parse(fs.readFileSync(path.join(projectRoot, DATA_DIR, 'exclude.json')).toString()) as String[]);
|
||||
interface HData {
|
||||
commentOnly: string[],
|
||||
exclude: string[],
|
||||
notShowOnHome: string[]
|
||||
}
|
||||
|
||||
const hdata = JSON.parse(fs.readFileSync(path.join(projectRoot, DATA_DIR, "hdata.json")).toString()) as HData;
|
||||
const commentOnlyList = hdata.commentOnly;
|
||||
const excludeList = hdata.exclude;
|
||||
const notShowOnHomeList = hdata.notShowOnHome;
|
||||
|
||||
interface PeopleMeta {
|
||||
id: string
|
||||
|
Loading…
Reference in New Issue
Block a user