datastake-daf 0.6.716 → 0.6.718
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/build/favicon.ico +0 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +25 -0
- package/build/robots.txt +3 -0
- package/dist/components/index.js +463 -437
- package/dist/context/index.js +13 -10
- package/dist/hooks/index.js +4659 -23
- package/dist/layouts/index.js +464 -438
- package/dist/pages/index.js +456 -436
- package/dist/services/index.js +13 -10
- package/dist/style/datastake/datastake.css +2 -2
- package/dist/utils/index.js +455 -432
- package/package.json +1 -1
- package/src/@daf/core/components/AuthForm/index.jsx +7 -1
- package/src/@daf/core/components/Icon/configs/index.js +4 -0
- package/src/@daf/core/components/Icon/configs/partnerIcon.js +8 -0
- package/src/@daf/core/components/Icon/configs/userIcon.js +8 -0
- package/src/@daf/layouts/AuthLayout/components/Navbar/index.jsx +3 -1
- package/src/@daf/layouts/AuthLayout/index.jsx +1 -1
- package/src/@daf/pages/dashboards/UserDashboard/config.js +27 -0
- package/src/@daf/pages/dashboards/UserDashboard/index.jsx +43 -0
- package/src/@daf/services/AuthenticationService.js +7 -3
- package/src/@daf/services/BaseService.js +1 -1
- package/src/@daf/services/helpers/BaseHTTPService.js +0 -3
- package/src/styles/datastake/datastake.css +2 -2
package/dist/context/index.js
CHANGED
|
@@ -580,12 +580,9 @@ class BaseHTTPService {
|
|
|
580
580
|
this._axiosInitialized = false;
|
|
581
581
|
}
|
|
582
582
|
_ensureAxiosInitialized() {
|
|
583
|
-
console.log('[BaseHTTPService] Checking axios initialization:', this._axiosInitialized);
|
|
584
583
|
if (!this._axiosInitialized) {
|
|
585
|
-
console.log('[BaseHTTPService] Setting up axios...');
|
|
586
584
|
this.setupAxios();
|
|
587
585
|
this._axiosInitialized = true;
|
|
588
|
-
console.log('[BaseHTTPService] Axios setup complete!');
|
|
589
586
|
}
|
|
590
587
|
}
|
|
591
588
|
setupAxios() {
|
|
@@ -910,7 +907,7 @@ class BaseService extends BaseHTTPService {
|
|
|
910
907
|
getHeaders: () => {
|
|
911
908
|
const config = getServicesConfig();
|
|
912
909
|
return {
|
|
913
|
-
Language:
|
|
910
|
+
Language: StorageManager$1.get('datastakeLng') || 'en',
|
|
914
911
|
'ngrok-skip-browser-warning': true,
|
|
915
912
|
Application: config.application
|
|
916
913
|
};
|
|
@@ -972,7 +969,7 @@ function createLazyService(ServiceClass) {
|
|
|
972
969
|
class AuthenticationService extends BaseService {
|
|
973
970
|
register(form) {
|
|
974
971
|
return this.apiPost({
|
|
975
|
-
url: '/
|
|
972
|
+
url: '/register',
|
|
976
973
|
data: form
|
|
977
974
|
});
|
|
978
975
|
}
|
|
@@ -1025,10 +1022,10 @@ class AuthenticationService extends BaseService {
|
|
|
1025
1022
|
});
|
|
1026
1023
|
}
|
|
1027
1024
|
verify(code) {
|
|
1028
|
-
return this.
|
|
1025
|
+
return this.apiGet({
|
|
1029
1026
|
url: '/register/confirm',
|
|
1030
|
-
|
|
1031
|
-
code
|
|
1027
|
+
params: {
|
|
1028
|
+
token: code
|
|
1032
1029
|
},
|
|
1033
1030
|
isDaf: true
|
|
1034
1031
|
});
|
|
@@ -1150,13 +1147,19 @@ class AuthenticationService extends BaseService {
|
|
|
1150
1147
|
});
|
|
1151
1148
|
}
|
|
1152
1149
|
getFormOptions({
|
|
1153
|
-
references = ['countries', 'categoriesOptions', 'subCategoriesOptions', 'locationCategoriesOptions', 'documentationTypesOptions']
|
|
1150
|
+
references = ['countries', 'categoriesOptions', 'subCategoriesOptions', 'locationCategoriesOptions', 'documentationTypesOptions'],
|
|
1151
|
+
language,
|
|
1152
|
+
...params
|
|
1154
1153
|
}) {
|
|
1154
|
+
console.log({
|
|
1155
|
+
language
|
|
1156
|
+
});
|
|
1155
1157
|
return this.apiPost({
|
|
1156
1158
|
url: '/query/form-options',
|
|
1157
1159
|
isDaf: true,
|
|
1158
1160
|
data: {
|
|
1159
|
-
references
|
|
1161
|
+
references,
|
|
1162
|
+
language
|
|
1160
1163
|
}
|
|
1161
1164
|
});
|
|
1162
1165
|
}
|