Skip to content

Commit

Permalink
Commit CTDC FE Code
Browse files Browse the repository at this point in the history
  • Loading branch information
skiran86 committed May 5, 2020
1 parent 4302cfa commit a4350b8
Show file tree
Hide file tree
Showing 167 changed files with 20,491 additions and 5,844 deletions.
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
REACT_APP_BACKEND_GETUSERINFO_API=https://k9dc.essential-dev.com/fence/login/
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
REACT_APP_USER_LOGOUT_URL=https://k9dc.essential-dev.com/fence/logout
REACT_APP_BACKEND_API=https://trialcommons-dev.cancer.gov/v1/graphql/
REACT_APP_APPLICATION_VERSION=YYYY_MM_DD/HH:MM
REACT_APP_ABOUT_CONTENT_URL= https://raw.githubusercontent.com/CBIIT/ctdc-codebase/master/src/main/frontend/src/content/dev/aboutPagesContent.yaml
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/serviceWorker.js
src/index.js
35 changes: 35 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'airbnb',
],
parser: 'babel-eslint',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
modules: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'react',
],
rules: {
"react/no-unescaped-entities": "off", // To escape the html entotoes in static text
"react/prop-types": "off", //Will add this back
"react/jsx-filename-extension": "off",
"react/no-array-index-key":"off", // This is for passing the array index in .map need to remove this soon
"no-nested-ternary":"off",
"jsx-a11y/no-static-element-interactions":"off",
"jsx-a11y/click-events-have-key-events":"off",
"react/jsx-props-no-spreading":"off",
},
};
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/dist

# vscode
/.vscode

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
2 changes: 2 additions & 0 deletions config/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function getClientEnvironment(publicUrl) {
.filter(key => REACT_APP.test(key))
.reduce(
(env, key) => {
// eslint-disable-next-line
env[key] = process.env[key];
return env;
},
Expand All @@ -82,6 +83,7 @@ function getClientEnvironment(publicUrl) {
// Stringify all values so we can feed into Webpack DefinePlugin
const stringified = {
'process.env': Object.keys(raw).reduce((env, key) => {
// eslint-disable-next-line
env[key] = JSON.stringify(raw[key]);
return env;
}, {}),
Expand Down
164 changes: 96 additions & 68 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a4350b8

Please sign in to comment.