feat: add constants for handling states and decorators

main
Josue 4 years ago committed by Tsu-ba-me
parent 965a50ddf5
commit 514755c559
  1. 0
      striker-ui/lib/consts/ANVILS.ts
  2. 9
      striker-ui/lib/consts/NODES.ts
  3. 12
      striker-ui/lib/consts/SERVERS.ts

@ -0,0 +1,9 @@
const nodeState: ReadonlyMap<string, string> = new Map([
['unknown', 'Unknown'],
['off', 'Off'],
['on', 'On'],
['accessible', 'Accessible'],
['ready', 'Ready'],
]);
export default nodeState;

@ -0,0 +1,12 @@
const serverState: ReadonlyMap<string, string> = new Map([
['running', 'Running'],
['idle', 'Idle'],
['paused', 'Paused'],
['in_shutdown', 'Shutting Down'],
['shut_off', 'Off'],
['crashed', 'crashed'],
['pmsuspended', 'Suspended'],
['migrating', 'Migrating'],
]);
export default serverState;
Loading…
Cancel
Save