Socket
Socket
Sign inDemoInstall

@blaze-cms/plugin-banners-fe

Package Overview
Dependencies
4
Maintainers
15
Versions
136
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @blaze-cms/plugin-banners-fe

Blaze Plugin for wallpaper banners in FE


Version published
Maintainers
15
Created

Readme

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

Last updated on 29 Jul 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc