-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize build and fix the anonymous header (#26)
* refactor: rename SiteHeader to Header * build: use frontend-build * fix: ensure that we can handle anonymous users * feat: anonymous header works now Up until now we haven’t had any microfrontends that allowed anonymous usage. The Header was encountering errors rendering in such situations, though it was close. Now it properly shows the Login and Sign Up buttons. * build: bump version of frontend-build
- Loading branch information
Showing
25 changed files
with
13,479 additions
and
12,065 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ACCESS_TOKEN_COOKIE_NAME=edx-jwt-cookie-header-payload | ||
BASE_URL=localhost:8080 | ||
CREDENTIALS_BASE_URL=http://localhost:18150 | ||
CSRF_TOKEN_API_PATH=/csrf/api/v1/token | ||
ECOMMERCE_BASE_URL=http://localhost:18130 | ||
LANGUAGE_PREFERENCE_COOKIE_NAME=openedx-language-preference | ||
LMS_BASE_URL=http://localhost:18000 | ||
LOGIN_URL=http://localhost:18000/login | ||
LOGOUT_URL=http://localhost:18000/login | ||
MARKETING_SITE_BASE_URL=http://localhost:18000 | ||
ORDER_HISTORY_URL=localhost:1996/orders | ||
REFRESH_ACCESS_TOKEN_ENDPOINT=http://localhost:18000/login_refresh | ||
SEGMENT_KEY=null | ||
SITE_NAME=Open edX | ||
USER_INFO_COOKIE_NAME=edx-user-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const { createConfig } = require('@edx/frontend-build'); | ||
|
||
module.exports = createConfig('eslint'); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,3 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
modules: false, | ||
}, | ||
], | ||
'@babel/preset-react', | ||
], | ||
plugins: [ | ||
'@babel/plugin-proposal-object-rest-spread', | ||
'@babel/plugin-proposal-class-properties', | ||
], | ||
env: { | ||
i18n: { | ||
plugins: [ | ||
[ | ||
'react-intl', | ||
{ | ||
messagesDir: './temp/babel-plugin-react-intl', | ||
moduleSourceName: '@edx/frontend-i18n', | ||
}, | ||
], | ||
], | ||
}, | ||
test: { | ||
presets: [ | ||
'@babel/preset-env', | ||
], | ||
}, | ||
}, | ||
}; | ||
const { createConfig } = require('@edx/frontend-build'); | ||
|
||
module.exports = createConfig('babel-preserve-modules'); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const { createConfig } = require('@edx/frontend-build'); | ||
|
||
module.exports = createConfig('jest', { | ||
setupFiles: [ | ||
'<rootDir>/src/setupTest.js', | ||
], | ||
}); |
Oops, something went wrong.