Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
madietov authored and madietov committed May 22, 2018
1 parent d87c57a commit 9f5eb4c
Show file tree
Hide file tree
Showing 6 changed files with 395 additions and 373 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
bower_components
node_modules
build
build
yarn.lock
40 changes: 21 additions & 19 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<title>sortable-list demo</title>

<link rel="import" href="../sortable-list.html">
<link rel="import" href="../../polymer/lib/elements/dom-repeat.html">
<script type="module" src="../sortable-list.js"></script>
<script type="module" src="../../@polymer/polymer/lib/elements/dom-repeat.js"></script>

<style>
body {
Expand Down Expand Up @@ -45,24 +45,26 @@ <h1>Drag the items</h1>
</dom-repeat>
</sortable-list>

<script>
const domRepeat = document.querySelector('#domRepeat');
<script type="module">
import '../sortable-list.js';
import '../../@polymer/polymer/lib/elements/dom-repeat.js';
const domRepeat = document.querySelector('#domRepeat');

domRepeat.items = [
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9dog2_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9tuqui_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9panda_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9elephant_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9lion_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9foxy_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9kitty_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9ratty_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9froggy_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9ducky_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9batty_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9penguino_trans.png"
];
</script>
domRepeat.items = [
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9dog2_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9tuqui_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9panda_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9elephant_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9lion_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9foxy_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9kitty_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9ratty_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9froggy_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9ducky_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9batty_trans.png",
"https://cdn2.iconfinder.com/data/icons/cutecritters/t9penguino_trans.png"
];
</script>

</body>
</html>
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "sortable-list",
"version": "3.0.0",
"flat": true,
"resolutions": {
"inherits": "2.0.3",
"samsam": "1.1.3",
"supports-color": "3.1.2",
"type-detect": "1.0.0",
"@webcomponents/webcomponentsjs": "2.0.0-beta.2"
},
"main": "sortable-list.js",
"author": "Pedro Garcia <pdgago@gmail.com>",
"dependencies": {
"@polymer/polymer": "^3.0.0"
},
"devDependencies": {
"wct-browser-legacy": "^0.0.1-pre.11"
}
}
Loading

0 comments on commit 9f5eb4c

Please sign in to comment.