feat: remove estimatedBatteryMin references from 11 files (Tasks 3.1-3.14)

This commit is contained in:
2026-05-10 05:07:25 +08:00
parent aa4509ede8
commit 6d906f0bbf
11 changed files with 1 additions and 42 deletions
@@ -33,7 +33,6 @@ interface PerformanceEntry {
launchOptions: string | null
settingsJson: string | null
userNotes: string | null
estimatedBatteryMin: number | null
customSystem: string | null
isRemoved: boolean
removedReason: string | null
-2
View File
@@ -137,7 +137,6 @@ interface Preset {
launchOptions: string | null
loadTimeSsd: number | null
loadTimeSd: number | null
estimatedBatteryMin: number | null
tdpWatts: number | null
youtubeVideoId: string | null
screenshots: Array<{
@@ -233,7 +232,6 @@ interface StatsResponse {
id: string
hardwareSlug: string
tdpWatts: number
estimatedBatteryMin: number
estimatedBatteryHours: number
wattHours: number | null
tdpMax: number | null
-2
View File
@@ -178,7 +178,6 @@ export default async function GamePage({
launchOptions: performanceEntries.launchOptions,
loadTimeSsd: performanceEntries.loadTimeSsd,
loadTimeSd: performanceEntries.loadTimeSd,
estimatedBatteryMin: performanceEntries.estimatedBatteryMin,
tdpWatts: performanceEntries.tdpWatts,
youtubeVideoId: performanceEntries.youtubeVideoId,
customSystem: performanceEntries.customSystem,
@@ -281,7 +280,6 @@ export default async function GamePage({
launchOptions: p.launchOptions,
loadTimeSsd: p.loadTimeSsd ?? null,
loadTimeSd: p.loadTimeSd ?? null,
estimatedBatteryMin: p.estimatedBatteryMin ?? null,
tdpWatts: p.tdpWatts ?? null,
youtubeVideoId: p.youtubeVideoId ?? null,
screenshots: null as Array<{ id: string; url: string; width: number; height: number; orderIndex: number }> | null,
+1 -4
View File
@@ -42,7 +42,6 @@ interface Preset {
launchOptions: string | null
loadTimeSsd: number | null
loadTimeSd: number | null
estimatedBatteryMin: number | null
tdpWatts: number | null
youtubeVideoId: string | null
screenshots: Array<{ id: string; url: string; width: number; height: number }> | null
@@ -535,9 +534,7 @@ export function PresetDetailModal({
{preset.loadTimeSd !== null && (
<MetaItem label="Load Time (SD)" value={`${preset.loadTimeSd}s`} />
)}
{preset.estimatedBatteryMin !== null && (
<MetaItem label="Battery Life" value={`${preset.estimatedBatteryMin} min`} />
)}
{preset.customSystem && (
<MetaItem label="Custom System" value="Yes" />
)}