-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
21,832 additions
and
0 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,10 @@ | ||
node_modules | ||
npm-debug.log | ||
README.rst | ||
LICENSE | ||
.babelrc | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.npmignore | ||
commitlint.config.js |
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,20 @@ | ||
NODE_ENV='production' | ||
ACCESS_TOKEN_COOKIE_NAME=null | ||
BASE_URL=null | ||
CREDENTIALS_BASE_URL=null | ||
CSRF_TOKEN_API_PATH=null | ||
ECOMMERCE_BASE_URL=null | ||
LANGUAGE_PREFERENCE_COOKIE_NAME=null | ||
LMS_BASE_URL=null | ||
LOGIN_URL=null | ||
LOGOUT_URL=null | ||
LOGO_URL=null | ||
LOGO_TRADEMARK_URL=null | ||
LOGO_WHITE_URL=null | ||
FAVICON_URL=null | ||
MARKETING_SITE_BASE_URL=null | ||
ORDER_HISTORY_URL=null | ||
REFRESH_ACCESS_TOKEN_ENDPOINT=null | ||
SEGMENT_KEY='' | ||
SITE_NAME=null | ||
USER_INFO_COOKIE_NAME=null |
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,21 @@ | ||
PORT=8735 | ||
NODE_ENV='development' | ||
ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload' | ||
BASE_URL='http://localhost:8735' | ||
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/logout' | ||
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 | ||
MARKETING_SITE_BASE_URL='http://localhost:18000' | ||
ORDER_HISTORY_URL='http://localhost:1996/orders' | ||
REFRESH_ACCESS_TOKEN_ENDPOINT='http://localhost:18000/login_refresh' | ||
SEGMENT_KEY='' | ||
SITE_NAME='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,19 @@ | ||
ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload' | ||
BASE_URL='http://localhost:8735' | ||
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/logout' | ||
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 | ||
MARKETING_SITE_BASE_URL='http://localhost:18000' | ||
ORDER_HISTORY_URL='http://localhost:1996/orders' | ||
REFRESH_ACCESS_TOKEN_ENDPOINT='http://localhost:18000/login_refresh' | ||
SEGMENT_KEY='' | ||
SITE_NAME='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,4 @@ | ||
coverage/* | ||
dist/ | ||
node_modules/ | ||
jest.config.js |
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 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,30 @@ | ||
name: Default CI | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Nodejs | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Validate package-lock.json changes | ||
run: make validate-no-uncommitted-package-lock-changes | ||
- name: Lint | ||
run: npm run lint | ||
- name: Test | ||
run: npm run test | ||
- name: Build | ||
run: npm run build | ||
- name: i18n_extract | ||
run: npm run i18n_extract | ||
- name: is-es5 | ||
run: npm run is-es5 | ||
- name: Coverage | ||
uses: codecov/codecov-action@v1 |
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,65 @@ | ||
# local dev related | ||
# https://github.com/edx/frontend-build#local-module-configuration-for-webpack | ||
.env.private | ||
module.config.js | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Mac files | ||
.DS_Store | ||
|
||
# Cookie cutter | ||
dist/ | ||
.idea | ||
.vscode |
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,12 @@ | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.travis.yml | ||
docker-compose.yml | ||
Dockerfile | ||
Makefile | ||
npm-debug.log | ||
|
||
coverage | ||
node_modules | ||
public |
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 @@ | ||
12.10.0 |
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,54 @@ | ||
transifex_resource = frontend-app-enterprise-public-catalog | ||
transifex_langs = "ar,fr,es_419,zh_CN" | ||
|
||
transifex_utils = ./node_modules/.bin/transifex-utils.js | ||
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/ | ||
|
||
# This directory must match .babelrc . | ||
transifex_temp = ./temp/babel-plugin-react-intl | ||
|
||
precommit: | ||
npm run lint | ||
npm audit | ||
|
||
requirements: | ||
npm install | ||
|
||
i18n.extract: | ||
# Pulling display strings from .jsx files into .json files... | ||
rm -rf $(transifex_temp) | ||
npm run-script i18n_extract | ||
|
||
i18n.concat: | ||
# Gathering JSON messages into one file... | ||
$(transifex_utils) $(transifex_temp) $(transifex_input) | ||
|
||
extract_translations: | requirements i18n.extract i18n.concat | ||
|
||
# Despite the name, we actually need this target to detect changes in the incoming translated message files as well. | ||
detect_changed_source_translations: | ||
# Checking for changed translations... | ||
git diff --exit-code $(i18n) | ||
|
||
# Pushes translations to Transifex. You must run make extract_translations first. | ||
push_translations: | ||
# Pushing strings to Transifex... | ||
tx push -s | ||
# Fetching hashes from Transifex... | ||
./node_modules/reactifex/bash_scripts/get_hashed_strings.sh $(tx_url1) | ||
# Writing out comments to file... | ||
$(transifex_utils) $(transifex_temp) --comments | ||
# Pushing comments to Transifex... | ||
./node_modules/reactifex/bash_scripts/put_comments.sh $(tx_url2) | ||
|
||
# Pulls translations from Transifex. | ||
pull_translations: | ||
tx pull -f --mode reviewed --language=$(transifex_langs) | ||
|
||
# This target is used by Travis. | ||
validate-no-uncommitted-package-lock-changes: | ||
# Checking for package-lock.json changes... | ||
git diff --exit-code package-lock.json |
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,35 @@ | ||
|Build Status| |Codecov| |license| | ||
|
||
frontend-app-enterprise-public-catalog | ||
================================= | ||
|
||
Introduction | ||
------------ | ||
|
||
This application is a public facing catalog page for use by edX consumers to find courses in catalogs before deciding to enroll. | ||
|
||
The dev server is running at `http://localhost:8735 <http://localhost:8735>`_. | ||
|
||
Project Structure | ||
----------------- | ||
|
||
The source for this project is organized into nested submodules according to the ADR `Feature-based Application Organization <https://github.com/edx/frontend-app-enterprise-public-catalog/blob/master/docs/decisions/0002-feature-based-application-organization.rst>`_. | ||
|
||
Build Process Notes | ||
------------------- | ||
|
||
**Production Build** | ||
|
||
The production build is created with ``npm run build``. | ||
|
||
Internationalization | ||
-------------------- | ||
|
||
Please see `edx/frontend-platform's i18n module <https://edx.github.io/frontend-platform/module-Internationalization.html>`_ for documentation on internationalization. The documentation explains how to use it, and the `How To <https://github.com/edx/frontend-i18n/blob/master/docs/how_tos/i18n.rst>`_ has more detail. | ||
|
||
.. |Build Status| image:: https://api.travis-ci.com/edx/frontend-app-enterprise-public-catalog.svg?branch=master | ||
:target: https://travis-ci.com/edx/frontend-app-enterprise-public-catalog | ||
.. |Codecov| image:: https://codecov.io/gh/edx/frontend-app-enterprise-public-catalog/branch/master/graph/badge.svg | ||
:target: https://codecov.io/gh/edx/frontend-app-enterprise-public-catalog | ||
.. |license| image:: https://img.shields.io/npm/l/@edx/frontend-app-enterprise-public-catalog.svg | ||
:target: @edx/frontend-app-enterprise-public-catalog |
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,10 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: auto | ||
threshold: 0% | ||
patch: | ||
default: | ||
target: auto | ||
threshold: 0% |
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,32 @@ | ||
1. Record Architecture Decisions | ||
-------------------------------- | ||
|
||
Status | ||
------ | ||
|
||
Accepted | ||
|
||
Context | ||
------- | ||
|
||
We would like to keep a historical record on the architectural | ||
decisions we make with this app as it evolves over time. | ||
|
||
Decision | ||
-------- | ||
|
||
We will use Architecture Decision Records, as described by | ||
Michael Nygard in `Documenting Architecture Decisions`_ | ||
|
||
.. _Documenting Architecture Decisions: http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions | ||
|
||
Consequences | ||
------------ | ||
|
||
See Michael Nygard's article, linked above. | ||
|
||
References | ||
---------- | ||
|
||
* https://resources.sei.cmu.edu/asset_files/Presentation/2017_017_001_497746.pdf | ||
* https://github.com/npryce/adr-tools/tree/master/doc/adr |
Oops, something went wrong.