From 96d8f010867fa49e33f69894d39b5613e776d630 Mon Sep 17 00:00:00 2001 From: gawain12 Date: Tue, 28 Nov 2023 22:20:57 +0800 Subject: [PATCH] fix: lowercase --- resource/i18n/en.json | 2 +- resource/sites/broadcasthe.net/config.json | 4 ++-- src/interface/common.ts | 4 ++-- src/options/views/Home.vue | 22 +++++++++++----------- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/resource/i18n/en.json b/resource/i18n/en.json index e1cf4787c..e3c94b46d 100644 --- a/resource/i18n/en.json +++ b/resource/i18n/en.json @@ -245,7 +245,7 @@ "downloaded":"Downloaded", "uploads": "Uploaded", "downloads": "Downloaded", - "TotalSeedtime":"TotalSeedtime", + "totalSeedtime":"totalSeedtime", "snatches":"snatched", "trueDownloaded": "True Downloaded", "totalData":"Total Data", diff --git a/resource/sites/broadcasthe.net/config.json b/resource/sites/broadcasthe.net/config.json index 1b1248a0c..426f85443 100644 --- a/resource/sites/broadcasthe.net/config.json +++ b/resource/sites/broadcasthe.net/config.json @@ -69,7 +69,7 @@ "totalData": "100TiB", "bonus":"250000000", "snatches":"35000", - "TotalSeedtime":"250000", + "totalSeedtime":"250000", "privilege": "Has access to the Overlord forum, Custom Title, Unlimited Invites, and more to come!" }], "searchEntry": [{ @@ -155,7 +155,7 @@ "query.reduce((sum, match) => sum + Number(match.split(\": \")[1]), 0)" ] }, - "TotalSeedtime": { + "totalSeedtime": { "selector": "#section2 > div > div.statistics > div:nth-child(3) > ul > li:nth-child(12)", "filters": [ "query.text().replace(/,/g,'').match(/Total Time Seeded:.+?(\\d+).+?/)", diff --git a/src/interface/common.ts b/src/interface/common.ts index 9d16da9f5..44c3802ba 100644 --- a/src/interface/common.ts +++ b/src/interface/common.ts @@ -348,7 +348,7 @@ export interface LevelRequirement { // 平均保种时间要求 averageSeedtime?: number; // 总保种时间要求 - TotalSeedtime?: number + totalSeedtime?: number // 保种体积要求 seedingSize?: string | number; // 分享率要求 @@ -652,7 +652,7 @@ export interface UserInfo { // 平均保种时间 averageSeedtime?: number; // 总保种时间 - TotalSeedtime?: number; + totalSeedtime?: number; // 时魔 bonusPerHour?: number; // 积分页面 diff --git a/src/options/views/Home.vue b/src/options/views/Home.vue index c62f3465a..a518ef856 100644 --- a/src/options/views/Home.vue +++ b/src/options/views/Home.vue @@ -194,9 +194,9 @@ nextLevel.averageSeedtime | formatNumber }}{{$t("home.levelRequirement.days")}}  -