diff --git a/hwe/ts/PageFront.vue b/hwe/ts/PageFront.vue index c5cbe190..9e7e8a56 100644 --- a/hwe/ts/PageFront.vue +++ b/hwe/ts/PageFront.vue @@ -16,10 +16,32 @@
툴바?
-
시나리오
-
토너먼트/설문
-
접속중인
-
국방
+
시나리오
+
+
{{globalInfo.scenarioText}}
+
NPC 수, 상성: {{globalInfo.extendedGeneral?'확장':'표준'}} {{globalInfo.isFiction?'가상':'사실'}}
+
NPC선택: {{['불가능','가능','선택 생성'][globalInfo.npcMode]}}
+
토너먼트: 경기당 {{calcTournamentTerm(globalInfo.turnterm)}}분
+
기타 설정: (TODO)자율행동[내정, 훈련/사기진작, 사령턴, 24시간 유효]
+
현재: {{globalInfo.year}}年 {{globalInfo.month}}月 ({{globalInfo.turnterm}}분 턴 서버)
+
전체 접속자 수: {{globalInfo.onlineUserCnt.toLocaleString()}}명
+
턴당 갱신횟수: {{globalInfo.apiLimit.toLocaleString()}}회
+
+ 등록 장수: 유저 + {{globalInfo.genCount.toLocaleString()}} / {{globalInfo.generalCntLimit.toLocaleString()}} + + NPC TODO:NPC Cnt 명 +
+
TODO: tournament Text
+
동작 시각: {{formatTime(lastExecuted).substring(5)}}
+
{{globalInfo.auctionCount.toLocaleString()}}건 거래 진행중
+
진행중인 거래 없음
+
+ 설문 진행 중: {{globalInfo.lastVote.title}} +
+
진행중인 설문 없음
+
+
접속중인 국가: {{globalInfo.onlineNations}}
+
국가 방침
접속자
갱신
@@ -29,14 +51,14 @@
- +
@@ -106,6 +128,8 @@ import NationBasicCard from "./components/NationBasicCard.vue"; import GeneralBasicCard from "./components/GeneralBasicCard.vue"; import type { GeneralListItemP1 } from "./defs/API/Nation"; import type { NationStaticItem } from "./defs"; +import { formatTime } from "./util/formatTime"; +import { calcTournamentTerm } from "./utilGame"; const { serverName, serverNick, serverID } = staticValues; @@ -268,7 +292,7 @@ watch(refreshCounter, async () => { }); const frontInfo = ref(); - +const globalInfo = ref({} as GetFrontInfoResponse['global']) const generalInfo = ref(); const nationStaticInfo = ref(); @@ -284,6 +308,7 @@ watch(refreshCounter, async () => { generalInfoLock = false; frontInfo.value = response; + globalInfo.value = response.global; generalInfo.value = response.general; const newLastExecuted = parseTime(response.global.lastExecuted);