1
0
mirror of https://github.com/one-among-us/data.git synced 2024-11-22 11:14:53 +08:00

[+] switch pair

pending for front-end docking
This commit is contained in:
Elihuso Quigley 2024-05-19 17:37:35 +08:00
parent c6b507d7be
commit 2fa4e6a5ed
3 changed files with 5 additions and 1 deletions

View File

@ -11,5 +11,6 @@
], ],
"trigger": [ "trigger": [
"__shi_%E2%80%8BYumia%CE%BFya__" "__shi_%E2%80%8BYumia%CE%BFya__"
] ],
"switch": []
} }

View File

@ -34,6 +34,7 @@ const excludeList = commentOnlyList.concat(hdata.exclude);
const notShowOnHomeList = hdata.notShowOnHome; const notShowOnHomeList = hdata.notShowOnHome;
const actualHide = hdata.actualHide; const actualHide = hdata.actualHide;
const trigger = hdata.trigger; const trigger = hdata.trigger;
const switchPair = hdata.switch;
// Transform `info.json5` to `info.json`. // Transform `info.json5` to `info.json`.
// Extract metadata from `people/${dirname}/info.json5` to `dist/people-list.json`. // Extract metadata from `people/${dirname}/info.json5` to `dist/people-list.json`.
@ -172,6 +173,7 @@ function copyPeopleAssets() {
function copyPublic() { function copyPublic() {
fs.copySync(path.join(projectRoot, PUBLIC_DIR), path.join(projectRoot, DIST_DIR)); fs.copySync(path.join(projectRoot, PUBLIC_DIR), path.join(projectRoot, DIST_DIR));
fs.writeFileSync(path.join(DIST_DIR, 'trigger-list.json'), JSON.stringify(trigger as string[])); fs.writeFileSync(path.join(DIST_DIR, 'trigger-list.json'), JSON.stringify(trigger as string[]));
fs.writeFileSync(path.join(DIST_DIR, 'switch-pair.json'), JSON.stringify(switchPair as [string, string][]))
} }
function copyComments() { function copyComments() {

View File

@ -4,6 +4,7 @@ export interface HData {
notShowOnHome: string[]; notShowOnHome: string[];
actualHide: string[]; actualHide: string[];
trigger: string[]; trigger: string[];
switch: [string, string][];
} }
export interface PeopleMeta { export interface PeopleMeta {