1.0.59 • Published 4 years ago

platformsh-user-widget v1.0.59

Weekly downloads
39
License
MIT
Repository
-
Last release
4 years ago

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
1.0.59

4 years ago

1.0.58

4 years ago

1.0.57

4 years ago

1.0.56

4 years ago

1.0.55

5 years ago

1.0.54

5 years ago

1.0.53

5 years ago

1.0.52

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

6 years ago

1.0.45

6 years ago

1.0.44

6 years ago

1.0.43

6 years ago

1.0.42

6 years ago

1.0.41

6 years ago

1.0.40

6 years ago

1.0.39

6 years ago

1.0.38

6 years ago

1.0.37

6 years ago

1.0.36

6 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.33

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago