forked from simrail/simrail.pro
feat(frontend): rename simrail.alekswilc.dev to simrail.pro
This commit is contained in:
parent
4ec78b998d
commit
61761138f9
@ -18,9 +18,9 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<link rel="icon" type="image/jpg" href="/favicon.jpg"/>
|
||||
<link rel="icon" type="image/jpg" href="/favicon.png"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>simrail.alekswilc.dev | Simrail Logs</title>
|
||||
<title>simrail.pro | Simrail Logs</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 8.6 KiB |
BIN
packages/frontend/public/favicon.png
Normal file
BIN
packages/frontend/public/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 56 KiB |
@ -74,7 +74,7 @@ function App()
|
||||
index
|
||||
element={
|
||||
<>
|
||||
<PageMeta title="simrail.alekswilc.dev | Home"
|
||||
<PageMeta title="simrail.pro | Home"
|
||||
description="Simrail Stats - The best SimRail logs and statistics site!"/>
|
||||
<Home/>
|
||||
</>
|
||||
@ -84,7 +84,7 @@ function App()
|
||||
path="/leaderboard/trains"
|
||||
element={
|
||||
<>
|
||||
<PageMeta title="simrail.alekswilc.dev | Train Leaderboard"
|
||||
<PageMeta title="simrail.pro | Train Leaderboard"
|
||||
description="Simrail Stats - The best SimRail logs and statistics site!"/>
|
||||
<TrainLeaderboard/>
|
||||
</>
|
||||
@ -95,7 +95,7 @@ function App()
|
||||
path="/logs/trains"
|
||||
element={
|
||||
<>
|
||||
<PageMeta title="simrail.alekswilc.dev | Trains Logs"
|
||||
<PageMeta title="simrail.pro | Trains Logs"
|
||||
description="Simrail Stats - The best SimRail logs and statistics site!"/>
|
||||
<TrainLogs/>
|
||||
</>
|
||||
@ -106,7 +106,7 @@ function App()
|
||||
path="/logs/stations"
|
||||
element={
|
||||
<>
|
||||
<PageMeta title="simrail.alekswilc.dev | Stations Logs"
|
||||
<PageMeta title="simrail.pro | Stations Logs"
|
||||
description="Simrail Stats - The best SimRail logs and statistics site!"/>
|
||||
<StationLogs/>
|
||||
</>
|
||||
@ -117,7 +117,7 @@ function App()
|
||||
path="/leaderboard/stations"
|
||||
element={
|
||||
<>
|
||||
<PageMeta title="simrail.alekswilc.dev | Station Leaderboard"
|
||||
<PageMeta title="simrail.pro | Station Leaderboard"
|
||||
description="Simrail Stats - The best SimRail logs and statistics site!"/>
|
||||
<StationLeaderboard/>
|
||||
</>
|
||||
@ -129,7 +129,7 @@ function App()
|
||||
path="/leaderboard/steam/trains"
|
||||
element={
|
||||
<>
|
||||
<PageMeta title="simrail.alekswilc.dev | Steam Train Leaderboard"
|
||||
<PageMeta title="simrail.pro | Steam Train Leaderboard"
|
||||
description="Simrail Stats - The best SimRail logs and statistics site!"/>
|
||||
<SteamTrainLeaderboard/>
|
||||
</>
|
||||
@ -140,7 +140,7 @@ function App()
|
||||
path="/leaderboard/steam/stations"
|
||||
element={
|
||||
<>
|
||||
<PageMeta title="simrail.alekswilc.dev | Steam Station Leaderboard"
|
||||
<PageMeta title="simrail.pro | Steam Station Leaderboard"
|
||||
description="Simrail Stats - The best SimRail logs and statistics site!"/>
|
||||
<SteamStationLeaderboard/>
|
||||
</>
|
||||
@ -151,7 +151,7 @@ function App()
|
||||
path="/profile/:id"
|
||||
element={
|
||||
<>
|
||||
<PageMeta title="simrail.alekswilc.dev | Profile"
|
||||
<PageMeta title="simrail.pro | Profile"
|
||||
description="Simrail Stats - The best SimRail logs and statistics site!"/>
|
||||
{/* page meta is modified in component! */ }
|
||||
<Profile/>
|
||||
@ -163,7 +163,7 @@ function App()
|
||||
path="/log/:id"
|
||||
element={
|
||||
<>
|
||||
<PageMeta title="simrail.alekswilc.dev | Log"
|
||||
<PageMeta title="simrail.pro | Log"
|
||||
description="Simrail Stats - The best SimRail logs and statistics site!"/>
|
||||
{/* page title is modified after API response */ }
|
||||
<Log/>
|
||||
|
@ -43,7 +43,7 @@ export const LoadError = () =>
|
||||
<div className="mb-7.5 flex flex-wrap gap-4">
|
||||
<Link
|
||||
className="inline-flex items-center justify-center rounded-md bg-primary py-2 px-8 text-center font-medium text-white hover:bg-opacity-70 lg:px-6 xl:px-8"
|
||||
to="https://git.alekswilc.dev/simrail/simrail.alekswilc.dev/issues/new">{ t("content_loader.error.report") }</Link>
|
||||
to="https://git.alekswilc.dev/simrail/simrail.pro/issues/new">{ t("content_loader.error.report") }</Link>
|
||||
|
||||
<Link
|
||||
className="inline-flex items-center justify-center rounded-md bg-primary py-2 px-8 text-center font-medium text-white hover:bg-opacity-70 lg:px-6 xl:px-8"
|
||||
|
@ -55,7 +55,7 @@ export const Home = () =>
|
||||
|
||||
<div className="p-4 md:p-6 xl:p-9 flex gap-2 justify-center">
|
||||
<Link
|
||||
to="https://git.alekswilc.dev/simrail/simrail.alekswilc.dev"
|
||||
to="https://git.alekswilc.dev/simrail/simrail.pro"
|
||||
className="inline-flex items-center justify-center rounded-md bg-primary py-2 px-8 text-center font-medium text-white hover:bg-opacity-90 lg:px-8 xl:px-10"
|
||||
>
|
||||
{ t("home.buttons.project") }
|
||||
@ -99,9 +99,9 @@ export const Home = () =>
|
||||
</p>
|
||||
|
||||
<p>{ data?.data?.git?.version && <Link className="color-orchid"
|
||||
to={ `https://git.alekswilc.dev/simrail/simrail.alekswilc.dev/releases/tag/${ data?.data?.git?.version }` }>{ data?.data?.git?.version }</Link> }{ data?.data?.git?.version && data?.data?.git?.commit && " | " }{ data?.data?.git?.commit &&
|
||||
to={ `https://git.alekswilc.dev/simrail/simrail.pro/releases/tag/${ data?.data?.git?.version }` }>{ data?.data?.git?.version }</Link> }{ data?.data?.git?.version && data?.data?.git?.commit && " | " }{ data?.data?.git?.commit &&
|
||||
<Link className="color-orchid"
|
||||
to={ `https://git.alekswilc.dev/simrail/simrail.alekswilc.dev/commit/${ data?.data?.git?.commit }` }>{ data?.data?.git?.commit }</Link> }</p>
|
||||
to={ `https://git.alekswilc.dev/simrail/simrail.pro/commit/${ data?.data?.git?.commit }` }>{ data?.data?.git?.commit }</Link> }</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -38,25 +38,25 @@ export const Log = () =>
|
||||
{/* LOADING */ }
|
||||
{ isLoading && <ContentLoader/> }
|
||||
{/* NOT FOUND */ }
|
||||
{ data && data.code === 404 && <PageMeta title="simrail.alekswilc.dev | Record not found"
|
||||
{ data && data.code === 404 && <PageMeta title="simrail.pro | Record not found"
|
||||
description="This record could not be found."/> }
|
||||
{ data && data.code === 404 && <WarningAlert title={ t("log.errors.notfound.title") }
|
||||
description={ t("log.errors.notfound.description") }/> }
|
||||
{/* BLACKLISTED LOG */ }
|
||||
{ data && data.code === 403 && <PageMeta title="simrail.alekswilc.dev | Blacklisted record"
|
||||
{ data && data.code === 403 && <PageMeta title="simrail.pro | Blacklisted record"
|
||||
description="The record has been blocked."/> }
|
||||
{ data && data.code === 403 && <WarningAlert title={ t("log.errors.blacklist.title") }
|
||||
description={ t("log.errors.blacklist.description") }/> }
|
||||
{/* SUCCESS */ }
|
||||
{ data && data.code === 200 && !("trainNumber" in data.data) && <PageMeta
|
||||
title={ `simrail.alekswilc.dev | ${ data.data.player.username }` }
|
||||
title={ `simrail.pro | ${ data.data.player.username }` }
|
||||
image={ data.data.player.avatar }
|
||||
description={ `${ data.data.stationName } - ${ data.data.stationShort }` }/> }
|
||||
{ data && data.code === 200 && !("trainNumber" in data.data) && data.data &&
|
||||
< StationLog data={ data.data }/> }
|
||||
|
||||
{ data && data.code === 200 && ("trainNumber" in data.data) && <PageMeta
|
||||
title={ `simrail.alekswilc.dev | ${ data.data.player.username }` }
|
||||
title={ `simrail.pro | ${ data.data.player.username }` }
|
||||
image={ data.data.player.avatar }
|
||||
description={ `${ data.data.trainName } - ${ data.data.trainNumber }` }/> }
|
||||
{ data && data.code === 200 && ("trainNumber" in data.data) && < TrainLog data={ data.data }/> }
|
||||
|
@ -41,14 +41,14 @@ export const Profile = () =>
|
||||
{/* ERROR */}
|
||||
{ error && <LoadError /> }
|
||||
{/* NOT FOUND */ }
|
||||
{ data && data.code === 404 && <PageMeta title="simrail.alekswilc.dev | Profile not found"
|
||||
{ data && data.code === 404 && <PageMeta title="simrail.pro | Profile not found"
|
||||
description="Player's profile could not be found or the player has a private Steam profile."/> }
|
||||
{ data && data.code === 404 && <WarningAlert title={ t("profile.errors.notfound.title") }
|
||||
description={ t("profile.errors.notfound.description") }/> }
|
||||
|
||||
{/* SUCCESS */ }
|
||||
{ data && data.code === 200 && <PageMeta image={ data.data.player.username }
|
||||
title={ `simrail.alekswilc.dev | ${ data.data.player.username }'s profile` }
|
||||
title={ `simrail.pro | ${ data.data.player.username }'s profile` }
|
||||
description={ `${ data.data.player.trainDistance ? 0 : ((data.data.player.trainDistance / 1000).toFixed(2)) } driving experience |
|
||||
${ data.data.player.dispatcherTime ? 0 : formatTime(data.data.player.dispatcherTime) } dispatcher experience` }/> }
|
||||
{ data && data.code === 200 && <ProfileCard data={ data.data }/> }
|
||||
|
Loading…
x
Reference in New Issue
Block a user