mirror of
https://github.com/khairul169/garage-webui.git
synced 2025-10-14 14:59:32 +07:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
ee420fbf29 | |||
615f72249e | |||
![]() |
d1ad6a008d | ||
![]() |
fbcd83709b |
4
.gitignore
vendored
4
.gitignore
vendored
@ -26,3 +26,7 @@ dist-ssr
|
|||||||
.env*
|
.env*
|
||||||
!.env.example
|
!.env.example
|
||||||
docker-compose.*.yml
|
docker-compose.*.yml
|
||||||
|
|
||||||
|
data/
|
||||||
|
meta/
|
||||||
|
garage.toml
|
||||||
|
@ -108,7 +108,7 @@ const NodesList = ({ nodes }: NodeListProps) => {
|
|||||||
|
|
||||||
const onRevert = () => {
|
const onRevert = () => {
|
||||||
if (
|
if (
|
||||||
window.confirm("Are you sure you want to revert layout changes?") &&
|
window.confirm("Are you sure you want to revert any changes made?") &&
|
||||||
data?.version != null
|
data?.version != null
|
||||||
) {
|
) {
|
||||||
revertChanges.mutate(data?.version + 1);
|
revertChanges.mutate(data?.version + 1);
|
||||||
@ -117,7 +117,7 @@ const NodesList = ({ nodes }: NodeListProps) => {
|
|||||||
|
|
||||||
const onApply = () => {
|
const onApply = () => {
|
||||||
if (
|
if (
|
||||||
window.confirm("Are you sure you want to revert layout changes?") &&
|
window.confirm("Are you sure you want to apply your layout changes?") &&
|
||||||
data?.version != null
|
data?.version != null
|
||||||
) {
|
) {
|
||||||
applyChanges.mutate(data?.version + 1);
|
applyChanges.mutate(data?.version + 1);
|
||||||
@ -247,7 +247,7 @@ const NodesList = ({ nodes }: NodeListProps) => {
|
|||||||
` (${Math.round(
|
` (${Math.round(
|
||||||
(item.dataPartition.available /
|
(item.dataPartition.available /
|
||||||
item.dataPartition.total) *
|
item.dataPartition.total) *
|
||||||
100
|
100
|
||||||
)}%)`}
|
)}%)`}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -262,8 +262,8 @@ const NodesList = ({ nodes }: NodeListProps) => {
|
|||||||
{item.draining
|
{item.draining
|
||||||
? "Draining"
|
? "Draining"
|
||||||
: item.isUp
|
: item.isUp
|
||||||
? "Active"
|
? "Active"
|
||||||
: "Inactive"}
|
: "Inactive"}
|
||||||
</Badge>
|
</Badge>
|
||||||
|
|
||||||
<Dropdown
|
<Dropdown
|
||||||
|
@ -38,8 +38,8 @@ const HomePage = () => {
|
|||||||
health?.status === "healthy"
|
health?.status === "healthy"
|
||||||
? "text-success"
|
? "text-success"
|
||||||
: health?.status === "degraded"
|
: health?.status === "degraded"
|
||||||
? "text-warning"
|
? "text-warning"
|
||||||
: "text-error"
|
: "text-error"
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
<StatsCard title="Nodes" icon={HardDrive} value={health?.knownNodes} />
|
<StatsCard title="Nodes" icon={HardDrive} value={health?.knownNodes} />
|
||||||
@ -56,7 +56,7 @@ const HomePage = () => {
|
|||||||
<StatsCard
|
<StatsCard
|
||||||
title="Active Storage Nodes"
|
title="Active Storage Nodes"
|
||||||
icon={DatabaseZap}
|
icon={DatabaseZap}
|
||||||
value={health?.storageNodesOk}
|
value={health?.storageNodesUp}
|
||||||
/>
|
/>
|
||||||
<StatsCard
|
<StatsCard
|
||||||
title="Partitions"
|
title="Partitions"
|
||||||
|
@ -5,7 +5,7 @@ export type GetHealthResult = {
|
|||||||
knownNodes: number;
|
knownNodes: number;
|
||||||
connectedNodes: number;
|
connectedNodes: number;
|
||||||
storageNodes: number;
|
storageNodes: number;
|
||||||
storageNodesOk: number;
|
storageNodesUp: number;
|
||||||
partitions: number;
|
partitions: number;
|
||||||
partitionsQuorum: number;
|
partitionsQuorum: number;
|
||||||
partitionsAllOk: number;
|
partitionsAllOk: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user