From ae361aa0aebcaa5f2170cb551438711b13749b52 Mon Sep 17 00:00:00 2001 From: kkzzhizhou <806508401@qq.com> Date: Sun, 5 Dec 2021 23:30:51 +0800 Subject: [PATCH] add exp to stats view --- src/i18n/zh-cn.json | 1 + src/view/Components/Statsview/index.tsx | 3 ++- styles.css | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/i18n/zh-cn.json b/src/i18n/zh-cn.json index 91dabe0..10fcb87 100644 --- a/src/i18n/zh-cn.json +++ b/src/i18n/zh-cn.json @@ -4,6 +4,7 @@ "HP": "生命值", "LEVEL": "等级", "GOLD": "金币", + "EXP": "经验", "title": "标题", "notes": "备注", "type": "类型", diff --git a/src/view/Components/Statsview/index.tsx b/src/view/Components/Statsview/index.tsx index dc0c618..59bb7b6 100644 --- a/src/view/Components/Statsview/index.tsx +++ b/src/view/Components/Statsview/index.tsx @@ -6,9 +6,10 @@ export default function Index(props: any) { return(
{/*
{props.user_data.profile.name}
*/} - {/* {console.log(props)} */} + {console.log(props.user_data)}
favorite{t('HP')}: {(props.user_data.stats.hp).toPrecision(3)}
star{t('LEVEL')}: {props.user_data.stats.lvl}
+
auto_awesome{t('EXP')}: {props.user_data.stats.exp}
credit_card{t('GOLD')}: {(props.user_data.stats.gp).toPrecision(3)}
); diff --git a/styles.css b/styles.css index ca89e2b..ac03f43 100644 --- a/styles.css +++ b/styles.css @@ -130,7 +130,7 @@ input[type=checkbox]:focus { } .substats { - font-size: medium; + font-size: small; } ul {