feat: add weekly reward loop, i18n support, and scan terminal dashboard components

This commit is contained in:
2569718930@qq.com
2026-05-27 07:50:05 +08:00
parent 2670e2f8ee
commit 79d94bed5f
14 changed files with 786 additions and 76 deletions
@@ -822,8 +822,13 @@ function PolyWeatherTerminal({
>
{visibleSlots.map((cityInSlot, slotIndex) => {
const isSlotActive = activeSlotIndex === slotIndex;
const rowForSlot = cityInSlot
? filteredRegionRows.find(
(r) => String(r.city || "").toLowerCase() === cityInSlot
) || null
: null;
if (!cityInSlot) {
if (!cityInSlot || !rowForSlot) {
return (
<div key={slotIndex} className="relative h-full">
<EmptySlotCard
@@ -850,10 +855,6 @@ function PolyWeatherTerminal({
);
}
const rowForSlot = filteredRegionRows.find(
(r) => String(r.city || "").toLowerCase() === cityInSlot
) || null;
return (
<div
key={slotIndex}