Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@redhat-cloud-services/frontend-components-inventory

Package Overview
Dependencies
Maintainers
6
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@redhat-cloud-services/frontend-components-inventory

Inventory components for RedHat Cloud Services project.

  • 3.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
6
Weekly downloads
 
Created
Source

RedHat Cloud Services frontend components - inventory

npm version

This package is hot loaded via insights-chrome and exports new components for inventory table and detail. It also exports redux reducers and actions so usage is as simple as possible.

!!!Deprecated package!!!

This package is deprecated, please do not use it anymore! We are no longer supporting this package because we moved it to inventory application and exporting inventory components trough federated modules.

If you want to use inventory component, either use Async inventory components or use directly Async component

  1. Usage with Async inventory component
import React from 'react';
import { InventoryTable } from '@redhat-cloud-services/frontend-components/Inventory';

const Cmp = () => <InventoryTable />;

export default Cmp;
  1. Usage with Async component
import React from 'react';
import { useHistory } from 'react-router-dom';
import { useStore } from 'react-redux';
import AsyncComponent from '@redhat-cloud-services/frontend-components/AsyncComponent';

const Cmp = () => {
  const store = useStore();
  const history = useHistory();
  return (
    <AsyncComponent
      store={store}
      history={history}
      appName="inventory"
      module={`./InventoryTable`}
      fallback="Loading"
      ref={innerRef}
      {...props}
    />
  );
}

export default Cmp;

Installation

You shouldn't install this package directly to your project, but if you really have to install it either with npm

npm i -S @redhat-cloud-services/frontend-components-inventory

or with yarn

yarn add @redhat-cloud-services/frontend-components-inventory

This package is dependent on @redhat-cloud-services/frontend-components-utilities, @redhat-cloud-services/frontend-components and @redhat-cloud-services/host-inventory-client will automatically install them trough direct dependencies.

FAQs

Package last updated on 13 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc