Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ssr): transpiled all js file to es5 using babel preset es2015 (ne…
…w gulp task)
- Loading branch information
1 parent
3818957
commit a2b5d5b
Showing
28 changed files
with
2,103 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"presets": [ | ||
"es2015" | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<a name="2.2.1"></a> | ||
## [2.2.1](https://github.com/snics/ng2-avatar/compare/v2.2.0...v2.2.1) (2017-12-21) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **build:** not exported Md5 class ([be6f241](https://github.com/snics/ng2-avatar/commit/be6f241)) | ||
|
||
|
||
|
||
<a name="2.2.0"></a> | ||
# [2.2.0](https://github.com/snics/ng2-avatar/compare/v2.1.1...v2.2.0) (2017-12-20) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **console:** remove console logging, ([f5d605f](https://github.com/snics/ng2-avatar/commit/f5d605f)), closes [#6](https://github.com/snics/ng2-avatar/issues/6) | ||
* **ui:** scrollbar is no longer displayed on windows ([22eac5e](https://github.com/snics/ng2-avatar/commit/22eac5e)) | ||
|
||
|
||
### Features | ||
|
||
* **demo:** add demo page with playground and getting started instructions ([5881694](https://github.com/snics/ng2-avatar/commit/5881694)) | ||
* **doc:** Add documentations description for avatar ([65b0d55](https://github.com/snics/ng2-avatar/commit/65b0d55)) | ||
|
||
|
||
|
||
<a name="2.1.1"></a> | ||
## [2.1.1](https://github.com/snics/ng2-avatar/compare/v2.1.0...v2.1.1) (2017-10-06) | ||
|
||
|
||
|
||
<a name="2.1.0"></a> | ||
# [2.1.0](https://github.com/snics/ng2-avatar/compare/v2.0.5...v2.1.0) (2017-10-06) | ||
|
||
|
||
|
||
<a name="2.0.5"></a> | ||
## [2.0.5](https://github.com/snics/ng2-avatar/compare/v2.0.4...v2.0.5) (2017-08-28) | ||
|
||
|
||
|
||
<a name="2.0.4"></a> | ||
## [2.0.4](https://github.com/snics/ng2-avatar/compare/v2.0.3...v2.0.4) (2017-08-28) | ||
|
||
|
||
|
||
<a name="2.0.3"></a> | ||
## [2.0.3](https://github.com/snics/ng2-avatar/compare/v2.0.2...v2.0.3) (2017-08-28) | ||
|
||
|
||
|
||
<a name="2.0.2"></a> | ||
## [2.0.2](https://github.com/snics/ng2-avatar/compare/v2.0.1...v2.0.2) (2017-08-28) | ||
|
||
|
||
|
||
<a name="2.0.1"></a> | ||
## [2.0.1](https://github.com/snics/ng2-avatar/compare/v2.0.0...v2.0.1) (2017-08-28) | ||
|
||
|
||
|
||
<a name="2.0.0"></a> | ||
# [2.0.0](https://github.com/snics/ng2-avatar/compare/v1.1.0...v2.0.0) (2017-08-28) | ||
|
||
|
||
|
||
<a name="1.1.0"></a> | ||
# [1.1.0](https://github.com/snics/ng2-avatar/compare/v1.0.4...v1.1.0) (2017-08-28) | ||
|
||
|
||
|
||
<a name="1.0.4"></a> | ||
## [1.0.4](https://github.com/snics/ng2-avatar/compare/v1.0.3...v1.0.4) (2017-08-28) | ||
|
||
|
||
|
||
<a name="1.0.3"></a> | ||
## [1.0.3](https://github.com/snics/ng2-avatar/compare/v1.0.2...v1.0.3) (2017-05-12) | ||
|
||
|
||
|
||
<a name="1.0.2"></a> | ||
## [1.0.2](https://github.com/snics/ng2-avatar/compare/v1.0.1...v1.0.2) (2017-05-12) | ||
|
||
|
||
|
||
<a name="1.0.1"></a> | ||
## 1.0.1 (2017-05-12) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2017 Nico Swiatecki | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# ng2-avatar | ||
|
||
[![npm version](https://badge.fury.io/js/ng2-avatar.svg)](https://badge.fury.io/js/ng2-avatar), | ||
[![Build Status](https://travis-ci.org/snics/ng2-avatar.svg?branch=master)](https://travis-ci.org/snics/ng2-avatar) | ||
[![Coverage Status](https://coveralls.io/repos/github/snics/ng2-avatar/badge.svg?branch=master)](https://coveralls.io/github/snics/ng2-avatar?branch=master) | ||
[![dependency Status](https://david-dm.org/snics/ng2-avatar/status.svg)](https://david-dm.org/snics/ng2-avatar) | ||
[![devDependency Status](https://david-dm.org/snics/ng2-avatar/dev-status.svg?branch=master)](https://david-dm.org/snics/ng2-avatar#info=devDependencies) | ||
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](https://github.com/snics/ng2-avatar#the-mit-license) | ||
|
||
Angular Avatar (ng2-avatar) is a simple and lightweight avatar component | ||
|
||
## Demo | ||
|
||
View all the directives in action at https://snics.github.io/ng2-avatar | ||
|
||
## Dependencies | ||
* [Angular](https://angular.io) (*requires* Angular 2 or higher, tested with 2.0.0) | ||
|
||
## Installation | ||
Install above dependencies via *npm*. | ||
|
||
Now install `ng2-avatar` via: | ||
```shell | ||
npm install --save ng2-avatar | ||
``` | ||
|
||
--- | ||
##### SystemJS | ||
>**Note**:If you are using `SystemJS`, you should adjust your configuration to point to the UMD bundle. | ||
In your systemjs config file, `map` needs to tell the System loader where to look for `ng2-avatar`: | ||
```js | ||
map: { | ||
'ng2-avatar': 'node_modules/ng2-avatar/bundles/ng2-avatar.umd.js', | ||
} | ||
``` | ||
--- | ||
|
||
Once installed you need to import the main module: | ||
```js | ||
import { AvatarModule } from 'ng2-avatar'; | ||
``` | ||
The only remaining part is to list the imported module in your application module. The exact method will be slightly | ||
different for the root (top-level) module for which you should end up with the code similar to (notice ` AvatarModule.forRoot()`): | ||
```js | ||
import { AvatarModule } from 'ng2-avatar'; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
AppComponent, | ||
... | ||
], | ||
imports: [ | ||
AvatarModule.forRoot(), | ||
... | ||
], | ||
bootstrap: [AppComponent] | ||
}) | ||
export class AppModule { | ||
} | ||
``` | ||
|
||
Other modules in your application can simply import ` AvatarModule `: | ||
|
||
```js | ||
import { AvatarModule } from 'ng2-avatar'; | ||
|
||
@NgModule({ | ||
declarations: [OtherComponent, ...], | ||
imports: [LibModule, ...], | ||
}) | ||
export class OtherModule { | ||
} | ||
``` | ||
|
||
# Usage | ||
```html | ||
<avatar [email]="email" [displayType]="'circle'"></avatar> | ||
<input type="email" [(ngModel)]="email"> | ||
``` | ||
|
||
# Configuration | ||
| configuration option | type | default | description | | ||
|:---------------------|:------:|:------------:|:-------------------------------------------------------------------------------------------------| | ||
| email | String | none | This email is for generated the initials letters or get the picture from Gravatar API (required) | | ||
| name | string | none | This name is for generated the initials letters (required) | | ||
| size | number | 100 | Is the size of the image and avatar | | ||
| background | string | Random color | The background colors for the letter's avatar | | ||
| displayType | string | circle | none, circle, rounded | | ||
| letter | string | ? | These are the default letter | | ||
| defaultProtocol | string | null | specifies a protocol or uses protocol-agnostic gravatar url when empty | | ||
|
||
## License | ||
|
||
Copyright (c) 2017 Nico Swiatecki. Licensed under the MIT License (MIT) - *Initial work* - [Snics](https://github.com/snics) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Oops, something went wrong.