import { BrowserRouter, Link, matchPath, Navigate, Route, Routes, useLocation, } from "react-router"; import type { ReactNode } from "react"; import { useMsal } from "@azure/msal-react"; import { LogOut, Moon, Sun } from "lucide-react"; import DevAuthSwitcher from "./components/DevAuthSwitcher"; import { DEFAULT_COMMUNITY_ID, setTheme, useTheme } from "./config"; import { useCommunity, useMatch, useMe } from "./api/hooks"; import { isMsalConfigured } from "./lib/auth/msal.config"; import AuthCallbackPage from "./pages/AuthCallback"; import HomePage from "./pages/HomePage"; import LoginPage from "./pages/Login"; import MatchDetailPage from "./pages/MatchDetailPage"; import MatchGameDetailPage from "./pages/MatchGameDetailPage"; import MatchTeamProgressPage from "./pages/MatchTeamProgressPage"; import AuctionPage from "./pages/AuctionPage"; import UserHistoryPage from "./pages/UserHistoryPage"; import CommunityInternalStatsPage from "./pages/CommunityInternalStatsPage"; import CommunityInternalPlayerPage from "./pages/CommunityInternalPlayerPage"; import InternalMatchDetailPage from "./pages/InternalMatchDetailPage"; import LegacyImportPage from "./pages/admin/LegacyImportPage"; import LegacyMatchesPage from "./pages/admin/LegacyMatchesPage"; import MatchAdminPage from "./pages/admin/MatchAdminPage"; import TournamentCodesPage from "./pages/admin/TournamentCodesPage"; import { PlainPage, Tooltip, pageWidthClass } from "./ui"; import "./components/app-header.css"; const NAV_ICON_BUTTON_CLASS = "lts-header-icon-button"; function MsalHeaderActions() { const { accounts, instance } = useMsal(); const account = instance.getActiveAccount() ?? accounts[0]; if (!account) { return ( 로그인 ); } const name = account.name ?? account.username; return (
404
주소가 바뀌었거나 삭제된 내전일 수 있습니다.
내전 목록으로This service is provided for community tournament support, including match scheduling, participation management, team organization, and related statistics.
By using this service, users agree not to interfere with service operation, misuse community data, or submit content that violates applicable laws or community rules.
} />This service processes account, profile, match participation, team, and authentication data only as needed to operate community tournament features.
Users may request access, correction, or deletion of their personal data through the service administrator, subject to records that must be retained for service integrity or legal obligations.
} />