CPT/FO VOL KB
This commit is contained in:
@@ -62,8 +62,8 @@ paths.forEach((_path) => {
|
||||
});
|
||||
|
||||
const fd = fs.openSync("tooltips.csv", "w");
|
||||
fs.writeSync(fd, "File,Template Name,Node ID,Tooltip\n");
|
||||
fs.writeSync(fd, "File|Template Name|Node ID|Tooltip\n");
|
||||
objects.forEach((obj) => {
|
||||
fs.writeSync(fd, `${obj.file},${obj.templateName},${obj.nodeID},\n`);
|
||||
fs.writeSync(fd, `${obj.file}|${obj.templateName}|${obj.nodeID}|\n`);
|
||||
});
|
||||
fs.closeSync(fd);
|
||||
|
||||
@@ -9,7 +9,7 @@ const paths = [
|
||||
let tips = fs.readFileSync("tooltips.csv", { encoding: "utf-8" }).split("\n");
|
||||
tips = tips.reduce((prev, tip, index) => {
|
||||
if (index == 0) return {};
|
||||
const [file, templateName, nodeID, tooltip] = tip.split(",");
|
||||
const [file, templateName, nodeID, tooltip] = tip.split("|");
|
||||
if (!prev[file]) prev[file] = {};
|
||||
if (!prev[file][templateName]) prev[file][templateName] = {};
|
||||
prev[file][templateName][nodeID] = tooltip;
|
||||
|
||||
+873
-873
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user