{"id":15503152,"url":"https://github.com/johno/ember-cli-gravatar","last_synced_at":"2025-06-14T15:41:10.218Z","repository":{"id":20612002,"uuid":"23893195","full_name":"johno/ember-cli-gravatar","owner":"johno","description":"An Ember component for gravatar image tags","archived":false,"fork":false,"pushed_at":"2018-06-01T20:17:40.000Z","size":924,"stargazers_count":45,"open_issues_count":10,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-18T06:00:33.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johno.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-10T21:35:21.000Z","updated_at":"2023-07-22T17:19:51.000Z","dependencies_parsed_at":"2022-08-21T19:00:45.772Z","dependency_job_id":null,"html_url":"https://github.com/johno/ember-cli-gravatar","commit_stats":null,"previous_names":["johnotander/ember-cli-gravatar"],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-cli-gravatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-cli-gravatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-cli-gravatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johno%2Fember-cli-gravatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johno","download_url":"https://codeload.github.com/johno/ember-cli-gravatar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250338505,"owners_count":21414199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T09:12:20.631Z","updated_at":"2025-04-22T23:22:15.538Z","avatar_url":"https://github.com/johno.png","language":"JavaScript","readme":"# ember-cli-gravatar [![Build Status](https://travis-ci.org/johnotander/ember-cli-gravatar.svg?branch=master)](https://travis-ci.org/johnotander/ember-cli-gravatar) [![Ember Observer Score](http://emberobserver.com/badges/ember-cli-gravatar.svg)](http://emberobserver.com/addons/ember-cli-gravatar)\n\nAn ember addon for [Gravatar](https://gravatar.com) components.\n\n## Installation\n\n```\nember install ember-cli-gravatar\n```\n\n## Usage\n\n```hbs\n{{gravatar-image email='johnotander@gmail.com'}}\n```\n\n__An example with multiple options:__\n\n```hbs\n{{gravatar-image email='johnotander@gmail.com'\n  title='John Otander'\n  alt='John Otander gravatar'\n  defaultImage='identicon'\n  class='img-circle'\n  secure=false\n  size=250\n  retina=true}}\n```\n\nThe default property is optional as well as the size. You can use a encoded url or a default icon name.\n[Gravatar documentation](https://en.gravatar.com/site/implement/images/#default-image).\n\n### Required\n\n  * `email` *String* - the email for the gravatar.\n\n### Optional\n\n  * `class` *String* - any HTML classes to apply to the image. Default: `gravatar-image`.\n  * `alt` *String* - alt description of the avatar. Default: none.\n  * `size` *Number* - size of the image. Default: `250`.\n  * `defaultImage` *String* - the default image to be used in case the email doesn't have a gravatar.\n  * `title` *String* - the title attribute for the image. Default: none.\n  * `secure` *Boolean* - whether `http` or `https` is used. Default: `true`.\n  * `retina` *Boolean* - whether retina image is used. Default: `false`.\n  * `hash` *String* - pass an md5 hash of an email. Default: none.\n\n### Content Security Policy\n\nWith the latest versions of the Ember CLI, you will have to whitelist gravatar.com with the following\nin your `config/environment.js`:\n\n```javascript\nmodule.exports = function(environment) {\n  // ...\n  var ENV = {\n    // ...\n    contentSecurityPolicy: {\n      'default-src': \"'none'\",\n      'script-src': \"'self'\",\n      'font-src': \"'self'\",\n      'connect-src': \"'self'\",\n      'img-src': \"'self' www.gravatar.com\",\n      'style-src': \"'self'\",\n      'media-src': \"'self'\"\n    },\n    // ...\n  }\n  // ...\n};\n```\n\n### Has gravatar\n\nAdditional component that can be used to determine if a user has a gravatar before deciding to show it.\n\nUsage:\n\n```hbs\n{{#has-gravatar email='test@gmail.com' as |g|}}\n  {{#if g.has}}\n    {{g.image}}\n  {{else}}\n    No gravatar found!\n  {{/if}}\n{{/has-gravatar}}\n```\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n***\n\u003e Crafted with \u003c3 by [John Otander](https://twitter.com/4lpine).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fember-cli-gravatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohno%2Fember-cli-gravatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohno%2Fember-cli-gravatar/lists"}