@portal-dx/plugin-positive-quotes
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@portal-dx/plugin-positive-quotes

Display a random positive quote message from "O Pensador".

This plugin was created through the Backstage CLI

Requirements

Install

yarn add @portal-dx/plugin-positive-quotes

or

npm i @portal-dx/plugin-positive-quotes

Use

app-config.yaml

[...]

proxy:
  '/positive-quotes':
    target: 'https://quotes-br.herokuapp.com/api/'
    changeOrigin: true
    allowedMethods: [GET, POST]
    pathRewrite:
      '^/api/proxy/positive-quotes/': '/'

[...]

routes.tsx

packages/app/src/routes.tsx

import { PositiveQuotesPage } from '@portal-dx/plugin-positive-quotes';
// ...

const routes = (
  <FlatRoutes>
    // ...
    <Route path="/positive-quotes" element={<PositiveQuotesPage />} />
  </FlatRoutes>
);

Import the component where you want to use it:

src/components/common/WelcomeHeader/WelcomeHeader.tsx

import { PositiveQuoteText } from '@portal-dx/plugin-positive-quotes';

// ...

const routes = (
  <>
    // ...
    <PositiveQuoteText />
  </>
);

Developed with ❤️ by the MadeiraMadeira DX Team

Readme

Keywords

none

Package Sidebar

Install

npm i @portal-dx/plugin-positive-quotes

Weekly Downloads

1

Version

1.0.4

License

Apache-2.0

Unpacked Size

18.3 kB

Total Files

18

Last publish

Collaborators

  • caiocarvalho
  • madeiramadeirabr