Skip to content

Commit 16b9967

Browse files
author
Ben Warzeski
authored
Merge pull request #2 from edx/initial-merge
Initial merge
2 parents ffc23cf + ee1b4aa commit 16b9967

Some content is hidden

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

95 files changed

+30500
-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.md
4+
LICENSE
5+
.babelrc
6+
.eslintignore
7+
.eslintrc.json
8+
.gitignore
9+
.npmignore
10+
commitlint.config.js

.env

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
NODE_ENV='production'
2+
NODE_PATH=./src
3+
BASE_URL=''
4+
LMS_BASE_URL=''
5+
LOGIN_URL=''
6+
LOGOUT_URL=''
7+
CSRF_TOKEN_API_PATH=''
8+
REFRESH_ACCESS_TOKEN_ENDPOINT=''
9+
DATA_API_BASE_URL=''
10+
SEGMENT_KEY=''
11+
FEATURE_FLAGS={}
12+
ACCESS_TOKEN_COOKIE_NAME=''
13+
NEW_RELIC_APP_ID=''
14+
NEW_RELIC_LICENSE_KEY=''
15+
SITE_NAME=''
16+
MARKETING_SITE_BASE_URL=''
17+
SUPPORT_URL=''
18+
CONTACT_URL=''
19+
OPEN_SOURCE_URL=''
20+
TERMS_OF_SERVICE_URL=''
21+
PRIVACY_POLICY_URL=''
22+
FACEBOOK_URL=''
23+
TWITTER_URL=''
24+
YOU_TUBE_URL=''
25+
LINKED_IN_URL=''
26+
REDDIT_URL=''
27+
APPLE_APP_STORE_URL=''
28+
GOOGLE_PLAY_URL=''
29+
ENTERPRISE_MARKETING_URL=''
30+
ENTERPRISE_MARKETING_UTM_SOURCE=''
31+
ENTERPRISE_MARKETING_UTM_CAMPAIGN=''
32+
ENTERPRISE_MARKETING_FOOTER_UTM_MEDIUM=''

.env.development

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
NODE_ENV='development'
2+
PORT=8181
3+
BASE_URL='localhost:8181'
4+
LMS_BASE_URL='http://localhost:18000'
5+
LOGIN_URL='http://localhost:18000/login'
6+
LOGOUT_URL='http://localhost:18000/logout'
7+
LOGO_URL=https://edx-cdn.org/v3/default/logo.svg
8+
LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg
9+
LOGO_WHITE_URL=https://edx-cdn.org/v3/default/logo-white.svg
10+
LOGO_POWERED_BY_OPEN_EDX_URL_SVG=https://edx-cdn.org/v3/stage/open-edx-tag.svg
11+
FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico
12+
CSRF_TOKEN_API_PATH='/csrf/api/v1/token'
13+
REFRESH_ACCESS_TOKEN_ENDPOINT='http://localhost:18000/login_refresh'
14+
ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload'
15+
USER_INFO_COOKIE_NAME='edx-user-info'
16+
SITE_NAME=localhost
17+
DATA_API_BASE_URL='http://localhost:8000'
18+
// LMS_CLIENT_ID should match the lms DOT client application id your LMS containe
19+
LMS_CLIENT_ID='login-service-client-id'
20+
SEGMENT_KEY=''
21+
FEATURE_FLAGS={}
22+
MARKETING_SITE_BASE_URL='http://localhost:18000'
23+
SUPPORT_URL='http://localhost:18000/support'
24+
CONTACT_URL='http://localhost:18000/contact'
25+
OPEN_SOURCE_URL='http://localhost:18000/openedx'
26+
TERMS_OF_SERVICE_URL='http://localhost:18000/terms-of-service'
27+
PRIVACY_POLICY_URL='http://localhost:18000/privacy-policy'
28+
FACEBOOK_URL='https://www.facebook.com'
29+
TWITTER_URL='https://twitter.com'
30+
YOU_TUBE_URL='https://www.youtube.com'
31+
LINKED_IN_URL='https://www.linkedin.com'
32+
REDDIT_URL='https://www.reddit.com'
33+
APPLE_APP_STORE_URL='https://www.apple.com/ios/app-store/'
34+
GOOGLE_PLAY_URL='https://play.google.com/store'
35+
ENTERPRISE_MARKETING_URL='http://example.com'
36+
ENTERPRISE_MARKETING_UTM_SOURCE='example.com'
37+
ENTERPRISE_MARKETING_UTM_CAMPAIGN='example.com Referral'
38+
ENTERPRISE_MARKETING_FOOTER_UTM_MEDIUM='Footer'

.env.test

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
NODE_ENV='test'
2+
PORT=8181
3+
BASE_URL='localhost:8181'
4+
LMS_BASE_URL='http://localhost:18000'
5+
LOGIN_URL='http://localhost:18000/login'
6+
LOGOUT_URL='http://localhost:18000/logout'
7+
LOGO_URL=https://edx-cdn.org/v3/default/logo.svg
8+
LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg
9+
LOGO_WHITE_URL=https://edx-cdn.org/v3/default/logo-white.svg
10+
LOGO_POWERED_BY_OPEN_EDX_URL_SVG=https://edx-cdn.org/v3/stage/open-edx-tag.svg
11+
FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico
12+
CSRF_TOKEN_API_PATH='/csrf/api/v1/token'
13+
REFRESH_ACCESS_TOKEN_ENDPOINT='http://localhost:18000/login_refresh'
14+
ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload'
15+
USER_INFO_COOKIE_NAME='edx-user-info'
16+
SITE_NAME=localhost
17+
DATA_API_BASE_URL='http://localhost:8000'
18+
// LMS_CLIENT_ID should match the lms DOT client application id your LMS containe
19+
LMS_CLIENT_ID='login-service-client-id'
20+
SEGMENT_KEY=''
21+
FEATURE_FLAGS={}
22+
MARKETING_SITE_BASE_URL='http://localhost:18000'
23+
SUPPORT_URL='http://localhost:18000/support'
24+
CONTACT_URL='http://localhost:18000/contact'
25+
OPEN_SOURCE_URL='http://localhost:18000/openedx'
26+
TERMS_OF_SERVICE_URL='http://localhost:18000/terms-of-service'
27+
PRIVACY_POLICY_URL='http://localhost:18000/privacy-policy'
28+
FACEBOOK_URL='https://www.facebook.com'
29+
TWITTER_URL='https://twitter.com'
30+
YOU_TUBE_URL='https://www.youtube.com'
31+
LINKED_IN_URL='https://www.linkedin.com'
32+
REDDIT_URL='https://www.reddit.com'
33+
APPLE_APP_STORE_URL='https://www.apple.com/ios/app-store/'
34+
GOOGLE_PLAY_URL='https://play.google.com/store'
35+
ENTERPRISE_MARKETING_URL='http://example.com'
36+
ENTERPRISE_MARKETING_UTM_SOURCE='example.com'
37+
ENTERPRISE_MARKETING_UTM_CAMPAIGN='example.com Referral'
38+
ENTERPRISE_MARKETING_FOOTER_UTM_MEDIUM='Footer'

.eslintignore

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

.eslintrc.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const { createConfig } = require('@edx/frontend-build');
2+
3+
const config = createConfig('eslint', {
4+
rules: {
5+
'import/no-named-as-default': 'off',
6+
'import/no-named-as-default-member': 'off',
7+
'import/no-self-import': 'off',
8+
'spaced-comment': ['error', 'always', { 'block': { 'exceptions': ['*'] } }],
9+
},
10+
});
11+
12+
config.settings = {
13+
"import/resolver": {
14+
node: {
15+
paths: ["src", "node_modules"],
16+
extensions: [".js", ".jsx"],
17+
},
18+
},
19+
};
20+
21+
module.exports = config;

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
.eslintcache
3+
node_modules
4+
npm-debug.log
5+
coverage
6+
7+
dist/
8+
9+
### pyenv ###
10+
.python-version
11+
12+
### Emacs ###
13+
*~
14+
*.swo
15+
*.swp
16+
17+
### Development environments ###
18+
.idea
19+
.vscode
20+
21+
### transifex ###
22+
src/i18n/transifex_input.json
23+
temp

.npmignore

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

.releaserc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"branch": "master",
3+
"tagFormat": "v${version}",
4+
"verifyConditions": [
5+
"@semantic-release/npm",
6+
{
7+
"path": "@semantic-release/github",
8+
"assets": {
9+
"path": "dist/*"
10+
}
11+
}
12+
],
13+
"analyzeCommits": "@semantic-release/commit-analyzer",
14+
"generateNotes": "@semantic-release/release-notes-generator",
15+
"prepare": "@semantic-release/npm",
16+
"publish": [
17+
"@semantic-release/npm",
18+
{
19+
"path": "@semantic-release/github",
20+
"assets": {
21+
"path": "dist/*"
22+
}
23+
}
24+
],
25+
"success": [],
26+
"fail": []
27+
}

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: node_js
2+
node_js: 12
3+
notifications:
4+
email:
5+
recipients:
6+
- masters-grades@edx.org
7+
on_success: never
8+
on_failure: always
9+
webhooks: https://www.travisbuddy.com/
10+
on_success: never
11+
before_install:
12+
- npm install -g greenkeeper-lockfile@1.14.0
13+
install:
14+
- npm ci
15+
before_script: greenkeeper-lockfile-update
16+
after_script: greenkeeper-lockfile-upload
17+
script:
18+
- make validate-no-uncommitted-package-lock-changes
19+
- npm run lint
20+
- npm run test
21+
- npm run build
22+
after_success:
23+
- npm run travis-deploy-once "npm run semantic-release"
24+
- npm run coveralls
25+
env:
26+
global:
27+
- secure: bBLQZVw1aVUxB7GFNXGrdKeztyFrCCJusVgFcSuej9S4qmj9/jrVsEc9dEcH+BMS+b49+SvILoxzd6ZYLaRygQLzevnO1/dX596DeCKVK48PTTZRsNyafaSMCkxNKqEmRcA9hYL52xJJ5GpKo7ViWsFy8VFgUfZEJxQi8/lYbfQ1vlXRpo2LJfJh09v85roSXdQmajyGJ1Dz6elcwUX5B+BgXmIH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