Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SiB Notifications
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Startin blox
framework
SiB Notifications
Commits
ac2d2504
Commit
ac2d2504
authored
Jun 03, 2019
by
Matthieu Fesselier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: add imports for badge
parent
223bd781
Pipeline
#3701
passed with stage
in 27 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
9 deletions
+22
-9
examples/badge.html
examples/badge.html
+2
-2
examples/notifications-routing.html
examples/notifications-routing.html
+1
-1
examples/notifications.html
examples/notifications.html
+1
-1
index.html
index.html
+6
-2
index.js
index.js
+7
-0
package.json
package.json
+1
-1
sib-badge.js
sib-badge.js
+2
-1
sib-notifications.js
sib-notifications.js
+2
-1
No files found.
examples/badge.html
View file @
ac2d2504
...
...
@@ -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>
examples/notifications-routing.html
View file @
ac2d2504
...
...
@@ -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>
...
...
examples/notifications.html
View file @
ac2d2504
...
...
@@ -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>
...
...
index.html
View file @
ac2d2504
...
...
@@ -17,11 +17,15 @@
</head>
<body>
<h1>
SIB Notifications -
Demo
</h1>
<h2>
Example
s
</h2>
<h1>
Demo
</h1>
<h2>
SIB Notification
s
</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>
index.js
0 → 100644
View file @
ac2d2504
import
SIBNotifications
from
'
./sib-notifications.js
'
;
import
SIBBadge
from
'
./sib-badge.js
'
;
export
{
SIBNotifications
,
SIBBadge
}
\ No newline at end of file
package.json
View file @
ac2d2504
...
...
@@ -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"
...
...
sib-badge.js
View file @
ac2d2504
...
...
@@ -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
sib-notifications.js
View file @
ac2d2504
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment