UNPKG

@openshift-assisted/ui-lib

Version:

React component library for the Assisted Installer UI

252 lines 11.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hostStatusOrder = exports.hostStatus = void 0; const tslib_1 = require("tslib"); const React = tslib_1.__importStar(require("react")); const ban_icon_1 = require("@patternfly/react-icons/dist/js/icons/ban-icon"); const check_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/check-circle-icon"); const connected_icon_1 = require("@patternfly/react-icons/dist/js/icons/connected-icon"); const disconnected_icon_1 = require("@patternfly/react-icons/dist/js/icons/disconnected-icon"); const exclamation_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/exclamation-circle-icon"); const exclamation_triangle_icon_1 = require("@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon"); const in_progress_icon_1 = require("@patternfly/react-icons/dist/js/icons/in-progress-icon"); const link_icon_1 = require("@patternfly/react-icons/dist/js/icons/link-icon"); const pending_icon_1 = require("@patternfly/react-icons/dist/js/icons/pending-icon"); const plus_icon_1 = require("@patternfly/react-icons/dist/js/icons/plus-icon"); const global_danger_color_100_1 = require("@patternfly/react-tokens/dist/js/global_danger_color_100"); const global_warning_color_100_1 = require("@patternfly/react-tokens/dist/js/global_warning_color_100"); const global_success_color_100_1 = require("@patternfly/react-tokens/dist/js/global_success_color_100"); const chart_color_blue_300_1 = require("@patternfly/react-tokens/dist/js/chart_color_blue_300"); const hostStatus = (t) => Object.freeze({ 'unbinding-pending-user-action': { key: 'unbinding-pending-user-action', title: t('ai:Removing from cluster'), category: 'Discovery related', icon: React.createElement(in_progress_icon_1.InProgressIcon, null), details: t('ai:This host is being removed from the cluster. To finish, reboot the host with the infrastructure environment ISO.'), }, reclaiming: { key: 'reclaiming', title: t('ai:Returning to the infrastructure environment'), category: 'Discovery related', icon: React.createElement(in_progress_icon_1.InProgressIcon, null), details: t('ai:This host is being removed from the cluster.'), }, 'reclaiming-rebooting': { key: 'reclaiming-rebooting', title: t('ai:Rebooting while returning to the infrastructure environment'), category: 'Discovery related', icon: React.createElement(in_progress_icon_1.InProgressIcon, null), details: t('ai:This host is being rebooted to be available for reuse in another cluster.'), }, 'preparing-failed': { key: 'preparing-failed', title: t('ai:Preparing step failed'), category: 'Installation related', details: t('ai:Preparing step failed'), }, unbinding: { key: 'unbinding', title: t('ai:Removing from cluster'), category: 'Discovery related', icon: React.createElement(in_progress_icon_1.InProgressIcon, null), details: t('ai:This host is being removed from the cluster.'), }, 'disabled-unbound': { key: 'disabled-unbound', title: t('ai:Disabled'), category: 'Discovery related', icon: React.createElement(ban_icon_1.BanIcon, null), details: t('ai:This host was manually removed from a cluster and can not be included in another one. Enable this host to make it available again.'), }, 'disconnected-unbound': { key: 'disconnected-unbound', title: t('ai:Disconnected'), category: 'Discovery related', icon: React.createElement(disconnected_icon_1.DisconnectedIcon, null), details: t('ai:Ensure the host is running, responsive, and is able to contact the installer.'), }, 'discovering-unbound': { key: 'discovering-unbound', title: t('ai:Discovering'), category: 'Discovery related', icon: React.createElement(connected_icon_1.ConnectedIcon, null), details: t('ai:This host is transmitting its hardware and networking information to the installer. Please wait while this information is received.'), }, 'insufficient-unbound': { key: 'insufficient-unbound', title: t('ai:Insufficient'), category: 'Discovery related', icon: React.createElement(exclamation_triangle_icon_1.ExclamationTriangleIcon, { color: global_warning_color_100_1.global_warning_color_100.value }), details: t('ai:This host does not meet the minimum hardware or networking requirements and can not be included in the cluster.'), }, 'known-unbound': { key: 'known-unbound', title: t('ai:Available'), category: 'Discovery related', icon: React.createElement(plus_icon_1.PlusIcon, { color: chart_color_blue_300_1.chart_color_blue_300.value }), details: t('ai:This host meets the minimum hardware and networking requirements and can be included in the cluster.'), }, binding: { key: 'binding', title: t('ai:Binding'), category: 'Discovery related', icon: React.createElement(link_icon_1.LinkIcon, null), details: t('ai:This host is being added to the cluster.'), }, discovering: { key: 'discovering', title: t('ai:Discovering'), category: 'Discovery related', icon: React.createElement(connected_icon_1.ConnectedIcon, null), details: t('ai:This host is transmitting its hardware and networking information to the installer. Please wait while this information is received.'), }, 'pending-for-input': { key: 'pending-for-input', title: t('ai:Pending input'), category: 'Discovery related', icon: React.createElement(pending_icon_1.PendingIcon, null), }, known: { key: 'known', title: t('ai:Ready'), category: 'Discovery related', icon: React.createElement(check_circle_icon_1.CheckCircleIcon, { color: global_success_color_100_1.global_success_color_100.value }), details: t('ai:This host meets the minimum hardware and networking requirements and will be included in the cluster.'), }, disconnected: { key: 'disconnected', title: t('ai:Disconnected'), category: 'Discovery related', icon: React.createElement(disconnected_icon_1.DisconnectedIcon, null), details: t('ai:This host has lost its connection to the installer and will not be included in the cluster unless connectivity is restored.'), }, insufficient: { key: 'insufficient', title: t('ai:Insufficient'), category: 'Discovery related', icon: React.createElement(exclamation_triangle_icon_1.ExclamationTriangleIcon, { color: global_warning_color_100_1.global_warning_color_100.value }), details: t('ai:This host does not meet the minimum hardware or networking requirements and will not be included in the cluster.'), }, disabled: { key: 'disabled', title: t('ai:Disabled'), category: 'Discovery related', icon: React.createElement(ban_icon_1.BanIcon, null), details: t('ai:This host was manually disabled and will not be included in the cluster. Enable this host to include it again.'), }, 'preparing-for-installation': { key: 'preparing-for-installation', title: t('ai:Preparing for installation'), category: 'Installation related', icon: React.createElement(in_progress_icon_1.InProgressIcon, null), }, 'preparing-successful': { key: 'preparing-successful', title: t('ai:Preparing step successful'), category: 'Installation related', icon: React.createElement(in_progress_icon_1.InProgressIcon, null), }, installing: { key: 'installing', title: t('ai:Starting installation'), category: 'Installation related', icon: React.createElement(in_progress_icon_1.InProgressIcon, null), }, 'installing-in-progress': { key: 'installing-in-progress', title: t('ai:Installing'), category: 'Installation related', icon: React.createElement(in_progress_icon_1.InProgressIcon, null), withProgress: true, }, 'installing-pending-user-action': { key: 'installing-pending-user-action', title: t('ai:Pending user action'), category: 'Installation related', icon: React.createElement(exclamation_triangle_icon_1.ExclamationTriangleIcon, { color: global_warning_color_100_1.global_warning_color_100.value }), details: t('ai:This host is pending user action'), }, installed: { key: 'installed', title: t('ai:Installed'), category: 'Installation related', icon: React.createElement(check_circle_icon_1.CheckCircleIcon, { color: global_success_color_100_1.global_success_color_100.value }), details: t('ai:This host completed its installation successfully.'), }, cancelled: { key: 'cancelled', title: t('ai:Installation cancelled'), category: 'Installation related', icon: React.createElement(ban_icon_1.BanIcon, null), details: t('ai:This host installation has been cancelled.'), withProgress: true, }, error: { key: 'error', title: t('ai:Error'), category: 'Installation related', icon: React.createElement(exclamation_circle_icon_1.ExclamationCircleIcon, { color: global_danger_color_100_1.global_danger_color_100.value }), details: t('ai:This host failed its installation.'), withProgress: true, }, resetting: { key: 'resetting', title: t('ai:Resetting'), category: 'Installation related', icon: React.createElement(in_progress_icon_1.InProgressIcon, null), details: t('ai:This host is resetting the installation.'), }, 'resetting-pending-user-action': { key: 'resetting-pending-user-action', title: t('ai:Reboot required'), category: 'Installation related', icon: React.createElement(exclamation_triangle_icon_1.ExclamationTriangleIcon, { color: global_warning_color_100_1.global_warning_color_100.value }), details: t('ai:Host has already been booted from disk during the previous installation. To finish resetting the installation, boot the host into the discovery image'), }, finalizing: { key: 'finalizing', title: t('ai:Finalizing'), category: 'Installation related', icon: React.createElement(in_progress_icon_1.InProgressIcon, null), }, 'added-to-existing-cluster': { key: 'added-to-existing-cluster', title: t('ai:Installed'), category: 'Installation related', icon: React.createElement(check_circle_icon_1.CheckCircleIcon, { color: global_success_color_100_1.global_success_color_100.value }), details: t('ai:This host completed its installation successfully.'), }, }); exports.hostStatus = hostStatus; exports.hostStatusOrder = [ 'error', 'cancelled', 'disconnected', 'disconnected-unbound', 'insufficient', 'insufficient-unbound', 'installing-pending-user-action', 'resetting-pending-user-action', 'unbinding-pending-user-action', 'resetting', 'disabled', 'disabled-unbound', 'pending-for-input', 'added-to-existing-cluster', 'unbinding', 'binding', 'known', 'known-unbound', 'reclaiming', 'reclaiming-rebooting', 'preparing-failed', 'preparing-for-installation', 'preparing-successful', 'discovering', 'discovering-unbound', 'installing', 'installing-in-progress', 'installed', ]; //# sourceMappingURL=status.js.map