Skip to content

Commit

Permalink
FWF:332 [Bugifx] Removed formio_resource_bundle and all resources bri…
Browse files Browse the repository at this point in the history
…ng from micro-front-end service (AOT-Technologies#2092)
  • Loading branch information
shuhaib-aot authored Jun 5, 2024
1 parent 3d49165 commit d32846d
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 5,957 deletions.
5 changes: 3 additions & 2 deletions forms-flow-web/src/components/Draft/Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import LoadingOverlay from "react-loading-overlay-ts";
import { toast } from "react-toastify";
import isEqual from "lodash/isEqual";

import { formio_resourceBundles } from "../../resourceBundles/formio_resourceBundles";
import {RESOURCE_BUNDLES_DATA} from "../../resourceBundles/i18n";

import useInterval from "../../customHooks/useInterval";
import { CUSTOM_EVENT_TYPE } from "../ServiceFlow/constants/customEventTypes";
import selectApplicationCreateAPI from "../Form/Item/apiSelectHelper";
Expand Down Expand Up @@ -313,7 +314,7 @@ const View = React.memo((props) => {
options={{
...options,
language: lang,
i18n: formio_resourceBundles,
i18n: RESOURCE_BUNDLES_DATA,
}}
hideComponents={hideComponents}
onChange={(formData) => {
Expand Down
4 changes: 2 additions & 2 deletions forms-flow-web/src/components/Form/Create.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { saveFormProcessMapperPost } from "../../apiManager/services/processServ
import { useDispatch, useSelector } from "react-redux";
import { toast } from "react-toastify";
import { useTranslation, Translation } from "react-i18next";
import { formio_resourceBundles } from "../../resourceBundles/formio_resourceBundles";
import {RESOURCE_BUNDLES_DATA} from "../../resourceBundles/i18n";
import {
clearFormError,
setFormFailureErrorData,
Expand Down Expand Up @@ -429,7 +429,7 @@ const Create = React.memo(() => {
onChange={formChange}
options={{
language: lang,
i18n: formio_resourceBundles,
i18n: RESOURCE_BUNDLES_DATA,
}}
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions forms-flow-web/src/components/Form/Item/Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
} from "../../../apiManager/services/processServices";
import Button from "react-bootstrap/Button";
import Modal from "react-bootstrap/Modal";
import { formio_resourceBundles } from "../../../resourceBundles/formio_resourceBundles";
import { RESOURCE_BUNDLES_DATA } from "../../../resourceBundles/i18n";
import {
clearFormError,
setFormFailureErrorData,
Expand Down Expand Up @@ -811,7 +811,7 @@ const Edit = React.memo(() => {
onChange={formChange}
options={{
language: lang,
i18n: formio_resourceBundles,
i18n: RESOURCE_BUNDLES_DATA,
}}
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions forms-flow-web/src/components/Form/Item/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Form, Errors, Formio } from "react-formio";
import { push } from "connected-react-router";
import Loading from "../../../containers/Loading";
import { Translation } from "react-i18next";
import { formio_resourceBundles } from "../../../resourceBundles/formio_resourceBundles";
import { RESOURCE_BUNDLES_DATA } from "../../../resourceBundles/i18n";
import { MULTITENANCY_ENABLED } from "../../../constants/constants";
import {
setFormFailureErrorData,
Expand Down Expand Up @@ -230,7 +230,7 @@ const Preview = ({handleNext, hideComponents, activeStep}) => {
},
disableAlerts: true,
noAlerts: true,
language: lang, i18n: formio_resourceBundles }}
language: lang, i18n: RESOURCE_BUNDLES_DATA }}

/>
</LoadingOverlay>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Errors,
} from "react-formio";
import { push } from "connected-react-router";
import { formio_resourceBundles } from "../../../../../resourceBundles/formio_resourceBundles";
import { RESOURCE_BUNDLES_DATA } from "../../../../../resourceBundles/i18n";
import Loading from "../../../../../containers/Loading";

import {
Expand Down Expand Up @@ -143,7 +143,7 @@ const Edit = React.memo((props) => {
}
options={{
...options,
i18n: formio_resourceBundles,
i18n: RESOURCE_BUNDLES_DATA,
language: lang,
}}
onCustomEvent={onCustomEvent}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Loading from "../../../../../containers/Loading";
import { setFormSubmissionLoading } from "../../../../../actions/formActions";
import LoadingOverlay from "react-loading-overlay-ts";
import { useTranslation } from "react-i18next";
import { formio_resourceBundles } from "../../../../../resourceBundles/formio_resourceBundles";
import { RESOURCE_BUNDLES_DATA } from "../../../../../resourceBundles/i18n";
import {
CUSTOM_SUBMISSION_URL,
CUSTOM_SUBMISSION_ENABLE,
Expand Down Expand Up @@ -80,7 +80,7 @@ const View = React.memo((props) => {
url={url}
hideComponents={hideComponents}
onSubmit={onSubmit}
options={{ ...options, i18n: formio_resourceBundles, viewAsHtml: true }}
options={{ ...options, i18n: RESOURCE_BUNDLES_DATA, viewAsHtml: true }}
/>
</div>
</LoadingOverlay>
Expand Down
4 changes: 2 additions & 2 deletions forms-flow-web/src/components/Form/Item/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
getProcessReq,
getDraftReqFormat,
} from "../../../apiManager/services/bpmServices";
import { formio_resourceBundles } from "../../../resourceBundles/formio_resourceBundles";
import { RESOURCE_BUNDLES_DATA } from "../../../resourceBundles/i18n";
import {
setFormFailureErrorData,
setFormRequestData,
Expand Down Expand Up @@ -406,7 +406,7 @@ const View = React.memo((props) => {
options={{
...options,
language: lang,
i18n: formio_resourceBundles,
i18n: RESOURCE_BUNDLES_DATA,
}}
hideComponents={hideComponents}
onChange={(data) => {
Expand Down
Loading

0 comments on commit d32846d

Please sign in to comment.