Skip to content

Commit a4350b8

Browse files
committed
Commit CTDC FE Code
1 parent 4302cfa commit a4350b8

File tree

167 files changed

+20491
-5844
lines changed

Some content is hidden

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

167 files changed

+20491
-5844
lines changed

.env

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
REACT_APP_BACKEND_GETUSERINFO_API=https://k9dc.essential-dev.com/fence/login/
2+
REACT_APP_LOGIN_URL=https://nci-crdc-staging.datacommons.io/user/oauth2/authorize?client_id=82pslYFJqA7auRvKYfTOK67jzQAMb8f6C33tlmZz&response_type=code&redirect_uri=https%3A%2F%2Fk9dc.essential-dev.com%2F&scope=openid%20user
3+
REACT_APP_USER_LOGOUT_URL=https://k9dc.essential-dev.com/fence/logout
4+
REACT_APP_BACKEND_API=https://trialcommons-dev.cancer.gov/v1/graphql/
5+
REACT_APP_APPLICATION_VERSION=YYYY_MM_DD/HH:MM
6+
REACT_APP_ABOUT_CONTENT_URL= https://raw.githubusercontent.com/CBIIT/ctdc-codebase/master/src/main/frontend/src/content/dev/aboutPagesContent.yaml

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
src/serviceWorker.js
2+
src/index.js

.eslintrc.js

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
},
6+
extends: [
7+
'airbnb',
8+
],
9+
parser: 'babel-eslint',
10+
globals: {
11+
Atomics: 'readonly',
12+
SharedArrayBuffer: 'readonly',
13+
},
14+
parserOptions: {
15+
ecmaFeatures: {
16+
jsx: true,
17+
modules: true,
18+
},
19+
ecmaVersion: 2018,
20+
sourceType: 'module',
21+
},
22+
plugins: [
23+
'react',
24+
],
25+
rules: {
26+
"react/no-unescaped-entities": "off", // To escape the html entotoes in static text
27+
"react/prop-types": "off", //Will add this back
28+
"react/jsx-filename-extension": "off",
29+
"react/no-array-index-key":"off", // This is for passing the array index in .map need to remove this soon
30+
"no-nested-ternary":"off",
31+
"jsx-a11y/no-static-element-interactions":"off",
32+
"jsx-a11y/click-events-have-key-events":"off",
33+
"react/jsx-props-no-spreading":"off",
34+
},
35+
};

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/dist
13+
14+
# vscode
15+
/.vscode
16+
17+
# misc
18+
.DS_Store
19+
.env.local
20+
.env.development.local
21+
.env.test.local
22+
.env.production.local
23+
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*

config/env.js

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function getClientEnvironment(publicUrl) {
6565
.filter(key => REACT_APP.test(key))
6666
.reduce(
6767
(env, key) => {
68+
// eslint-disable-next-line
6869
env[key] = process.env[key];
6970
return env;
7071
},
@@ -82,6 +83,7 @@ function getClientEnvironment(publicUrl) {
8283
// Stringify all values so we can feed into Webpack DefinePlugin
8384
const stringified = {
8485
'process.env': Object.keys(raw).reduce((env, key) => {
86+
// eslint-disable-next-line
8587
env[key] = JSON.stringify(raw[key]);
8688
return env;
8789
}, {}),

package-lock.json

+96-68
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)