8020ff58b8e8e8b73b066a012ab2da65213d394b
* Use the new header and footer. Note: Because we’re not fully using frontend-base yet, the header is broken. It’ll start working once frontend-base’s App singleton is properly initialized. * Initializing the app via App.initialize - Removes App component - Cleans up environment configuration - SUPPORT_URL is the only custom env variable. - Cleans up usage of SUPPORT_URL and LOGOUT_URL to take advantage of App.config. * Convert delete-account service to use App. * Using App for services and cleaning up associated code. Also pulling out the frontend-auth shim, since it was also dead and was sorta API-service like. * Cleaning up “common” and some dead code. - Most of it goes into account-settings for now. - Shuffling the “utils” files around to classify them better. - Removing unused assets * Moving files into data subdirectory in account-settings Including all the utils stuff. * Moving top level reducers/sagas into a data dir * Fix import bug with sagaUtils * Removing connected-react-router * Ceasing to use authentication and configuration from redux Also removing some unnecessary test config. * Updating redux init to default to prod. Also fixing a bug where it wasn’t going into prod mode at all. * Moving the duplicateTpaProvider logic out of redux This lets us stop setting initial state on redux. Also removing url-polyfill. * A little cleanup. * Remove default exports to keep the pattern the same.
|Build Status| |Codecov| |npm_version| |npm_downloads| |license| |semantic-release| frontend-app-account ==================== This is a micro-frontend application responsible for the display and updating of a user's account information. Please tag **@edx/arch-team** on any PRs or issues. Development ----------- Start Devstack ^^^^^^^^^^^^^^ To use this application `devstack <https://github.com/edx/devstack>`__ must be running and you must be logged into it. - Start devstack - Log in (http://localhost:18000/login) Start the development server ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ In this project, install requirements and start the development server by running: .. code:: bash npm install npm start # The server will run on port 1997 Once the dev server is up visit http://localhost:1997. Configuration and Deployment ---------------------------- This MFE is configured via node environment variables supplied at build time. See the .env file for the list of required environment variables. Example build syntax with a single environment variable: .. code:: bash NODE_ENV=development ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload' npm run build For more information see the document: `Micro-frontend applications in Open edX <https://github.com/edx/edx-developer-docs/blob/5191e800bf16cf42f25c58c58f983bdaf7f9305d/docs/micro-frontends-in-open-edx.rst>`__. Notes ----- The production Webpack configuration for this repo uses `Purgecss <https://www.purgecss.com/>`__ to remove unused CSS from the production css file. In ``webpack.prod.config.js`` the Purgecss plugin is configured to scan directories to determine what css selectors should remain. Currently the src/ directory is scanned along with all ``@edx/frontend-component*`` node modules and ``@edx/paragon``. **If you add and use a component in this repo that relies on HTML classes or ids for styling you must add it to the Purgecss configuration or it will be unstyled in the production build.** .. |Build Status| image:: https://api.travis-ci.org/edx/frontend-app-account.svg?branch=master :target: https://travis-ci.org/edx/frontend-app-account .. |Codecov| image:: https://img.shields.io/codecov/c/github/edx/frontend-app-account :target: https://codecov.io/gh/edx/frontend-app-account .. |npm_version| image:: https://img.shields.io/npm/v/@edx/frontend-app-account.svg :target: @edx/frontend-app-account .. |npm_downloads| image:: https://img.shields.io/npm/dt/@edx/frontend-app-account.svg :target: @edx/frontend-app-account .. |license| image:: https://img.shields.io/npm/l/@edx/frontend-app-account.svg :target: @edx/frontend-app-account .. |semantic-release| image:: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg :target: https://github.com/semantic-release/semantic-release
Languages
JavaScript
97.7%
HTML
1%
SCSS
0.9%
Makefile
0.4%