datastake-daf 0.6.651 → 0.6.653
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/components/index.js +2 -13
- package/dist/context/index.js +0 -8
- package/dist/services/index.js +2 -13
- package/package.json +1 -1
- package/public/assets/images/applications/wazi-logo-big.svg +4 -0
- package/public/assets/images/applications/wazi-logo-small.svg +3 -0
- package/src/@daf/services/BaseService.js +0 -6
- package/src/@daf/services/ChannelsService.js +0 -3
- package/src/@daf/services/helpers/config.js +0 -1
package/dist/components/index.js
CHANGED
|
@@ -41319,7 +41319,6 @@ const createErrorHandler = (config = {}) => {
|
|
|
41319
41319
|
window.globalServicesConfig = {
|
|
41320
41320
|
application: null,
|
|
41321
41321
|
mainApiUrl: null,
|
|
41322
|
-
storeUrl: null,
|
|
41323
41322
|
language: 'en',
|
|
41324
41323
|
onError: null,
|
|
41325
41324
|
messageHandler: null,
|
|
@@ -41402,7 +41401,6 @@ class BaseService extends BaseHTTPService {
|
|
|
41402
41401
|
},
|
|
41403
41402
|
getBaseURL: options => {
|
|
41404
41403
|
const config = getServicesConfig();
|
|
41405
|
-
if (options?.isStore) return config.storeUrl;
|
|
41406
41404
|
return config.mainApiUrl;
|
|
41407
41405
|
},
|
|
41408
41406
|
onError: errorHandler,
|
|
@@ -41410,12 +41408,6 @@ class BaseService extends BaseHTTPService {
|
|
|
41410
41408
|
});
|
|
41411
41409
|
}
|
|
41412
41410
|
apiGet(options) {
|
|
41413
|
-
const config = getServicesConfig();
|
|
41414
|
-
|
|
41415
|
-
// Add custom baseURL handling for isStore
|
|
41416
|
-
if (options.isStore) {
|
|
41417
|
-
options.baseURL = config.storeUrl;
|
|
41418
|
-
}
|
|
41419
41411
|
|
|
41420
41412
|
// Call parent's apiGet
|
|
41421
41413
|
return super.apiGet(options);
|
|
@@ -41521,7 +41513,6 @@ class ChannelsService extends BaseService {
|
|
|
41521
41513
|
return this.apiGet({
|
|
41522
41514
|
url: `/api/channel/query`,
|
|
41523
41515
|
params,
|
|
41524
|
-
isStore: true,
|
|
41525
41516
|
headers: token ? {
|
|
41526
41517
|
Authorization: `Bearer ${token}`
|
|
41527
41518
|
} : undefined
|
|
@@ -41537,14 +41528,12 @@ class ChannelsService extends BaseService {
|
|
|
41537
41528
|
}
|
|
41538
41529
|
getChannel(id) {
|
|
41539
41530
|
return this.apiGet({
|
|
41540
|
-
url: `/api/channel/${id}
|
|
41541
|
-
isStore: true
|
|
41531
|
+
url: `/api/channel/${id}`
|
|
41542
41532
|
});
|
|
41543
41533
|
}
|
|
41544
41534
|
acquire(id) {
|
|
41545
41535
|
return this.apiPost({
|
|
41546
|
-
url: `/api/subject/${id}/acquire
|
|
41547
|
-
isStore: true
|
|
41536
|
+
url: `/api/subject/${id}/acquire`
|
|
41548
41537
|
});
|
|
41549
41538
|
}
|
|
41550
41539
|
}
|
package/dist/context/index.js
CHANGED
|
@@ -833,7 +833,6 @@ const createErrorHandler = (config = {}) => {
|
|
|
833
833
|
window.globalServicesConfig = {
|
|
834
834
|
application: null,
|
|
835
835
|
mainApiUrl: null,
|
|
836
|
-
storeUrl: null,
|
|
837
836
|
language: 'en',
|
|
838
837
|
onError: null,
|
|
839
838
|
messageHandler: null,
|
|
@@ -916,7 +915,6 @@ class BaseService extends BaseHTTPService {
|
|
|
916
915
|
},
|
|
917
916
|
getBaseURL: options => {
|
|
918
917
|
const config = getServicesConfig();
|
|
919
|
-
if (options?.isStore) return config.storeUrl;
|
|
920
918
|
return config.mainApiUrl;
|
|
921
919
|
},
|
|
922
920
|
onError: errorHandler,
|
|
@@ -924,12 +922,6 @@ class BaseService extends BaseHTTPService {
|
|
|
924
922
|
});
|
|
925
923
|
}
|
|
926
924
|
apiGet(options) {
|
|
927
|
-
const config = getServicesConfig();
|
|
928
|
-
|
|
929
|
-
// Add custom baseURL handling for isStore
|
|
930
|
-
if (options.isStore) {
|
|
931
|
-
options.baseURL = config.storeUrl;
|
|
932
|
-
}
|
|
933
925
|
|
|
934
926
|
// Call parent's apiGet
|
|
935
927
|
return super.apiGet(options);
|
package/dist/services/index.js
CHANGED
|
@@ -473,7 +473,6 @@ class ErrorHandler {
|
|
|
473
473
|
window.globalServicesConfig = {
|
|
474
474
|
application: null,
|
|
475
475
|
mainApiUrl: null,
|
|
476
|
-
storeUrl: null,
|
|
477
476
|
language: 'en',
|
|
478
477
|
onError: null,
|
|
479
478
|
messageHandler: null,
|
|
@@ -671,7 +670,6 @@ class BaseService extends BaseHTTPService {
|
|
|
671
670
|
},
|
|
672
671
|
getBaseURL: options => {
|
|
673
672
|
const config = getServicesConfig();
|
|
674
|
-
if (options?.isStore) return config.storeUrl;
|
|
675
673
|
return config.mainApiUrl;
|
|
676
674
|
},
|
|
677
675
|
onError: errorHandler,
|
|
@@ -679,12 +677,6 @@ class BaseService extends BaseHTTPService {
|
|
|
679
677
|
});
|
|
680
678
|
}
|
|
681
679
|
apiGet(options) {
|
|
682
|
-
const config = getServicesConfig();
|
|
683
|
-
|
|
684
|
-
// Add custom baseURL handling for isStore
|
|
685
|
-
if (options.isStore) {
|
|
686
|
-
options.baseURL = config.storeUrl;
|
|
687
|
-
}
|
|
688
680
|
|
|
689
681
|
// Call parent's apiGet
|
|
690
682
|
return super.apiGet(options);
|
|
@@ -971,7 +963,6 @@ class ChannelsService extends BaseService {
|
|
|
971
963
|
return this.apiGet({
|
|
972
964
|
url: `/api/channel/query`,
|
|
973
965
|
params,
|
|
974
|
-
isStore: true,
|
|
975
966
|
headers: token ? {
|
|
976
967
|
Authorization: `Bearer ${token}`
|
|
977
968
|
} : undefined
|
|
@@ -987,14 +978,12 @@ class ChannelsService extends BaseService {
|
|
|
987
978
|
}
|
|
988
979
|
getChannel(id) {
|
|
989
980
|
return this.apiGet({
|
|
990
|
-
url: `/api/channel/${id}
|
|
991
|
-
isStore: true
|
|
981
|
+
url: `/api/channel/${id}`
|
|
992
982
|
});
|
|
993
983
|
}
|
|
994
984
|
acquire(id) {
|
|
995
985
|
return this.apiPost({
|
|
996
|
-
url: `/api/subject/${id}/acquire
|
|
997
|
-
isStore: true
|
|
986
|
+
url: `/api/subject/${id}/acquire`
|
|
998
987
|
});
|
|
999
988
|
}
|
|
1000
989
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="121" height="26" viewBox="0 0 121 26" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12.5002 0.365234C19.4038 0.365235 25.0002 5.96168 25.0002 12.8652C25.0002 19.4287 19.9411 24.8109 13.51 25.3252C13.1459 25.3598 12.7789 25.3779 12.4104 25.3799H12.1057C5.42413 25.3799 0.00725336 19.9638 0.00708008 13.2822C0.00254931 13.1439 0.000244172 13.0047 0.000244141 12.8652C0.000244141 5.96168 5.59669 0.365234 12.5002 0.365234ZM12.1643 5.69238C8.5357 5.69238 5.65759 8.83226 5.65747 12.624V13.8604C5.65747 17.6522 8.53562 20.792 12.1643 20.792C15.7927 20.7917 18.6711 17.652 18.6711 13.8604V12.624C18.671 8.83245 15.7926 5.69271 12.1643 5.69238ZM12.1643 6.79199C15.115 6.79232 17.5704 9.36741 17.5706 12.624V13.8604C17.5706 17.1171 15.1151 19.6921 12.1643 19.6924C9.21325 19.6924 6.75708 17.1173 6.75708 13.8604V12.624C6.7572 9.3672 9.21333 6.79199 12.1643 6.79199ZM11.762 9.77441L8.86157 12.8818L8.51099 13.2578L8.86157 13.6328L11.762 16.7402L12.1643 17.1709L12.5667 16.7402L15.467 13.6328L15.8176 13.2578L15.467 12.8818L12.5667 9.77441L12.1643 9.34375L11.762 9.77441ZM13.7981 13.8076L12.1633 15.5576L10.5295 13.8076H13.7981ZM13.7981 12.707H10.5295L12.1633 10.9561L13.7981 12.707Z" fill="#9C7C40"/>
|
|
3
|
+
<path d="M48.2969 8.0332L43.4805 25.3652H38.4707L31.7559 0H37.2578L41.248 18.3691H41.3887L46.1348 0H50.6172L55.3633 18.3691H55.5039L59.5117 0H65.0137L58.2812 25.3652H53.2715L48.4551 8.0332H48.2969ZM82.0996 25.3652L80.166 19.2129H71.2539L69.3203 25.3652H63.8711L72.6777 0H78.918L87.7422 25.3652H82.0996ZM75.6484 4.85156L72.3965 15.2402H79.0234L75.7715 4.85156H75.6484ZM89.7988 25.3652V21.9023L102.684 4.51758V4.37695H90.0977V0H109.029V3.44531L96.1973 20.8477V20.9707H109.381V25.3652H89.7988ZM118.363 25.3652H113.055V0H118.363V25.3652Z" fill="#2D2D35"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="25" height="26" viewBox="0 0 25 26" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12.5002 0C19.4038 2.39999e-07 25.0002 5.59644 25.0002 12.5C25.0002 19.0635 19.9411 24.4456 13.51 24.96C13.1459 24.9946 12.7789 25.0126 12.4104 25.0146H12.1057C5.42413 25.0146 0.00725336 19.5985 0.00708008 12.917C0.00254931 12.7787 0.000244172 12.6394 0.000244141 12.5C0.000244141 5.59644 5.59669 0 12.5002 0ZM12.1643 5.32715C8.5357 5.32715 5.65759 8.46702 5.65747 12.2588V13.4951C5.65747 17.287 8.53562 20.4268 12.1643 20.4268C15.7927 20.4264 18.6711 17.2868 18.6711 13.4951V12.2588C18.671 8.46722 15.7926 5.32748 12.1643 5.32715ZM12.1643 6.42676C15.115 6.42709 17.5704 9.00217 17.5706 12.2588V13.4951C17.5706 16.7518 15.1151 19.3268 12.1643 19.3271C9.21325 19.3271 6.75708 16.7521 6.75708 13.4951V12.2588C6.7572 9.00197 9.21333 6.42676 12.1643 6.42676ZM11.762 9.40918L8.86157 12.5166L8.51099 12.8926L8.86157 13.2676L11.762 16.375L12.1643 16.8057L12.5667 16.375L15.467 13.2676L15.8176 12.8926L15.467 12.5166L12.5667 9.40918L12.1643 8.97852L11.762 9.40918ZM13.7981 13.4424L12.1633 15.1924L10.5295 13.4424H13.7981ZM13.7981 12.3418H10.5295L12.1633 10.5908L13.7981 12.3418Z" fill="#9C7C40"/>
|
|
3
|
+
</svg>
|
|
@@ -43,7 +43,6 @@ export class BaseService extends BaseHTTPService {
|
|
|
43
43
|
},
|
|
44
44
|
getBaseURL: (options) => {
|
|
45
45
|
const config = getServicesConfig();
|
|
46
|
-
if (options?.isStore) return config.storeUrl;
|
|
47
46
|
return config.mainApiUrl;
|
|
48
47
|
},
|
|
49
48
|
onError: errorHandler,
|
|
@@ -54,11 +53,6 @@ export class BaseService extends BaseHTTPService {
|
|
|
54
53
|
apiGet(options) {
|
|
55
54
|
const config = getServicesConfig();
|
|
56
55
|
|
|
57
|
-
// Add custom baseURL handling for isStore
|
|
58
|
-
if (options.isStore) {
|
|
59
|
-
options.baseURL = config.storeUrl;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
56
|
// Call parent's apiGet
|
|
63
57
|
return super.apiGet(options);
|
|
64
58
|
}
|
|
@@ -8,7 +8,6 @@ class ChannelsService extends BaseService {
|
|
|
8
8
|
return this.apiGet({
|
|
9
9
|
url: `/api/channel/query`,
|
|
10
10
|
params,
|
|
11
|
-
isStore: true,
|
|
12
11
|
headers: token ? {
|
|
13
12
|
Authorization: `Bearer ${token}`,
|
|
14
13
|
} : undefined,
|
|
@@ -27,14 +26,12 @@ class ChannelsService extends BaseService {
|
|
|
27
26
|
getChannel(id) {
|
|
28
27
|
return this.apiGet({
|
|
29
28
|
url: `/api/channel/${id}`,
|
|
30
|
-
isStore: true
|
|
31
29
|
});
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
acquire(id) {
|
|
35
33
|
return this.apiPost({
|
|
36
34
|
url: `/api/subject/${id}/acquire`,
|
|
37
|
-
isStore: true
|
|
38
35
|
});
|
|
39
36
|
}
|
|
40
37
|
}
|