From 46f9ba5d8c295454381655e6ec02ad3cf8bd79db Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 6 Mar 2026 02:18:40 +0900 Subject: style: switch from tab to space indentation in frontend and worker/php Update biome.json indentStyle from "tab" to "space" and reformat all files in both workspaces. Co-Authored-By: Claude Opus 4.6 --- frontend/app/pages/DashboardPage.tsx | 202 +++++++++++++++++------------------ 1 file changed, 101 insertions(+), 101 deletions(-) (limited to 'frontend/app/pages/DashboardPage.tsx') diff --git a/frontend/app/pages/DashboardPage.tsx b/frontend/app/pages/DashboardPage.tsx index 54bfdd6..74be96e 100644 --- a/frontend/app/pages/DashboardPage.tsx +++ b/frontend/app/pages/DashboardPage.tsx @@ -12,111 +12,111 @@ import { usePageTitle } from "../hooks/usePageTitle"; type Game = components["schemas"]["Game"]; export default function DashboardPage() { - usePageTitle(`Dashboard | ${APP_NAME}`); + usePageTitle(`Dashboard | ${APP_NAME}`); - const { user, isLoggedIn, isLoading: authLoading, logout } = useAuth(); - const [, navigate] = useLocation(); + const { user, isLoggedIn, isLoading: authLoading, logout } = useAuth(); + const [, navigate] = useLocation(); - const [games, setGames] = useState([]); - const [loading, setLoading] = useState(true); + const [games, setGames] = useState([]); + const [loading, setLoading] = useState(true); - useEffect(() => { - const apiClient = createApiClient(); - apiClient - .getGames() - .then(({ games }) => setGames(games)) - .finally(() => setLoading(false)); - }, []); + useEffect(() => { + const apiClient = createApiClient(); + apiClient + .getGames() + .then(({ games }) => setGames(games)) + .finally(() => setLoading(false)); + }, []); - async function handleLogout() { - await logout(); - navigate("/"); - } + async function handleLogout() { + await logout(); + navigate("/"); + } - if (loading || authLoading) { - return ( -
-

Loading...

-
- ); - } + if (loading || authLoading) { + return ( +
+

Loading...

+
+ ); + } - return ( -
- {isLoggedIn && user?.icon_path && ( - - )} - {isLoggedIn ? ( -

- {user?.display_name} -

- ) : ( -

試合一覧

- )} - -
- {games.length === 0 ? ( -

試合はありません

- ) : ( -
    - {games.map((game) => ( -
  • -
    - - {game.display_name} - -
    -
    - {isLoggedIn && game.started_at == null && ( - - 問題を見る - - )} - {isLoggedIn && ( - - 対戦 - - )} - - 観戦 - -
    -
  • - ))} -
- )} -
-
- {isLoggedIn ? ( - - ) : ( - ログイン - )} - {isLoggedIn && user?.is_admin && ( - - Admin Dashboard - - )} -
- ); + return ( +
+ {isLoggedIn && user?.icon_path && ( + + )} + {isLoggedIn ? ( +

+ {user?.display_name} +

+ ) : ( +

試合一覧

+ )} + +
+ {games.length === 0 ? ( +

試合はありません

+ ) : ( +
    + {games.map((game) => ( +
  • +
    + + {game.display_name} + +
    +
    + {isLoggedIn && game.started_at == null && ( + + 問題を見る + + )} + {isLoggedIn && ( + + 対戦 + + )} + + 観戦 + +
    +
  • + ))} +
+ )} +
+
+ {isLoggedIn ? ( + + ) : ( + ログイン + )} + {isLoggedIn && user?.is_admin && ( + + Admin Dashboard + + )} +
+ ); } -- cgit v1.3.1