kopia lustrzana https://github.com/bugout-dev/moonstream
Removed unim status
rodzic
e1477643b9
commit
93bc461a0d
|
@ -11,8 +11,6 @@ const Status = () => {
|
||||||
|
|
||||||
const { serverListStatusCache } = useStatus();
|
const { serverListStatusCache } = useStatus();
|
||||||
|
|
||||||
console.log(serverListStatusCache?.data);
|
|
||||||
|
|
||||||
const moonstreamapiStatus = serverListStatusCache?.data?.filter(
|
const moonstreamapiStatus = serverListStatusCache?.data?.filter(
|
||||||
(i) => i.name === "moonstream_api"
|
(i) => i.name === "moonstream_api"
|
||||||
)[0];
|
)[0];
|
||||||
|
@ -40,9 +38,6 @@ const Status = () => {
|
||||||
const dbReplicaServerStatus = serverListStatusCache?.data?.filter(
|
const dbReplicaServerStatus = serverListStatusCache?.data?.filter(
|
||||||
(i) => i.name === "moonstream_database_replica"
|
(i) => i.name === "moonstream_database_replica"
|
||||||
)[0];
|
)[0];
|
||||||
const unimLeaderboardStatus = serverListStatusCache?.data?.filter(
|
|
||||||
(i) => i.name === "unim_leaderboard"
|
|
||||||
)[0];
|
|
||||||
|
|
||||||
const StatusRow = (props) => {
|
const StatusRow = (props) => {
|
||||||
return (
|
return (
|
||||||
|
@ -261,25 +256,6 @@ const Status = () => {
|
||||||
: 0}
|
: 0}
|
||||||
</Text>
|
</Text>
|
||||||
</StatusRow>
|
</StatusRow>
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<StatusRow
|
|
||||||
title="Unim Leaderboard server"
|
|
||||||
cache={serverListStatusCache}
|
|
||||||
>
|
|
||||||
<Text
|
|
||||||
color={
|
|
||||||
unimLeaderboardStatus?.status_code == 200
|
|
||||||
? healthyStatusColor
|
|
||||||
: downStatusColor
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{unimLeaderboardStatus?.status_code == 200
|
|
||||||
? healthyStatusText
|
|
||||||
: downStatusText}
|
|
||||||
</Text>
|
|
||||||
</StatusRow>
|
|
||||||
</chakra.span>
|
</chakra.span>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
Ładowanie…
Reference in New Issue