aurelia-gravatar-component

0.0.4 • Public • Published

aurelia-gravatar-component

Build Status Known Vulnerabilities Gitter

This library is a plugin for the Aurelia platform.

Simple gravatar component for Aurelia. Based on these specs: https://secure.gravatar.com/site/implement/images/

Usage

It globalizes a custom element. A very simple example which should get you going.

<gravatar
  email.bind="vm.email"
  size.bind="200"
  rating="x"
  secure.bind="true">
</gravatar>
 

Bindable properties

email

[string=''] Used to determine what gravatar to fetch from gravatar's api.

size

[number=200] The size of a side in pixels of the square gravatar image.

rating

[string='g'] g suitable for display on all websites with any audience type. pg may contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence. r may contain such things as harsh profanity, intense violence, nudity, or hard drug use. x may contain hardcore sexual imagery or extremely disturbing violence.

forceDefault

[boolean=false] When true always loads the default image instead of the user uploaded one.

defaultTo

[string="monsterid"] The image to fetch when user has not been found. These can be the following options. 404 mm identicon monsterid wavatar retro blank.

secure

[boolean=false]

Whether to perform request over https

Package Sidebar

Install

npm i aurelia-gravatar-component

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • rwoverdijk