Commit 4e31b296 authored by Chunchi Che's avatar Chunchi Che

update Match.tsx and translations

parent 3ff4cd09
Pipeline #27596 passed with stages
in 7 minutes and 36 seconds
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"CustomRoomDesc": "Crie uma sala com regras personalizadas e desafie seus amigos.", "CustomRoomDesc": "Crie uma sala com regras personalizadas e desafie seus amigos.",
"ReplayTitle": "Replay", "ReplayTitle": "Replay",
"ReplayDesc": "Assista livremente aos duelos passados e reviva aqueles momentos emocionantes de reversão.", "ReplayDesc": "Assista livremente aos duelos passados e reviva aqueles momentos emocionantes de reversão.",
"WIPTitle": "Em desenvolvimento...", "MdproDecksTitle": "Mdpro Baralho Online",
"WIPDesc": "Aguarde por outras funcionalidades." "MdproDecksDesc": "Veja outros jogadores ou carregue seu próprio deck."
} }
} }
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"CustomRoomDesc": "创建自定义规则的房间,与好友约战。", "CustomRoomDesc": "创建自定义规则的房间,与好友约战。",
"ReplayTitle": "录像回放", "ReplayTitle": "录像回放",
"ReplayDesc": "自由查看进行过的决斗,回味那些精彩的逆转瞬间。", "ReplayDesc": "自由查看进行过的决斗,回味那些精彩的逆转瞬间。",
"WIPTitle": "开发中...", "MdproDecksTitle": "Mdpro 在线卡组",
"WIPDesc": "其他功能敬请期待。" "MdproDecksDesc": "查看其他玩家或者上传自己的卡组构筑。"
} }
} }
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"CustomRoomDesc": "Create a room with custom rules and challenge friends.", "CustomRoomDesc": "Create a room with custom rules and challenge friends.",
"ReplayTitle": "Replay", "ReplayTitle": "Replay",
"ReplayDesc": "Freely watch past duels and relive those exciting moments of reversal.", "ReplayDesc": "Freely watch past duels and relive those exciting moments of reversal.",
"WIPTitle": "Under development...", "MdproDecksTitle": "Mdpro Online Deck",
"WIPDesc": "Stay tuned for other features." "MdproDecksDesc": "View other players' decks or upload your own deck build."
} }
} }
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"CustomRoomDesc": "Salle personnalisée", "CustomRoomDesc": "Salle personnalisée",
"ReplayTitle": "Replay", "ReplayTitle": "Replay",
"ReplayDesc": "Regardez librement les duels passés et revivez ces moments passionnants de retournement.", "ReplayDesc": "Regardez librement les duels passés et revivez ces moments passionnants de retournement.",
"WIPTitle": "En développement...", "MdproDecksTitle": "Mdpro Deck en Ligne",
"WIPDesc": "D'autres fonctionnalités à venir." "MdproDecksDesc": "Consultez les decks des autres joueurs ou téléchargez votre propre construction de deck."
} }
} }
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"CustomRoomDesc": "カスタムルールの部屋を作成し、友達と対戦しましょう。", "CustomRoomDesc": "カスタムルールの部屋を作成し、友達と対戦しましょう。",
"ReplayTitle": "リプレイ", "ReplayTitle": "リプレイ",
"ReplayDesc": "過去のデュエルを自由に見て、それらのエキサイティングな逆転の瞬間を振り返りましょう。", "ReplayDesc": "過去のデュエルを自由に見て、それらのエキサイティングな逆転の瞬間を振り返りましょう。",
"WIPTitle": "開発中...", "MdproDecksTitle": "Mdpro オンラインデッキ",
"WIPDesc": "他の機能をお楽しみに。" "MdproDecksDesc": "他のプレイヤーのデッキを閲覧したり、自分のデッキをアップロードしたりする"
} }
} }
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"CustomRoomDesc": "Crie uma sala com regras personalizadas e desafie seus amigos.", "CustomRoomDesc": "Crie uma sala com regras personalizadas e desafie seus amigos.",
"ReplayTitle": "Repetição", "ReplayTitle": "Repetição",
"ReplayDesc": "Assiste livremente aos duelos passados e revive aqueles momentos emocionantes de reversão.", "ReplayDesc": "Assiste livremente aos duelos passados e revive aqueles momentos emocionantes de reversão.",
"WIPTitle": "Em desenvolvimento...", "MdproDecksTitle": "Baralho Online Mdpro",
"WIPDesc": "Aguarde por outras funcionalidades." "MdproDecksDesc": "Ver os decks de outros jogadores ou enviar o seu próprio deck."
} }
} }
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"CustomRoomDesc": "Crea una sala con reglas personalizadas y desafía a tus amigos.", "CustomRoomDesc": "Crea una sala con reglas personalizadas y desafía a tus amigos.",
"ReplayTitle": "Repetición", "ReplayTitle": "Repetición",
"ReplayDesc": "Mira libremente duelos pasados y revive esos emocionantes momentos de reversión.", "ReplayDesc": "Mira libremente duelos pasados y revive esos emocionantes momentos de reversión.",
"WIPTitle": "En desarrollo...", "MdproDecksTitle": "Baraja en línea de Mdpro",
"WIPDesc": "Espere por otras funciones." "MdproDecksDesc": "Ver las barajas de otros jugadores o subir tus propias construcciones de barajas."
} }
} }
...@@ -16,7 +16,6 @@ import { ...@@ -16,7 +16,6 @@ import {
getJoinRoomPasswd, getJoinRoomPasswd,
getPrivateRoomID, getPrivateRoomID,
match, match,
pullDecks,
} from "@/api"; } from "@/api";
import { useConfig } from "@/config"; import { useConfig } from "@/config";
import { AudioActionType, changeScene } from "@/infra/audio"; import { AudioActionType, changeScene } from "@/infra/audio";
...@@ -221,6 +220,9 @@ export const Component: React.FC = () => { ...@@ -221,6 +220,9 @@ export const Component: React.FC = () => {
} }
}, [joined]); }, [joined]);
// Mdpro 在线卡组
const onMdproOnlineDecks = () => navigate(`/mdpro/decks`);
return ( return (
<> <>
<Background /> <Background />
...@@ -317,13 +319,10 @@ export const Component: React.FC = () => { ...@@ -317,13 +319,10 @@ export const Component: React.FC = () => {
onClick={replayOpen} onClick={replayOpen}
/> />
<Mode <Mode
title={i18n("WIPTitle")} title={i18n("MdproDeckstitle")}
desc={i18n("WIPDesc")} desc={i18n("MdproDecksDesc")}
icon={null} icon={null}
onClick={async () => { onClick={onMdproOnlineDecks}
const mdproDecks = await pullDecks();
console.log(mdproDecks);
}}
/> />
</div> </div>
</div> </div>
......
import React from "react";
import { Background } from "../Shared";
export const Component: React.FC = () => (
<div>
<Background />
</div>
);
...@@ -32,6 +32,10 @@ const router = createBrowserRouter([ ...@@ -32,6 +32,10 @@ const router = createBrowserRouter([
path: "/side", path: "/side",
lazy: () => import("./Side"), lazy: () => import("./Side"),
}, },
{
path: "/mdpro/decks",
lazy: () => import("./MdproDeck"),
},
], ],
}, },
]); ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment