-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: CodeArtifact Migration - Phase 1 & Phase 2 (#67)
* Demo cleanup, linting upgrade, publish to npm
- Loading branch information
Showing
19 changed files
with
372 additions
and
384 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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"extends": "brightspace/polymer-3-config", | ||
"globals": { | ||
"fastdom": false, | ||
"Promise": false | ||
"fastdom": false | ||
} | ||
} |
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
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 @@ | ||
14 |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,58 +1,56 @@ | ||
<html> | ||
<head> | ||
<title>D2L DOM Expand/Collapse</title> | ||
<script src="../../../@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script> | ||
<link rel="stylesheet" href="../demo-styles.css"> | ||
<script type="module" src="../../../@polymer/polymer/polymer-legacy.js"></script> | ||
<script type="module" src="../../d2l-dom-expand-collapse.js"></script> | ||
<style> | ||
.fixture { | ||
box-sizing: border-box; | ||
border: 1px solid black; | ||
margin-top: 20px; | ||
} | ||
.fixture > div { | ||
padding: 50px 20px; | ||
} | ||
.d2l-hidden { | ||
display: none !important; | ||
} | ||
</style> | ||
</head> | ||
<body unresolved> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> | ||
<link rel="stylesheet" href="/node_modules/@brightspace-ui/core/components/demo/styles.css" type="text/css"> | ||
<script type="module"> | ||
import '@brightspace-ui/core/components/demo/demo-page.js'; | ||
import '../../d2l-dom-expand-collapse.js'; | ||
</script> | ||
<style> | ||
.fixture { | ||
box-sizing: border-box; | ||
border: 1px solid black; | ||
margin-top: 20px; | ||
} | ||
.fixture > div { | ||
padding: 50px 20px; | ||
} | ||
</style> | ||
</head> | ||
<body unresolved> | ||
<d2l-demo-page page-title="d2l-dom-expand-collapse"> | ||
|
||
<h2>d2l-dom-expand-collapse</h2> | ||
<d2l-demo-snippet> | ||
<button id="collapse">Collapse</button> | ||
<button id="expand">Expand</button> | ||
<div id="container1" class="fixture"><div> | ||
Lorem ipsum dolor sit amet, scelerisque consectetuer lacus quam lectus orci, suscipit at duis, felis ligula pellentesque, dapibus mauris natoque eros sed, suspendisse wisi non. Non dictum turpis magna elit in eros, nostra tempor vulputate malesuada. Arcu imperdiet amet est massa. Sociis phasellus aliquip vel vestibulum rutrum magnis, fusce metus class mi lorem dolor integer, in leo. Imperdiet consequat, urna ipsum ipsum mauris, vel pellentesque rutrum in, metus cras etiam, leo ut. Luctus aliquet, urna condimentum nulla in, et libero. Quis ut vitae. Morbi in at est et, quod ullamcorper feugiat diam lacinia, in egestas lorem ornare. Cursus id nec ante, amet quam in at nibh, primis eget ac consectetuer massa blandit. Vivamus posuere. Porta tempora mauris et, nullam corporis, wisi luctus vestibulum neque nunc, risus venenatis cras libero morbi. | ||
|
||
<h1>d2l-dom-expand-collapse</h1> | ||
Ut vel sed, libero congue condimentum. Libero at dolor netus metus placerat, dui varius consectetuer tempus. Mi posuere volutpat elit et et, dignissim augue pulvinar wisi, mauris elementum convallis sed nulla magna dolor, nunc dis nulla amet, elit in gravida mi dui molestie. A feugiat neque pede morbi, nullam in tellus vel proin natoque eget. Mauris non venenatis, erat vel. Erat dapibus massa nulla facilisi. Ac ac per, malesuada varius. Lorem sociosqu ipsum. Donec quis. Nibh urna sem luctus cras, tortor condimentum, molestie lorem ut est amet et augue, lorem id fringilla. Lacinia neque, lacinia orci, nisl nunc faucibus. | ||
</div></div> | ||
</d2l-demo-snippet> | ||
</d2l-demo-page> | ||
<script type="module"> | ||
document.getElementById('expand').addEventListener('click', function() { | ||
D2L.Dom.ExpandCollapse.expand(document.getElementById('container1')) | ||
.then(function() { | ||
console.log('expanded!'); /* eslint-disable-line no-console */ | ||
}).catch(function(reason) { | ||
console.log(reason); /* eslint-disable-line no-console */ | ||
}); | ||
}); | ||
|
||
<div style="width: 60%;"> | ||
<button id="collapse">Collapse</button> | ||
<button id="expand">Expand</button> | ||
<div id="container1" class="fixture"><div> | ||
Lorem ipsum dolor sit amet, scelerisque consectetuer lacus quam lectus orci, suscipit at duis, felis ligula pellentesque, dapibus mauris natoque eros sed, suspendisse wisi non. Non dictum turpis magna elit in eros, nostra tempor vulputate malesuada. Arcu imperdiet amet est massa. Sociis phasellus aliquip vel vestibulum rutrum magnis, fusce metus class mi lorem dolor integer, in leo. Imperdiet consequat, urna ipsum ipsum mauris, vel pellentesque rutrum in, metus cras etiam, leo ut. Luctus aliquet, urna condimentum nulla in, et libero. Quis ut vitae. Morbi in at est et, quod ullamcorper feugiat diam lacinia, in egestas lorem ornare. Cursus id nec ante, amet quam in at nibh, primis eget ac consectetuer massa blandit. Vivamus posuere. Porta tempora mauris et, nullam corporis, wisi luctus vestibulum neque nunc, risus venenatis cras libero morbi. | ||
|
||
Ut vel sed, libero congue condimentum. Libero at dolor netus metus placerat, dui varius consectetuer tempus. Mi posuere volutpat elit et et, dignissim augue pulvinar wisi, mauris elementum convallis sed nulla magna dolor, nunc dis nulla amet, elit in gravida mi dui molestie. A feugiat neque pede morbi, nullam in tellus vel proin natoque eget. Mauris non venenatis, erat vel. Erat dapibus massa nulla facilisi. Ac ac per, malesuada varius. Lorem sociosqu ipsum. Donec quis. Nibh urna sem luctus cras, tortor condimentum, molestie lorem ut est amet et augue, lorem id fringilla. Lacinia neque, lacinia orci, nisl nunc faucibus. | ||
</div></div> | ||
</div> | ||
|
||
<script type="module"> | ||
import '@polymer/polymer/polymer-legacy.js'; | ||
import '../../d2l-dom-expand-collapse.js'; | ||
document.getElementById('expand').addEventListener('click', function() { | ||
D2L.Dom.ExpandCollapse.expand(document.getElementById('container1')) | ||
.then(function() { | ||
console.log('expanded!'); /* eslint-disable-line no-console */ | ||
}).catch(function(reason) { | ||
console.log(reason); /* eslint-disable-line no-console */ | ||
}); | ||
}); | ||
|
||
document.getElementById('collapse').addEventListener('click', function() { | ||
D2L.Dom.ExpandCollapse.collapse(document.getElementById('container1')) | ||
.then(function() { | ||
console.log('collapsed!'); /* eslint-disable-line no-console */ | ||
}).catch(function(reason) { | ||
console.log(reason); /* eslint-disable-line no-console */ | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
document.getElementById('collapse').addEventListener('click', function() { | ||
D2L.Dom.ExpandCollapse.collapse(document.getElementById('container1')) | ||
.then(function() { | ||
console.log('collapsed!'); /* eslint-disable-line no-console */ | ||
}).catch(function(reason) { | ||
console.log(reason); /* eslint-disable-line no-console */ | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.