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

platformsh-user-widget

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

platformsh-user-widget

## Install ```html <link rel="stylesheet" href="./user-widget.css"> <script type="text/javascript" src="./user-widget.min.js"></script> You can use it as a regular script or use npm install ```

  • 1.0.59
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
36
decreased by-21.74%
Maintainers
3
Weekly downloads
 
Created
Source

User widget

Install

<link rel="stylesheet" href="./user-widget.css">
<script type="text/javascript" src="./user-widget.min.js"></script>
You can use it as a regular script or use npm install

Use

  userWidget.init(documentNode, options);

Options

  • accountUrl: the account url, default "https://accounts.platform.sh"

  • source: the name of the app the user widget is used currently, default: "account"

  • getQueryString: a function that return the queryString you want to pass to the context api call, default: path => path

  • showProjectsMenu: do the user widget show the current user projects menu, default: true

  • includeBilling: do the user widget show the billing link, default: true

  • includeSupport: do the user widget show the support link, default: true

  • activateTalkus: activate talkus, default: false

  • customAccountMenuItems: array of {label: "label", value: "link"} objects. It will be added at the begining of the menu, default: []

Dev

The dev environment contains an html page to test the user widget.

To run it:

  npm install
  npm start

FAQs

Package last updated on 15 Apr 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