refactor: replace @edx/paragon and @edx/frontend-build (#294)
* refactor: replace @edx/paragon and @edx/frontend-build * refactor: updated edx packages * fix: fixed failing test cases by remmoving paragon mock * fix: updated lock file to fix build issues --------- Co-authored-by: mashal-m <mashal.malik@arbisoft.com> Co-authored-by: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com> Co-authored-by: Muhammad Abdullah Waheed <abdullah.waheed@arbisoft.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
const { createConfig } = require('@edx/frontend-build');
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||||
|
const { createConfig } = require('@openedx/frontend-build');
|
||||||
|
|
||||||
const config = createConfig('eslint', {
|
const config = createConfig('eslint', {
|
||||||
rules: {
|
rules: {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { createConfig } = require('@edx/frontend-build');
|
const { createConfig } = require('@openedx/frontend-build');
|
||||||
|
|
||||||
module.exports = createConfig('jest', {
|
module.exports = createConfig('jest', {
|
||||||
setupFilesAfterEnv: [
|
setupFilesAfterEnv: [
|
||||||
@@ -15,8 +15,4 @@ module.exports = createConfig('jest', {
|
|||||||
],
|
],
|
||||||
testTimeout: 120000,
|
testTimeout: 120000,
|
||||||
testEnvironment: 'jsdom',
|
testEnvironment: 'jsdom',
|
||||||
moduleNameMapper: {
|
|
||||||
'^@openedx/paragon$': '<rootDir>/mockParagon.js',
|
|
||||||
'^@openedx/paragon/(.*)$': '<rootDir>/mockParagon.js',
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
module.exports = {};
|
|
||||||
6951
package-lock.json
generated
6951
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@@ -25,15 +25,15 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.2",
|
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.2",
|
||||||
"@edx/frontend-component-footer": "12.7.1",
|
"@edx/frontend-component-footer": "13.0.2",
|
||||||
"@edx/frontend-component-header": "4.11.1",
|
"@edx/frontend-component-header": "5.0.2",
|
||||||
"@edx/frontend-platform": "5.6.1",
|
"@edx/frontend-platform": "7.1.0",
|
||||||
"@edx/openedx-atlas": "^0.6.0",
|
"@edx/openedx-atlas": "^0.6.0",
|
||||||
"@edx/paragon": "^20.44.0",
|
|
||||||
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
||||||
"@fortawesome/free-brands-svg-icons": "^5.15.4",
|
"@fortawesome/free-brands-svg-icons": "^5.15.4",
|
||||||
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
||||||
"@fortawesome/react-fontawesome": "^0.2.0",
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||||
|
"@openedx/paragon": "21.11.3",
|
||||||
"@redux-beacon/segment": "^1.1.0",
|
"@redux-beacon/segment": "^1.1.0",
|
||||||
"@reduxjs/toolkit": "^1.6.1",
|
"@reduxjs/toolkit": "^1.6.1",
|
||||||
"@testing-library/user-event": "^14.0.0",
|
"@testing-library/user-event": "^14.0.0",
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"react-helmet": "^6.1.0",
|
"react-helmet": "^6.1.0",
|
||||||
"react-intl": "^5.20.9",
|
"react-intl": "6.4.7",
|
||||||
"react-pdf": "^5.5.0",
|
"react-pdf": "^5.5.0",
|
||||||
"react-redux": "^7.2.9",
|
"react-redux": "^7.2.9",
|
||||||
"react-router": "6.21.3",
|
"react-router": "6.21.3",
|
||||||
@@ -73,9 +73,9 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@edx/browserslist-config": "^1.2.0",
|
"@edx/browserslist-config": "^1.2.0",
|
||||||
"@edx/frontend-build": "13.0.1",
|
"@edx/react-unit-test-utils": "2.0.0",
|
||||||
"@edx/react-unit-test-utils": "1.7.1",
|
|
||||||
"@edx/reactifex": "^2.1.1",
|
"@edx/reactifex": "^2.1.1",
|
||||||
|
"@openedx/frontend-build": "13.0.28",
|
||||||
"@testing-library/jest-dom": "^6.0.0",
|
"@testing-library/jest-dom": "^6.0.0",
|
||||||
"@testing-library/react": "12.1.5",
|
"@testing-library/react": "12.1.5",
|
||||||
"axios-mock-adapter": "^1.20.0",
|
"axios-mock-adapter": "^1.20.0",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// frontend-app-*/src/index.scss
|
// frontend-app-*/src/index.scss
|
||||||
@import "~@edx/brand/paragon/fonts";
|
@import "~@edx/brand/paragon/fonts";
|
||||||
@import "~@edx/brand/paragon/variables";
|
@import "~@edx/brand/paragon/variables";
|
||||||
@import "~@edx/paragon/scss/core/core";
|
@import "~@openedx/paragon/scss/core/core";
|
||||||
@import "~@edx/brand/paragon/overrides";
|
@import "~@edx/brand/paragon/overrides";
|
||||||
|
|
||||||
$fa-font-path: "~font-awesome/fonts";
|
$fa-font-path: "~font-awesome/fonts";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { AlertModal, ActionRow, Button } from '@edx/paragon';
|
import { AlertModal, ActionRow, Button } from '@openedx/paragon';
|
||||||
import { nullMethod } from 'hooks';
|
import { nullMethod } from 'hooks';
|
||||||
|
|
||||||
export const ConfirmModal = ({
|
export const ConfirmModal = ({
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
ActionRow,
|
ActionRow,
|
||||||
AlertModal,
|
AlertModal,
|
||||||
Button,
|
Button,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
|
|
||||||
import messages from './messages';
|
import messages from './messages';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { Alert, Button } from '@edx/paragon';
|
import { Alert, Button } from '@openedx/paragon';
|
||||||
import { Info } from '@edx/paragon/icons';
|
import { Info } from '@openedx/paragon/icons';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
const messageShape = PropTypes.shape({
|
const messageShape = PropTypes.shape({
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { Alert, Spinner } from '@edx/paragon';
|
import { Alert, Spinner } from '@openedx/paragon';
|
||||||
|
|
||||||
export const LoadingBanner = () => (
|
export const LoadingBanner = () => (
|
||||||
<Alert variant="info">
|
<Alert variant="info">
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import PropTypes from 'prop-types';
|
|||||||
import { pdfjs, Document, Page } from 'react-pdf';
|
import { pdfjs, Document, Page } from 'react-pdf';
|
||||||
import {
|
import {
|
||||||
Icon, Form, ActionRow, IconButton,
|
Icon, Form, ActionRow, IconButton,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
import { ChevronLeft, ChevronRight } from '@edx/paragon/icons';
|
import { ChevronLeft, ChevronRight } from '@openedx/paragon/icons';
|
||||||
import pdfjsWorker from 'react-pdf/dist/esm/pdf.worker.entry';
|
import pdfjsWorker from 'react-pdf/dist/esm/pdf.worker.entry';
|
||||||
|
|
||||||
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
|
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { Card, Collapsible } from '@edx/paragon';
|
import { Card, Collapsible } from '@openedx/paragon';
|
||||||
import FilePopoverContent from 'components/FilePopoverContent';
|
import FilePopoverContent from 'components/FilePopoverContent';
|
||||||
import FileInfo from './FileInfo';
|
import FileInfo from './FileInfo';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@import "@edx/paragon/scss/core/core";
|
@import "@openedx/paragon/scss/core/core";
|
||||||
|
|
||||||
.file-card {
|
.file-card {
|
||||||
margin: map-get($spacers, 1) 0;
|
margin: map-get($spacers, 1) 0;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { Collapsible } from '@edx/paragon';
|
import { Collapsible } from '@openedx/paragon';
|
||||||
|
|
||||||
import FilePopoverContent from 'components/FilePopoverContent';
|
import FilePopoverContent from 'components/FilePopoverContent';
|
||||||
import FileInfo from './FileInfo';
|
import FileInfo from './FileInfo';
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import {
|
|||||||
Button,
|
Button,
|
||||||
OverlayTrigger,
|
OverlayTrigger,
|
||||||
Popover,
|
Popover,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
import { InfoOutline } from '@edx/paragon/icons';
|
import { InfoOutline } from '@openedx/paragon/icons';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
import { nullMethod } from 'hooks';
|
import { nullMethod } from 'hooks';
|
||||||
import messages from './messages';
|
import messages from './messages';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { Popover } from '@edx/paragon';
|
import { Popover } from '@openedx/paragon';
|
||||||
|
|
||||||
import FileInfo from './FileInfo';
|
import FileInfo from './FileInfo';
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import {
|
|||||||
Popover,
|
Popover,
|
||||||
Icon,
|
Icon,
|
||||||
IconButton,
|
IconButton,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
import { InfoOutline } from '@edx/paragon/icons';
|
import { InfoOutline } from '@openedx/paragon/icons';
|
||||||
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { nullMethod } from 'hooks';
|
import { nullMethod } from 'hooks';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { Spinner } from '@edx/paragon';
|
import { Spinner } from '@openedx/paragon';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { Badge } from '@edx/paragon';
|
import { Badge } from '@openedx/paragon';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { StrictDict } from 'utils';
|
import { StrictDict } from 'utils';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
import { PageBanner, Hyperlink } from '@edx/paragon';
|
import { PageBanner, Hyperlink } from '@openedx/paragon';
|
||||||
|
|
||||||
import messages from './messages';
|
import messages from './messages';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { feedbackRequirement } from 'data/services/lms/constants';
|
import { feedbackRequirement } from 'data/services/lms/constants';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { actions, selectors } from 'data/redux';
|
import { actions, selectors } from 'data/redux';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { Form, FormControlFeedback } from '@edx/paragon';
|
import { Form, FormControlFeedback } from '@openedx/paragon';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { selectors } from 'data/redux';
|
import { selectors } from 'data/redux';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
|
|
||||||
import { selectors } from 'data/redux';
|
import { selectors } from 'data/redux';
|
||||||
import { gradeStatuses } from 'data/services/lms/constants';
|
import { gradeStatuses } from 'data/services/lms/constants';
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import { connect } from 'react-redux';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
import { Alert } from '@edx/paragon';
|
import { Alert } from '@openedx/paragon';
|
||||||
import { Info } from '@edx/paragon/icons';
|
import { Info } from '@openedx/paragon/icons';
|
||||||
|
|
||||||
import { selectors } from 'data/redux';
|
import { selectors } from 'data/redux';
|
||||||
import messages from './messages';
|
import messages from './messages';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
import { Hyperlink, Button } from '@edx/paragon';
|
import { Hyperlink, Button } from '@openedx/paragon';
|
||||||
|
|
||||||
import urls from 'data/services/lms/urls';
|
import urls from 'data/services/lms/urls';
|
||||||
import emptyStateSVG from './assets/empty-state.svg';
|
import emptyStateSVG from './assets/empty-state.svg';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { Hyperlink } from '@edx/paragon';
|
import { Hyperlink } from '@openedx/paragon';
|
||||||
|
|
||||||
import urls from 'data/services/lms/urls';
|
import urls from 'data/services/lms/urls';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Button, DataTableContext } from '@edx/paragon';
|
import { Button, DataTableContext } from '@openedx/paragon';
|
||||||
|
|
||||||
import * as module from './FilterStatusComponent';
|
import * as module from './FilterStatusComponent';
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import {
|
|||||||
Alert,
|
Alert,
|
||||||
Button,
|
Button,
|
||||||
Hyperlink,
|
Hyperlink,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
import { Info } from '@edx/paragon/icons';
|
import { Info } from '@openedx/paragon/icons';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import urls from 'data/services/lms/urls';
|
import urls from 'data/services/lms/urls';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@import "@edx/paragon/scss/core/core";
|
@import "@openedx/paragon/scss/core/core";
|
||||||
|
|
||||||
span.pgn__icon.breadcrumb-arrow {
|
span.pgn__icon.breadcrumb-arrow {
|
||||||
width: 16px !important;
|
width: 16px !important;
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { ArrowBack, Launch } from '@edx/paragon/icons';
|
import { ArrowBack, Launch } from '@openedx/paragon/icons';
|
||||||
import { Hyperlink, Icon } from '@edx/paragon';
|
import { Hyperlink, Icon } from '@openedx/paragon';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { selectors } from 'data/redux';
|
import { selectors } from 'data/redux';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { Hyperlink } from '@edx/paragon';
|
import { Hyperlink } from '@openedx/paragon';
|
||||||
|
|
||||||
import * as constants from 'data/constants/app';
|
import * as constants from 'data/constants/app';
|
||||||
import urls from 'data/services/lms/urls';
|
import urls from 'data/services/lms/urls';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
|
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
DataTable,
|
DataTable,
|
||||||
TextFilter,
|
TextFilter,
|
||||||
MultiSelectDropdownFilter,
|
MultiSelectDropdownFilter,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { gradingStatuses, submissionFields } from 'data/services/lms/constants';
|
import { gradingStatuses, submissionFields } from 'data/services/lms/constants';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { shallow } from '@edx/react-unit-test-utils';
|
|||||||
import {
|
import {
|
||||||
MultiSelectDropdownFilter,
|
MultiSelectDropdownFilter,
|
||||||
TextFilter,
|
TextFilter,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
|
|
||||||
import { selectors, thunkActions } from 'data/redux';
|
import { selectors, thunkActions } from 'data/redux';
|
||||||
import { gradingStatuses as statuses, submissionFields } from 'data/services/lms/constants';
|
import { gradingStatuses as statuses, submissionFields } from 'data/services/lms/constants';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
|
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { Container, Spinner } from '@edx/paragon';
|
import { Container, Spinner } from '@openedx/paragon';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { selectors, thunkActions } from 'data/redux';
|
import { selectors, thunkActions } from 'data/redux';
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ jest.mock('data/redux', () => ({
|
|||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
jest.mock('@edx/paragon', () => ({
|
jest.mock('@openedx/paragon', () => ({
|
||||||
Container: 'Container',
|
Container: 'Container',
|
||||||
Spinner: 'Spinner',
|
Spinner: 'Spinner',
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
|||||||
import {
|
import {
|
||||||
StatefulButton,
|
StatefulButton,
|
||||||
Icon,
|
Icon,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
|
|
||||||
import { RequestKeys, RequestStates } from 'data/constants/requests';
|
import { RequestKeys, RequestStates } from 'data/constants/requests';
|
||||||
import { selectors, thunkActions } from 'data/redux';
|
import { selectors, thunkActions } from 'data/redux';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@import "@edx/paragon/scss/core/core";
|
@import "@openedx/paragon/scss/core/core";
|
||||||
|
|
||||||
.response-display {
|
.response-display {
|
||||||
padding: map-get($spacers, 0);
|
padding: map-get($spacers, 0);
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import PropTypes from 'prop-types';
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
Card, Collapsible, Icon, DataTable, Button,
|
Card, Collapsible, Icon, DataTable, Button,
|
||||||
} from '@edx/paragon';
|
} from '@openedx/paragon';
|
||||||
import { ArrowDropDown, ArrowDropUp, WarningFilled } from '@edx/paragon/icons';
|
import { ArrowDropDown, ArrowDropUp, WarningFilled } from '@openedx/paragon/icons';
|
||||||
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { downloadAllLimit, downloadSingleLimit } from 'data/constants/files';
|
import { downloadAllLimit, downloadSingleLimit } from 'data/constants/files';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { Card } from '@edx/paragon';
|
import { Card } from '@openedx/paragon';
|
||||||
|
|
||||||
import createDOMPurify from 'dompurify';
|
import createDOMPurify from 'dompurify';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@import "@edx/paragon/scss/core/core";
|
@import "@openedx/paragon/scss/core/core";
|
||||||
|
|
||||||
// action reviews
|
// action reviews
|
||||||
.review-actions {
|
.review-actions {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useSelector } from 'react-redux';
|
import { useSelector } from 'react-redux';
|
||||||
|
|
||||||
import { Cancel, Highlight } from '@edx/paragon/icons';
|
import { Cancel, Highlight } from '@openedx/paragon/icons';
|
||||||
|
|
||||||
import { selectors, thunkActions } from 'data/redux';
|
import { selectors, thunkActions } from 'data/redux';
|
||||||
import { RequestKeys } from 'data/constants/requests';
|
import { RequestKeys } from 'data/constants/requests';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import StopGradingConfirmModal from '../StopGradingConfirmModal';
|
import StopGradingConfirmModal from '../StopGradingConfirmModal';
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { Icon, IconButton } from '@edx/paragon';
|
import { Icon, IconButton } from '@openedx/paragon';
|
||||||
import { ChevronLeft, ChevronRight } from '@edx/paragon/icons';
|
import { ChevronLeft, ChevronRight } from '@openedx/paragon/icons';
|
||||||
import { FormattedMessage, injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage, injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { selectors, thunkActions } from 'data/redux';
|
import { selectors, thunkActions } from 'data/redux';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { ActionRow, Button } from '@edx/paragon';
|
import { ActionRow, Button } from '@openedx/paragon';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import { actions, selectors } from 'data/redux';
|
import { actions, selectors } from 'data/redux';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { Col, Row } from '@edx/paragon';
|
import { Col, Row } from '@openedx/paragon';
|
||||||
|
|
||||||
import { selectors } from 'data/redux';
|
import { selectors } from 'data/redux';
|
||||||
import { RequestKeys } from 'data/constants/requests';
|
import { RequestKeys } from 'data/constants/requests';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
import { Alert, Button } from '@edx/paragon';
|
import { Alert, Button } from '@openedx/paragon';
|
||||||
import { Info } from '@edx/paragon/icons';
|
import { Info } from '@openedx/paragon/icons';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
const messageShape = PropTypes.shape({
|
const messageShape = PropTypes.shape({
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { shallow } from '@edx/react-unit-test-utils';
|
import { shallow } from '@edx/react-unit-test-utils';
|
||||||
|
|
||||||
import { Button } from '@edx/paragon';
|
import { Button } from '@openedx/paragon';
|
||||||
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
import { FormattedMessage } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import ReviewError from './ReviewError';
|
import ReviewError from './ReviewError';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@import "@edx/paragon/scss/core/core";
|
@import "@openedx/paragon/scss/core/core";
|
||||||
|
|
||||||
.review-modal-body {
|
.review-modal-body {
|
||||||
background-color: $gray-300 !important;
|
background-color: $gray-300 !important;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
import { FullscreenModal } from '@edx/paragon';
|
import { FullscreenModal } from '@openedx/paragon';
|
||||||
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import LoadingMessage from 'components/LoadingMessage';
|
import LoadingMessage from 'components/LoadingMessage';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@import "~@edx/brand/paragon/variables";
|
@import "~@edx/brand/paragon/variables";
|
||||||
@import "~@edx/paragon/scss/core/core";
|
@import "~@openedx/paragon/scss/core/core";
|
||||||
@import "~@edx/brand/paragon/overrides";
|
@import "~@edx/brand/paragon/overrides";
|
||||||
|
|
||||||
.criteria-label {
|
.criteria-label {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { Form } from '@edx/paragon';
|
import { Form } from '@openedx/paragon';
|
||||||
import {
|
import {
|
||||||
FormattedMessage,
|
FormattedMessage,
|
||||||
injectIntl,
|
injectIntl,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
import { Card, StatefulButton } from '@edx/paragon';
|
import { Card, StatefulButton } from '@openedx/paragon';
|
||||||
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
||||||
|
|
||||||
import DemoAlert from 'components/DemoAlert';
|
import DemoAlert from 'components/DemoAlert';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { messages as footerMessages } from '@edx/frontend-component-footer';
|
import { messages as footerMessages } from '@edx/frontend-component-footer';
|
||||||
import { messages as headerMessages } from '@edx/frontend-component-header';
|
import { messages as headerMessages } from '@edx/frontend-component-header';
|
||||||
import { messages as paragonMessages } from '@edx/paragon';
|
import { messages as paragonMessages } from '@openedx/paragon';
|
||||||
|
|
||||||
import arMessages from './messages/ar.json';
|
import arMessages from './messages/ar.json';
|
||||||
import deDEMessages from './messages/de_DE.json';
|
import deDEMessages from './messages/de_DE.json';
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ jest.mock('@edx/frontend-platform/i18n', () => {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
jest.mock('@edx/paragon', () => jest.requireActual('testUtils').mockNestedComponents({
|
jest.mock('@openedx/paragon', () => jest.requireActual('testUtils').mockNestedComponents({
|
||||||
Alert: {
|
Alert: {
|
||||||
Heading: 'Alert.Heading',
|
Heading: 'Alert.Heading',
|
||||||
},
|
},
|
||||||
@@ -95,7 +95,7 @@ jest.mock('@fortawesome/free-solid-svg-icons', () => ({
|
|||||||
faUserCircle: jest.fn().mockName('fa-user-circle-icon'),
|
faUserCircle: jest.fn().mockName('fa-user-circle-icon'),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
jest.mock('@edx/paragon/icons', () => ({
|
jest.mock('@openedx/paragon/icons', () => ({
|
||||||
ArrowBack: jest.fn().mockName('icons.ArrowBack'),
|
ArrowBack: jest.fn().mockName('icons.ArrowBack'),
|
||||||
ArrowDropDown: jest.fn().mockName('icons.ArrowDropDown'),
|
ArrowDropDown: jest.fn().mockName('icons.ArrowDropDown'),
|
||||||
ArrowDropUp: jest.fn().mockName('icons.ArrowDropUp'),
|
ArrowDropUp: jest.fn().mockName('icons.ArrowDropUp'),
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ import App from 'App';
|
|||||||
import Inspector from './inspector';
|
import Inspector from './inspector';
|
||||||
import appMessages from './messages';
|
import appMessages from './messages';
|
||||||
|
|
||||||
jest.unmock('@edx/paragon');
|
jest.unmock('@openedx/paragon');
|
||||||
jest.unmock('@edx/paragon/icons');
|
jest.unmock('@openedx/paragon/icons');
|
||||||
jest.unmock('@edx/frontend-platform/i18n');
|
jest.unmock('@edx/frontend-platform/i18n');
|
||||||
jest.unmock('react');
|
jest.unmock('react');
|
||||||
jest.unmock('react-redux');
|
jest.unmock('react-redux');
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { createConfig } = require('@edx/frontend-build');
|
const { createConfig } = require('@openedx/frontend-build');
|
||||||
|
|
||||||
const config = createConfig('webpack-dev');
|
const config = createConfig('webpack-dev');
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { createConfig } = require('@edx/frontend-build');
|
const { createConfig } = require('@openedx/frontend-build');
|
||||||
|
|
||||||
const config = createConfig('webpack-prod');
|
const config = createConfig('webpack-prod');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user