From 421716ee98bc86f4d8cd5340ed8697dfacd943fe Mon Sep 17 00:00:00 2001 From: Diana Olarte Date: Mon, 13 Jan 2025 12:41:10 +1100 Subject: [PATCH] docs: update usage example and readme --- .env.development | 11 ++++++----- README.rst | 25 +++++++++++++------------ env.config.js | 7 +++++++ example/index.jsx | 8 +------- webpack.dev.config.js | 4 +++- 5 files changed, 30 insertions(+), 25 deletions(-) create mode 100644 env.config.js diff --git a/.env.development b/.env.development index 8dddff8c5..68be6383e 100644 --- a/.env.development +++ b/.env.development @@ -4,17 +4,17 @@ 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 +LMS_BASE_URL=http://local.openedx.io:8000 +LOGIN_URL=http://local.openedx.io:8000/login +LOGOUT_URL=http://local.openedx.io:8000/login +MARKETING_SITE_BASE_URL=http://local.openedx.io:8000 TERMS_OF_SERVICE_URL=null PRIVACY_POLICY_URL=null SUPPORT_EMAIL=null STUDIO_BASE_URL=http://localhost:18010 ENABLE_ACCESSIBILITY_PAGE=false ORDER_HISTORY_URL=localhost:1996/orders -REFRESH_ACCESS_TOKEN_ENDPOINT=http://localhost:18000/login_refresh +REFRESH_ACCESS_TOKEN_ENDPOINT=http://local.openedx.io:8000/login_refresh SEGMENT_KEY=null SITE_NAME=Open edX USER_INFO_COOKIE_NAME=edx-user-info @@ -22,3 +22,4 @@ LOGO_URL=https://edx-cdn.org/v3/default/logo.svg LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg LOGO_WHITE_URL=https://edx-cdn.org/v3/default/logo-white.svg FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico +ENABLE_FOOTER_LANG_SELECTOR=true diff --git a/README.rst b/README.rst index 66dcc6dc5..677ebb843 100644 --- a/README.rst +++ b/README.rst @@ -86,12 +86,19 @@ This library has the following exports: * ``messages``: Internationalization messages suitable for use with `@edx/frontend-platform/i18n `_ * ``dist/footer.scss``: A SASS file which contains style information for the component. It should be imported into the micro-frontend's own SCSS file. -