@iankibetsh/shframework 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist/library.mjs.css +36 -36
- package/dist/library.js +4 -2
- package/dist/library.mjs +4 -2
- package/package.json +1 -1
|
@@ -1,36 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.sh-phone{
|
|
3
|
-
display: flex;
|
|
4
|
-
width: 100%;
|
|
5
|
-
align-items: center;
|
|
6
|
-
padding: 0 0.25rem;
|
|
7
|
-
}
|
|
8
|
-
.phone-country{
|
|
9
|
-
width: 2rem;
|
|
10
|
-
border: none;
|
|
11
|
-
align-self: center;
|
|
12
|
-
outline: none !important;
|
|
13
|
-
padding: 0.4rem;
|
|
14
|
-
border-right: 1px solid #0003;
|
|
15
|
-
}
|
|
16
|
-
.phone-number{
|
|
17
|
-
width: calc(100% - 2.2rem);
|
|
18
|
-
border: none;
|
|
19
|
-
align-self: center;
|
|
20
|
-
outline: none;
|
|
21
|
-
margin-bottom: 0;
|
|
22
|
-
padding: 0.4rem;
|
|
23
|
-
}
|
|
24
|
-
.sh-phone img{
|
|
25
|
-
padding: 0.125rem;
|
|
26
|
-
width: 2rem;
|
|
27
|
-
height: 2rem;
|
|
28
|
-
}
|
|
29
|
-
.phone-number::placeholder{
|
|
30
|
-
font-weight: 300;
|
|
31
|
-
opacity: 0.5;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
2
|
.colored-toast.swal2-icon-success {
|
|
35
3
|
background-color: #a5dc86 !important;
|
|
36
4
|
}
|
|
@@ -63,6 +31,38 @@
|
|
|
63
31
|
color: white;
|
|
64
32
|
}
|
|
65
33
|
|
|
34
|
+
.sh-phone{
|
|
35
|
+
display: flex;
|
|
36
|
+
width: 100%;
|
|
37
|
+
align-items: center;
|
|
38
|
+
padding: 0 0.25rem;
|
|
39
|
+
}
|
|
40
|
+
.phone-country{
|
|
41
|
+
width: 2rem;
|
|
42
|
+
border: none;
|
|
43
|
+
align-self: center;
|
|
44
|
+
outline: none !important;
|
|
45
|
+
padding: 0.4rem;
|
|
46
|
+
border-right: 1px solid #0003;
|
|
47
|
+
}
|
|
48
|
+
.phone-number{
|
|
49
|
+
width: calc(100% - 2.2rem);
|
|
50
|
+
border: none;
|
|
51
|
+
align-self: center;
|
|
52
|
+
outline: none;
|
|
53
|
+
margin-bottom: 0;
|
|
54
|
+
padding: 0.4rem;
|
|
55
|
+
}
|
|
56
|
+
.sh-phone img{
|
|
57
|
+
padding: 0.125rem;
|
|
58
|
+
width: 2rem;
|
|
59
|
+
height: 2rem;
|
|
60
|
+
}
|
|
61
|
+
.phone-number::placeholder{
|
|
62
|
+
font-weight: 300;
|
|
63
|
+
opacity: 0.5;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
66
|
.sh-selected-item{
|
|
67
67
|
line-height: unset!important;
|
|
68
68
|
}
|
|
@@ -78,6 +78,10 @@
|
|
|
78
78
|
margin-right: 0.255em;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
.sh-forgot-link, .sh-register-link{
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
|
|
81
85
|
:root {
|
|
82
86
|
--ck-z-default: 10555 !important;
|
|
83
87
|
--ck-z-modal: calc(var(--ck-z-default) + 999) !important;
|
|
@@ -98,7 +102,3 @@
|
|
|
98
102
|
width: 100% !important;
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
|
-
|
|
102
|
-
.sh-forgot-link, .sh-register-link{
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
}
|
package/dist/library.js
CHANGED
|
@@ -42,7 +42,7 @@ var ShStorage = {
|
|
|
42
42
|
function logoutUser(){
|
|
43
43
|
// let logoutUrl = inject()
|
|
44
44
|
const logoutApiEndpoint = vue.inject('logoutApiEndpoint','auth/logout');
|
|
45
|
-
shApis.doPost(logoutApiEndpoint).then(res=>{
|
|
45
|
+
shApis.doPost(logoutApiEndpoint ?? 'auth/logout').then(res=>{
|
|
46
46
|
ShStorage.removeItem('access_token');
|
|
47
47
|
ShStorage.removeItem('user');
|
|
48
48
|
// const loginUrl = inject('loginUrl','/login')
|
|
@@ -68,7 +68,9 @@ const checkSession = function (isCheking) {
|
|
|
68
68
|
|
|
69
69
|
if(ShStorage.getItem('access_token')){
|
|
70
70
|
const timeOutSession = setTimeout(()=>{
|
|
71
|
-
|
|
71
|
+
if(ShStorage.getItem('access_token')){
|
|
72
|
+
logoutUser();
|
|
73
|
+
}
|
|
72
74
|
}, timeout * 60 * 1000);
|
|
73
75
|
window.shLogoutTimeout = timeOutSession;
|
|
74
76
|
}
|
package/dist/library.mjs
CHANGED
|
@@ -30,7 +30,7 @@ var ShStorage = {
|
|
|
30
30
|
function logoutUser(){
|
|
31
31
|
// let logoutUrl = inject()
|
|
32
32
|
const logoutApiEndpoint = inject('logoutApiEndpoint','auth/logout');
|
|
33
|
-
shApis.doPost(logoutApiEndpoint).then(res=>{
|
|
33
|
+
shApis.doPost(logoutApiEndpoint ?? 'auth/logout').then(res=>{
|
|
34
34
|
ShStorage.removeItem('access_token');
|
|
35
35
|
ShStorage.removeItem('user');
|
|
36
36
|
// const loginUrl = inject('loginUrl','/login')
|
|
@@ -56,7 +56,9 @@ const checkSession = function (isCheking) {
|
|
|
56
56
|
|
|
57
57
|
if(ShStorage.getItem('access_token')){
|
|
58
58
|
const timeOutSession = setTimeout(()=>{
|
|
59
|
-
|
|
59
|
+
if(ShStorage.getItem('access_token')){
|
|
60
|
+
logoutUser();
|
|
61
|
+
}
|
|
60
62
|
}, timeout * 60 * 1000);
|
|
61
63
|
window.shLogoutTimeout = timeOutSession;
|
|
62
64
|
}
|