datastake-daf 0.6.716 → 0.6.717
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 +8 -5
- package/dist/context/index.js +13 -10
- package/dist/hooks/index.js +4659 -23
- package/dist/layouts/index.js +9 -6
- package/dist/pages/index.js +1 -4
- package/dist/services/index.js +13 -10
- package/dist/style/datastake/datastake.css +2 -2
- package/package.json +1 -1
- package/src/@daf/core/components/AuthForm/index.jsx +7 -1
- 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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"short_name": "React App",
|
|
3
|
+
"name": "Create React App Sample",
|
|
4
|
+
"icons": [
|
|
5
|
+
{
|
|
6
|
+
"src": "favicon.ico",
|
|
7
|
+
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
+
"type": "image/x-icon"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"src": "logo192.png",
|
|
12
|
+
"type": "image/png",
|
|
13
|
+
"sizes": "192x192"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"src": "logo512.png",
|
|
17
|
+
"type": "image/png",
|
|
18
|
+
"sizes": "512x512"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"start_url": ".",
|
|
22
|
+
"display": "standalone",
|
|
23
|
+
"theme_color": "#000000",
|
|
24
|
+
"background_color": "#ffffff"
|
|
25
|
+
}
|
package/build/robots.txt
ADDED
package/dist/components/index.js
CHANGED
|
@@ -40668,7 +40668,13 @@ function AuthForm(_ref) {
|
|
|
40668
40668
|
console.error("Please fix the validation errors before continuing.");
|
|
40669
40669
|
}
|
|
40670
40670
|
};
|
|
40671
|
-
const prev = () =>
|
|
40671
|
+
const prev = () => {
|
|
40672
|
+
// Save current step's values before going back (without validation)
|
|
40673
|
+
const fieldNames = currentFields.map(f => f.name);
|
|
40674
|
+
const currentValues = formInstance.getFieldsValue(fieldNames);
|
|
40675
|
+
setAllFormValues(prev => _objectSpread2(_objectSpread2({}, prev), currentValues));
|
|
40676
|
+
setCurrentStep(prev => prev - 1);
|
|
40677
|
+
};
|
|
40672
40678
|
const handleSubmit = async values => {
|
|
40673
40679
|
try {
|
|
40674
40680
|
await formInstance.validateFields();
|
|
@@ -41161,12 +41167,9 @@ class BaseHTTPService {
|
|
|
41161
41167
|
this._axiosInitialized = false;
|
|
41162
41168
|
}
|
|
41163
41169
|
_ensureAxiosInitialized() {
|
|
41164
|
-
console.log('[BaseHTTPService] Checking axios initialization:', this._axiosInitialized);
|
|
41165
41170
|
if (!this._axiosInitialized) {
|
|
41166
|
-
console.log('[BaseHTTPService] Setting up axios...');
|
|
41167
41171
|
this.setupAxios();
|
|
41168
41172
|
this._axiosInitialized = true;
|
|
41169
|
-
console.log('[BaseHTTPService] Axios setup complete!');
|
|
41170
41173
|
}
|
|
41171
41174
|
}
|
|
41172
41175
|
setupAxios() {
|
|
@@ -41491,7 +41494,7 @@ class BaseService extends BaseHTTPService {
|
|
|
41491
41494
|
getHeaders: () => {
|
|
41492
41495
|
const config = getServicesConfig();
|
|
41493
41496
|
return {
|
|
41494
|
-
Language:
|
|
41497
|
+
Language: StorageManager.get('datastakeLng') || 'en',
|
|
41495
41498
|
'ngrok-skip-browser-warning': true,
|
|
41496
41499
|
Application: config.application
|
|
41497
41500
|
};
|
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
|
}
|