{"id":18243200,"url":"https://github.com/scottwernervt/ember-notifier","last_synced_at":"2025-04-04T12:30:50.216Z","repository":{"id":57224073,"uuid":"139051639","full_name":"scottwernervt/ember-notifier","owner":"scottwernervt","description":"Easy, beautiful notifications for your Ember project.","archived":false,"fork":false,"pushed_at":"2018-12-17T18:23:26.000Z","size":1787,"stargazers_count":14,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T04:05:19.548Z","etag":null,"topics":["ember","ember-addon","ember-cli-addon","emberjs","notifications"],"latest_commit_sha":null,"homepage":"https://scottwernervt.github.io/ember-notifier","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/scottwernervt.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":"2018-06-28T17:55:30.000Z","updated_at":"2024-05-30T03:05:32.000Z","dependencies_parsed_at":"2022-09-04T07:40:52.457Z","dependency_job_id":null,"html_url":"https://github.com/scottwernervt/ember-notifier","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottwernervt%2Fember-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottwernervt%2Fember-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottwernervt%2Fember-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottwernervt%2Fember-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottwernervt","download_url":"https://codeload.github.com/scottwernervt/ember-notifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247179452,"owners_count":20897043,"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-addon","ember-cli-addon","emberjs","notifications"],"created_at":"2024-11-05T08:03:49.998Z","updated_at":"2025-04-04T12:30:45.206Z","avatar_url":"https://github.com/scottwernervt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ember-notifier\n==============\n\n[![Latest NPM release][npm-badge]][npm-badge-url]\n[![License][license-badge]][license-badge-url]\n[![TravisCI Build Status][travis-badge]][travis-badge-url]\n[![Ember Observer Score][ember-observer-badge]][ember-observer-badge-url]\n[![Code Climate][codeclimate-badge]][codeclimate-badge-url]\n[![Dependencies][dependencies-badge]][dependencies-badge-url] \n[![Dev Dependencies][devDependencies-badge]][devDependencies-badge-url]\n\n[npm-badge]: https://img.shields.io/npm/v/ember-notifier.svg\n[npm-badge-url]: https://www.npmjs.com/package/ember-notifier\n[travis-badge]: https://img.shields.io/travis/scottwernervt/ember-notifier/master.svg\n[travis-badge-url]: https://travis-ci.org/scottwernervt/ember-notifier\n[codeclimate-badge]: https://api.codeclimate.com/v1/badges/24b82ae0cd54584332e2/maintainability\n[codeclimate-badge-url]: https://codeclimate.com/github/scottwernervt/ember-notifier\n[ember-observer-badge]: http://emberobserver.com/badges/ember-notifier.svg\n[ember-observer-badge-url]: http://emberobserver.com/addons/ember-notifier\n[license-badge]: https://img.shields.io/npm/l/ember-notifier.svg\n[license-badge-url]: LICENSE.md\n[dependencies-badge]: https://david-dm.org/scottwernervt/ember-notifier.svg\n[dependencies-badge-url]: https://david-dm.org/scottwernervt/ember-notifier\n[devDependencies-badge]: https://david-dm.org/scottwernervt/ember-notifier/dev-status.svg?theme=shields.io\n[devDependencies-badge-url]: https://david-dm.org/scottwernervt/ember-notifier?type=dev\n\nEasy, beautiful notifications for your Ember project.\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-notifier\n```\n\n\nUsage\n------------------------------------------------------------------------------\n\nAdd the `ember-notifier` component to your application template. This \ncontainer displays notifications.\n\n```hbs\n{{ember-notifier position=\"is-top-right\"}}\n{{outlet}}\n```\n\nInject the `notifier` service anywhere you want to launch a \nnotification.\n\n```js\nimport Component from '@ember/component';\nimport { inject as service } from '@ember/service';\n\nexport default Component.extend({\n  notifier: service(),\n});\n```\n\nNotifications can be added by calling styled functions.\n\n```js\nthis.get('notifier').primary('Primary notification');\nthis.get('notifier').info('Information notification');\nthis.get('notifier').success('Success notification');\nthis.get('notifier').warning('Warning notification');\nthis.get('notifier').danger('Danger notification');\nthis.get('notifier').secondary('Secondary notification');\n```\n\nCustom notifications can be called using `add()`.\n\n```js\nthis.get('notifier').add('Custom notification', { type: 'custom-class' });\n```\n\nAll notifications can be cleared using `empty()`.\n\n```js\nthis.get('notifier').empty();\n```\n\nCheck out the [documentation](https://scottwernervt.github.io/ember-notifier) \nfor more customization and options.\n\nContributing\n------------------------------------------------------------------------------\n\n### Issues\n\nDemonstrate bug using the provided [ember-twiddle](https://ember-twiddle.com/fc59431098da6a27cac671d0142a6440).\n\n### Installation\n\n* `git clone https://github.com/scottwernervt/ember-notifier`\n* `cd ember-notifier`\n* `npm install`\n\n### Linting\n\n* `npm run lint:hbs`\n* `npm run lint:js`\n* `npm run lint:js -- --fix`\n\n### Running tests\n\n* `ember test` – Runs the test suite on the current Ember version\n* `ember test --server` – Runs the test suite in \"watch mode\"\n* `ember try:each` – Runs the test suite against multiple Ember versions\n\n### Running the dummy application\n\n* `ember serve`\n* Visit the dummy application at [http://localhost:4200](http://localhost:4200).\n\nFor more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).\n\nFavicon\n--------\n\nCreated at [favicon.io](https://favicon.io/?t=EN\u0026ff=Aldrich\u0026fs=72\u0026fc=%23FFF\u0026b=rounded\u0026bc=%23A0A).\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottwernervt%2Fember-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottwernervt%2Fember-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottwernervt%2Fember-notifier/lists"}