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

@blaze-cms/plugin-banners-fe

Package Overview
Dependencies
Maintainers
15
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blaze-cms/plugin-banners-fe

Blaze Plugin for wallpaper banners in FE

  • 0.39.7-alpha.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-50%
Maintainers
15
Weekly downloads
 
Created
Source

Banners Blaze plugin

Plugin where we create and load content to the Portal in order to load the wallpaper banner at the top level of the app.

Directly in the frontend, we include the Portal component, it only has one prop that is required to modifiy another div's classname.

<Portal
  setModifier={value => {
    if ((!value && wallpaperBannerModifier) || (value && !wallpaperBannerModifier)) {
      this.setState({ wallpaperBannerModifier: value });
    }
  }}
/>

Components

Portal

Checks if there is data related to the wallpaper banner in the local state (using the GET_PORTAL_COMPONENT query) If there is, render the PortalContent.

PortalContent

Get banner data from local state (adunit etc) and creates a portal in the main app's container in order to render the wallpaper banner.

Services

Queries to read form the local state in order to check if there is any wallpaper banner set on page (and if yes, its data).

FAQs

Package last updated on 29 Jul 2020

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