generated from openedx/frontend-template-application
-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit 0a7ff83
Showing
56 changed files
with
26,271 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,22 @@ | ||
NODE_ENV='production' | ||
ACCESS_TOKEN_COOKIE_NAME='' | ||
BASE_URL='' | ||
CREDENTIALS_BASE_URL='' | ||
CSRF_TOKEN_API_PATH='' | ||
ECOMMERCE_BASE_URL='' | ||
LANGUAGE_PREFERENCE_COOKIE_NAME='' | ||
LMS_BASE_URL='' | ||
LOGIN_URL='' | ||
LOGOUT_URL='' | ||
LOGO_URL='' | ||
LOGO_TRADEMARK_URL='' | ||
LOGO_WHITE_URL='' | ||
FAVICON_URL='' | ||
MARKETING_SITE_BASE_URL='' | ||
ORDER_HISTORY_URL='' | ||
REFRESH_ACCESS_TOKEN_ENDPOINT='' | ||
SEGMENT_KEY='' | ||
SITE_NAME='' | ||
USER_INFO_COOKIE_NAME='' | ||
APP_ID='' | ||
MFE_CONFIG_API_URL='' |
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,23 @@ | ||
NODE_ENV='development' | ||
PORT=8080 | ||
ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload' | ||
BASE_URL='http://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/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=localhost | ||
USER_INFO_COOKIE_NAME='edx-user-info' | ||
APP_ID='' | ||
MFE_CONFIG_API_URL='' |
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 @@ | ||
ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload' | ||
BASE_URL='http://localhost:1995' | ||
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=localhost | ||
USER_INFO_COOKIE_NAME='edx-user-info' | ||
APP_ID='' | ||
MFE_CONFIG_API_URL='' |
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,4 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
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,19 @@ | ||
# Run the workflow that adds new tickets that are either: | ||
# - labelled "DEPR" | ||
# - title starts with "[DEPR]" | ||
# - body starts with "Proposal Date" (this is the first template field) | ||
# to the org-wide DEPR project board | ||
|
||
name: Add newly created DEPR issues to the DEPR project board | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
routeissue: | ||
uses: openedx/.github/.github/workflows/add-depr-ticket-to-depr-board.yml@master | ||
secrets: | ||
GITHUB_APP_ID: ${{ secrets.GRAPHQL_AUTH_APP_ID }} | ||
GITHUB_APP_PRIVATE_KEY: ${{ secrets.GRAPHQL_AUTH_APP_PEM }} | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_ISSUE_BOT_TOKEN }} |
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 @@ | ||
# This workflow runs when a comment is made on the ticket | ||
# If the comment starts with "label: " it tries to apply | ||
# the label indicated in rest of comment. | ||
# If the comment starts with "remove label: ", it tries | ||
# to remove the indicated label. | ||
# Note: Labels are allowed to have spaces and this script does | ||
# not parse spaces (as often a space is legitimate), so the command | ||
# "label: really long lots of words label" will apply the | ||
# label "really long lots of words label" | ||
|
||
name: Allows for the adding and removing of labels via comment | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
add_remove_labels: | ||
uses: openedx/.github/.github/workflows/add-remove-label-on-comment.yml@master | ||
|
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 @@ | ||
name: Default CI | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
branches: | ||
- '**' | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Nodejs Env | ||
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV | ||
- name: Setup Nodejs | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VER }} | ||
- name: Install dependencies | ||
run: npm ci | ||
- 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: Coverage | ||
uses: codecov/codecov-action@v3 |
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 @@ | ||
# Run commitlint on the commit messages in a pull request. | ||
|
||
name: Lint Commit Messages | ||
|
||
on: | ||
- pull_request | ||
|
||
jobs: | ||
commitlint: | ||
uses: openedx/.github/.github/workflows/commitlint.yml@master |
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,13 @@ | ||
#check package-lock file version | ||
|
||
name: Lockfile Version check | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
version-check: | ||
uses: openedx/.github/.github/workflows/lockfileversion-check-v3.yml@master |
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 @@ | ||
# This workflow runs when a comment is made on the ticket | ||
# If the comment starts with "assign me" it assigns the author to the | ||
# ticket (case insensitive) | ||
|
||
name: Assign comment author to ticket if they say "assign me" | ||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
self_assign_by_comment: | ||
uses: openedx/.github/.github/workflows/self-assign-issue.yml@master |
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 @@ | ||
name: Update Browserslist DB | ||
on: | ||
schedule: | ||
- cron: '0 0 * * 1' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-browserslist: | ||
uses: openedx/.github/.github/workflows/update-browserslist-db.yml@master | ||
|
||
secrets: | ||
requirements_bot_github_token: ${{ secrets.requirements_bot_github_token }} |
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 @@ | ||
.DS_Store | ||
.eslintcache | ||
.idea | ||
node_modules | ||
npm-debug.log | ||
coverage | ||
module.config.js | ||
|
||
dist/ | ||
src/i18n/transifex_input.json | ||
temp/babel-plugin-react-intl | ||
|
||
### pyenv ### | ||
.python-version | ||
|
||
### Emacs ### | ||
*~ | ||
/temp | ||
/.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 @@ | ||
18 |
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,8 @@ | ||
[main] | ||
host = https://www.transifex.com | ||
|
||
[o:open-edx:p:edx-platform:r:frontend-template-application] | ||
file_filter = src/i18n/messages/<lang>.json | ||
source_file = src/i18n/transifex_input.json | ||
source_lang = en | ||
type = KEYVALUEJSON |
Oops, something went wrong.