Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

SpoonX/aurelia-gravatar-component

Repository files navigation

Archived

It was fun while it lasted, but we have to stop maintaining these repositories. We haven't used these projects for quite some time and maintaining them is becoming harder to do.

You deserve better, and for that reason we've decided to archive some repositories, which includes this one.

Feel free to fork and alter the repositories, and go forth making awesome stuff.

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