Skip to content

Commit ae1f553

Browse files
authored
Initial commit
0 parents  commit ae1f553

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+20847
-0
lines changed

.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
npm-debug.log
3+
README.rst
4+
LICENSE
5+
.babelrc
6+
.eslintignore
7+
.eslintrc.json
8+
.gitignore
9+
.npmignore
10+
commitlint.config.js

.env

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
NODE_ENV='production'
2+
ACCESS_TOKEN_COOKIE_NAME=''
3+
BASE_URL=''
4+
CREDENTIALS_BASE_URL=''
5+
CSRF_TOKEN_API_PATH=''
6+
ECOMMERCE_BASE_URL=''
7+
LANGUAGE_PREFERENCE_COOKIE_NAME=''
8+
LMS_BASE_URL=''
9+
LOGIN_URL=''
10+
LOGOUT_URL=''
11+
LOGO_URL=''
12+
LOGO_TRADEMARK_URL=''
13+
LOGO_WHITE_URL=''
14+
FAVICON_URL=''
15+
MARKETING_SITE_BASE_URL=''
16+
ORDER_HISTORY_URL=''
17+
REFRESH_ACCESS_TOKEN_ENDPOINT=''
18+
SEGMENT_KEY=''
19+
SITE_NAME=''
20+
USER_INFO_COOKIE_NAME=''
21+
APP_ID=''
22+
MFE_CONFIG_API_URL=''

.env.development

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
NODE_ENV='development'
2+
PORT=8080
3+
ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload'
4+
BASE_URL='http://localhost:8080'
5+
CREDENTIALS_BASE_URL='http://localhost:18150'
6+
CSRF_TOKEN_API_PATH='/csrf/api/v1/token'
7+
ECOMMERCE_BASE_URL='http://localhost:18130'
8+
LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference'
9+
LMS_BASE_URL='http://localhost:18000'
10+
LOGIN_URL='http://localhost:18000/login'
11+
LOGOUT_URL='http://localhost:18000/logout'
12+
LOGO_URL=https://edx-cdn.org/v3/default/logo.svg
13+
LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg
14+
LOGO_WHITE_URL=https://edx-cdn.org/v3/default/logo-white.svg
15+
FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico
16+
MARKETING_SITE_BASE_URL='http://localhost:18000'
17+
ORDER_HISTORY_URL='http://localhost:1996/orders'
18+
REFRESH_ACCESS_TOKEN_ENDPOINT='http://localhost:18000/login_refresh'
19+
SEGMENT_KEY=''
20+
SITE_NAME=localhost
21+
USER_INFO_COOKIE_NAME='edx-user-info'
22+
APP_ID=''
23+
MFE_CONFIG_API_URL=''

.env.test

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload'
2+
BASE_URL='http://localhost:1995'
3+
CREDENTIALS_BASE_URL='http://localhost:18150'
4+
CSRF_TOKEN_API_PATH='/csrf/api/v1/token'
5+
ECOMMERCE_BASE_URL='http://localhost:18130'
6+
LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference'
7+
LMS_BASE_URL='http://localhost:18000'
8+
LOGIN_URL='http://localhost:18000/login'
9+
LOGOUT_URL='http://localhost:18000/logout'
10+
LOGO_URL=https://edx-cdn.org/v3/default/logo.svg
11+
LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg
12+
LOGO_WHITE_URL=https://edx-cdn.org/v3/default/logo-white.svg
13+
FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico
14+
MARKETING_SITE_BASE_URL='http://localhost:18000'
15+
ORDER_HISTORY_URL='http://localhost:1996/orders'
16+
REFRESH_ACCESS_TOKEN_ENDPOINT='http://localhost:18000/login_refresh'
17+
SEGMENT_KEY=''
18+
SITE_NAME=localhost
19+
USER_INFO_COOKIE_NAME='edx-user-info'
20+
APP_ID=''
21+
MFE_CONFIG_API_URL=''

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
coverage/*
2+
dist/
3+
node_modules/
4+
jest.config.js

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// eslint-disable-next-line import/no-extraneous-dependencies
2+
const { createConfig } = require('@openedx/frontend-build');
3+
4+
module.exports = createConfig('eslint');
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Run the workflow that adds new tickets that are either:
2+
# - labelled "DEPR"
3+
# - title starts with "[DEPR]"
4+
# - body starts with "Proposal Date" (this is the first template field)
5+
# to the org-wide DEPR project board
6+
7+
name: Add newly created DEPR issues to the DEPR project board
8+
9+
on:
10+
issues:
11+
types: [opened]
12+
13+
jobs:
14+
routeissue:
15+
uses: openedx/.github/.github/workflows/add-depr-ticket-to-depr-board.yml@master
16+
secrets:
17+
GITHUB_APP_ID: ${{ secrets.GRAPHQL_AUTH_APP_ID }}
18+
GITHUB_APP_PRIVATE_KEY: ${{ secrets.GRAPHQL_AUTH_APP_PEM }}
19+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_ISSUE_BOT_TOKEN }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This workflow runs when a comment is made on the ticket
2+
# If the comment starts with "label: " it tries to apply
3+
# the label indicated in rest of comment.
4+
# If the comment starts with "remove label: ", it tries
5+
# to remove the indicated label.
6+
# Note: Labels are allowed to have spaces and this script does
7+
# not parse spaces (as often a space is legitimate), so the command
8+
# "label: really long lots of words label" will apply the
9+
# label "really long lots of words label"
10+
11+
name: Allows for the adding and removing of labels via comment
12+
13+
on:
14+
issue_comment:
15+
types: [created]
16+
17+
jobs:
18+
add_remove_labels:
19+
uses: openedx/.github/.github/workflows/add-remove-label-on-comment.yml@master
20+

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Default CI
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
pull_request:
7+
branches:
8+
- '**'
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Setup Nodejs
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version-file: '.nvmrc'
22+
- name: Install dependencies
23+
run: npm ci
24+
- name: Lint
25+
run: npm run lint
26+
- name: Test
27+
run: npm run test
28+
- name: Build
29+
run: npm run build
30+
- name: i18n_extract
31+
run: npm run i18n_extract
32+
- name: Coverage
33+
uses: codecov/codecov-action@v4
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}
36+
fail_ci_if_error: true

.github/workflows/commitlint.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Run commitlint on the commit messages in a pull request.
2+
3+
name: Lint Commit Messages
4+
5+
on:
6+
- pull_request
7+
8+
jobs:
9+
commitlint:
10+
uses: openedx/.github/.github/workflows/commitlint.yml@master
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#check package-lock file version
2+
3+
name: Lockfile Version check
4+
5+
on:
6+
push:
7+
branches:
8+
- master
9+
pull_request:
10+
11+
jobs:
12+
version-check:
13+
uses: openedx/.github/.github/workflows/lockfileversion-check-v3.yml@master
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This workflow runs when a comment is made on the ticket
2+
# If the comment starts with "assign me" it assigns the author to the
3+
# ticket (case insensitive)
4+
5+
name: Assign comment author to ticket if they say "assign me"
6+
on:
7+
issue_comment:
8+
types: [created]
9+
10+
jobs:
11+
self_assign_by_comment:
12+
uses: openedx/.github/.github/workflows/self-assign-issue.yml@master
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Update Browserslist DB
2+
on:
3+
schedule:
4+
- cron: '0 0 * * 1'
5+
workflow_dispatch:
6+
7+
jobs:
8+
update-browserslist:
9+
uses: openedx/.github/.github/workflows/update-browserslist-db.yml@master
10+
11+
secrets:
12+
requirements_bot_github_token: ${{ secrets.requirements_bot_github_token }}

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.DS_Store
2+
.eslintcache
3+
.idea
4+
node_modules
5+
npm-debug.log
6+
coverage
7+
module.config.js
8+
9+
dist/
10+
src/i18n/transifex_input.json
11+
temp/babel-plugin-react-intl
12+
13+
### pyenv ###
14+
.python-version
15+
16+
### Emacs ###
17+
*~
18+
/temp
19+
/.vscode

.npmignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.eslintignore
2+
.eslintrc.json
3+
.gitignore
4+
.travis.yml
5+
docker-compose.yml
6+
Dockerfile
7+
Makefile
8+
npm-debug.log
9+
10+
coverage
11+
node_modules
12+
public

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

0 commit comments

Comments
 (0)