fix:优化整个大屏界面
This commit is contained in:
@@ -31,6 +31,8 @@ export interface PowerIndex {
|
||||
export interface CombatLosses {
|
||||
bases: { destroyed: number; damaged: number }
|
||||
personnelCasualties: { killed: number; wounded: number }
|
||||
/** 平民伤亡 */
|
||||
civilianCasualties?: { killed: number; wounded: number }
|
||||
aircraft: number
|
||||
warships: number
|
||||
armor: number
|
||||
@@ -45,6 +47,23 @@ export interface SituationUpdate {
|
||||
severity: 'low' | 'medium' | 'high' | 'critical'
|
||||
}
|
||||
|
||||
export interface ConflictEvent {
|
||||
event_id: string
|
||||
event_time: string
|
||||
title: string
|
||||
lat: number
|
||||
lng: number
|
||||
impact_score: number
|
||||
url?: string
|
||||
}
|
||||
|
||||
export interface ConflictStats {
|
||||
total_events: number
|
||||
high_impact_events: number
|
||||
estimated_casualties: number
|
||||
estimated_strike_count: number
|
||||
}
|
||||
|
||||
export interface MilitarySituation {
|
||||
lastUpdated: string
|
||||
usForces: {
|
||||
@@ -86,6 +105,10 @@ export interface MilitarySituation {
|
||||
retaliationSentimentHistory: { time: string; value: number }[]
|
||||
}
|
||||
recentUpdates: SituationUpdate[]
|
||||
/** GDELT 冲突事件 (1–3 绿点, 4–6 橙闪, 7–10 红脉) */
|
||||
conflictEvents?: ConflictEvent[]
|
||||
/** 战损统计(展示用) */
|
||||
conflictStats?: ConflictStats
|
||||
}
|
||||
|
||||
export const INITIAL_MOCK_DATA: MilitarySituation = {
|
||||
@@ -122,6 +145,7 @@ export const INITIAL_MOCK_DATA: MilitarySituation = {
|
||||
combatLosses: {
|
||||
bases: { destroyed: 0, damaged: 2 },
|
||||
personnelCasualties: { killed: 127, wounded: 384 },
|
||||
civilianCasualties: { killed: 18, wounded: 52 },
|
||||
aircraft: 2,
|
||||
warships: 0,
|
||||
armor: 0,
|
||||
@@ -171,6 +195,7 @@ export const INITIAL_MOCK_DATA: MilitarySituation = {
|
||||
combatLosses: {
|
||||
bases: { destroyed: 3, damaged: 8 },
|
||||
personnelCasualties: { killed: 2847, wounded: 5620 },
|
||||
civilianCasualties: { killed: 412, wounded: 1203 },
|
||||
aircraft: 24,
|
||||
warships: 12,
|
||||
armor: 18,
|
||||
@@ -219,4 +244,6 @@ export const INITIAL_MOCK_DATA: MilitarySituation = {
|
||||
severity: 'low',
|
||||
},
|
||||
],
|
||||
conflictEvents: [],
|
||||
conflictStats: { total_events: 0, high_impact_events: 0, estimated_casualties: 0, estimated_strike_count: 0 },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user