Browse Source

修订”海贼王合作“的简体翻译

tags/v26.0.1
枫谷剑仙 3 years ago
parent
commit
32f918e165
5 changed files with 12 additions and 10 deletions
  1. +1
    -1
      monsters-info/ckey.json
  2. +1
    -1
      monsters-info/custom/chs.json
  3. +2
    -0
      monsters-info/extract_CHT.js
  4. +1
    -1
      monsters-info/mon_ja.json
  5. +7
    -7
      service-worker.js

+ 1
- 1
monsters-info/ckey.json View File

@@ -1 +1 @@
[{"code":"ja","ckey":{"card":"e019df06630e88be97c0fa9d36abcef9","skill":"3480f4ef451382e193c4671d7bb8a33d"},"updateTime":1662239592885},{"code":"en","ckey":{"card":"e2fc5293ea8bb986915b9f1fdabbde90","skill":"171616e35c10395e4f3ce9b938704609"},"updateTime":1662239592885},{"code":"ko","ckey":{"card":"02b3ce9d30f506fcb919c834d56da215","skill":"676f6f05285d6d5c2bab7f335186d2de"},"updateTime":1662239592885}]
[{"code":"ja","ckey":{"card":"bedd112b865fa33f9df18d7e5b5b7030","skill":"3480f4ef451382e193c4671d7bb8a33d"},"updateTime":1662274315919},{"code":"en","ckey":{"card":"e2fc5293ea8bb986915b9f1fdabbde90","skill":"171616e35c10395e4f3ce9b938704609"},"updateTime":1662239592885},{"code":"ko","ckey":{"card":"02b3ce9d30f506fcb919c834d56da215","skill":"676f6f05285d6d5c2bab7f335186d2de"},"updateTime":1662239592885}]

+ 1
- 1
monsters-info/custom/chs.json
File diff suppressed because it is too large
View File


+ 2
- 0
monsters-info/extract_CHT.js View File

@@ -54,6 +54,8 @@ const tsConverter = OpenCC.CustomConverter([
['超人尼奥/超人雷欧', '雷欧奥特曼'],
['阿尔法锋刃', '阿尔法利刃'],
['德尔塔升华钩爪', '德尔塔升爪'],
['ONE PIECE FILM RED', '海贼王'],
]);
const sourceFolder = "Download-pad.skyozora.com/pad.skyozora.com"; //战友网数据的存储问文件夹


+ 1
- 1
monsters-info/mon_ja.json
File diff suppressed because it is too large
View File


+ 7
- 7
service-worker.js View File

@@ -6647,7 +6647,7 @@ const cachesMap = new Map([
],
[
"monsters-info/ckey.json",
"7933797cdffc0f58a2eba9433b758cc9"
"48c61cebf9f793484fbed8059659460d"
],
[
"monsters-info/mon_en.json",
@@ -6655,7 +6655,7 @@ const cachesMap = new Map([
],
[
"monsters-info/mon_ja.json",
"e019df06630e88be97c0fa9d36abcef9"
"bedd112b865fa33f9df18d7e5b5b7030"
],
[
"monsters-info/mon_ko.json",
@@ -7011,25 +7011,25 @@ self.addEventListener('fetch', async function(event) {
url.searchParams.set("md5", md5);
const responseWithMd5 = await caches.match(url, {ignoreSearch: false});
if (responseWithMd5) {
console.debug("%c已有相同 md5 缓存,直接使用缓存", "color: green;", url);
console.debug("%c已有相同 md5 缓存,直接使用缓存:%s,%s", "color: green;", relativePath, md5);
event.respondWith(responseWithMd5);
} else {
//console.debug("%c无相同 md5 缓存,重新在线获取", "color: blue;", url);
let newResponse;
try {
newResponse = await fetch(event.request);
console.debug("%c无相同 md5 缓存,重新在线获取结果", "color: blue;", url);
console.debug("%c无相同 md5 缓存,重新在线获取结果:%s,%s", "color: blue;", relativePath, md5);
const cache = await caches.open(cacheName);
await cache.put(url, newResponse.clone());
//console.debug("%c储存新的Cache", "color: blue;", url, cache);
} catch (error) {
console.error("%c数据在线获取失败,尝试使用忽略 search 的离线数据", "color: red;", url, error);
console.error("%c数据在线获取失败,尝试使用忽略 search 的离线数据:%s,%s", "color: red;", relativePath, md5, error);
newResponse = await caches.match(url, {ignoreSearch: true});
}
event.respondWith(newResponse);
}
} else {
console.debug("无 md5 值,重新在线获取", url);
console.debug("无 md5 值,重新在线获取:%s", relativePath);
let newResponse;
try {
newResponse = await fetch(event.request);
@@ -7037,7 +7037,7 @@ self.addEventListener('fetch', async function(event) {
await cache.put(url, newResponse.clone());
event.respondWith(newResponse);
} catch (error) {
console.error("%c数据在线获取失败,尝试使用忽略 search 的离线数据", "color: red;", url, error);
console.error("%c数据在线获取失败,尝试使用忽略 search 的离线数据:%s", "color: red;", relativePath, error);
newResponse = await caches.match(url, {ignoreSearch: true});
}
event.respondWith(newResponse);


Loading…
Cancel
Save