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/services/index.js
CHANGED
|
@@ -241,12 +241,9 @@ class BaseHTTPService {
|
|
|
241
241
|
this._axiosInitialized = false;
|
|
242
242
|
}
|
|
243
243
|
_ensureAxiosInitialized() {
|
|
244
|
-
console.log('[BaseHTTPService] Checking axios initialization:', this._axiosInitialized);
|
|
245
244
|
if (!this._axiosInitialized) {
|
|
246
|
-
console.log('[BaseHTTPService] Setting up axios...');
|
|
247
245
|
this.setupAxios();
|
|
248
246
|
this._axiosInitialized = true;
|
|
249
|
-
console.log('[BaseHTTPService] Axios setup complete!');
|
|
250
247
|
}
|
|
251
248
|
}
|
|
252
249
|
setupAxios() {
|
|
@@ -662,7 +659,7 @@ class BaseService extends BaseHTTPService {
|
|
|
662
659
|
getHeaders: () => {
|
|
663
660
|
const config = getServicesConfig();
|
|
664
661
|
return {
|
|
665
|
-
Language:
|
|
662
|
+
Language: StorageManager$1.get('datastakeLng') || 'en',
|
|
666
663
|
'ngrok-skip-browser-warning': true,
|
|
667
664
|
Application: config.application
|
|
668
665
|
};
|
|
@@ -765,7 +762,7 @@ var AdminService$1 = createLazyService(AdminService);
|
|
|
765
762
|
class AuthenticationService extends BaseService {
|
|
766
763
|
register(form) {
|
|
767
764
|
return this.apiPost({
|
|
768
|
-
url: '/
|
|
765
|
+
url: '/register',
|
|
769
766
|
data: form
|
|
770
767
|
});
|
|
771
768
|
}
|
|
@@ -818,10 +815,10 @@ class AuthenticationService extends BaseService {
|
|
|
818
815
|
});
|
|
819
816
|
}
|
|
820
817
|
verify(code) {
|
|
821
|
-
return this.
|
|
818
|
+
return this.apiGet({
|
|
822
819
|
url: '/register/confirm',
|
|
823
|
-
|
|
824
|
-
code
|
|
820
|
+
params: {
|
|
821
|
+
token: code
|
|
825
822
|
},
|
|
826
823
|
isDaf: true
|
|
827
824
|
});
|
|
@@ -943,13 +940,19 @@ class AuthenticationService extends BaseService {
|
|
|
943
940
|
});
|
|
944
941
|
}
|
|
945
942
|
getFormOptions({
|
|
946
|
-
references = ['countries', 'categoriesOptions', 'subCategoriesOptions', 'locationCategoriesOptions', 'documentationTypesOptions']
|
|
943
|
+
references = ['countries', 'categoriesOptions', 'subCategoriesOptions', 'locationCategoriesOptions', 'documentationTypesOptions'],
|
|
944
|
+
language,
|
|
945
|
+
...params
|
|
947
946
|
}) {
|
|
947
|
+
console.log({
|
|
948
|
+
language
|
|
949
|
+
});
|
|
948
950
|
return this.apiPost({
|
|
949
951
|
url: '/query/form-options',
|
|
950
952
|
isDaf: true,
|
|
951
953
|
data: {
|
|
952
|
-
references
|
|
954
|
+
references,
|
|
955
|
+
language
|
|
953
956
|
}
|
|
954
957
|
});
|
|
955
958
|
}
|
|
@@ -1541,13 +1541,13 @@ ul.ant-menu.ant-menu-dark.ant-menu-root.ant-menu-vertical::-webkit-scrollbar-thu
|
|
|
1541
1541
|
color: var(--nested-sidenav-text-color, --custom-sidenav-text-color, white) !important;
|
|
1542
1542
|
}
|
|
1543
1543
|
|
|
1544
|
-
.components-layout:not(.nested) .sidenav-sider:not(.custom) .sidenav-cont .menus-cont.not-collapsed .sidemenu-cont .ant-menu.ant-menu-root.ant-menu-inline.ant-menu-dark
|
|
1544
|
+
.components-layout:not(.nested) .sidenav-sider:not(.custom):not(.straatos) .sidenav-cont .menus-cont.not-collapsed .sidemenu-cont .ant-menu.ant-menu-root.ant-menu-inline.ant-menu-dark
|
|
1545
1545
|
.ant-menu-item:not(.ant-menu-item-selected):not(.ant-menu-item-disabled) svg path
|
|
1546
1546
|
{
|
|
1547
1547
|
stroke: #ffffff !important;
|
|
1548
1548
|
}
|
|
1549
1549
|
|
|
1550
|
-
.components-layout:not(.nested) .sidenav-sider:not(.custom) .sidenav-cont .menus-cont.not-collapsed .sidemenu-cont .ant-menu.ant-menu-root.ant-menu-inline.ant-menu-dark
|
|
1550
|
+
.components-layout:not(.nested) .sidenav-sider:not(.custom):not(.straatos) .sidenav-cont .menus-cont.not-collapsed .sidemenu-cont .ant-menu.ant-menu-root.ant-menu-inline.ant-menu-dark
|
|
1551
1551
|
.ant-menu-item:not(.ant-menu-item-selected):not(.ant-menu-item-disabled) .ant-menu-title-content {
|
|
1552
1552
|
color: #ffffff !important;
|
|
1553
1553
|
}
|