diff --git a/qwilight-fe/.env b/qwilight-fe/.env
index 6e29c1b..9a4a14b 100644
--- a/qwilight-fe/.env
+++ b/qwilight-fe/.env
@@ -1,2 +1 @@
PORT = 3001
-API = http://localhost:7301
diff --git a/qwilight-fe/src/Language.json b/qwilight-fe/src/Language.json
index 9a36505..1130009 100644
--- a/qwilight-fe/src/Language.json
+++ b/qwilight-fe/src/Language.json
@@ -25,22 +25,10 @@
"avatarCountText": "%d 명",
"avatarDate": "마지막 접속일: %s",
"avatarDateText": "활동 추세",
- "avatarFavorites10KText": "⑩K 가장 많이 플레이 TOP 10",
- "avatarFavorites14KText": "⑭K 가장 많이 플레이 TOP 10",
- "avatarFavorites24KText": "24 가장 많이 플레이 TOP 10",
- "avatarFavorites48KText": "48 가장 많이 플레이 TOP 10",
- "avatarFavorites5KText": "⑤K 가장 많이 플레이 TOP 10",
- "avatarFavorites7KText": "⑦K 가장 많이 플레이 TOP 10",
- "avatarFavorites9KText": "9K 가장 많이 플레이 TOP 10",
+ "avatarFavoritesText": "가장 많이 플레이 TOP 10",
"avatarIntroText": "자기소개",
- "avatarLasts10KText": "⑩K 마지막 플레이 TOP 10",
- "avatarLasts14KText": "⑭K 마지막 플레이 TOP 10",
- "avatarLasts24KText": "24 마지막 플레이 TOP 10",
- "avatarLasts48KText": "48 마지막 플레이 TOP 10",
- "avatarLasts5KText": "⑤K 마지막 플레이 TOP 10",
- "avatarLasts7KText": "⑦K 마지막 플레이 TOP 10",
- "avatarLasts9KText": "9K 마지막 플레이 TOP 10",
- "avatarQuitText": "랭크",
+ "avatarLastsText": "마지막 플레이 TOP 10",
+ "avatarQuitStatusText": "랭크",
"bannedNoteFile": "불법 BMS, BMSON 노트 파일은 키음 개수를 확인하여 자체적으로 걸러집니다. 만약 불법 BMS/BMSON 노트 파일을 발견하시면 %s로 알려주시면 삭제합니다.",
"commentSiteName": "성과 알림방",
"defaultSiteName": "일반 대화방",
@@ -170,22 +158,10 @@
"avatarCountText": "%d people",
"avatarDate": "Last Connection Date: %s",
"avatarDateText": "Activity Trends",
- "avatarFavorites10KText": "⑩K Most plays TOP 10",
- "avatarFavorites14KText": "⑭K Most plays TOP 10",
- "avatarFavorites24KText": "24 Most plays TOP 10",
- "avatarFavorites48KText": "48 Most plays TOP 10",
- "avatarFavorites5KText": "⑤K Most plays TOP 10",
- "avatarFavorites7KText": "⑦K Most plays TOP 10",
- "avatarFavorites9KText": "9K Most plays TOP 10",
+ "avatarFavoritesText": "Most plays TOP 10",
"avatarIntroText": "Introduce yourself",
- "avatarLasts10KText": "⑩K Last plays TOP 10",
- "avatarLasts14KText": "⑭K Last plays TOP 10",
- "avatarLasts24KText": "24 Last plays TOP 10",
- "avatarLasts48KText": "48 Last plays TOP 10",
- "avatarLasts5KText": "⑤K Last plays TOP 10",
- "avatarLasts7KText": "⑦K Last plays TOP 10",
- "avatarLasts9KText": "9K Last plays TOP 10",
- "avatarQuitText": "Rank",
+ "avatarLastsText": "Last plays TOP 10",
+ "avatarQuitStatusText": "Rank",
"bannedNoteFile": "Illegal BMS and BMSON note files are filtered by themselves by checking the number of key notes. If you find illegal BMS/BMSON note file, please let us know via %s and delete it.",
"commentSiteName": "Performance notification room",
"defaultSiteName": "General chat room",
diff --git a/qwilight-fe/src/avatar/AvatarView.tsx b/qwilight-fe/src/avatar/AvatarView.tsx
index 576e6f7..9c3c0fe 100644
--- a/qwilight-fe/src/avatar/AvatarView.tsx
+++ b/qwilight-fe/src/avatar/AvatarView.tsx
@@ -23,7 +23,7 @@
import { formatText, getDefaultAvatarID } from "src/Utility";
import { wwwAPI } from "src/Www";
import AvatarDrawing from "src/AvatarDrawing";
-import QuitStatusValues from "src/avatar/QuitValues";
+import QuitStatusValues from "src/avatar/QuitStatusValues";
import AvatarTitle from "src/AvatarTitle";
import { AvatarViewLoading } from "src/Loading";
@@ -69,6 +69,8 @@
getAvatarLasts48K,
getAvatarWwwLevels,
getAvatar,
+ favoritesTabPosition,
+ lastsTabPosition,
} = useAvatarStore();
const { siteAvatarID, isSignedIn, setSignInOpened } = useSiteStore();
@@ -102,26 +104,33 @@
useEffect(() => {
if (avatarID) {
- Promise.all([
- getAvatarFavorites5K(t),
- getAvatarFavorites7K(t),
- getAvatarFavorites9K(t),
- getAvatarFavorites10K(t),
- getAvatarFavorites14K(t),
- getAvatarFavorites24K(t),
- getAvatarFavorites48K(t),
- getAvatarLasts5K(),
- getAvatarLasts7K(),
- getAvatarLasts9K(),
- getAvatarLasts10K(),
- getAvatarLasts14K(),
- getAvatarLasts24K(),
- getAvatarLasts48K(),
- getAvatarWwwLevels(),
- ]);
+ switch (favoritesTabPosition) {
+ case 0:
+ getAvatarFavorites5K(t);
+ break;
+ case 1:
+ getAvatarFavorites7K(t);
+ break;
+ case 2:
+ getAvatarFavorites9K(t);
+ break;
+ case 3:
+ getAvatarFavorites10K(t);
+ break;
+ case 4:
+ getAvatarFavorites14K(t);
+ break;
+ case 5:
+ getAvatarFavorites24K(t);
+ break;
+ case 6:
+ getAvatarFavorites48K(t);
+ break;
+ }
}
}, [
avatarID,
+ favoritesTabPosition,
getAvatarFavorites10K,
getAvatarFavorites14K,
getAvatarFavorites24K,
@@ -129,6 +138,38 @@
getAvatarFavorites5K,
getAvatarFavorites7K,
getAvatarFavorites9K,
+ t,
+ ]);
+
+ useEffect(() => {
+ if (avatarID) {
+ switch (lastsTabPosition) {
+ case 0:
+ getAvatarLasts5K();
+ break;
+ case 1:
+ getAvatarLasts7K();
+ break;
+ case 2:
+ getAvatarLasts9K();
+ break;
+ case 3:
+ getAvatarLasts10K();
+ break;
+ case 4:
+ getAvatarLasts14K();
+ break;
+ case 5:
+ getAvatarLasts24K();
+ break;
+ case 6:
+ getAvatarLasts48K();
+ break;
+ }
+ }
+ }, [
+ avatarID,
+ lastsTabPosition,
getAvatarLasts10K,
getAvatarLasts14K,
getAvatarLasts24K,
@@ -136,7 +177,6 @@
getAvatarLasts5K,
getAvatarLasts7K,
getAvatarLasts9K,
- getAvatarWwwLevels,
t,
]);
@@ -322,6 +362,8 @@
>
)}
+
+