@argusoft/medplat-app-shell 1.0.6 → 1.0.8
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/package.json +139 -141
- package/src/GlobalErrorBoundary.jsx +31 -0
- package/src/SilentErrorFallback.jsx +68 -0
- package/src/TrackingProviderWrapper.jsx +40 -0
- package/src/_tests_/__mocks__/MockTranslationProvider.jsx +21 -0
- package/src/_tests_/__mocks__/ckeditor.js +45 -0
- package/src/_tests_/__mocks__/fileMock.js +1 -0
- package/src/_tests_/__mocks__/useranalytics.js +5 -0
- package/src/_tests_/views/components/Dashboard/DashboardUI.test.jsx +137 -0
- package/src/_tests_/views/components/Dashboard/DashboardUIMock.js +877 -0
- package/src/_tests_/views/components/ForgotPassword/ForgotPassword.test.jsx +314 -0
- package/src/_tests_/views/components/LocationDirective/LocationDirective.test.jsx.disable +229 -0
- package/src/_tests_/views/components/LocationDirective/mockLocationDirective.js +810 -0
- package/src/_tests_/views/components/LocationType/MockLocationType.js +42259 -0
- package/src/_tests_/views/components/LocationType/addlocationtype.test.jsx.disable +276 -0
- package/src/_tests_/views/components/LocationType/editlocationtype.test.jsx.disable +262 -0
- package/src/_tests_/views/components/LocationType/locationtype.test.jsx.disable +148 -0
- package/src/_tests_/views/components/Profile/UpdateProfileModalData.js +4396 -0
- package/src/_tests_/views/components/Profile/updateprofilemodal.test.jsx +282 -0
- package/src/_tests_/views/components/SideBar/MockSideBar.js +1379 -0
- package/src/_tests_/views/components/SideBar/SideBar.test.jsx +98 -0
- package/src/_tests_/views/components/SystemConfig/ManageSystemConfig/AddManageSystemConfig.test.jsx.disable +164 -0
- package/src/_tests_/views/components/SystemConfig/ManageSystemConfig/UpdateManageSystemConfig.test.jsx.disable +157 -0
- package/src/_tests_/views/components/SystemConfig/MockSystemConfig.js +1280 -0
- package/src/_tests_/views/components/SystemConfig/SystemConfig.test.jsx.disable +165 -0
- package/src/_tests_/views/components/login/Login.test.jsx +276 -0
- package/src/_tests_/views/components/login/MockAuthorise.js +2414 -0
- package/src/_tests_/views/components/login/ServiceResponse.js +595 -0
- package/src/_tests_/views/components/user/MockManageUser.js +7965 -0
- package/src/_tests_/views/components/user/manageuser.test.jsx.disable +989 -0
- package/src/_tests_/views/components/user/mockUsersData.js +582 -0
- package/src/assets/img/OASISLogin.png +0 -0
- package/src/assets/img/bahaarNew.png +0 -0
- package/src/assets/img/dnhdd4K.png +0 -0
- package/src/assets/img/govtofup.png +0 -0
- package/src/assets/img/sewarural4K.png +0 -0
- package/src/assets/img/techo4K.png +0 -0
- package/src/assets/img/up4K.png +0 -0
- package/src/common/HolidayList.jsx +573 -0
- package/src/common/MalaciaousInputUtil.js +23 -0
- package/src/common/SafeHtml.jsx +17 -0
- package/src/common/VersionManager.jsx +109 -0
- package/src/common/constants/PerformanceDashboard.js +514 -0
- package/src/common/constants/app.constant.js +781 -0
- package/src/common/constants/cccVerificationConstants.js +18 -0
- package/src/common/constants/fhsrConstant.js +33 -0
- package/src/common/constants/gvk-verification.constant.js +76 -0
- package/src/common/constants/search.constant.js +23 -0
- package/src/common/constants/teleconsulatationConstant.jsx +1339 -0
- package/src/common/directives/SearchTemplate.jsx +784 -0
- package/src/common/directives/SearchTemplate.scss +14 -0
- package/src/common/dynamicView/DynamicView.jsx +353 -0
- package/src/common/dynamicView/InputFieldComponent.jsx +1501 -0
- package/src/common/dynamicView/InputViewComponent.jsx +298 -0
- package/src/common/dynamicView/InputViewComponent.scss +15 -0
- package/src/common/env.js +5 -0
- package/src/common/filters/locationNameFilter.js +26 -0
- package/src/common/fontAwesomeIcons/FontAwesomeIcons.jsx +27 -0
- package/src/common/fontAwesomeIcons/FontAwesomeIconsNames.js +1968 -0
- package/src/common/fontPreferences/fontSizeProvider.jsx +34 -0
- package/src/common/fontPreferences/fontSizeSelector.jsx +116 -0
- package/src/common/getAssignedFeature/getAssignedFeature.js +32 -0
- package/src/common/interceptors/AxiosInterceptor.js +216 -0
- package/src/common/languageTranslator/TranslationContext.js +5 -0
- package/src/common/languageTranslator/TranslationProvider.jsx +24 -0
- package/src/common/languageTranslator/i18n.js +49 -0
- package/src/common/services/AuthenticateService.js +116 -0
- package/src/common/services/DownloadFile.js +35 -0
- package/src/common/services/ForgotPassword.js +18 -0
- package/src/common/services/FormConfiguratorService.js +195 -0
- package/src/common/services/GlobalApis.js +84 -0
- package/src/common/services/InterceptorNavigationService.js +17 -0
- package/src/common/services/LocationService.js +65 -0
- package/src/common/services/LocationType.js +11 -0
- package/src/common/services/QueryBuilder.js +36 -0
- package/src/common/services/Roles.js +28 -0
- package/src/common/services/SyncWithServer.js +15 -0
- package/src/common/services/SystemConfig.js +15 -0
- package/src/common/services/TranslationService.js +70 -0
- package/src/common/services/TwoFactorService.js +7 -0
- package/src/common/services/Users.js +91 -0
- package/src/common/services/Webtasks.js +27 -0
- package/src/common/services/util/Convert-pad-data-to-API-format.jsx +167 -0
- package/src/common/services/util/Convert-to-UI-format.jsx +82 -0
- package/src/common/services/util/EmptyPrescriptionPadData.jsx +11 -0
- package/src/common/services/util/GeneralUtil.js +456 -0
- package/src/common/services/util/Prescription-pad-util.js +339 -0
- package/src/common/services/util/PrescriptionPadData.js +67 -0
- package/src/common/services/util/PrescriptionpadCommonUtil.js +96 -0
- package/src/common/services/util/ReportFieldUtil.jsx +398 -0
- package/src/common/services/util/WebSocketContext.jsx +261 -0
- package/src/common/syncWithServer/SyncWithServerDialog.jsx +170 -0
- package/src/common/syncWithServer/SyncWithServerDialogSkeleton.jsx +67 -0
- package/src/common/tests/CustomWrapper.jsx +49 -0
- package/src/common/tests/TranslationWrapper.jsx +38 -0
- package/src/common/themeProvider/ColorInputs.jsx +97 -0
- package/src/common/themeProvider/EditableColorInput.jsx +128 -0
- package/src/common/themeProvider/ThemeEditor.jsx +319 -0
- package/src/common/themeProvider/ThemeProvider.jsx +210 -0
- package/src/common/themeProvider/themeConfig.js +558 -0
- package/src/common/toaster/toaster.jsx +30 -0
- package/src/firebaseConfig.js +24 -0
- package/src/global.scss +221 -0
- package/src/hooks/.gitkeep +0 -0
- package/src/hooks/useAESEncryption.js +56 -0
- package/src/hooks/useCaching.js +43 -0
- package/src/hooks/useDebounce.js +34 -0
- package/src/hooks/useDebounceFn.js +50 -0
- package/src/hooks/useDownloadPdf.js +358 -0
- package/src/hooks/useDownloadXlsx.js +55 -0
- package/src/hooks/useListValueFieldValues.js +30 -0
- package/src/hooks/useLocationHierarchies.js +63 -0
- package/src/hooks/useLocationHierarchyTranslate.js +16 -0
- package/src/hooks/useOnline.js +27 -0
- package/src/hooks/usePagination.js +63 -0
- package/src/hooks/useRefreshToken.js +87 -0
- package/src/hooks/useScript.js +25 -0
- package/src/hooks/useStopwatch.js +75 -0
- package/src/hooks/useTrackEvent.js +22 -0
- package/src/hooks/useWebAudioRecorder.js +115 -0
- package/src/layout/LoaderComponet.jsx +22 -0
- package/src/layout/LoaderContext.jsx +29 -0
- package/src/layout/mainLayout/AdaptiveZoom.jsx +27 -0
- package/src/layout/mainLayout/Chatbot.jsx +243 -0
- package/src/layout/mainLayout/Layout.jsx +445 -0
- package/src/layout/mainLayout/Profile/UpdateProfileModal.jsx +684 -0
- package/src/layout/mainLayout/header/LogoutModal.jsx +131 -0
- package/src/layout/mainLayout/header/Navbar.jsx +1677 -0
- package/src/layout/mainLayout/header/Navbar.scss +4 -0
- package/src/layout/mainLayout/header/index.js +0 -0
- package/src/layout/mainLayout/sidebar/SideBar.jsx +1402 -0
- package/src/layout/mainLayout/sidebar/Sidebar.css +159 -0
- package/src/layout/mainLayout/sidebar/index.js +0 -0
- package/src/logo.svg +1 -0
- package/src/reportWebVitals.js +13 -0
- package/src/setupFirebaseMessaging.js +28 -0
- package/src/setupTests.js +8 -0
- package/src/store/actions/AuthenticationActions.js +0 -0
- package/src/store/actions/ReportsActions.js +0 -0
- package/src/store/actions/TranslationAction.js +0 -0
- package/src/store/index.js +8 -0
- package/src/store/reducer.js +46 -0
- package/src/store/reducers/AuthenticationReducer.js +50 -0
- package/src/store/reducers/CalendarEventReducer.js +41 -0
- package/src/store/reducers/ConditionClipboardReducer.js +45 -0
- package/src/store/reducers/FeatureReducer.js +27 -0
- package/src/store/reducers/FormConfiguratorReducer.js +38 -0
- package/src/store/reducers/LoadingReducer.js +20 -0
- package/src/store/reducers/MembersAuthenticationReducer.js +28 -0
- package/src/store/reducers/PrescriptionPadReducer.js +329 -0
- package/src/store/reducers/QuestionaireReducer.js +29 -0
- package/src/store/reducers/ReportsReducer.js +24 -0
- package/src/store/reducers/SkeletonReducer.js +20 -0
- package/src/store/reducers/ThemeReducer.js +106 -0
- package/src/store/reducers/TranslationReducer.js +126 -0
- package/src/store/reducers/dashboardEditorSlice.js +77 -0
- package/src/store/reducers/districtHealthDashboardSlice.js +58 -0
- package/src/store/reducers/immunizationSlice.js +234 -0
- package/src/store/slices/dashboardPagesSlice.js +51 -0
- package/src/store/slices/dashboardSlice.js +14 -0
- package/src/utils/.gitkeep +0 -0
- package/src/utils/FormConstants.js +2629 -0
- package/src/utils/GujaratTopoChart.jsx +483 -0
- package/src/utils/UUIDgenerator.js +8 -0
- package/src/utils/appointment-utils/appointment-utils.js +123 -0
- package/src/utils/feature.js +42 -0
- package/src/utils/getThemeColor.js +12 -0
- package/src/utils/localStorageHelper.js +11 -0
- package/src/utils/notifications/enable-push-notifications.js +27 -0
- package/src/utils/resolveAppliedStyle.js +11 -0
- package/src/utils/themeConfigs.js +1483 -0
- package/src/views/custom-components/.gitkeep +0 -0
- package/src/views/custom-components/AgIconButton/RIf.jsx +14 -0
- package/src/views/custom-components/AgIconButton/button.jsx +108 -0
- package/src/views/custom-components/AgIconButton/waterDrop.jsx +95 -0
- package/src/views/custom-components/AgIconButton/waterDrop.scss +37 -0
- package/src/views/custom-components/AlertPlaceholder.jsx +32 -0
- package/src/views/custom-components/AllFaIconsSelector.jsx +56 -0
- package/src/views/custom-components/CkEditor/CkEditor.js +102 -0
- package/src/views/custom-components/CustomAccordion.jsx +72 -0
- package/src/views/custom-components/CustomActionIcons.jsx +118 -0
- package/src/views/custom-components/CustomAutoComplete.jsx +188 -0
- package/src/views/custom-components/CustomCheckBox.jsx +60 -0
- package/src/views/custom-components/CustomConfirmationModal.jsx +118 -0
- package/src/views/custom-components/CustomCountrySelect.jsx +129 -0
- package/src/views/custom-components/CustomDatePicker.jsx +122 -0
- package/src/views/custom-components/CustomDropdown.jsx +191 -0
- package/src/views/custom-components/CustomFileUpload.jsx +387 -0
- package/src/views/custom-components/CustomFullCalendar.jsx +514 -0
- package/src/views/custom-components/CustomInfiniteScroll.jsx +126 -0
- package/src/views/custom-components/CustomRadioComponent.jsx +65 -0
- package/src/views/custom-components/CustomStatsComponent.jsx +114 -0
- package/src/views/custom-components/CustomSvgUpload.jsx +170 -0
- package/src/views/custom-components/CustomSwitch.jsx +37 -0
- package/src/views/custom-components/CustomTabPanel.jsx +19 -0
- package/src/views/custom-components/CustomTextArea.jsx +62 -0
- package/src/views/custom-components/CustomTextArea.scss +27 -0
- package/src/views/custom-components/CustomTextField.jsx +116 -0
- package/src/views/custom-components/CustomToggleSwitch.jsx +138 -0
- package/src/views/custom-components/CustomTooltip.jsx +51 -0
- package/src/views/custom-components/CustomZoomImage.jsx +134 -0
- package/src/views/custom-components/CustomizedTable/CustomizedTableV2.jsx +1407 -0
- package/src/views/custom-components/CustomizedTable/VirtualizeTableBody.jsx +295 -0
- package/src/views/custom-components/CustomizedTable/helper.jsx +159 -0
- package/src/views/custom-components/CustomizedTable.jsx +532 -0
- package/src/views/custom-components/EditInputField.jsx +174 -0
- package/src/views/custom-components/FieldDescription.jsx +22 -0
- package/src/views/custom-components/FileDisplayComponent.jsx +138 -0
- package/src/views/custom-components/FormItem.jsx +53 -0
- package/src/views/custom-components/GenericChart.jsx +80 -0
- package/src/views/custom-components/InfoBadge.jsx +60 -0
- package/src/views/custom-components/PostgresEditor.jsx +801 -0
- package/src/views/custom-components/ResizableEditAutocompleteField.jsx +249 -0
- package/src/views/custom-components/ResizableEditInputField.jsx +215 -0
- package/src/views/custom-components/ResizeableEditSelectField.jsx +197 -0
- package/src/views/custom-components/SideOverlay.jsx +113 -0
- package/src/views/custom-components/SideOverlay.scss +42 -0
- package/src/views/custom-components/calendar.scss +571 -0
- package/src/views/feature-components/.gitkeep +0 -0
- package/src/views/feature-components/Dashboard/DashboardUI.jsx +1043 -0
- package/src/views/feature-components/Dashboard/DhnddModal/AshaDataQualityVerificationModal.jsx +278 -0
- package/src/views/feature-components/Dashboard/PinFeatureModal.jsx +143 -0
- package/src/views/feature-components/Dashboard/QuickLinks.jsx +163 -0
- package/src/views/feature-components/Dashboard/Taskbar.jsx +56 -0
- package/src/views/feature-components/Dashboard/WebtasksFilterForm.jsx +109 -0
- package/src/views/feature-components/Dashboard/WidgetCard.jsx +161 -0
- package/src/views/feature-components/Dashboard/actionModal.jsx +263 -0
- package/src/views/feature-components/Dashboard/ekavachModal/HealthWorkerIncorrectDetailsModal.jsx +332 -0
- package/src/views/feature-components/Dashboard/ekavachModal/MoMaternalDeathVerifcationModal.jsx +275 -0
- package/src/views/feature-components/Dashboard/ekavachModal/MoVerficationForChildScreeningMoadal.jsx +566 -0
- package/src/views/feature-components/FeatureUsageAnalytics/FeatureUsageAnalytics.jsx +989 -0
- package/src/views/feature-components/Features/NewServerManagement.jsx +217 -0
- package/src/views/feature-components/Features/ServerManagement.scss +120 -0
- package/src/views/feature-components/ForgotPassword/ForgotPassword.jsx +226 -0
- package/src/views/feature-components/LocationDirective/LocationDirective.jsx +992 -0
- package/src/views/feature-components/LocationDirective/LocationDirectiveV2.jsx +909 -0
- package/src/views/feature-components/NotFound.jsx +66 -0
- package/src/views/feature-components/Onboarding/Onboarding.jsx +1400 -0
- package/src/views/feature-components/Skeletons.js +115 -0
- package/src/views/feature-components/Unauthorized.jsx +48 -0
- package/src/views/feature-components/VerifyRoute.jsx +88 -0
- package/src/views/feature-components/YearlyRecap/YearlyRecap.jsx +357 -0
- package/src/views/feature-components/YearlyRecap/components/RecapSlide.jsx +183 -0
- package/src/views/feature-components/YearlyRecap/languageTranslator/TranslationContext.js +5 -0
- package/src/views/feature-components/YearlyRecap/languageTranslator/TranslationProvider.jsx +26 -0
- package/src/views/feature-components/YearlyRecap/languageTranslator/i18n.js +46 -0
- package/src/views/feature-components/YearlyRecap/languageTranslator/translations.json +167 -0
- package/src/views/feature-components/YearlyRecap/slides/IntroSlide.jsx +233 -0
- package/src/views/feature-components/YearlyRecap/slides/MaternalHealthSlide.jsx +146 -0
- package/src/views/feature-components/YearlyRecap/slides/MetricSlide.jsx +227 -0
- package/src/views/feature-components/YearlyRecap/slides/OutroSlide.jsx +701 -0
- package/src/views/feature-components/YearlyRecap/slides/ReachSlide.jsx +273 -0
- package/src/views/feature-components/login/Login.jsx +840 -0
- package/src/views/feature-components/login/Login.scss +154 -0
- package/src/views/feature-components/login/LoginConfigurator.jsx +1149 -0
- package/src/views/feature-components/login/TwoFactorSetupModal.jsx +411 -0
- package/src/views/feature-components/login/simplifyMenu.js +45 -0
- package/src/views/feature-components/system-config/ManageSystemConfigs.jsx +284 -0
- package/src/views/feature-components/system-config/SystemConfig.jsx +299 -0
- package/src/views/feature-components/users/ChangePasswordModal.jsx +243 -0
- package/src/views/feature-components/users/PasswordField.jsx +56 -0
- package/dist/index.css +0 -1
- package/dist/index.js +0 -32001
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
|
|
2
|
+
.bhashini-plugin-container .btranslate-lang-list,
|
|
3
|
+
.bhashini-plugin-container [class*="lang-list"],
|
|
4
|
+
.bhashini-plugin-container [class*="dropdown"],
|
|
5
|
+
.bhashini-plugin-container [class*="language-list"],
|
|
6
|
+
.bhashini-plugin-container [class*="lang-dropdown"],
|
|
7
|
+
#btranslate .btranslate-lang-list,
|
|
8
|
+
#btranslate [class*="lang-list"],
|
|
9
|
+
#btranslate [class*="dropdown"],
|
|
10
|
+
#btranslate [class*="language-list"] {
|
|
11
|
+
top: auto !important;
|
|
12
|
+
margin-bottom: 4px !important;
|
|
13
|
+
z-index: 1301 !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Hide Bhashini Rating and Feedback actions */
|
|
17
|
+
.bhashini-feedback-modal,
|
|
18
|
+
.bhashini-feedback-content,
|
|
19
|
+
[class*='bhashini-feedback'],
|
|
20
|
+
.star-rating,
|
|
21
|
+
.bhashini-dropdown-content [class*='rate'],
|
|
22
|
+
.bhashini-dropdown-content [class*='feedback'] {
|
|
23
|
+
display: none !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Custom Toast styles for exactly 10 seconds */
|
|
27
|
+
.custom-bhashini-toast {
|
|
28
|
+
position: fixed;
|
|
29
|
+
left: 50%;
|
|
30
|
+
bottom: 40px;
|
|
31
|
+
transform: translateX(-50%);
|
|
32
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
33
|
+
color: white;
|
|
34
|
+
padding: 10px 20px;
|
|
35
|
+
border-radius: 5px;
|
|
36
|
+
opacity: 1;
|
|
37
|
+
z-index: 10000;
|
|
38
|
+
transition: opacity 0.3s ease;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* The native toast is hidden instantly so it doesn't blink or overlap with custom toast */
|
|
42
|
+
body > .bhashini-toast {
|
|
43
|
+
display: none !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Scrollbar and Border styling for Bhashini Dropdown */
|
|
47
|
+
#bhashiniLanguageDropdown,
|
|
48
|
+
.bhashini-dropdown-content {
|
|
49
|
+
position: fixed !important;
|
|
50
|
+
left: auto !important;
|
|
51
|
+
bottom: auto !important;
|
|
52
|
+
top: auto !important;
|
|
53
|
+
right: auto !important;
|
|
54
|
+
margin-left: 70px !important;
|
|
55
|
+
transform: translateY(-110%) !important;
|
|
56
|
+
border: 1px solid #d1d5db !important;
|
|
57
|
+
border-radius: 6px !important;
|
|
58
|
+
max-height: 250px !important;
|
|
59
|
+
overflow-y: auto !important;
|
|
60
|
+
box-shadow:
|
|
61
|
+
0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
62
|
+
0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
#bhashiniLanguageDropdown::-webkit-scrollbar,
|
|
66
|
+
.bhashini-dropdown-content::-webkit-scrollbar {
|
|
67
|
+
width: 6px !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
#bhashiniLanguageDropdown::-webkit-scrollbar-track,
|
|
71
|
+
.bhashini-dropdown-content::-webkit-scrollbar-track {
|
|
72
|
+
background: #f1f1f1 !important;
|
|
73
|
+
border-radius: 6px !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
#bhashiniLanguageDropdown::-webkit-scrollbar-thumb,
|
|
77
|
+
.bhashini-dropdown-content::-webkit-scrollbar-thumb {
|
|
78
|
+
background: #11b666 !important;
|
|
79
|
+
border-radius: 6px !important;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
#bhashiniLanguageDropdown::-webkit-scrollbar-thumb:hover,
|
|
83
|
+
.bhashini-dropdown-content::-webkit-scrollbar-thumb:hover {
|
|
84
|
+
background: #a8a8a8 !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Highlight the currently selected language in the dropdown */
|
|
88
|
+
#bhashiniLanguageDropdown .language-option[aria-selected='true'],
|
|
89
|
+
.bhashini-dropdown-content .language-option[aria-selected='true'] {
|
|
90
|
+
background-color: #eff6ff !important;
|
|
91
|
+
color: #11b666 !important;
|
|
92
|
+
font-weight: 700 !important;
|
|
93
|
+
border-left: 3px solid #11b666 !important;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Hide Powered by Bhashini branding at the bottom of the dropdown */
|
|
97
|
+
.bhashini-branding {
|
|
98
|
+
display: none !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.sidebar-scroll::-webkit-scrollbar {
|
|
102
|
+
width: 6px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.sidebar-scroll::-webkit-scrollbar-track {
|
|
106
|
+
background: transparent;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.sidebar-scroll::-webkit-scrollbar-thumb {
|
|
110
|
+
background: rgba(255, 255, 255, 0.18);
|
|
111
|
+
border-radius: 999px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.bhashini-plugin-container > div:first-child,
|
|
115
|
+
.bhashini-plugin-container [id^="btranslate-btn"],
|
|
116
|
+
.bhashini-plugin-container [class*="btranslate-btn"] {
|
|
117
|
+
position: static !important;
|
|
118
|
+
inset: auto !important;
|
|
119
|
+
transform: none !important;
|
|
120
|
+
margin: 0 auto !important;
|
|
121
|
+
box-shadow: none !important;
|
|
122
|
+
background: transparent !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.bhashini-plugin-container * {
|
|
126
|
+
color: #9ca3af !important;
|
|
127
|
+
fill: #9ca3af !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.MuiListItemButton-root:hover .bhashini-plugin-container * {
|
|
131
|
+
color: #ffffff !important;
|
|
132
|
+
fill: #ffffff !important;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
#bhashiniLanguageDropdown,
|
|
136
|
+
.bhashini-dropdown-content,
|
|
137
|
+
#bhashiniLanguageDropdown *:not(.language-option[aria-selected='true']):not(#custom-bhashini-clear-btn *),
|
|
138
|
+
.bhashini-dropdown-content *:not(.language-option[aria-selected='true']):not(#custom-bhashini-clear-btn *) {
|
|
139
|
+
color: initial !important;
|
|
140
|
+
fill: initial !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
#bhashiniLanguageDropdown .language-option[aria-selected='true'],
|
|
144
|
+
.bhashini-dropdown-content .language-option[aria-selected='true'],
|
|
145
|
+
#bhashiniLanguageDropdown .language-option[aria-selected='true'] *,
|
|
146
|
+
.bhashini-dropdown-content .language-option[aria-selected='true'] * {
|
|
147
|
+
color: #11b666 !important;
|
|
148
|
+
fill: #11b666 !important;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
#custom-bhashini-clear-btn,
|
|
152
|
+
#custom-bhashini-clear-btn * {
|
|
153
|
+
color: #ef4444 !important;
|
|
154
|
+
fill: #ef4444 !important;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.bhashini-plugin-container {
|
|
158
|
+
overflow: visible !important;
|
|
159
|
+
}
|
|
File without changes
|
package/src/logo.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const reportWebVitals = (onPerfEntry) => {
|
|
2
|
+
if (onPerfEntry && onPerfEntry instanceof Function) {
|
|
3
|
+
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
|
4
|
+
getCLS(onPerfEntry);
|
|
5
|
+
getFID(onPerfEntry);
|
|
6
|
+
getFCP(onPerfEntry);
|
|
7
|
+
getLCP(onPerfEntry);
|
|
8
|
+
getTTFB(onPerfEntry);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default reportWebVitals;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { onMessage } from "firebase/messaging";
|
|
2
|
+
import { getMessagingInstance } from "@/firebaseConfig";
|
|
3
|
+
|
|
4
|
+
export const setupForegroundMessages = async () => {
|
|
5
|
+
const messaging = await getMessagingInstance();
|
|
6
|
+
if (!messaging) return;
|
|
7
|
+
|
|
8
|
+
onMessage(messaging, (payload) => {
|
|
9
|
+
console.log("📩 Foreground message:", payload);
|
|
10
|
+
|
|
11
|
+
const title = payload.notification?.title || payload.data?.title;
|
|
12
|
+
const body = payload.notification?.body || payload.data?.message;
|
|
13
|
+
|
|
14
|
+
if (Notification.permission === "granted") {
|
|
15
|
+
const notification = new Notification(title, {
|
|
16
|
+
body,
|
|
17
|
+
icon: '/ui/sathNotification.png',
|
|
18
|
+
image: '/ui/sathNotification.png'
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
notification.onclick = (event) => {
|
|
22
|
+
event.preventDefault(); // prevent default behavior
|
|
23
|
+
window.focus();
|
|
24
|
+
window.location.href = `${self.location.origin}/ui/medplat/manage/allappointment`;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
|
2
|
+
// allows you to do things like:
|
|
3
|
+
// expect(element).toHaveTextContent(/react/i)
|
|
4
|
+
// learn more: https://github.com/testing-library/jest-dom
|
|
5
|
+
import '@testing-library/jest-dom';
|
|
6
|
+
|
|
7
|
+
require('dotenv').config();
|
|
8
|
+
global.importMeta = { env: process.env };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import AuthenticationReducer from '@/store/reducers/AuthenticationReducer';
|
|
2
|
+
import MembersAuthenticationReducer from '@/store/reducers/MembersAuthenticationReducer';
|
|
3
|
+
import FormConfiguratorReducer from '@/store/reducers/FormConfiguratorReducer';
|
|
4
|
+
import LoadingReducer from '@/store/reducers/LoadingReducer';
|
|
5
|
+
import ReportsReducer from '@/store/reducers/ReportsReducer';
|
|
6
|
+
import ThemeReducer from '@/store/reducers/ThemeReducer';
|
|
7
|
+
import TranslationReducer from '@/store/reducers/TranslationReducer';
|
|
8
|
+
import CalendarEventReducer from '@/store/reducers/CalendarEventReducer';
|
|
9
|
+
import ConditionClipboardReducer from '@/store/reducers/ConditionClipboardReducer';
|
|
10
|
+
import { combineReducers } from '@reduxjs/toolkit';
|
|
11
|
+
import { prescriptionPadReducer } from '@/store/reducers/PrescriptionPadReducer';
|
|
12
|
+
|
|
13
|
+
import { questionnaireReducer } from '@/store/reducers/QuestionaireReducer';
|
|
14
|
+
import featureReducer from '@/store/reducers/FeatureReducer';
|
|
15
|
+
import { dashboardConfiguratorReducer } from '@/store/reducers/dashboardEditorSlice';
|
|
16
|
+
import { districtHealthDashboardReducer } from '@/store/reducers/districtHealthDashboardSlice';
|
|
17
|
+
import SkeletonReducer from '@/store/reducers/SkeletonReducer';
|
|
18
|
+
import immunizationReducer from '@/store/reducers/immunizationSlice';
|
|
19
|
+
|
|
20
|
+
const combinedReducer = combineReducers({
|
|
21
|
+
Authenticate: AuthenticationReducer,
|
|
22
|
+
Reports: ReportsReducer,
|
|
23
|
+
theme: ThemeReducer,
|
|
24
|
+
loading: LoadingReducer,
|
|
25
|
+
Translation: TranslationReducer,
|
|
26
|
+
FormConfigurator: FormConfiguratorReducer,
|
|
27
|
+
CalendarEvents: CalendarEventReducer,
|
|
28
|
+
ConditionClipboard: ConditionClipboardReducer,
|
|
29
|
+
prescriptionPad: prescriptionPadReducer,
|
|
30
|
+
questionnaire: questionnaireReducer,
|
|
31
|
+
FeatureReducer: featureReducer,
|
|
32
|
+
MembersAuthenticate: MembersAuthenticationReducer,
|
|
33
|
+
dashboardConfigurator: dashboardConfiguratorReducer,
|
|
34
|
+
districtHealthDashboard: districtHealthDashboardReducer,
|
|
35
|
+
Skeleton: SkeletonReducer,
|
|
36
|
+
immunization: immunizationReducer,
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const reducer = (state, action) => {
|
|
40
|
+
if (action.type === 'AuthenticateReducer/resetStore') {
|
|
41
|
+
state = undefined;
|
|
42
|
+
}
|
|
43
|
+
return combinedReducer(state, action);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export default reducer;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
|
+
const initialState = {
|
|
4
|
+
isLoggedIn: false,
|
|
5
|
+
user: null,
|
|
6
|
+
token: null,
|
|
7
|
+
linearMenuItems: null,
|
|
8
|
+
headerTitle: null,
|
|
9
|
+
pinnedFeatures: JSON.parse(localStorage.getItem('pinnedFeatures')) || [],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const AuthenticateSlice = createSlice({
|
|
13
|
+
name: 'AuthenticateReducer',
|
|
14
|
+
initialState,
|
|
15
|
+
reducers: {
|
|
16
|
+
setToken: (state, action) => {
|
|
17
|
+
localStorage.setItem('token', JSON.stringify(action.payload));
|
|
18
|
+
const token = action.payload;
|
|
19
|
+
state.token = token;
|
|
20
|
+
},
|
|
21
|
+
setLoggedIn: (state) => {
|
|
22
|
+
state.isLoggedIn = true;
|
|
23
|
+
},
|
|
24
|
+
setUserDetails: (state, action) => {
|
|
25
|
+
const user = action.payload;
|
|
26
|
+
state.user = user;
|
|
27
|
+
},
|
|
28
|
+
setMenuItem: (state, action) => {
|
|
29
|
+
state.linearMenuItems = action.payload;
|
|
30
|
+
},
|
|
31
|
+
setHeaderTitle: (state, action) => {
|
|
32
|
+
const headerTitle = action.payload;
|
|
33
|
+
state.headerTitle = headerTitle;
|
|
34
|
+
},
|
|
35
|
+
setPinnedFeatures: (state, action) => {
|
|
36
|
+
localStorage.setItem('pinnedFeatures', JSON.stringify(action.payload));
|
|
37
|
+
state.pinnedFeatures = action.payload;
|
|
38
|
+
},
|
|
39
|
+
resetStore: () => initialState,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export const { setUserDetails, setToken, setMenuItem, resetStore, setLoggedIn, setHeaderTitle, setPinnedFeatures } =
|
|
44
|
+
AuthenticateSlice.actions;
|
|
45
|
+
|
|
46
|
+
export const getUserDetails = (state) => state.Authenticate.user;
|
|
47
|
+
export const getHeaderTitle = (state) => state.Authenticate.headerTitle;
|
|
48
|
+
export const getPinnedFeatures = (state) => state.Authenticate.pinnedFeatures;
|
|
49
|
+
|
|
50
|
+
export default AuthenticateSlice.reducer;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
const DATE_TIME_FORMAT = 'YYYY-MM-DDTHH:mm:ss';
|
|
4
|
+
|
|
5
|
+
const initialState = {
|
|
6
|
+
allEvents: {
|
|
7
|
+
value: [],
|
|
8
|
+
timestamp: dayjs().format(DATE_TIME_FORMAT),
|
|
9
|
+
},
|
|
10
|
+
eventsForViewsExceptMonthView: {
|
|
11
|
+
value: [],
|
|
12
|
+
timestamp: dayjs().format(DATE_TIME_FORMAT),
|
|
13
|
+
},
|
|
14
|
+
monthViewEvents: [],
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const calendarEventReducer = createSlice({
|
|
18
|
+
name: 'doctor-calendar-slice',
|
|
19
|
+
initialState,
|
|
20
|
+
reducers: {
|
|
21
|
+
setAllEvents: (state, action) => {
|
|
22
|
+
state.allEvents = {
|
|
23
|
+
value: action.payload,
|
|
24
|
+
timestamp: dayjs().format(DATE_TIME_FORMAT),
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
setEventsForViewsExceptMonthView: (state, action) => {
|
|
28
|
+
state.eventsForViewsExceptMonthView = {
|
|
29
|
+
value: action.payload,
|
|
30
|
+
timestamp: dayjs().format(DATE_TIME_FORMAT),
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
setMonthViewEvents: (state, action) => {
|
|
34
|
+
state.monthViewEvents = action.payload;
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export const { setAllEvents, setEventsForViewsExceptMonthView, setMonthViewEvents } = calendarEventReducer.actions;
|
|
40
|
+
|
|
41
|
+
export default calendarEventReducer.reducer;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
|
+
const initialState = {
|
|
4
|
+
copiedConditions: [],
|
|
5
|
+
currentCopiedCondition: null,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const clipboardSlice = createSlice({
|
|
9
|
+
name: 'ConditionClipboard',
|
|
10
|
+
initialState,
|
|
11
|
+
reducers: {
|
|
12
|
+
copyCondition: (state, action) => {
|
|
13
|
+
if (state.copiedConditions.length >= 5) {
|
|
14
|
+
state.copiedConditions.pop();
|
|
15
|
+
}
|
|
16
|
+
state.currentCopiedCondition = action.payload;
|
|
17
|
+
state.copiedConditions.unshift(action.payload);
|
|
18
|
+
},
|
|
19
|
+
clearClipboard: (state) => {
|
|
20
|
+
state.copiedConditions = [];
|
|
21
|
+
state.currentCopiedCondition = null;
|
|
22
|
+
},
|
|
23
|
+
removeCopiedCondition: (state, action) => {
|
|
24
|
+
state.copiedConditions.splice(action.payload, 1);
|
|
25
|
+
if (
|
|
26
|
+
state.currentCopiedCondition &&
|
|
27
|
+
state.copiedConditions[action.payload] === state.currentCopiedCondition
|
|
28
|
+
) {
|
|
29
|
+
state.currentCopiedCondition = null;
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
setCurrentCopiedCondition: (state, action) => {
|
|
33
|
+
state.currentCopiedCondition = action.payload;
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export const {
|
|
39
|
+
copyCondition,
|
|
40
|
+
clearClipboard,
|
|
41
|
+
removeCopiedCondition,
|
|
42
|
+
setCurrentCopiedCondition,
|
|
43
|
+
} = clipboardSlice.actions;
|
|
44
|
+
|
|
45
|
+
export default clipboardSlice.reducer;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
|
+
const initialState = {
|
|
4
|
+
subMenuId: null,
|
|
5
|
+
subMenuGroupName: null,
|
|
6
|
+
subMenuFeatureVal: null
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const featureReducer = createSlice({
|
|
10
|
+
name: 'ConditionClipboard',
|
|
11
|
+
initialState,
|
|
12
|
+
reducers: {
|
|
13
|
+
setSubMenuId: (state, action) => {
|
|
14
|
+
state.subMenuId = action.payload;
|
|
15
|
+
},
|
|
16
|
+
setSubMenuGroupName: (state, action) => {
|
|
17
|
+
state.subMenuGroupName = action.payload;
|
|
18
|
+
},
|
|
19
|
+
setSubMenuFeatureVal: (state, action) => {
|
|
20
|
+
state.subMenuFeatureVal = action.payload;
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export const { setSubMenuId, setSubMenuGroupName, setSubMenuFeatureVal } = featureReducer.actions;
|
|
26
|
+
|
|
27
|
+
export default featureReducer.reducer;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
|
+
const initialState = {};
|
|
4
|
+
|
|
5
|
+
const FormConfiguratorSlice = createSlice({
|
|
6
|
+
name: 'FormConfiguratorSlice',
|
|
7
|
+
initialState,
|
|
8
|
+
reducers: {
|
|
9
|
+
persistForm: (state, action) => {
|
|
10
|
+
state[action.payload.formCode] = { ...action.payload };
|
|
11
|
+
},
|
|
12
|
+
loadPersistedForm: (state, action) => {
|
|
13
|
+
if (!state[action.payload.formCode]) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
state[action.payload.formCode] = {
|
|
17
|
+
...state[action.payload.formCode],
|
|
18
|
+
shouldPersist: true,
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
storeReturnedData: (state, action) => {
|
|
22
|
+
if (!state[action.payload.formCode]) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
state[action.payload.formCode] = {
|
|
26
|
+
...state[action.payload.formCode],
|
|
27
|
+
returnedData: action.payload.returnedData,
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
clearPersistedForm: (state, action) => {
|
|
31
|
+
delete state[action.payload.formCode];
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export const { persistForm, loadPersistedForm, storeReturnedData, clearPersistedForm } = FormConfiguratorSlice.actions;
|
|
37
|
+
|
|
38
|
+
export default FormConfiguratorSlice.reducer;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
|
+
const loadingSlice = createSlice({
|
|
4
|
+
name: 'loading',
|
|
5
|
+
initialState: {
|
|
6
|
+
isLoading: false,
|
|
7
|
+
},
|
|
8
|
+
reducers: {
|
|
9
|
+
startLoading: (state) => {
|
|
10
|
+
state.isLoading = true;
|
|
11
|
+
},
|
|
12
|
+
stopLoading: (state) => {
|
|
13
|
+
state.isLoading = false;
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export const { startLoading, stopLoading } = loadingSlice.actions;
|
|
19
|
+
|
|
20
|
+
export default loadingSlice.reducer;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
|
+
const initialState = {
|
|
4
|
+
member: null,
|
|
5
|
+
phoneNumber: null,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const MembersAuthenticateSlice = createSlice({
|
|
9
|
+
name: 'MembersAuthenticateReducer',
|
|
10
|
+
initialState,
|
|
11
|
+
reducers: {
|
|
12
|
+
setMemberDetails: (state, action) => {
|
|
13
|
+
const user = action.payload;
|
|
14
|
+
state.member = user;
|
|
15
|
+
},
|
|
16
|
+
setPhoneNumber: (state, action) => {
|
|
17
|
+
const user = action.payload;
|
|
18
|
+
state.phoneNumber = user;
|
|
19
|
+
},
|
|
20
|
+
resetMemberStore: () => initialState,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const { setMemberDetails, resetMemberStore, setPhoneNumber } = MembersAuthenticateSlice.actions;
|
|
25
|
+
|
|
26
|
+
export const getMemberDetails = (state) => state.Authenticate.member;
|
|
27
|
+
|
|
28
|
+
export default MembersAuthenticateSlice.reducer;
|