From 92c4cb86c1165470d7d6e328f6eee5c826ae7c3e Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 11 Aug 2023 14:12:25 -0400 Subject: [PATCH] fix(striker-ui): rename node->subnode in host status --- striker-ui/components/Hosts/AnvilHost.tsx | 2 +- striker-ui/lib/consts/HOST_STATUS.ts | 18 ++++++++++++++++++ striker-ui/lib/consts/NODES.ts | 18 ------------------ 3 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 striker-ui/lib/consts/HOST_STATUS.ts delete mode 100644 striker-ui/lib/consts/NODES.ts diff --git a/striker-ui/components/Hosts/AnvilHost.tsx b/striker-ui/components/Hosts/AnvilHost.tsx index 29b305d6..ac6475b8 100644 --- a/striker-ui/components/Hosts/AnvilHost.tsx +++ b/striker-ui/components/Hosts/AnvilHost.tsx @@ -2,7 +2,7 @@ import { Box, styled, Switch } from '@mui/material'; import API_BASE_URL from '../../lib/consts/API_BASE_URL'; import { LARGE_MOBILE_BREAKPOINT } from '../../lib/consts/DEFAULT_THEME'; -import HOST_STATUS from '../../lib/consts/NODES'; +import HOST_STATUS from '../../lib/consts/HOST_STATUS'; import { ProgressBar } from '../Bars'; import Decorator, { Colours } from '../Decorator'; diff --git a/striker-ui/lib/consts/HOST_STATUS.ts b/striker-ui/lib/consts/HOST_STATUS.ts new file mode 100644 index 00000000..418ac36c --- /dev/null +++ b/striker-ui/lib/consts/HOST_STATUS.ts @@ -0,0 +1,18 @@ +const SUBNODE_STATUS_MESSAGE_MAP: ReadonlyMap = new Map([ + ['message_0222', 'The subnode is in an unknown state.'], + ['message_0223', 'The subnode is a full cluster member.'], + [ + 'message_0224', + 'The subnode is coming online; the cluster resource manager is running (step 2/3).', + ], + [ + 'message_0225', + 'The subnode is coming online; the subnode is a consensus cluster member (step 1/3).', + ], + [ + 'message_0226', + 'The subnode has booted, but it is not (yet) joining the cluster.', + ], +]); + +export default SUBNODE_STATUS_MESSAGE_MAP; diff --git a/striker-ui/lib/consts/NODES.ts b/striker-ui/lib/consts/NODES.ts deleted file mode 100644 index e460683c..00000000 --- a/striker-ui/lib/consts/NODES.ts +++ /dev/null @@ -1,18 +0,0 @@ -const NODE_STATUS_MESSAGE_MAP: ReadonlyMap = new Map([ - ['message_0222', 'The node is in an unknown state.'], - ['message_0223', 'The node is a full cluster member.'], - [ - 'message_0224', - 'The node is coming online; the cluster resource manager is running (step 2/3).', - ], - [ - 'message_0225', - 'The node is coming online; the node is a consensus cluster member (step 1/3).', - ], - [ - 'message_0226', - 'The node has booted, but it is not (yet) joining the cluster.', - ], -]); - -export default NODE_STATUS_MESSAGE_MAP;