Skip to content

Commit

Permalink
Release 4.0.0 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkh authored Aug 14, 2023
2 parents 43123c0 + e47fe9b commit 94e009c
Show file tree
Hide file tree
Showing 33 changed files with 889 additions and 644 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: build

on: [push, workflow_dispatch]

permissions:
contents: write
id-token: write

jobs:
build:
uses: datavisyn/github-workflows/.github/workflows/build-node.yml@main
Expand Down
20 changes: 12 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "coral_public",
"description": "Coral is a web-based cohort analysis tool to interactively create, refine, and analyze patient cohorts.",
"homepage": "https://caleydo.org",
"version": "3.2.0",
"version": "4.0.0",
"author": {
"name": "PatrickAdelberger",
"email": "[email protected]",
Expand Down Expand Up @@ -31,7 +31,7 @@
"dist": "mkdir lib && cd dist && tar cvzf ../lib/bundle.tar.gz *",
"docs": "visyn_scripts docs",
"lint:fix": "visyn_scripts lint --fix",
"lint": "visyn_scripts lint || true",
"lint": "visyn_scripts lint",
"prepack": "yarn run build",
"start": "visyn_scripts start --env workspace_mode=single",
"storybook:build": "NODE_OPTIONS=--max_old_space_size=4096 build-storybook",
Expand All @@ -52,17 +52,21 @@
"node": ">=16"
},
"dependencies": {
"canvas-confetti": "^1.4.0",
"coral": "git+ssh://[email protected]/Caleydo/coral#semver:^4.1.0",
"ordino": "git+ssh://[email protected]/Caleydo/ordino#semver:^13.0.1",
"canvas-confetti": "^1.5.1",
"coral": "git+ssh://[email protected]:Caleydo/coral#semver:^5.0.0",
"ordino": "git+ssh://[email protected]:Caleydo/ordino#semver:^14.0.0",
"react": "^16.13.0",
"react-dom": "^16.13.0",
"react-router-dom": "^5.2.0",
"visyn_scripts": "^1.1.1"
"visyn_scripts": "^4.1.0"
},
"resolutions": {
"@types/react": "~18.2.0",
"@types/react-dom": "~18.2.0",
"react": "~18.2.0",
"react-dom": "~18.2.0"
},
"devDependencies": {
"@types/react": "^16.14.6",
"@types/react-dom": "^16.9.5",
"@types/react-router-dom": "^5.1.7",
"mkdirp": "0.5.1",
"tslint": "~5.20.1",
Expand Down
4 changes: 2 additions & 2 deletions src/LoginDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export function create(_loginMenu: HTMLElement, loginDialog: HTMLElement) {

if (localStorageValue !== null) {
// check the checkbox if it was checked before
checkboxAcceptGenieTerms.checked = (localStorageValue === 'true');
checkboxAcceptGenieTerms.checked = localStorageValue === 'true';
}

checkboxAcceptGenieTerms.addEventListener('change', function() {
checkboxAcceptGenieTerms.addEventListener('change', function listener() {
localStorage.setItem(LOCALSTORAGE_ACCEPT_GENIE_TERMS, String(this.checked));
});
}
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 0 additions & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
// export * from './data';
// export * from './Overview';
// export * from './Taskview';

// export * from './app';
// export * from './Cohort';
// export * from './CohortInterfaces';
// export * from './CohortRepresentations';
// export * from './cohortview';
// export * from './LoginDialog';
// export * from './rest';
4 changes: 2 additions & 2 deletions src/initialize.app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* Created by Caleydo Team on 31.08.2016.
*/

import { App } from 'coral';
import { Coral } from 'coral';
import loginDialog from './LoginDialog.html';

const APP_NAME = 'Coral';

document.title = APP_NAME;
const tdpApp = new App(APP_NAME, loginDialog); // assign to variable to avoid linting errors
const tdpApp = new Coral(APP_NAME, loginDialog); // assign to variable to avoid linting errors

Check warning on line 11 in src/initialize.app.ts

View workflow job for this annotation

GitHub Actions / build / build-node

'tdpApp' is assigned a value but never used

Check warning on line 11 in src/initialize.app.ts

View workflow job for this annotation

GitHub Actions / build / build-node

'tdpApp' is assigned a value but never used
9 changes: 4 additions & 5 deletions src/initialize.welcome.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'ordino/dist/robots.txt';

import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { HashRouter, Route, Switch } from 'react-router-dom';
import { createRoot } from 'react-dom/client';
import { HashRouter, Switch, Route } from 'react-router-dom';
import { RouterScrollToTop } from 'coral';
import { DatasetsPage, Error404Page, FeaturesPage, HelpPage, HomePage, NewsPage, PublicationPage } from './pages';
import { RouterScrollToTop } from './utils/RouterScrollToTop';

ReactDOM.render(
createRoot(document.querySelector('#welcome')).render(
<HashRouter>
<RouterScrollToTop />
{/* A <Switch> looks through its children <Route>s and
Expand Down Expand Up @@ -45,5 +45,4 @@ ReactDOM.render(
</Route>
</Switch>
</HashRouter>,
document.querySelector('#welcome'),
);
24 changes: 12 additions & 12 deletions src/menu/HelpTab.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import {OrdinoFooter} from 'ordino';
import { OrdinoFooter } from 'ordino';
import * as React from 'react';
import {BrowserRouter} from 'react-router-dom';
import {DevelopedByAffiliations} from '../pages/components/DevelopedByAffiliations';
import {CoralHelpSection} from '../pages/components/CoralHelpSection';
import { BrowserRouter } from 'react-router-dom';
import { DevelopedByAffiliations } from '../pages/components/DevelopedByAffiliations';
import { CoralHelpSection } from '../pages/components/CoralHelpSection';

export default function HelpTab() {
return <>
<BrowserRouter basename="/#">
<CoralHelpSection openInNewWindow>
<DevelopedByAffiliations></DevelopedByAffiliations>
<OrdinoFooter openInNewWindow></OrdinoFooter>
</CoralHelpSection>
</BrowserRouter>
</>;
return (
<BrowserRouter basename="/#">
<CoralHelpSection openInNewWindow>
<DevelopedByAffiliations />
<OrdinoFooter openInNewWindow />
</CoralHelpSection>
</BrowserRouter>
);
}
1 change: 0 additions & 1 deletion src/menu/index.ts

This file was deleted.

44 changes: 28 additions & 16 deletions src/pages/DatasetsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import {HeaderNavigation, OrdinoFooter} from 'ordino';
import { HeaderNavigation, OrdinoFooter } from 'ordino';
import * as React from 'react';

interface IDatasetPageCardProps {
title: string;
children?: React.ReactNode;
}


export function DatasetPageCard({title, children}: IDatasetPageCardProps) {
export function DatasetPageCard({ title, children }: IDatasetPageCardProps) {
return (
<div className="card shadow-sm h-100">
<div className="card-body">
Expand All @@ -18,30 +17,35 @@ export function DatasetPageCard({title, children}: IDatasetPageCardProps) {
);
}


export function DatasetsPage() {
return (
<>
<HeaderNavigation bg="none"></HeaderNavigation>
<HeaderNavigation bg="none" />
<div className="position-relative pt-6">
<div className="ordino-container">
<div className="dataset-page py-6 container">
<div className="row">
<div className="col">
<h4 className="text-start d-flex align-items-center mt-2 mb-3"><i className="me-2 ordino-icon-1 fas fa-chevron-circle-right" ></i> Basic Datasets</h4>
<h4 className="text-start d-flex align-items-center mt-2 mb-3">
<i className="me-2 ordino-icon-1 fas fa-chevron-circle-right" /> Basic Datasets
</h4>
</div>
</div>
<div className="row row-cols-md-2 row-cols-1">
<div className="col">
<DatasetPageCard title="AACR Project GENIE | American Association for Cancer Research (AACR)">
<p className="card-text">Sample annotation and mutation data</p>
<a className="card-link" href="https://www.aacr.org/professionals/research/aacr-project-genie/" target="_blank" rel="noopener">www.aacr.org/professionals/research/aacr-project-genie</a>
<a className="card-link" href="https://www.aacr.org/professionals/research/aacr-project-genie/" target="_blank" rel="noopener noreferrer">
www.aacr.org/professionals/research/aacr-project-genie
</a>
</DatasetPageCard>
</div>
<div className="col">
<DatasetPageCard title="The Cancer Genome Atlas (TCGA)">
<p className="card-text">Sample annotation, gene expression, mutation, and copy number data </p>
<a className="card-link" href="https://cancergenome.nih.gov" target="_blank" rel="noopener">cancergenome.nih.gov</a>
<a className="card-link" href="https://cancergenome.nih.gov" target="_blank" rel="noopener noreferrer">
cancergenome.nih.gov
</a>
</DatasetPageCard>
</div>
</div>
Expand All @@ -50,35 +54,43 @@ export function DatasetsPage() {
<div className="col">
<DatasetPageCard title="Cancer Cell Line Encyclopedia (CCLE)">
<p className="card-text">Sample annotation, gene expression, mutation, and copy number data</p>
<a className="card-link" href="https://portals.broadinstitute.org/ccle" target="_blank" rel="noopener">portals.broadinstitute.org/ccle</a>
<a className="card-link" href="https://portals.broadinstitute.org/ccle" target="_blank" rel="noopener noreferrer">
portals.broadinstitute.org/ccle
</a>
</DatasetPageCard>
</div>
</div>
<div className="row mt-4">
<div className="col">
<h4 className="text-start d-flex align-items-center mt-2 mb-3"><i className="me-2 fas ordino-icon-1 fa-chevron-circle-right" ></i> Depletion Sceen Data</h4>
<h4 className="text-start d-flex align-items-center mt-2 mb-3">
<i className="me-2 fas ordino-icon-1 fa-chevron-circle-right" /> Depletion Sceen Data
</h4>
</div>
</div>

<div className="row row-cols-md-2 row-cols-1">
<div className="col">
<DatasetPageCard title="Project DRIVE">
<p className="card-text">RNAi depletion screen data (RSA and ATARiS)</p>
<a className="card-link" href="https://doi.org/10.1016/j.cell.2017.07.005" target="_blank" rel="noopener"> McDonald III, E. R. et. al.
Project DRIVE: A Compendium of Cancer Dependencies and Synthetic Lethal Relationships Uncovered by Large-Scale, Deep RNAi Screening.
Cell 170, Pages 577-592.e10 (2017).</a>
<a className="card-link" href="https://doi.org/10.1016/j.cell.2017.07.005" target="_blank" rel="noopener noreferrer">
{' '}
McDonald III, E. R. et. al. Project DRIVE: A Compendium of Cancer Dependencies and Synthetic Lethal Relationships Uncovered by Large-Scale,
Deep RNAi Screening. Cell 170, Pages 577-592.e10 (2017).
</a>
</DatasetPageCard>
</div>
<div className="col">
<DatasetPageCard title="Avana CERES">
<p className="card-text">CRISPR-Cas9 depletion screen data</p>
<a className="card-link" href="https://doi.org/10.1038/ng.3984" target="_blank" rel="noopener">Meyers, R. M. et. al. Computational correction of copy
number effect improves specificity of CRISPR–Cas9 essentiality screens in cancer cells. Nature Genetics 49, 1779–1784 (2017).</a>
<a className="card-link" href="https://doi.org/10.1038/ng.3984" target="_blank" rel="noopener noreferrer">
Meyers, R. M. et. al. Computational correction of copy number effect improves specificity of CRISPR–Cas9 essentiality screens in cancer
cells. Nature Genetics 49, 1779–1784 (2017).
</a>
</DatasetPageCard>
</div>
</div>
</div>
<OrdinoFooter></OrdinoFooter>
<OrdinoFooter />
</div>
</div>
</>
Expand Down
10 changes: 6 additions & 4 deletions src/pages/Error404Page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import * as React from 'react';
import {HeaderNavigation, OrdinoFooter} from 'ordino';
import { HeaderNavigation, OrdinoFooter } from 'ordino';

export function Error404Page() {
return (
<>
<HeaderNavigation bg="none"></HeaderNavigation>
<HeaderNavigation bg="none" />
<div className="container">
<div className="row">
<div className="col"><h2>Page Not Found</h2></div>
<div className="col">
<h2>Page Not Found</h2>
</div>
</div>
</div>
<OrdinoFooter></OrdinoFooter>
<OrdinoFooter />
</>
);
}
Loading

0 comments on commit 94e009c

Please sign in to comment.