datastake-daf 0.6.549 → 0.6.550
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 +11 -8
- package/dist/context/index.js +11 -8
- package/dist/hooks/index.js +16 -4655
- package/dist/layouts/index.css +1 -1
- package/dist/layouts/index.js +112 -1
- package/dist/services/index.js +11 -8
- package/package.json +1 -1
- package/src/@daf/layouts/AppLayout/components/Sidenav/index.js +0 -1
- package/src/@daf/layouts/AuthLayout/index.jsx +154 -0
- package/src/@daf/layouts/AuthLayout/index.scss +414 -0
- package/src/@daf/services/BaseService.js +0 -2
- package/src/@daf/services/helpers/config.js +10 -1
- package/src/layouts.js +2 -1
- package/build/favicon.ico +0 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +0 -25
- package/build/robots.txt +0 -3
- package/public/assets/images/applications/MMT Icon.svg +0 -3
- package/public/assets/images/applications/hatua-logo-big.svg +0 -4
package/dist/components/index.js
CHANGED
|
@@ -41063,7 +41063,16 @@ const createErrorHandler = (config = {}) => {
|
|
|
41063
41063
|
};
|
|
41064
41064
|
};
|
|
41065
41065
|
|
|
41066
|
-
let globalConfig = {
|
|
41066
|
+
let globalConfig = {
|
|
41067
|
+
application: null,
|
|
41068
|
+
mainApiUrl: null,
|
|
41069
|
+
storeUrl: null,
|
|
41070
|
+
language: 'en',
|
|
41071
|
+
onError: null,
|
|
41072
|
+
messageHandler: null,
|
|
41073
|
+
store: null,
|
|
41074
|
+
addToastAction: null
|
|
41075
|
+
};
|
|
41067
41076
|
const getConfig$1 = () => {
|
|
41068
41077
|
console.log({
|
|
41069
41078
|
getConfig: globalConfig
|
|
@@ -41098,10 +41107,7 @@ class ErrorService {
|
|
|
41098
41107
|
// In datastake-daf - src/services/BaseService.js
|
|
41099
41108
|
class BaseService extends BaseHTTPService {
|
|
41100
41109
|
constructor() {
|
|
41101
|
-
|
|
41102
|
-
console.log({
|
|
41103
|
-
config1: config
|
|
41104
|
-
});
|
|
41110
|
+
getConfig$1();
|
|
41105
41111
|
const errorHandler = createErrorHandler({
|
|
41106
41112
|
getStorageManager: () => StorageManager,
|
|
41107
41113
|
handleError: ({
|
|
@@ -41139,9 +41145,6 @@ class BaseService extends BaseHTTPService {
|
|
|
41139
41145
|
getToken: () => getToken(),
|
|
41140
41146
|
getHeaders: () => {
|
|
41141
41147
|
const config = getConfig$1();
|
|
41142
|
-
console.log({
|
|
41143
|
-
config2: config
|
|
41144
|
-
});
|
|
41145
41148
|
return {
|
|
41146
41149
|
Language: config.language || StorageManager.get('datastakeLng') || 'en',
|
|
41147
41150
|
'ngrok-skip-browser-warning': true,
|
package/dist/context/index.js
CHANGED
|
@@ -841,7 +841,16 @@ const createErrorHandler = (config = {}) => {
|
|
|
841
841
|
};
|
|
842
842
|
};
|
|
843
843
|
|
|
844
|
-
let globalConfig = {
|
|
844
|
+
let globalConfig = {
|
|
845
|
+
application: null,
|
|
846
|
+
mainApiUrl: null,
|
|
847
|
+
storeUrl: null,
|
|
848
|
+
language: 'en',
|
|
849
|
+
onError: null,
|
|
850
|
+
messageHandler: null,
|
|
851
|
+
store: null,
|
|
852
|
+
addToastAction: null
|
|
853
|
+
};
|
|
845
854
|
const getConfig = () => {
|
|
846
855
|
console.log({
|
|
847
856
|
getConfig: globalConfig
|
|
@@ -876,10 +885,7 @@ class ErrorService {
|
|
|
876
885
|
// In datastake-daf - src/services/BaseService.js
|
|
877
886
|
class BaseService extends BaseHTTPService {
|
|
878
887
|
constructor() {
|
|
879
|
-
|
|
880
|
-
console.log({
|
|
881
|
-
config1: config
|
|
882
|
-
});
|
|
888
|
+
getConfig();
|
|
883
889
|
const errorHandler = createErrorHandler({
|
|
884
890
|
getStorageManager: () => StorageManager$1,
|
|
885
891
|
handleError: ({
|
|
@@ -917,9 +923,6 @@ class BaseService extends BaseHTTPService {
|
|
|
917
923
|
getToken: () => getToken(),
|
|
918
924
|
getHeaders: () => {
|
|
919
925
|
const config = getConfig();
|
|
920
|
-
console.log({
|
|
921
|
-
config2: config
|
|
922
|
-
});
|
|
923
926
|
return {
|
|
924
927
|
Language: config.language || StorageManager$1.get('datastakeLng') || 'en',
|
|
925
928
|
'ngrok-skip-browser-warning': true,
|