🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@portal-dx/plugin-positive-quotes

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@portal-dx/plugin-positive-quotes

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

latest
npmnpm
Version
1.0.4
Version published
Weekly downloads
1
-87.5%
Maintainers
4
Weekly downloads
 
Created
Source

@portal-dx/plugin-positive-quotes

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

This plugin was created through the Backstage CLI

Requirements

  • Backstage Project;
  • Node.js v16.14.x

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

FAQs

Package last updated on 20 Dec 2023

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