From 3661de82ca3db46f96ab198b1d8514c4fcb17a42 Mon Sep 17 00:00:00 2001
From: caadiq
Date: Wed, 24 Dec 2025 16:30:53 +0900
Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=AA=A8=EB=93=A0=20=ED=8E=98?=
=?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=9D=98=20title=20=EC=86=8D=EC=84=B1?=
=?UTF-8?q?=EC=9D=84=20Tooltip=20=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8?=
=?UTF-8?q?=EB=A1=9C=20=ED=86=B5=EC=9D=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Admin.jsx: 버튼들의 title을 Tooltip으로 변경 (새로고침, 삭제, 다운로드, OP, 킥, 밴 등)
- PlayerStatsPage.jsx: 아이템/몹 이름에 Tooltip 적용
- ServerDetail.jsx: 적용된 모드 목록에 Tooltip 적용
---
frontend/src/pages/Admin.jsx | 239 +++++++++++++------------
frontend/src/pages/PlayerStatsPage.jsx | 17 +-
frontend/src/pages/ServerDetail.jsx | 8 +-
3 files changed, 142 insertions(+), 122 deletions(-)
diff --git a/frontend/src/pages/Admin.jsx b/frontend/src/pages/Admin.jsx
index d53d4f6..c114606 100644
--- a/frontend/src/pages/Admin.jsx
+++ b/frontend/src/pages/Admin.jsx
@@ -1239,16 +1239,17 @@ export default function Admin({ isMobile = false }) {
{/* 맨 아래로 스크롤 버튼 */}
{!isAtBottom && logs.length > 0 && (
-
-
-
+
+
+
+
+
)}
@@ -1318,13 +1319,14 @@ export default function Admin({ isMobile = false }) {
로그 파일
{logFiles.length > 0 && ({logFiles.length})}
-
+
+
+
{/* 필터 드롭다운 */}
@@ -1416,35 +1418,37 @@ export default function Admin({ isMobile = false }) {
-
-
+
+
+
+
+
+
))
@@ -1540,13 +1544,14 @@ export default function Admin({ isMobile = false }) {
key={player.uuid}
className="bg-zinc-800/50 rounded-xl p-3 text-center group hover:bg-zinc-800 transition-colors relative"
>
-
+
+
+
-
- {player.isOnline && (
+
+
+ {player.isOnline && (
+
+
+
)}
{player.isBanned ? (
-
+
+
+
) : (
-
+
+
+
)}
@@ -2098,25 +2107,27 @@ export default function Admin({ isMobile = false }) {
-
-
+
+
+
+
+
+
)
diff --git a/frontend/src/pages/PlayerStatsPage.jsx b/frontend/src/pages/PlayerStatsPage.jsx
index 7c79349..44379da 100644
--- a/frontend/src/pages/PlayerStatsPage.jsx
+++ b/frontend/src/pages/PlayerStatsPage.jsx
@@ -4,6 +4,7 @@ import { Activity, Skull, Heart, LocateFixed, Box, Sword, Clock, Calendar, Refre
import { motion } from 'framer-motion';
import { io } from 'socket.io-client';
import { formatDate, formatPlayTimeMs } from '../utils/formatters';
+import Tooltip from '../components/Tooltip';
// 스티브 3D 스킨 기본 이미지 (로딩 전/실패 시 사용)
@@ -405,9 +406,11 @@ const ItemStatRow = ({ item, translate, icons }) => {
)}
-
- {translate(item.id)}
-
+
+
+ {translate(item.id)}
+
+
{item.mined > 0 && 채굴 {item.mined}}
{item.used > 0 && 사용 {item.used}}
@@ -458,9 +461,11 @@ const MobStatRow = ({ mob, translate, icons }) => {
)}
-
- {translate(mob.id)}
-
+
+
+ {translate(mob.id)}
+
+
{mob.killed > 0 &&
처치 {mob.killed}}
{mob.killedBy > 0 &&
죽음 {mob.killedBy}}
diff --git a/frontend/src/pages/ServerDetail.jsx b/frontend/src/pages/ServerDetail.jsx
index b85d971..d2a7786 100644
--- a/frontend/src/pages/ServerDetail.jsx
+++ b/frontend/src/pages/ServerDetail.jsx
@@ -433,7 +433,9 @@ const ServerDetail = ({ isMobile = false }) => {
{server.mods.map((mod, index) => (
-
- {mod.id}
+
+ {mod.id}
+
{mod.version}
))}
@@ -457,7 +459,9 @@ const ServerDetail = ({ isMobile = false }) => {
{server.mods.map((mod, index) => (
-
- {mod.id}
+
+ {mod.id}
+
{mod.version}
))}