Skip to content

Commit

Permalink
Merge branch 'main' of github.com:uc-cdis/commons-frontend-app into u…
Browse files Browse the repository at this point in the history
…c-cdis-main
  • Loading branch information
Shawn O'Connor committed Dec 10, 2024
2 parents 78904d3 + 496e95e commit 8812a2f
Show file tree
Hide file tree
Showing 80 changed files with 3,683 additions and 2,962 deletions.
2 changes: 0 additions & 2 deletions .env.production

This file was deleted.

2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.css
node_modules
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = {
},
plugins: ['jsx-a11y', 'react', 'react-hooks', '@typescript-eslint'],
rules: {
'@typescript-eslint/no-explicit-any':['warn'],
'no-underscore-dangle': 'off',
'import/prefer-default-export': 'off',
'linebreak-style': ['error', 'unix'],
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
v20.17.0
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& npm install -g [email protected]

RUN addgroup --system --gid 1001 nextjs && adduser --system --uid 1001 nextjs
COPY ./package.json ./package-lock.json ./
COPY ./package-lock.json ./
COPY ./package.json ./package-lock.json ./next.config.js ./tsconfig.json ./.env.development ./tailwind.config.js ./postcss.config.js ./
COPY ./src ./src
COPY ./public ./public
COPY ./config ./config
COPY ./next.config.js ./
COPY ./tsconfig.json ./
COPY ./.env.development ./
COPY ./.env.production ./
COPY ./tailwind.config.js ./
COPY ./postcss.config.js ./
RUN npm ci
RUN npm install \
"@swc/core" \
Expand Down
9 changes: 9 additions & 0 deletions config/gen3/alternate_colors/dark.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"primary": "#009688",
"secondary": "#465451",
"accent": "#cba12c",
"base": "#111111",
"accentWarm": "#892115",
"accentCool": "#255990",
"chart": "#0d95A1"
}
11 changes: 11 additions & 0 deletions config/gen3/alternate_colors/pallet2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


{
"primary": "#edae49",
"secondary": "#772b38",
"accent": "#00798c",
"base": "#7a7a7a",
"accentWarm": "#30638e",
"accentCool": "#003d5b",
"chart": "#0d95A1"
}
9 changes: 9 additions & 0 deletions config/gen3/alternate_colors/urban.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"primary": "#2C2C54",
"secondary": "#AAABB8",
"accent": "#474787",
"base": "#ECECEC",
"accentWarm": "#892115",
"accentCool": "#255990",
"chart": "#0d95A1"
}
33 changes: 33 additions & 0 deletions config/gen3/apps/CohortDiscovery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "CohortDiscovery",
"dataIndexes": [
{
"dataConfig": {
"dataType": "subject",
"nodeCountTitle": "Cases"
},
"tabTitle": "Cases",
"tabs": [
{
"title": "Demographic",
"fields": [
"gender",
"race",
"ethnicity",
"vital_status"
]
},
{
"title": "Study",
"fields": [
"gender",
"race",
"ethnicity",
"vital_status",
"project"
]
}
]
}
]
}
53 changes: 53 additions & 0 deletions config/gen3/apps/CohortDiversity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"datasets": {
"ground": {
"dataset": "census",
"label": "Census"
},
"comparison": [
{
"dataset": "MIDRC",
"label": "MIDRC Data Commons"
}
]
},
"fields": [
"age_at_index",
"sex",
"race",
"ethnicity"
],
"fieldsConfig": {
"Age_at_Index": {
"title": "Age at Index"
}
},
"charts": {
"age_at_index": {
"chartType": "bar"
},
"sex": {
"chartType": "bar"
},
"race": {
"chartType": "bar"
},
"ethnicity": {
"chartType": "bar"
}
},
"comparisonCharts": {
"age_at_index": {
"chartType": "radarComparison"
},
"sex": {
"chartType": "barComparison"
},
"race": {
"chartType": "barComparison"
},
"ethnicity": {
"chartType": "barComparison"
}
}
}
15 changes: 7 additions & 8 deletions config/gen3/colors.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"primary": "#3283C8",
"secondary": "#3283C8",
"accent": "#b75113",
"base": "#c0c0c0",
"accentWarm": "#25869b",
"accentCool": "#1f839b",
"chart": "#0d95A1",
"table": "#c0c0c0"
"primary": "#2C2C54",
"secondary": "#AAABB8",
"accent": "#474787",
"base": "#ECECEC",
"accentWarm": "#892115",
"accentCool": "#255990",
"chart": "#0d95A1"
}
Loading

0 comments on commit 8812a2f

Please sign in to comment.