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
54d100a8
Commit
54d100a8
authored
Jun 20, 2019
by
Matthieu Fesselier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: import moment js
parent
51237f87
Pipeline
#3964
passed with stage
in 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
examples/notifications-format-date.html
examples/notifications-format-date.html
+0
-1
sib-notifications.js
sib-notifications.js
+2
-1
No files found.
examples/notifications-format-date.html
View file @
54d100a8
...
...
@@ -19,7 +19,6 @@
<script
type=
"module"
src=
"https://unpkg.com/@startinblox/core@0.7"
></script>
<script
type=
"module"
src=
"https://unpkg.com/@startinblox/router"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"
></script>
<style>
:root
{
...
...
sib-notifications.js
View file @
54d100a8
...
...
@@ -2,7 +2,8 @@ import { SIBTemplateElement, store, Helpers } from 'https://unpkg.com/@startinbl
import
Favico
from
'
https://dev.jspm.io/favico.js-slevomat
'
;
const
base_url
=
import
.
meta
.
url
.
replace
(
/
\/[^\/]
*$/
,
''
);
Helpers
.
importCSS
(
`
${
base_url
}
/css/notification.css`
)
Helpers
.
importCSS
(
`
${
base_url
}
/css/notification.css`
);
Helpers
.
importJS
(
'
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js
'
);
class
SIBNotifications
extends
SIBTemplateElement
{
constructor
()
{
...
...
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