Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
New 1.x demo
Browse files Browse the repository at this point in the history
  • Loading branch information
klan committed Nov 6, 2017
1 parent 2ed715b commit d3ebeda
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 42 deletions.
39 changes: 8 additions & 31 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdi-iconset-svg",
"version": "2.0.2",
"version": "1.0.3",
"description": "Iconset for the Material Design Icons collection",
"authors": [
"kriss-kross-io <[email protected]> (https://kriss-kross.io)"
Expand All @@ -17,37 +17,14 @@
},
"homepage": "https://github.com/kriss-kross-io/mdi-iconset-svg",
"dependencies": {
"iron-icon": "PolymerElements/iron-icon#1 - 2",
"iron-iconset-svg": "PolymerElements/iron-iconset-svg#1 - 2",
"polymer": "Polymer/polymer#1.9 - 2"
"iron-icon": "PolymerElements/iron-icon#^1.0.0",
"iron-iconset-svg": "PolymerElements/iron-iconset-svg#^1.0.0",
"polymer": "Polymer/polymer#^1.9"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#1 - 2",
"iron-meta": "PolymerElements/iron-meta#1 - 2",
"paper-styles": "PolymerElements/paper-styles#1 - 2",
"web-component-tester": "^6.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0"
},
"variants": {
"1.x": {
"dependencies": {
"iron-icon": "PolymerElements/iron-icon#^1.0.0",
"iron-iconset-svg": "PolymerElements/iron-iconset-svg#^1.0.0",
"polymer": "Polymer/polymer#^1.9"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#1.0.0",
"iron-meta": "PolymerElements/iron-meta#^1.0.0",
"paper-styles": "PolymerElements/paper-styles#^1.0.2",
"web-component-tester": "^4.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"resolutions": {
"webcomponentsjs": "^0.7"
}
}
},
"resolutions": {
"webcomponentsjs": "^1.0.0"
"iron-component-page": "PolymerElements/iron-component-page#1.0.0",
"paper-styles": "PolymerElements/paper-styles#^1.0.2",
"web-component-tester": "^4.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
}
}
17 changes: 6 additions & 11 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

<link rel="import" href="../../paper-styles/demo-pages.html">
<link rel="import" href="../../paper-styles/color.html">
<link rel="import" href="../../iron-meta/iron-meta.html">

<!-- load main iconset -->
<link rel="import" href="../mdi-iconset-svg.html">
Expand Down Expand Up @@ -86,16 +85,12 @@ <h2>{{item.name}}</h2>
</dom-bind>

<script>
window.addEventListener('WebComponentsReady', function() {
scope.getIconsets = function() {
return new Polymer.IronMeta({type: 'iconset'}).list;
};
scope.getIconNames = function(iconset) {
return iconset.getIconNames();
};
scope.parentNode.getIconsets = scope.getIconsets;
scope.parentNode.getIconNames = scope.getIconNames;
});
document.querySelector('[is=dom-bind]').getIconsets = function() {
return new Polymer.IronMeta({type: 'iconset'}).list;
};
document.querySelector('[is=dom-bind]').getIconNames = function(iconset) {
return iconset.getIconNames();
};
</script>
</body>
</html>

0 comments on commit d3ebeda

Please sign in to comment.