1.0.22 • Published 1 day ago

@roadiehq/backstage-plugin-cloudsmith v1.0.22

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 day ago

backstage-plugin-cloudsmith

This plugin allows you to display statistics about a Cloudsmith repository to the homepage of Backstage.

homepage-cloudsmith.png

To use this plugin, you will need to add the card to the home page in the frontend app and also set up a backend proxy for the

frontend plugin to communicate with Cloudsmith.

Cloudsmith hosts artifact repositories. Each repository is assigned an owner and a repo name when it is created. You will need

these values when you are configuring the homepage card. You will also need a Cloudsmith API Key.

Edit the packages/app/src/components/home/Homepage.tsx.

Import the cloudsmith component:

import {
  CloudsmithStatsCard,
  CloudsmithQuotaCard,
  CloudsmithRepositoryAuditLogCard,
  CloudsmithRepositorySecurityCard,
} from '@roadiehq/backstage-plugin-cloudsmith';

Then add the component to the homepage content component, wherever you prefer.

<Grid  item  xs={12}  md={6}>
   <CloudsmithStatsCard  repo="repo-name"  owner="org-name"  />
</Grid>

<Grid  item  xs={12}  md={6}>
   <CloudsmithQuotaCard  owner='org-name'/>
</Grid>

<Grid  item  xs={12}  md={6}>
   <CloudsmithRepositoryAuditLogCard  owner='org-name'  repo='repo-name'/>
</Grid>

<Grid  item  xs={12}  md={6}>
   <CloudsmithRepositorySecurityCard  owner='org-name'  repo='repo-name'/>
</Grid>

Then you can edit the app-config.yaml for the backstage backend application, adding the following proxy configuration.

...
proxy:
  ...
  '/cloudsmith':
    target: 'https://api.cloudsmith.io/v1'
    headers:
      X-Api-Key: ${CLOUDSMITH_API_KEY}
      User-Agent: 'Backstage'

When you run the backstage backend, you will need to set the CLOUDSMITH_API_KEY environment variable.

1.0.22

1 day ago

1.0.21

1 month ago

1.0.20

2 months ago

1.0.19

2 months ago

1.0.16

5 months ago

1.0.15

6 months ago

1.0.14

7 months ago

1.0.13

9 months ago

1.0.12

10 months ago

1.0.11

11 months ago

1.0.9

11 months ago

1.0.10

11 months ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.2

1 year ago

0.1.3

1 year ago

0.1.1

1 year ago