diff --git a/.env.development b/.env.development
index 9fdccfc9..808b175d 100644
--- a/.env.development
+++ b/.env.development
@@ -23,11 +23,10 @@ AUTHN_MINIMAL_HEADER=true
LOGIN_ISSUE_SUPPORT_LINK='/login-issue-support-url'
TOS_AND_HONOR_CODE='http://localhost:18000/honor'
PRIVACY_POLICY='http://localhost:18000/privacy'
-REGISTRATION_OPTIONAL_FIELDS='gender,goals,level_of_education,year_of_birth'
+REGISTRATION_OPTIONAL_FIELDS=''
USER_SURVEY_COOKIE_NAME='openedx-user-survey-type'
COOKIE_DOMAIN='localhost'
WELCOME_PAGE_SUPPORT_LINK='http://localhost:1999/welcome'
INFO_EMAIL='info@edx.org'
DISABLE_ENTERPRISE_LOGIN=''
-DEFAULT_DESIGN='redesign'
REGISTER_CONVERSION_COOKIE_NAME='openedx-user-register-conversion'
diff --git a/Makefile b/Makefile
index 20eea5dc..08e40a08 100755
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ transifex_resource = frontend-app-authn
transifex_langs = "ar,fr,es_419,zh_CN"
transifex_utils = ./node_modules/.bin/transifex-utils.js
-i18n = ./src/legacy/i18n
+i18n = ./src/i18n
transifex_input = $(i18n)/transifex_input.json
tx_url1 = https://www.transifex.com/api/2/project/edx-platform/resource/$(transifex_resource)/translation/en/strings/
tx_url2 = https://www.transifex.com/api/2/project/edx-platform/resource/$(transifex_resource)/source/
diff --git a/jest.config.js b/jest.config.js
index 49f06480..35fcbc69 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -6,10 +6,7 @@ module.exports = createConfig('jest', {
],
coveragePathIgnorePatterns: [
'src/setupTest.js',
- 'src/legacy/i18n',
- 'src/redesign/i18n',
+ 'src/i18n',
'src/index.jsx',
- 'src/legacy/index.jsx',
- 'src/redesign/index.jsx',
],
});
diff --git a/package-lock.json b/package-lock.json
index 246b2b5a..2e011529 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3869,29 +3869,6 @@
}
}
},
- "@edx/frontend-component-header": {
- "version": "2.2.5",
- "resolved": "https://registry.npmjs.org/@edx/frontend-component-header/-/frontend-component-header-2.2.5.tgz",
- "integrity": "sha512-8ZfdQBgp5beLd3r+xIxpDQT4/eYggUrzkHe4iJk322lYqmjAEHio9jrLnHv7lW/B8ooH3qZNl+sJlT2UcWRxmg==",
- "requires": {
- "babel-polyfill": "6.26.0",
- "react-responsive": "8.0.3",
- "react-transition-group": "4.3.0"
- },
- "dependencies": {
- "react-responsive": {
- "version": "8.0.3",
- "resolved": "https://registry.npmjs.org/react-responsive/-/react-responsive-8.0.3.tgz",
- "integrity": "sha512-F9VXyLao7O8XHXbLjQbIr4+mC6Zr0RDTwNjd7ixTmYEAyKyNanBkLkFchNaMZgszoSK6PgSs/3m/QDWw33/gpg==",
- "requires": {
- "hyphenate-style-name": "^1.0.0",
- "matchmediaquery": "^0.3.0",
- "prop-types": "^15.6.1",
- "shallow-equal": "^1.1.0"
- }
- }
- }
- },
"@edx/frontend-platform": {
"version": "1.8.4",
"resolved": "https://registry.npmjs.org/@edx/frontend-platform/-/frontend-platform-1.8.4.tgz",
@@ -7273,6 +7250,7 @@
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz",
"integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=",
+ "dev": true,
"requires": {
"babel-runtime": "^6.26.0",
"core-js": "^2.5.0",
@@ -7282,12 +7260,14 @@
"core-js": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
- "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ=="
+ "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==",
+ "dev": true
},
"regenerator-runtime": {
"version": "0.10.5",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz",
- "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg="
+ "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=",
+ "dev": true
}
}
},
@@ -7355,6 +7335,7 @@
"version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",
"integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=",
+ "dev": true,
"requires": {
"core-js": "^2.4.0",
"regenerator-runtime": "^0.11.0"
@@ -7363,12 +7344,14 @@
"core-js": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
- "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ=="
+ "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==",
+ "dev": true
},
"regenerator-runtime": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",
- "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg=="
+ "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==",
+ "dev": true
}
}
},
diff --git a/package.json b/package.json
index 97b6b881..5f50502c 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
],
"scripts": {
"build": "fedx-scripts webpack",
- "i18n_extract": "BABEL_ENV=i18n fedx-scripts babel src/legacy --quiet > /dev/null",
+ "i18n_extract": "BABEL_ENV=i18n fedx-scripts babel src --quiet > /dev/null",
"is-es5": "es-check es5 ./dist/*.js",
"lint": "fedx-scripts eslint --ext .js --ext .jsx .",
"snapshot": "fedx-scripts jest --updateSnapshot",
@@ -36,7 +36,6 @@
"dependencies": {
"@edx/brand": "npm:@edx/brand-openedx@1.1.0",
"@edx/frontend-component-cookie-policy-banner": "2.1.12",
- "@edx/frontend-component-header": "2.2.5",
"@edx/frontend-platform": "1.8.4",
"@edx/paragon": "16.6.1",
"@fortawesome/fontawesome-svg-core": "1.2.32",
diff --git a/src/redesign/index.jsx b/src/MainApp.jsx
similarity index 96%
rename from src/redesign/index.jsx
rename to src/MainApp.jsx
index d7e72a59..08157953 100755
--- a/src/redesign/index.jsx
+++ b/src/MainApp.jsx
@@ -19,7 +19,7 @@ import './index.scss';
registerIcons();
-const RedesignApp = () => (
+const MainApp = () => (
onOptionalHandler(e, onClick)}> - {props.checkboxMessage} -
- ) : ; - return additionalField; - }; - - const inputProps = { - name: props.name, - id: props.for, - type: props.type, - value: props.value, - className: props.inputFieldStyle, - 'aria-invalid': props.ariaInvalid, - autoComplete: 'on', - }; - inputProps.onChange = (e) => onChangeHandler(e, onChange); - inputProps.onClick = (e) => onClickHandler(e, onClick); - inputProps.onBlur = (e) => onBlurHandler(e, onBlur); - inputProps.onFocus = (e) => onFocusHandler(e, onFocus); - - if (props.type === 'select') { - inputProps.options = props.selectOptions; - inputProps.className = props.value === '' ? `${props.inputFieldStyle} text-muted` : props.inputFieldStyle; - } - if (props.type === 'checkbox') { - inputProps.checked = props.isChecked; - } - - const validationGroupProps = { - for: props.for, - }; - if (!props.optionalFieldCheckbox) { - validationGroupProps.invalid = props.invalid; - validationGroupProps.invalidMessage = props.invalidMessage; - validationGroupProps.helpText = showHelpText ? props.helpText : ''; - } else { - validationGroupProps.className = props.optionalFieldCheckbox ? 'custom-control pt-10 mb-0' : ''; - } - if (props.className) { - validationGroupProps.className = props.className; - } - - return ( -
-
{intl.formatMessage(messages['forgot.password.confirmation.info'])}
-
-
- {intl.formatMessage(messages['institution.login.page.sub.heading'])} -
-
- {intl.formatMessage(messages['first.time.here'])}
-
- First time here? - - Create an account - . - -
-- - You entered - - test@example.com - - . If this email address is associated with your edX account, we will send a message with password recovery instructions to this email address. - -
-- If you do not receive a password reset message after 1 minute, verify that you entered the correct email address, or check your spam folder. -
-- - If you need further assistance, - - contact technical support - - . - -
-- First time here? - - Create an account - . - -
-- First time here? - - Create an account - . - -
-
- {intl.formatMessage(messages['already.have.an.edx.account'])}
-
-