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

2.0.2 • Public • Published

@portaldx/plugin-positive-quotes

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

This plugin was created through the Backstage CLI

Requirements

Install

yarn add @portaldx/plugin-positive-quotes

or

npm i @portaldx/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 '@portaldx/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 '@portaldx/plugin-positive-quotes';

// ...

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

Developed with ❤️ by the MadeiraMadeira DX Team

/@portaldx/plugin-positive-quotes/

    Package Sidebar

    Install

    npm i @portaldx/plugin-positive-quotes

    Weekly Downloads

    0

    Version

    2.0.2

    License

    Apache-2.0

    Unpacked Size

    17.8 kB

    Total Files

    18

    Last publish

    Collaborators

    • accezar