Skip to content

Commit cc574a7

Browse files
arbrandesleangseu-edx
authored andcommitted
chore: initial commit
0 parents  commit cc574a7

Some content is hidden

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

53 files changed

+24749
-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=1992
3+
ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload'
4+
BASE_URL='http://localhost:1992'
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('@edx/frontend-build');
3+
4+
module.exports = createConfig('eslint');

.github/CODEOWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Code owners for frontend-app-ora
2+
3+
# These owners will be the default owners for everything in
4+
# the repo. Unless a later match takes precedence, they will
5+
# be requested for review when someone opens a pull request.
6+
* @edx/content-aurora
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: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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@v3
16+
with:
17+
fetch-depth: 0
18+
- name: Setup Nodejs Env
19+
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
20+
- name: Setup Nodejs
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ env.NODE_VER }}
24+
- name: Install dependencies
25+
run: npm ci
26+
- name: Lint
27+
run: npm run lint
28+
- name: Test
29+
run: npm run test
30+
- name: Build
31+
run: npm run build
32+
- name: i18n_extract
33+
run: npm run i18n_extract
34+
- name: Coverage
35+
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)