// SPDX-License-Identifier: AGPL-3.0
import * as React from 'react';
-import { ShareMeIcon } from '~/components/icon/icon';
-import { DataExplorer } from '~/views-components/data-explorer/data-explorer';
-import { DataTableDefaultView } from '~/components/data-table-default-view/data-table-default-view';
-import { COMPUTE_NODE_PANEL_ID } from '~/store/compute-nodes/compute-nodes-actions';
-import { DataColumns } from '~/components/data-table/data-table';
-import { SortDirection } from '~/components/data-table/data-column';
-import { createTree } from '~/models/tree';
-import {
- ResourceUuid, ResourceNodeInfo, ResourceNodeDomain, ResourceNodeHostname, ResourceNodeJobUuid,
- ResourceNodeFirstPingAt, ResourceNodeLastPingAt, ResourceNodeIpAddress
-} from '~/views-components/data-explorer/renderers';
-import { ResourcesState } from '~/store/resources/resources';
+import { ShareMeIcon } from 'components/icon/icon';
+import { DataExplorer } from 'views-components/data-explorer/data-explorer';
+import { DataTableDefaultView } from 'components/data-table-default-view/data-table-default-view';
+import { COMPUTE_NODE_PANEL_ID } from 'store/compute-nodes/compute-nodes-actions';
+import { DataColumns } from 'components/data-table/data-table';
+import { SortDirection } from 'components/data-table/data-column';
+import { createTree } from 'models/tree';
+import {
+ ComputeNodeInfo, ComputeNodeDomain, ComputeNodeHostname, ComputeNodeJobUuid,
+ ComputeNodeFirstPingAt, ComputeNodeLastPingAt, ComputeNodeIpAddress, CommonUuid
+} from 'views-components/data-explorer/renderers';
+import { ResourcesState } from 'store/resources/resources';
export enum ComputeNodePanelColumnNames {
INFO = 'Info',
selected: true,
configurable: true,
filters: createTree(),
- render: uuid => <ResourceNodeInfo uuid={uuid} />
+ render: uuid => <ComputeNodeInfo uuid={uuid} />
},
{
name: ComputeNodePanelColumnNames.UUID,
configurable: true,
sortDirection: SortDirection.NONE,
filters: createTree(),
- render: uuid => <ResourceUuid uuid={uuid} />
+ render: uuid => <CommonUuid uuid={uuid} />
},
{
name: ComputeNodePanelColumnNames.DOMAIN,
selected: true,
configurable: true,
filters: createTree(),
- render: uuid => <ResourceNodeDomain uuid={uuid} />
+ render: uuid => <ComputeNodeDomain uuid={uuid} />
},
{
name: ComputeNodePanelColumnNames.FIRST_PING_AT,
selected: true,
configurable: true,
filters: createTree(),
- render: uuid => <ResourceNodeFirstPingAt uuid={uuid} />
+ render: uuid => <ComputeNodeFirstPingAt uuid={uuid} />
},
{
name: ComputeNodePanelColumnNames.HOSTNAME,
selected: true,
configurable: true,
filters: createTree(),
- render: uuid => <ResourceNodeHostname uuid={uuid} />
+ render: uuid => <ComputeNodeHostname uuid={uuid} />
},
{
name: ComputeNodePanelColumnNames.IP_ADDRESS,
selected: true,
configurable: true,
filters: createTree(),
- render: uuid => <ResourceNodeIpAddress uuid={uuid} />
+ render: uuid => <ComputeNodeIpAddress uuid={uuid} />
},
{
name: ComputeNodePanelColumnNames.JOB,
selected: true,
configurable: true,
filters: createTree(),
- render: uuid => <ResourceNodeJobUuid uuid={uuid} />
+ render: uuid => <ComputeNodeJobUuid uuid={uuid} />
},
{
name: ComputeNodePanelColumnNames.LAST_PING_AT,
selected: true,
configurable: true,
filters: createTree(),
- render: uuid => <ResourceNodeLastPingAt uuid={uuid} />
+ render: uuid => <ComputeNodeLastPingAt uuid={uuid} />
}
];
+const DEFAULT_MESSAGE = 'Your compute node list is empty.';
+
export interface ComputeNodePanelRootActionProps {
onItemClick: (item: string) => void;
onContextMenu: (event: React.MouseEvent<HTMLElement>, item: string) => void;
dataTableDefaultView={
<DataTableDefaultView
icon={ShareMeIcon}
- messages={['Your compute node list is empty.']} />
+ messages={[DEFAULT_MESSAGE]} />
} />;
-};
\ No newline at end of file
+};