mirror of
https://github.com/one-among-us/data.git
synced 2024-11-22 19:24:51 +08:00
[+] switch pair
pending for front-end docking
This commit is contained in:
parent
c6b507d7be
commit
2fa4e6a5ed
@ -11,5 +11,6 @@
|
|||||||
],
|
],
|
||||||
"trigger": [
|
"trigger": [
|
||||||
"__shi_%E2%80%8BYumia%CE%BFya__"
|
"__shi_%E2%80%8BYumia%CE%BFya__"
|
||||||
]
|
],
|
||||||
|
"switch": []
|
||||||
}
|
}
|
||||||
|
@ -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() {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user