Skip to content

Commit

Permalink
Ready for bower deploment
Browse files Browse the repository at this point in the history
  • Loading branch information
JanStevens committed Mar 18, 2014
1 parent 5977acb commit ace92e2
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 30 deletions.
31 changes: 16 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
#angular-growl-2
Growl like notifications for angularJS projects, using bootstrap alert classes, originally developed by Marco Rinck

##Features

![Standard bootstrap 2.x styles](doc/screenshot.jpg)

* growl like notifications like in MacOS X
* using standard bootstrap classes (alert, alert-info, alert-error, alert-success)
* global or per message configuration of a timeout when message will be automatically closed
* automatic translation of messages if [angular-translate](https://github.com/PascalPrecht/angular-translate) filter is
present, you only have to provide keys as messages, angular-translate will translate them
* pre-defined $http-Interceptor to automatically handle $http responses for server-sent messages
* automatic CSS animations when adding/closing notifications (only when using >= angularJS 1.2)
* < 1 kB after GZIP
* Allows for HTML content inside the alert

##Installation

You can install angular-growl with bower:
You can install angular-growl-2 with bower:

> bower install angular-growl
> bower install angular-growl-2
Alternatively you can download the files in the [build folder](build/) manually and include them in your project.

Expand Down Expand Up @@ -36,19 +50,6 @@ Finally, you have to include the directive somewhere in your HTML like this:
</body>
````

##Features

![Standard bootstrap 2.x styles](doc/screenshot.jpg)

* growl like notifications like in MacOS X
* using standard bootstrap classes (alert, alert-info, alert-error, alert-success)
* global or per message configuration of a timeout when message will be automatically closed
* automatic translation of messages if [angular-translate](https://github.com/PascalPrecht/angular-translate) filter is
present, you only have to provide keys as messages, angular-translate will translate them
* pre-defined $http-Interceptor to automatically handle $http responses for server-sent messages
* automatic CSS animations when adding/closing notifications (only when using >= angularJS 1.2)
* < 1 kB after GZIP

##Usage

Just let angular inject the growl Factory into your code and call the 4 functions that the factory provides accordingly:
Expand Down
11 changes: 7 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"author": "Marco Rinck",
"name": "angular-growl",
"author": [
"Marco Rinck",
"Jan Stevens"
],
"name": "angular-growl-2",
"description": "growl like notifications for angularJS projects, using bootstrap alert classes",
"version": "0.5.0",
"homepage": "https://github.com/marcorinck/angular-growl",
"homepage": "http://janstevens.github.io/angular-growl-2",
"repository": {
"type": "git",
"url": "https://github.com/marcorinck/angular-growl"
"url": "https://github.com/JanStevens/angular-growl-2"
},
"license": "MIT",
"main": ["./build/angular-growl.js", "./build/angular-growl.min.css"],
Expand Down
6 changes: 3 additions & 3 deletions build/angular-growl.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* angular-growl - v0.5.0 - 2014-03-18
* https://github.com/marcorinck/angular-growl
* Copyright (c) 2014 Marco Rinck; Licensed MIT
* angular-growl-2 - v0.5.0 - 2014-03-18
* http://janstevens.github.io/angular-growl-2
* Copyright (c) 2014 Marco Rinck,Jan Stevens; Licensed MIT
*/
angular.module('angular-growl', []);
angular.module('angular-growl').directive('growl', [
Expand Down
6 changes: 3 additions & 3 deletions build/angular-growl.min.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* angular-growl - v0.5.0 - 2014-03-18
* https://github.com/marcorinck/angular-growl
* Copyright (c) 2014 Marco Rinck; Licensed MIT
* angular-growl-2 - v0.5.0 - 2014-03-18
* http://janstevens.github.io/angular-growl-2
* Copyright (c) 2014 Marco Rinck,Jan Stevens; Licensed MIT
*/

.growl{position:fixed;top:10px;right:10px;float:right;width:250px;z-index:9999}.growl-item.ng-enter,.growl-item.ng-leave{-webkit-transition:.5s linear all;-moz-transition:.5s linear all;-o-transition:.5s linear all;transition:.5s linear all}.growl-item.ng-enter,.growl-item.ng-leave.ng-leave-active{opacity:0}.growl-item.ng-leave,.growl-item.ng-enter.ng-enter-active{opacity:1}
6 changes: 3 additions & 3 deletions build/angular-growl.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "angular-growl",
"version": "0.4.0",
"version": "0.5.0",
"description": "growl like notifications for angularJS projects, using bootstrap alert classes",
"repository": {
"type": "git",
"url": "https://github.com/marcorinck/angular-growl"
"url": "https://github.com/JanStevens/angular-growl-2"
},
"author": {
"name": "Marco Rinck",
Expand Down

0 comments on commit ace92e2

Please sign in to comment.