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

@mands/dot-com-plus-menu

Package Overview
Dependencies
Maintainers
5
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mands/dot-com-plus-menu

## Dot com plus menu

  • 4.1.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

dot-com-plus-menu

Dot com plus menu

This package adds a menu bar for .com+, providing links for the customer service team, to logout or act as a customer on FESK pages.

Prerequisite

FESK app must use the latest version of mns-fe-pattern-library or at least v9.13.0.

Installation

To install the module that will inject the dotcom plus menu into your fesk app run the following commands in your terminal and add css file link.

npm install --save handlebars this is a peer dependency of the module

npm install --save @mands/dot-com-plus-menu

Add below in common.scss

@import '~@mands/dot-com-plus-menu/src/style.scss'

Usage

Example html output should look like below:

<script src="./static/dot-com-plus-menu.js"></script>

<script>
  DotComPlusMenu.render("#target");
</script>

to achieve above you will need to add the js in your root file for example in the store listing page we added the js like below in js file

import * as DotComPlusMenu from '@mands/dot-com-plus-menu';

try { DotComPlusMenu.render('#dcplus'); } catch (e) { console.warn(e.message); } And updated the partials file to set the target like below:

<div id="dcplus"></div>

Please look in the example directory for full example usage with in a project.

FAQs

Package last updated on 06 May 2022

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