fix(frontend): converge scenario 2601 legacy UI

This commit is contained in:
2026-08-04 05:29:18 +00:00
parent 9cfeaed3fe
commit 4113d81ba2
33 changed files with 1944 additions and 492 deletions
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { computed, onMounted, ref } from 'vue';
import { useRouter } from 'vue-router';
import { formatLog } from '../utils/formatLog';
import { trpc } from '../utils/trpc';
type Result = Awaited<ReturnType<typeof trpc.nation.getNationInfo.query>>;
@@ -95,9 +96,8 @@ onMounted(async () => {
<tr>
<th>국가열전</th>
<td colspan="7" class="history legacy-bg0">
<div v-for="entry in data.history" :key="entry.id">
{{ entry.year }} {{ entry.month }}: {{ entry.text }}
</div>
<!-- eslint-disable-next-line vue/no-v-html -->
<div v-for="entry in data.history" :key="entry.id" v-html="formatLog(entry.text)" />
<span v-if="!data.history.length">-</span>
</td>
</tr>
@@ -172,7 +172,9 @@ onMounted(async () => {
color: #fff;
cursor: pointer;
}
.credit { padding: 0 !important; }
.credit {
padding: 0 !important;
}
.error {
color: #ff7373;
text-align: center;