-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.js
37 lines (35 loc) · 907 Bytes
/
config.js
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
//Swal2Setup
const Pop = Swal.mixin({
customClass: {
confirmButton: 'btn-sm btn bg-success-dark-gradient',
cancelButton: 'btn-sm btnbg-danger-dark-gradient',
},
showClass: {
popup: 'animated fadeInDown faster'
},
hideClass: {
popup: 'animated fadeOutUp faster'
},
buttonsStyling: true
});
const Toast = Swal.mixin({
toast: true,
position: 'top',
showConfirmButton: false,
timer: 5000,
timerProgressBar: true,
onOpen: (toast) => {
toast.addEventListener('mouseenter', Swal.stopTimer)
toast.addEventListener('mouseleave', Swal.resumeTimer)
}
});
//ChatJSSetup
chartColors = {
red: 'rgb(255, 99, 132)',
orange: 'rgb(255, 159, 64)',
yellow: 'rgb(255, 205, 86)',
green: 'rgb(75, 192, 192)',
blue: 'rgb(54, 162, 235)',
purple: 'rgb(153, 102, 255)',
grey: 'rgb(201, 203, 207)'
};