{"id":15015741,"url":"https://github.com/alexeipanov/ember-flash-notifications","last_synced_at":"2025-04-12T09:52:24.894Z","repository":{"id":243556418,"uuid":"776932621","full_name":"alexeipanov/ember-flash-notifications","owner":"alexeipanov","description":"Addon to display flash notifications in Ember.js applications","archived":false,"fork":false,"pushed_at":"2024-09-03T19:19:35.000Z","size":1464,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T09:52:11.497Z","etag":null,"topics":["ember","ember-cli","emberjs","flash","notification","popover","popover-api","popover-component"],"latest_commit_sha":null,"homepage":"https://ember-flash-notifications.vercel.app/","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/alexeipanov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-24T20:46:09.000Z","updated_at":"2024-10-17T14:43:52.000Z","dependencies_parsed_at":"2024-06-09T21:00:11.460Z","dependency_job_id":"7ffe7de1-eb9d-42da-b4f5-2d66aa007498","html_url":"https://github.com/alexeipanov/ember-flash-notifications","commit_stats":{"total_commits":20,"total_committers":3,"mean_commits":6.666666666666667,"dds":0.09999999999999998,"last_synced_commit":"e485973aea1b29235c235f03c185f83ca52c7cb4"},"previous_names":["alexeipanov/ember-flash-notifications"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeipanov%2Fember-flash-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeipanov%2Fember-flash-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeipanov%2Fember-flash-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeipanov%2Fember-flash-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexeipanov","download_url":"https://codeload.github.com/alexeipanov/ember-flash-notifications/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248550635,"owners_count":21122932,"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":["ember","ember-cli","emberjs","flash","notification","popover","popover-api","popover-component"],"created_at":"2024-09-24T19:47:52.045Z","updated_at":"2025-04-12T09:52:24.870Z","avatar_url":"https://github.com/alexeipanov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-flash-notifications\n\nThe addon is designed to display flash notifications within Ember.js applications.\nPowered by Popover API.\n\n## Compatibility\n\n* Ember.js v4.8 or above\n* Ember CLI v4.8 or above\n* Node.js v18 or above\n\n\n## Installation\n\n```\nember install ember-flash-notifications\n```\n\n\n## Usage\n\nAdd FlashNotifications invocation to a template:\n\n```\n\u003cFlashNotifications as |notification|\u003e\n  \u003cFlashNotification @notification={{notification}}\u003e\n    \u003cdiv class={{notification.type}}\u003e{{notification.message}}\u003c/div\u003e\n  \u003c/FlashNotification\u003e\n\u003c/FlashNotifications\u003e\n```\n\nAdd minimal required styles for a notification element (TailwindCSS is not a dependency, and you are able to use plain CSS as well):\n\n```\n\n[popover] {\n  @apply my-0 mr-0;\n}\n\n.flash {\n  @apply w-80 border transition-opacity block opacity-0;\n}\n\n.flash:popover-open {\n  @apply opacity-100;\n}\n\n.flash .error {\n  @apply bg-rose-500 text-white p-2 rounded-sm;\n}\n\n@starting-style {\n  .flash:popover-open {\n    @apply opacity-0;\n  }\n}\n```\n\n... and make notification invocation:\n\n\n```\nmport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { inject as service } from '@ember/service';\n\nexport default class FlashComponent extends Component {\n  @service notifications;\n\n  @action\n  addNotification() {\n    this.notifications.error('Something is going wrong!');\n  }\n}\n```\n\nSee detailed examples, API documetation and live examples [here](https://ember-flash-notifications.vercel.app)\n\n\n## Contributing\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexeipanov%2Fember-flash-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexeipanov%2Fember-flash-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexeipanov%2Fember-flash-notifications/lists"}