From b71e5ff8b3d5dd8a2f17aedcde3a2447a9943431 Mon Sep 17 00:00:00 2001 From: Maurizio Mangione Date: Thu, 3 Aug 2017 15:32:10 +0200 Subject: [PATCH 1/2] udpate to Polymer 2 --- .yo-rc.json | 5 -- blockies-import.html | 12 ----- bower.json | 21 ++++---- demo/index.html | 72 ++++++++++++-------------- identicon-avatar.html | 117 +++++++++++++++++------------------------- index.html | 39 +++++--------- polymer.json | 7 +++ 7 files changed, 112 insertions(+), 161 deletions(-) delete mode 100644 .yo-rc.json create mode 100644 polymer.json diff --git a/.yo-rc.json b/.yo-rc.json deleted file mode 100644 index 32bdd5d..0000000 --- a/.yo-rc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "generator-polymer": { - "ghUser": "granze" - } -} \ No newline at end of file diff --git a/blockies-import.html b/blockies-import.html index d12295c..2e6c5e9 100644 --- a/blockies-import.html +++ b/blockies-import.html @@ -1,13 +1 @@ - diff --git a/bower.json b/bower.json index 9792c27..d543a8b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "identicon-avatar", - "version": "0.1.1", + "version": "2.0.0", "authors": [ "Maurizio Mangione " ], @@ -13,19 +13,18 @@ "avatar", "github" ], - "main": "identicon-avatar.html", - "license": "http://polymer.github.io/LICENSE.txt", "homepage": "https://github.com/granze/identicon-avatar/", - "ignore": [ - "/.*", - "/test/" - ], + "main": "identicon-avatar.html", "dependencies": { - "blockies": "~0.1.1", - "polymer": "Polymer/polymer#^1.4.0" + "polymer": "Polymer/polymer#^2.0.0", + "blockies": "^0.1.1" }, "devDependencies": { - "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", - "web-component-tester": "*" + "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^2.0.0", + "web-component-tester": "Polymer/web-component-tester#^6.0.0", + "webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0" + }, + "resolutions": { + "polymer": "^2.0.0" } } diff --git a/demo/index.html b/demo/index.html index 3988ac4..770078a 100644 --- a/demo/index.html +++ b/demo/index.html @@ -1,48 +1,44 @@ - - + - - identicon-avatar Demo + + + identicon-avatar demo + + + + - + + + + - + +
+

identicon-avatar (seed)

+ + + -
- <identicon-avatar seed="granze"></identicon-avatar> - - <identicon-avatar seed="polymer" color="#6F2B36"></identicon-avatar> - - <identicon-avatar seed="webcomponents" - bg-color="#333"></identicon-avatar> - -
+

identicon-avatar (seed + color)

+ + + +

identicon-avatar (seed + bg color)

+ + + +
diff --git a/identicon-avatar.html b/identicon-avatar.html index 13da8aa..8e995ec 100644 --- a/identicon-avatar.html +++ b/identicon-avatar.html @@ -1,85 +1,64 @@ - - - - - - - + diff --git a/index.html b/index.html index 354997f..78476f5 100644 --- a/index.html +++ b/index.html @@ -1,29 +1,16 @@ - - - - - - - - - - - - - - - + + + + identicon-avatar + + + + diff --git a/polymer.json b/polymer.json new file mode 100644 index 0000000..2bd10b6 --- /dev/null +++ b/polymer.json @@ -0,0 +1,7 @@ +{ + "lint": { + "rules": [ + "polymer-2" + ] + } +} From 3720537a69698482e487aca3b448c6679d251280 Mon Sep 17 00:00:00 2001 From: Maurizio Mangione Date: Thu, 3 Aug 2017 17:15:08 +0200 Subject: [PATCH 2/2] udpate readme --- README.md | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b935cee..076e2d0 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,26 @@ +[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/granze/identicon-avatar) + # <identicon-avatar> GitHub style identicon avatar using [Blockies](https://github.com/download13/blockies). -## Documentation and Demo - -See the [component page](http://Granze.github.io/identicon-avatar) for more information. +## Demo +Full demo [here](https://www.webcomponents.org/element/granze/identicon-avatar/demo/demo/index.html) -## Screenshot - -![identicon-avatar](http://i.imgur.com/OxleviU.png) + +```html + +``` ## Installation @@ -17,3 +29,7 @@ Install using [Bower](http://bower.io): ```shell bower install identicon-avatar ``` + +## License + +[MIT License](http://opensource.org/licenses/MIT)