An ember-cli addon for a gravatar image component.
You need to install the addon, then run the ember cli blueprint:
npm i --save-dev ember-cli-gravatar
ember g ember-cli-gravatar
The default property is optional as the size. You can use a encoded url or a default icon name. Gravatar documentation
With the latest versions of the Ember CLI, you will have to whitelist gravatar.com with the following
in your config/environment.js
:
module.exports = function(environment) {
// ...
var ENV = {
// ...
contentSecurityPolicy: {
'default-src': "'none'",
'script-src': "'self'",
'font-src': "'self'",
'connect-src': "'self'",
'img-src': "'self' https://www.gravatar.com",
'style-src': "'self'",
'media-src': "'self'"
},
// ...
}
// ...
};
MIT
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander.