-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
112 lines (111 loc) · 2.82 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/assets/micro-lc-logo.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/assets/micro-lc-logo.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/assets/micro-lc-logo.png"
/>
<title>Micro-LC Notification Center</title>
<script type="module" src="/src/index.min.ts"></script>
<style>
:root {
--microlc-primary-color: #19a865;
}
html,
body {
margin: 0;
padding: 0;
}
/* Add a black background color to the top navigation */
.topnav {
display: flex;
justify-content: space-between;
padding: 10px;
box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
}
/* Style the links inside the navigation bar */
.topnav button {
float: left;
text-align: center;
text-decoration: none;
font-size: 17px;
}
.topnav micro-lc-notification-center {
float: right;
color: white;
}
</style>
</head>
<body>
<div class="topnav">
<button>Home</button>
<micro-lc-notification-center
endpoint="http://localhost:8000/notifications"
limit="5"
mode="polling"
></micro-lc-notification-center>
<script>
const microLcNotificationCenter = document.querySelector(
"micro-lc-notification-center"
);
microLcNotificationCenter.clickStrategy = "push";
microLcNotificationCenter.headers = {
"client-key": "random-client-key",
};
microLcNotificationCenter.locales = {
title: {
it: "Notifiche",
en: "Notifications",
de: "Benachrichtigungen",
},
dateFormat: {
it: "DD MMM YYYY",
en: "MMM DD YYYY",
},
loadingButton: {
it: "Carica altro",
en: "Load more",
},
errorMessage: {
it: "Si è verificato un errore, riprovare",
en: "An error occurred, try again",
},
noNotification: {
it: "Nessuna notifica da visualizzare",
en: "No notifications to show",
},
readAll: {
it: "Segna tutte come lette",
en: "Mark all as read",
},
reload: {
it: "Ricarica",
en: "Reload",
},
backOnTop: {
it: "Torna all'inizio",
en: "Back on top",
},
};
</script>
</div>
</body>
</html>