@iankibetsh/shframework 5.2.3 → 5.2.5
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 +32 -32
- package/dist/library.js +16 -6
- package/dist/library.mjs +16 -6
- package/package.json +1 -1
|
@@ -1,36 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.colored-toast.swal2-icon-success {
|
|
3
|
-
background-color: #a5dc86 !important;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.colored-toast.swal2-icon-error {
|
|
7
|
-
background-color: #f27474 !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.colored-toast.swal2-icon-warning {
|
|
11
|
-
background-color: #f8bb86 !important;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.colored-toast.swal2-icon-info {
|
|
15
|
-
background-color: #3fc3ee !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.colored-toast.swal2-icon-question {
|
|
19
|
-
background-color: #87adbd !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.colored-toast .swal2-title {
|
|
23
|
-
color: white;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.colored-toast .swal2-close {
|
|
27
|
-
color: white;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.colored-toast .swal2-html-container {
|
|
31
|
-
color: white;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
2
|
.sh-phone{
|
|
35
3
|
display: flex;
|
|
36
4
|
width: 100%;
|
|
@@ -63,6 +31,38 @@
|
|
|
63
31
|
opacity: 0.5;
|
|
64
32
|
}
|
|
65
33
|
|
|
34
|
+
.colored-toast.swal2-icon-success {
|
|
35
|
+
background-color: #a5dc86 !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.colored-toast.swal2-icon-error {
|
|
39
|
+
background-color: #f27474 !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.colored-toast.swal2-icon-warning {
|
|
43
|
+
background-color: #f8bb86 !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.colored-toast.swal2-icon-info {
|
|
47
|
+
background-color: #3fc3ee !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.colored-toast.swal2-icon-question {
|
|
51
|
+
background-color: #87adbd !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.colored-toast .swal2-title {
|
|
55
|
+
color: white;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.colored-toast .swal2-close {
|
|
59
|
+
color: white;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.colored-toast .swal2-html-container {
|
|
63
|
+
color: white;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
66
|
.permissions-main {
|
|
67
67
|
background: #edeff2;
|
|
68
68
|
}
|
package/dist/library.js
CHANGED
|
@@ -437,11 +437,18 @@ const axios = Axios__default["default"].create({
|
|
|
437
437
|
window.shAxionInstance = axios;
|
|
438
438
|
function doGet (endPoint, data,extraConfig) {
|
|
439
439
|
updateSession();
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
440
|
+
let accessToken = shStorage.getItem('access_token');
|
|
441
|
+
if(accessToken === 'undefined' || accessToken === 'null'){
|
|
442
|
+
accessToken = null;
|
|
443
|
+
}
|
|
444
|
+
let config = {};
|
|
445
|
+
if(accessToken){
|
|
446
|
+
config = {
|
|
447
|
+
headers: {
|
|
448
|
+
Authorization: 'Bearer ' + accessToken
|
|
449
|
+
}
|
|
450
|
+
};
|
|
443
451
|
}
|
|
444
|
-
};
|
|
445
452
|
if (extraConfig) {
|
|
446
453
|
Object.assign(config, extraConfig);
|
|
447
454
|
}
|
|
@@ -453,12 +460,15 @@ function doGet (endPoint, data,extraConfig) {
|
|
|
453
460
|
}
|
|
454
461
|
function doPost (endPoint, data, extraConfig) {
|
|
455
462
|
updateSession();
|
|
456
|
-
|
|
463
|
+
let accessToken = shStorage.getItem('access_token');
|
|
464
|
+
if(accessToken === 'undefined' || accessToken === 'null'){
|
|
465
|
+
accessToken = null;
|
|
466
|
+
}
|
|
457
467
|
let config = {};
|
|
458
468
|
if(accessToken){
|
|
459
469
|
config = {
|
|
460
470
|
headers: {
|
|
461
|
-
Authorization: 'Bearer ' +
|
|
471
|
+
Authorization: 'Bearer ' + accessToken
|
|
462
472
|
}
|
|
463
473
|
};
|
|
464
474
|
}
|
package/dist/library.mjs
CHANGED
|
@@ -425,11 +425,18 @@ const axios = Axios.create({
|
|
|
425
425
|
window.shAxionInstance = axios;
|
|
426
426
|
function doGet (endPoint, data,extraConfig) {
|
|
427
427
|
updateSession();
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
428
|
+
let accessToken = shStorage.getItem('access_token');
|
|
429
|
+
if(accessToken === 'undefined' || accessToken === 'null'){
|
|
430
|
+
accessToken = null;
|
|
431
|
+
}
|
|
432
|
+
let config = {};
|
|
433
|
+
if(accessToken){
|
|
434
|
+
config = {
|
|
435
|
+
headers: {
|
|
436
|
+
Authorization: 'Bearer ' + accessToken
|
|
437
|
+
}
|
|
438
|
+
};
|
|
431
439
|
}
|
|
432
|
-
};
|
|
433
440
|
if (extraConfig) {
|
|
434
441
|
Object.assign(config, extraConfig);
|
|
435
442
|
}
|
|
@@ -441,12 +448,15 @@ function doGet (endPoint, data,extraConfig) {
|
|
|
441
448
|
}
|
|
442
449
|
function doPost (endPoint, data, extraConfig) {
|
|
443
450
|
updateSession();
|
|
444
|
-
|
|
451
|
+
let accessToken = shStorage.getItem('access_token');
|
|
452
|
+
if(accessToken === 'undefined' || accessToken === 'null'){
|
|
453
|
+
accessToken = null;
|
|
454
|
+
}
|
|
445
455
|
let config = {};
|
|
446
456
|
if(accessToken){
|
|
447
457
|
config = {
|
|
448
458
|
headers: {
|
|
449
|
-
Authorization: 'Bearer ' +
|
|
459
|
+
Authorization: 'Bearer ' + accessToken
|
|
450
460
|
}
|
|
451
461
|
};
|
|
452
462
|
}
|