Commit ac2d2504 authored by Matthieu Fesselier's avatar Matthieu Fesselier

update: add imports for badge

parent 223bd781
Pipeline #3701 passed with stage
in 27 seconds
......@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.20/webcomponents-loader.js"></script>
<title>SIB Badge - Demo</title>
<script type="module" src="../sib-badge.js"></script>
<script type="module" src="../index.js"></script>
<script type="module" src="https://unpkg.com/@startinblox/core@0.7"></script>
<style>
:root{
......@@ -15,7 +15,7 @@
<body>
<h1>SIB Badge - demo</h1>
<p>Number of notifications about conversation 7</p>
<p>Number of notifications related to conversation 7</p>
<sib-badge data-src="http://127.0.0.1:8000/conversations/7/"></sib-badge>
</body>
</html>
......@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.20/webcomponents-loader.js"></script>
<title>SIB Notifications - Demo</title>
<script type="module" src="../sib-notifications.js"></script>
<script type="module" src="../index.js"></script>
<script type="module" src="https://unpkg.com/@startinblox/oidc@latest"></script>
<sib-auth>
......
......@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.20/webcomponents-loader.js"></script>
<title>SIB Notifications - Demo</title>
<script type="module" src="../sib-notifications.js"></script>
<script type="module" src="../index.js"></script>
<script type="module" src="https://unpkg.com/@startinblox/oidc@latest"></script>
<sib-auth>
......
......@@ -17,11 +17,15 @@
</head>
<body>
<h1>SIB Notifications - Demo</h1>
<h2>Examples</h2>
<h1>Demo</h1>
<h2>SIB Notifications</h2>
<ul>
<li><a href="examples/notifications.html">notifications</a></li>
<li><a href="examples/notifications-routing.html">notifications-routing</a></li>
</ul>
<h2>SIB Badge</h2>
<ul>
<li><a href="examples/badge.html">badge</a></li>
</ul>
</body>
</html>
import SIBNotifications from './sib-notifications.js';
import SIBBadge from './sib-badge.js';
export {
SIBNotifications,
SIBBadge
}
\ No newline at end of file
......@@ -2,7 +2,7 @@
"name": "@startinblox/component-notifications",
"version": "0.1.0",
"description": "Notifications component for startinblox",
"main": "sib-notifications.js",
"main": "index.js",
"repository": {
"type": "git",
"url": "git@git.happy-dev.fr:startinblox/framework/sib-notifications.git"
......
......@@ -31,4 +31,5 @@ class SIBBadge extends SIBTemplateElement {
}
}
customElements.define('sib-badge', SIBBadge);
\ No newline at end of file
customElements.define('sib-badge', SIBBadge);
export default SIBBadge;
\ No newline at end of file
......@@ -166,4 +166,5 @@ class SIBNotifications extends SIBTemplateElement {
}
}
customElements.define('sib-notifications', SIBNotifications);
\ No newline at end of file
customElements.define('sib-notifications', SIBNotifications);
export default SIBNotifications;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment