2022年3月17日

This commit is contained in:
枫谷剑仙 2022-03-17 20:05:29 +08:00
parent fcc62aa8ce
commit cd5d4dfdb2
24 changed files with 25 additions and 13 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 689 KiB

After

Width:  |  Height:  |  Size: 867 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 658 KiB

After

Width:  |  Height:  |  Size: 741 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 KiB

After

Width:  |  Height:  |  Size: 381 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 722 KiB

After

Width:  |  Height:  |  Size: 782 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 689 KiB

After

Width:  |  Height:  |  Size: 867 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 738 KiB

After

Width:  |  Height:  |  Size: 820 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 KiB

After

Width:  |  Height:  |  Size: 381 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -1 +1 @@
[{"code":"ja","ckey":{"card":"e799cdfb0f535b78df215d9c8b5194af","skill":"58c26f521d3f91023ab2c716f78151f4"},"updateTime":1646999110466},{"code":"en","ckey":{"card":"e4c9c1707051699bce736bad5fb36972","skill":"9b47853d084ec38478c632f7df481380"},"updateTime":1646999110466},{"code":"ko","ckey":{"card":"998ac2c9cbfe9c4551217a1e6373090b","skill":"88741a8efd3e73e2e7eb1bbc0b544586"},"updateTime":1646999110466}]
[{"code":"ja","ckey":{"card":"05ec6d8ff2bbe347a54a47e2874bdb3c","skill":"bdf93cd2ec9aa4b0b0661d1a27146332"},"updateTime":1647518466158},{"code":"en","ckey":{"card":"ab1a046b1c85e568ffcd27c76f15ac31","skill":"875dc732159b9ecbde055d5887154e3a"},"updateTime":1647518466158},{"code":"ko","ckey":{"card":"cbeb4a1e2ac9a11b3b62d695f7c3f424","skill":"2c2bf92c96105d34606ccf33ee6a6ceb"},"updateTime":1647518466158}]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

12
temp.js Normal file
View File

@ -0,0 +1,12 @@
const fs = require('fs');
const path = require('path');
const OpenCC = require('opencc');
const converter = new OpenCC('s2t.json');
const code = fs.readFileSync("script-json_data.js", {encoding:"utf-8"});
function toCHT(match, p1){
const cht = converter.convertSync(p1);
return `{chs:"${p1}",cht:"${cht}"}`;
}
let newcode = code.replaceAll(/\{chs:"(.+)?"\}/ig, toCHT);
fs.writeFileSync("script-json_data2.js", newcode, {encoding:"utf-8"})