Skip to content

Commit 9e57aec

Browse files
dvmoritzschoeflthinkholtionchamparipuehringerdvvanessastoiber
authored
React 18 Migration (#58)
* Remove `|| true` to show eslint errors #693 * Run `lint:fix` to automatically fix formatting #693 * Add missing component `RouterScrollToTop` * Refactor src/app.ts into separate files src/app/* Caleydo/cohort#693 * Rename app/Cohort to app/Coral * Move colors to config/colors Caleydo/cohort#693 * Move rest to base/rest Caleydo/cohort#693 * Move ScrollLinker from util file to utils/ScrollLinker Caleydo/cohort#693 * Remove unused color schemes Caleydo/cohort#693 * Extract CohortColorSchema from util to separate file Caleydo/cohort#693 * Merge CohortColorSchema with config/colors Caleydo/cohort#693 * Move utilCustomEvents to base/events Caleydo/cohort#693 * Move utilIdTypes to config/entities Caleydo/cohort#693 * Move utilLabels to utils/labels Caleydo/cohort#693 * Merge Tooltip into AColumn and remove export Caleydo/cohort#693 * Rename event to event2 for nested event Caleydo/cohort#693 * Merge CohortInterfaces into app/interfaces Caleydo/cohort#693 * Use `ICohort` instead `Cohort` Caleydo/cohort#693 - Replace `Cohort` with `ICohort` were possible - Add interfaces `IInputCohort` and `IOutputCohort` - Move classes `InputCohort` and `OutputCohort` to Cohort.ts - Move public functions and properties from `Cohort` to interface `ICohort` - Move interfaces and enums from `Cohort` to app/interfacoes - Replace `Array<...>` with `...[]` syntax * Reorder functions in utlis/labels Caleydo/cohort#693 * Eslint and typescript errors (#56) * Upgrade python deps (#51) * Upgrade python deps * Switch back to #develop * Release 4.1.0 (#54) * prepare next dev version * Fix colors assignment in plots (#41) * Prepare github changes * Remove circleci * prepare next dev version * Use `Font Awesome 6 Free` in `font-family` (#39) * Use `Font Awesome 6 Free` in `font-family` Requires datavisyn/tdp_core#732 * Update Lineup to 4.6.2 Co-authored-by: Klaus Eckelt <[email protected]> * Update fontawesome * Merge visyn_scripts * prepare next dev version * Merged `d3_changes` into `develop` (#45) * use d3v7 and d3v3 imports remove depenencies to d3 add dependency to tdp_core * remove console log * Dev d3 merge fix (#47) * move RouterScrollToTop to coral_public * fix TS errors * move canvas-confetti to coral_public * update git dependencies Co-authored-by: Klaus Eckelt <[email protected]> * Automatically select root cohort if onboarding was already done (#48) * Autoselect rootcohort if onboarding was done #579 * format code * Remove grid lines from visualizations (#49) remove gridlines #400 * Upgrade python deps (#51) * Upgrade python deps * Switch back to #develop * prepare release 4.1.0 --------- Co-authored-by: Klaus Eckelt <[email protected]> Co-authored-by: anita-steiner <> Co-authored-by: Holger Stitz <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: Michael Pühringer <[email protected]> * prepare next dev version * Migration to visyn_core (#55) * Migration to visyn_core * Linting * Upgrade deps --------- Co-authored-by: Michael Puehringer <[email protected]> * Fix cohort * Fix circular dependencies * Further cleanup * Fix async in loop * Import * Add todos for async inside loop errors --------- Co-authored-by: Michael Pühringer <[email protected]> Co-authored-by: Vanessa Stoiber <[email protected]> Co-authored-by: Klaus Eckelt <[email protected]> Co-authored-by: Holger Stitz <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: dvvanessastoiber <[email protected]> Co-authored-by: Michael Puehringer <[email protected]> * bug: merge data subtype object * React 18 Migration * Fix typings * Fix client config typings * Pin ordino, tourdino * Add initial value to cohorts array * Cleanup * tsconfig * Update package.json --------- Co-authored-by: Holger Stitz <[email protected]> Co-authored-by: Champari Oltion <[email protected]> Co-authored-by: Michael Pühringer <[email protected]> Co-authored-by: Vanessa Stoiber <[email protected]> Co-authored-by: Klaus Eckelt <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: dvvanessastoiber <[email protected]> Co-authored-by: Michael Puehringer <[email protected]> Co-authored-by: oltionchampari <[email protected]> Co-authored-by: Moritz Heckmann <[email protected]>
1 parent c65c9cb commit 9e57aec

16 files changed

+30
-32
lines changed

package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,16 @@
8686
"devDependencies": {
8787
"@types/d3-selection": "^3.0.2",
8888
"@types/d3-transition": "^3.0.1",
89-
"@types/react": "^16.14.6",
90-
"@types/react-dom": "^16.9.5",
91-
"@types/react-router-dom": "^5.1.7",
9289
"mkdirp": "0.5.1",
9390
"tslint": "~5.20.1",
9491
"worker-loader": "^2.0.0"
9592
},
93+
"resolutions": {
94+
"@types/react": "~18.2.0",
95+
"@types/react-dom": "~18.2.0",
96+
"react": "~18.2.0",
97+
"react-dom": "~18.2.0"
98+
},
9699
"browser": {
97100
"fs": false,
98101
"os": false,

src/Cohort.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-use-before-define */
2-
import { IDType, IDTypeLike, IDTypeManager, IRow, IServerColumn } from 'visyn_core';
2+
import { IDType, IDTypeLike, IDTypeManager } from 'visyn_core/idtype';
3+
import { IRow, IServerColumn } from 'visyn_core/base';
34
import { IAllFilters, UniqueIdManager } from 'tdp_core';
45
import {
56
ECloneFilterTypes,

src/Tasks.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IServerColumn } from 'visyn_core';
1+
import type { IServerColumn } from 'visyn_core/base';
22
import { log } from './util';
33
import { EElementProvType, IElement, IElementProvJSON, IElementProvJSONTask, ITask, ITaskRep, TaskType } from './app/interfaces';
44
import { GeneScoreAttribute, PanelScoreAttribute, ServerColumnAttribute, SpecialAttribute } from './data/Attribute';

src/Taskview/SearchBar.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { select } from 'd3v7';
2-
import { IServerColumn } from 'visyn_core';
2+
import { IServerColumn } from 'visyn_core/base';
33
import { IdTextPair, RestBaseUtils } from 'tdp_core';
44
import { dataTypes, depletion, IDataSubtypeConfig, IDataTypeConfig } from 'tdp_publicdb';
55
import { colors } from '../config/colors';

src/Taskview/Taskview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ abstract class TaskviewTable {
147147
class TaskviewInput extends TaskviewTable {
148148
cohortOrder: number[];
149149

150-
cohorts: IInputCohort[];
150+
cohorts: IInputCohort[] = [];
151151

152152
usedColorsForCohorts = CoralColorSchema.COLOR_SCHEME.map((elem) => {
153153
return { color: elem, cohorts: [] };

src/app/Coral.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { select } from 'd3v7';
2-
import { ATDPApplication, CLUEGraphManager, IClientConfig, ITDPOptions, ProvenanceGraph } from 'tdp_core';
2+
import { ATDPApplication, CLUEGraphManager, ITDPOptions, ProvenanceGraph } from 'tdp_core';
3+
import { IClientConfig } from 'visyn_core/base';
34
import { CoralApp, ICoralClientConfig } from './CoralApp';
45
import { log } from '../util';
56

src/app/CoralApp.ts

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
import { select, Selection } from 'd3v7';
22
import SplitGrid from 'split-grid';
3-
import { IServerColumn } from 'visyn_core';
4-
import {
5-
AppContext,
6-
CLUEGraphManager,
7-
IDatabaseViewDesc,
8-
IObjectRef,
9-
ITDPOptions,
10-
NotificationHandler,
11-
ObjectRefUtils,
12-
ProvenanceGraph,
13-
RestBaseUtils,
14-
} from 'tdp_core';
3+
import { IServerColumn, AppContext } from 'visyn_core/base';
4+
import { CLUEGraphManager, IDatabaseViewDesc, IObjectRef, ITDPOptions, NotificationHandler, ObjectRefUtils, ProvenanceGraph, RestBaseUtils } from 'tdp_core';
155
import { cellline, tissue } from 'tdp_publicdb';
166
import { Instance as TippyInstance } from 'tippy.js';
177
import { createCohort, createCohortFromDB } from '../Cohort';

src/app/interfaces.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { IDType, IDTypeLike, IRow, IServerColumn } from 'visyn_core';
1+
import { IDType, IDTypeLike } from 'visyn_core/idtype';
2+
import { IServerColumn, IRow } from 'visyn_core/base';
23
import { IAllFilters } from 'tdp_core';
34
import type { IEntitySourceConfig } from '../config/entities';
45
import {

src/base/rest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Ajax, AppContext, IRow } from 'visyn_core';
1+
import { Ajax, AppContext, IRow } from 'visyn_core/base';
22
import { IParams } from 'tdp_core';
33
import { deepCopy, log } from '../util';
44
import {

src/common/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import { Categories } from 'tdp_publicdb';
6-
import { IServerColumn } from 'visyn_core';
6+
import { IServerColumn } from 'visyn_core/base';
77
import { ColumnDescUtils, IAdditionalColumnDesc } from 'tdp_core';
88

99
/**

src/common/forms.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import { SpeciesUtils, FormSubtype } from 'tdp_publicdb';
6-
import { IServerColumn } from 'visyn_core';
6+
import { IServerColumn } from 'visyn_core/base';
77
import { FormElementType, IFormElement, IFormSelectOption, ValueCache, RestStorageUtils, LineupUtils, RestBaseUtils } from 'tdp_core';
88
import { gene, IDataSourceConfig, tissue, cellline, dataSources, dataTypes, dataSubtypes, depletion, drugScreen } from './config';
99
import { GeneUtils } from './GeneUtils';

src/data/Attribute.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { IAllFilters } from 'tdp_core';
2-
import { IDataTypeConfig, IDataSubtypeConfig, resolveDataTypes } from 'tdp_publicdb';
3-
import { IServerColumn } from 'visyn_core';
2+
import { IServerColumn } from 'visyn_core/base';
3+
import { IDataSubtypeConfig, IDataTypeConfig, resolveDataTypes } from 'tdp_publicdb';
44
import { ICohort } from '../app/interfaces';
55
import {
66
HistRouteType,

src/data/IAttribute.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { IAllFilters, IServerColumn } from 'tdp_core';
1+
import { IAllFilters } from 'tdp_core';
2+
import { IServerColumn } from 'visyn_core/base';
23
import { IDataSubtypeConfig } from 'tdp_publicdb';
34
import { ICohort } from '../app/interfaces';
45
import { INumRange, IEqualsList, HistRouteType } from '../base/interfaces';

src/phovea.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) The Caleydo Team. All rights reserved.
44
* Licensed under the new BSD license, available at http://caleydo.org/license
55
**************************************************************************** */
6-
import type { IRegistry } from 'visyn_core';
6+
import type { IRegistry } from 'visyn_core/plugin';
77

88
export default function (registry: IRegistry) {
99
// helper functions copied from tdp_core:
@@ -25,7 +25,7 @@ export default function (registry: IRegistry) {
2525
/**
2626
* Set the base data-set
2727
*/
28-
actionFunction('chtSetDataset', 'setDatasetImpl', () => import('./Provenance/General.js'), {
28+
actionFunction('chtSetDataset', 'setDatasetImpl', () => import('./Provenance/General'), {
2929
// setDatasetImpl = function that acutally sets the dataset
3030
analytics: {
3131
category: 'data', // this one is a data operation (other options are visual, selections, layout, and analysis)
@@ -39,7 +39,7 @@ export default function (registry: IRegistry) {
3939
/**
4040
* Add Cohorts
4141
*/
42-
actionFunction('addCohorts', 'addOverviewCohortImpl', () => import('./Provenance/CohortEV.js').then(), {
42+
actionFunction('addCohorts', 'addOverviewCohortImpl', () => import('./Provenance/CohortEV').then(), {
4343
//
4444
analytics: {
4545
category: 'data', // this one is a data operation (other options are visual, selections, layout, and analysis)
@@ -50,7 +50,7 @@ export default function (registry: IRegistry) {
5050
/**
5151
* Remove Cohorts
5252
*/
53-
actionFunction('removeCohorts', 'removeOverviewCohortImpl', () => import('./Provenance/CohortEV.js').then(), {
53+
actionFunction('removeCohorts', 'removeOverviewCohortImpl', () => import('./Provenance/CohortEV').then(), {
5454
//
5555
analytics: {
5656
category: 'data', // this one is a data operation (other options are visual, selections, layout, and analysis)

src/phovea_registry.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Licensed under the new BSD license, available at http://caleydo.org/license
55
**************************************************************************** */
66

7-
import { PluginRegistry } from 'visyn_core';
7+
import { PluginRegistry } from 'visyn_core/plugin';
88
import reg from './phovea';
99

1010
/**

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "visyn_scripts/config/tsconfig.template.json",
33
"compilerOptions": {
44
"outDir": "./dist",
5+
"sourceMap": false,
56
},
67
"include": [
78
"src/**/*.ts",

0 commit comments

Comments
 (0)