Skip to content

Commit

Permalink
chore: run d2 migrate script
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Oct 22, 2024
1 parent ae2bb7a commit 9e28b61
Show file tree
Hide file tree
Showing 159 changed files with 129 additions and 129 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { shallow } from 'enzyme'
import App from './App'
import App from './App.jsx'

describe('<App>', () => {
it('renders without errors', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/App/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* eslint-disable import/no-unused-modules */

export { default } from './App'
export { default } from './App.jsx'
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { shallow, mount } from 'enzyme'
import { useDataQuery } from '@dhis2/app-runtime'
import { getAuthorized } from './selectors'
import AuthWall from './AuthWall'
import AuthWall from './AuthWall.jsx'

jest.mock('@dhis2/app-runtime', () => ({
useDataQuery: jest.fn(),
Expand Down
2 changes: 1 addition & 1 deletion src/components/AuthWall/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as AuthWall } from './AuthWall'
export { default as AuthWall } from './AuthWall.jsx'
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { shallow, mount } from 'enzyme'
import CronPresetButton from './CronPresetButton'
import CronPresetButton from './CronPresetButton.jsx'

describe('<CronPresetButton>', () => {
it('renders without errors', () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { shallow, mount } from 'enzyme'
import DeleteJobButton from './DeleteJobButton'
import DeleteJobButton from './DeleteJobButton.jsx'

describe('<DeleteJobButton>', () => {
it('renders without errors', () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { shallow, mount } from 'enzyme'
import DeleteQueueButton from './DeleteQueueButton'
import DeleteQueueButton from './DeleteQueueButton.jsx'

describe('<DeleteQueueButton>', () => {
it('renders without errors', () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { shallow, mount } from 'enzyme'
import history from '../../services/history'
import DiscardFormButton from './DiscardFormButton'
import DiscardFormButton from './DiscardFormButton.jsx'

jest.mock('../../services/history', () => ({
push: jest.fn(),
Expand Down
8 changes: 4 additions & 4 deletions src/components/Buttons/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { default as CronPresetButton } from './CronPresetButton'
export { default as DeleteJobButton } from './DeleteJobButton'
export { default as DeleteQueueButton } from './DeleteQueueButton'
export { default as DiscardFormButton } from './DiscardFormButton'
export { default as CronPresetButton } from './CronPresetButton.jsx'
export { default as DeleteJobButton } from './DeleteJobButton.jsx'
export { default as DeleteQueueButton } from './DeleteQueueButton.jsx'
export { default as DiscardFormButton } from './DiscardFormButton.jsx'
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { shallow, mount } from 'enzyme'
import FormErrorBox from './FormErrorBox'
import FormErrorBox from './FormErrorBox.jsx'

describe('<FormErrorBox>', () => {
it('returns null if there are no errors', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/FormErrorBox/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as FormErrorBox } from './FormErrorBox'
export { default as FormErrorBox } from './FormErrorBox.jsx'
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import CronField from './CronField'
import CronField from './CronField.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { mount } from 'enzyme'
import React from 'react'
import { CircularLoader, ReactFinalForm } from '@dhis2/ui'
import { useDataQuery } from '@dhis2/app-runtime'
import AggregatedDataExchangeField from './AggregatedDataExchangeField'
import AggregatedDataExchangeField from './AggregatedDataExchangeField.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import { useParameterOption } from '../../../hooks/parameter-options'
import SkipTableTypesField from './SkipTableTypesField'
import SkipTableTypesField from './SkipTableTypesField.jsx'

const { Form } = ReactFinalForm

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import DelayField from './DelayField'
import DelayField from './DelayField.jsx'

const { Form } = ReactFinalForm

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import { useJobTypes } from '../../hooks/job-types'
import JobTypeField from './JobTypeField'
import JobTypeField from './JobTypeField.jsx'

const { Form } = ReactFinalForm

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import { useParameterOption } from '../../hooks/parameter-options'
import ListFieldMulti from './ListFieldMulti'
import ListFieldMulti from './ListFieldMulti.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import { useParameterOption } from '../../hooks/parameter-options'
import ListFieldSingle from './ListFieldSingle'
import ListFieldSingle from './ListFieldSingle.jsx'

const { Form } = ReactFinalForm

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import NameField from './NameField'
import NameField from './NameField.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import {
SwitchFieldFF,
} from '@dhis2/ui'
import { useJobTypeParameters } from '../../hooks/job-types'
import SkipTableTypesField from './Custom/SkipTableTypesField'
import DataIntegrityChecksField from './Custom/DataIntegrityChecksField'
import DataIntegrityReportTypeField from './Custom/DataIntegrityReportTypeField'
import AggregatedDataExchangeField from './Custom/AggregatedDataExchangeField'
import PushAnalyticsModeField from './Custom/PushAnalyticsModeField'
import TestPolicyField from './Custom/TestPolicyField'
import SkipTableTypesField from './Custom/SkipTableTypesField.jsx'
import DataIntegrityChecksField from './Custom/DataIntegrityChecksField.jsx'
import DataIntegrityReportTypeField from './Custom/DataIntegrityReportTypeField.jsx'
import AggregatedDataExchangeField from './Custom/AggregatedDataExchangeField.jsx'
import PushAnalyticsModeField from './Custom/PushAnalyticsModeField.jsx'
import TestPolicyField from './Custom/TestPolicyField.jsx'
import styles from './ParameterFields.module.css'
import ListFieldSingle from './ListFieldSingle'
import ListFieldMulti from './ListFieldMulti'
import ListFieldSingle from './ListFieldSingle.jsx'
import ListFieldMulti from './ListFieldMulti.jsx'
import { formatToString } from './formatters'

const { Field } = ReactFinalForm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import { useJobTypeParameters } from '../../hooks/job-types'
import { useParameterOption } from '../../hooks/parameter-options'
import ParameterFields from './ParameterFields'
import ParameterFields from './ParameterFields.jsx'

const { Form } = ReactFinalForm

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ReactFinalForm, CircularLoader, NoticeBox } from '@dhis2/ui'
import i18n from '@dhis2/d2-i18n'
import { jobTypesMap } from '../../services/server-translations'
import { useQueueables } from '../../hooks/queueables'
import QueueTransfer from './QueueTransfer'
import QueueTransfer from './QueueTransfer.jsx'

const { Field } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm, CircularLoader } from '@dhis2/ui'
import { useQueueables } from '../../hooks/queueables'
import QueueOrderField from './QueueOrderField'
import QueueOrderField from './QueueOrderField.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react'
import i18n from '@dhis2/d2-i18n'
import PropTypes from 'prop-types'
import { Field, Transfer } from '@dhis2/ui'
import QueueTransferTitle from './QueueTransferTitle'
import QueueOption from './QueueOption'
import QueueTransferTitle from './QueueTransferTitle.jsx'
import QueueOption from './QueueOption.jsx'

const { bool, arrayOf, shape, func, array, string, oneOfType } = PropTypes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import i18n from '@dhis2/d2-i18n'
import { NoticeBox } from '@dhis2/ui'
import PropTypes from 'prop-types'
import { useJobType } from '../../hooks/job-types'
import CronField from './CronField'
import DelayField from './DelayField'
import CronField from './CronField.jsx'
import DelayField from './DelayField.jsx'

const ScheduleField = ({ jobType }) => {
const { loading, error, data } = useJobType(jobType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import { useJobType } from '../../hooks/job-types'
import ScheduleField from './ScheduleField'
import ScheduleField from './ScheduleField.jsx'

const { Form } = ReactFinalForm

Expand Down
14 changes: 7 additions & 7 deletions src/components/FormFields/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { FIELD_NAME as JOB_TYPE } from './JobTypeField'
import { FIELD_NAME as JOB_TYPE } from './JobTypeField.jsx'

const fieldNames = {
JOB_TYPE,
}

export { default as CronField } from './CronField'
export { default as JobTypeField } from './JobTypeField'
export { default as NameField } from './NameField'
export { default as ParameterFields } from './ParameterFields'
export { default as ScheduleField } from './ScheduleField'
export { default as QueueOrderField } from './QueueOrderField'
export { default as CronField } from './CronField.jsx'
export { default as JobTypeField } from './JobTypeField.jsx'
export { default as NameField } from './NameField.jsx'
export { default as ParameterFields } from './ParameterFields.jsx'
export { default as ScheduleField } from './ScheduleField.jsx'
export { default as QueueOrderField } from './QueueOrderField.jsx'

export { fieldNames }
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import { fieldNames } from '../FormFields'
import JobAddForm from './JobAddForm'
import JobAddForm from './JobAddForm.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { ReactFinalForm } from '@dhis2/ui'
import history from '../../services/history'
import { useSubmitJob } from '../../hooks/jobs'
import JobAddForm from './JobAddForm'
import JobAddForm from './JobAddForm.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { shallow } from 'enzyme'
import JobAddFormContainer from './JobAddFormContainer'
import JobAddFormContainer from './JobAddFormContainer.jsx'

describe('<JobAddFormContainer>', () => {
it('renders without errors', () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import { fieldNames } from '../FormFields'
import JobEditForm from './JobEditForm'
import JobEditForm from './JobEditForm.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ReactFinalForm } from '@dhis2/ui'
import { useParams } from 'react-router-dom'
import history from '../../services/history'
import { useUpdateJob } from '../../hooks/jobs'
import JobEditForm from './JobEditForm'
import JobEditForm from './JobEditForm.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { shallow } from 'enzyme'
import JobEditFormContainer from './JobEditFormContainer'
import JobEditFormContainer from './JobEditFormContainer.jsx'

jest.mock('react-router-dom', () => ({
useParams: () => ({ id: 'id' }),
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import QueueAddForm from './QueueAddForm'
import QueueAddForm from './QueueAddForm.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { ReactFinalForm } from '@dhis2/ui'
import history from '../../services/history'
import { useSubmitQueue } from '../../hooks/queues'
import QueueAddForm from './QueueAddForm'
import QueueAddForm from './QueueAddForm.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { shallow } from 'enzyme'
import QueueAddFormContainer from './QueueAddFormContainer'
import QueueAddFormContainer from './QueueAddFormContainer.jsx'

describe('<QueueAddFormContainer>', () => {
it('renders without errors', () => {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { mount } from 'enzyme'
import { ReactFinalForm } from '@dhis2/ui'
import QueueEditForm from './QueueEditForm'
import QueueEditForm from './QueueEditForm.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import { ReactFinalForm } from '@dhis2/ui'
import history from '../../services/history'
import { useUpdateQueue } from '../../hooks/queues'
import QueueEditForm from './QueueEditForm'
import QueueEditForm from './QueueEditForm.jsx'

const { Form } = ReactFinalForm

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { shallow } from 'enzyme'
import QueueEditFormContainer from './QueueEditFormContainer'
import QueueEditFormContainer from './QueueEditFormContainer.jsx'

jest.mock('react-router-dom', () => ({
useParams: () => ({ name: 'name' }),
Expand Down
8 changes: 4 additions & 4 deletions src/components/Forms/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { default as JobAddFormContainer } from './JobAddFormContainer'
export { default as JobEditFormContainer } from './JobEditFormContainer'
export { default as QueueAddFormContainer } from './QueueAddFormContainer'
export { default as QueueEditFormContainer } from './QueueEditFormContainer'
export { default as JobAddFormContainer } from './JobAddFormContainer.jsx'
export { default as JobEditFormContainer } from './JobEditFormContainer.jsx'
export { default as QueueAddFormContainer } from './QueueAddFormContainer.jsx'
export { default as QueueEditFormContainer } from './QueueEditFormContainer.jsx'
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/InfoLink/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as InfoLink } from './InfoLink'
export { default as InfoLink } from './InfoLink.jsx'
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { shallow } from 'enzyme'
import JobDetails from './JobDetails'
import JobDetails from './JobDetails.jsx'

describe('<JobDetails>', () => {
it('renders the job details', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/JobDetails/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as JobDetails } from './JobDetails'
export { default as JobDetails } from './JobDetails.jsx'
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { shallow, mount } from 'enzyme'
import DeleteJobAction from './DeleteJobAction'
import DeleteJobAction from './DeleteJobAction.jsx'

describe('<DeleteJobAction>', () => {
it('renders without errors', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { shallow, mount } from 'enzyme'
import DeleteQueueAction from './DeleteQueueAction'
import DeleteQueueAction from './DeleteQueueAction.jsx'

describe('<DeleteQueueAction>', () => {
it('renders without errors', () => {
Expand Down
File renamed without changes.
Loading

0 comments on commit 9e28b61

Please sign in to comment.