Skip to content

Commit

Permalink
Merge branch 'module-management' into unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
msalihaltun committed Feb 15, 2021
2 parents 16e6b34 + 9a73866 commit da3c7fd
Show file tree
Hide file tree
Showing 144 changed files with 1,628 additions and 19,733 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
.DS_Store
yarn-error.log
build
*.iml
*.iml
packages/pathway-mapper-standalone/dist
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ After alignment:

### Editing and Reconnecting Interactions

Interactions may be routed through additional bend points. To introduce a new bendpoint, first select the interaction by clicking on it, and then click and drag at a location where you'd like to introduce a bendpoint. Bendpoints may be moved by clicking on them and drag them. In order to remove a bendpoint, move it to a location where it becomes almost unnecessary (it falls onto a straight line).
Interactions may be routed through additional anchor (bend or control) points. To introduce a new anchor point, first select the interaction by clicking on it, and then right click and select Add Bend Point or Add Control Point. After the anchor point is created, drag it around to bend the edge. If an edge already has one type of anchor point (bend or control) additional anchor points of the same type can be created by dragging on the edge when it is selected, without needing to right click and add. In order to remove an anchor point, either move it to a location where it becomes almost unnecessary (it falls onto a straight line) or right click on the anchor point and select the Remove Bend/Control Point option. Given that there are multiple anchor points on an edge, all anchor points can be removed at once by right clicking on the edge or one of the anchors and selecting Remove All Bend/Control Points.

One may also reconnect an interaction through its reconnection handles that appear when the edge is selected. Simply click on the reconnection handle close to the source / target that you'd like to change and drag it onto the new source / target.

Expand Down
1 change: 0 additions & 1 deletion dist/base.css.map

This file was deleted.

22 changes: 0 additions & 22 deletions dist/index.html

This file was deleted.

18,935 changes: 0 additions & 18,935 deletions dist/react-pathway-mapper.es5.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/react-pathway-mapper.es5.js.map

This file was deleted.

12 changes: 0 additions & 12 deletions dist/ui/WelcomePage.d.ts

This file was deleted.

160 changes: 9 additions & 151 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,164 +1,22 @@
{
"name": "pathway-mapper",
"version": "2.1.3",
"description": "",
"keywords": [],
"main": "dist/react-pathway-mapper.es5.js",
"module": "dist/react-pathway-mapper.es5.js",
"jsnext:main": "dist/react-pathway-mapper.es5.js",
"typings": "dist/ui/react-pathway-mapper.d.ts",
"styles": "dist/base.css",
"files": [
"dist"
],
"private": true,
"workspaces": ["packages/*"],
"author": "i-Vis at Bilkent <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/iVis-at-Bilkent/pathway-mapper"
},
"license": "GNU AGPL",
"license": "AGPL-3.0-only",
"engines": {
"yarn": ">=1.21.1",
"node": ">=8.12.0"
},
"scripts": {
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
"prebuild": "rimraf dist",
"build": "webpack --config webpack.config.js --mode development --hot",
"build:lib": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=2048 webpack --config webpack-lib.config.js",
"start": "node ./src/server.js",
"test": "jest --coverage",
"test:watch": "jest --coverage --watch",
"test:prod": "yarn run lint && yarn run test -- --no-cache",
"deploy-docs": "ts-node tools/gh-pages-publish",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"commit": "git-cz",
"semantic-release": "semantic-release",
"semantic-release-prepare": "ts-node tools/semantic-release-prepare",
"precommit": "lint-staged",
"prepare": "yarn build",
"travis-deploy-once": "travis-deploy-once"
},
"lint-staged": {
"{src,test}/**/*.ts": [
"prettier --write",
"git add"
]
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"prettier": {
"semi": true,
"singleQuote": false
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"peerDependencies": {
"bootstrap": "^3.0.0 || ^4.0.0",
"jquery": "^1.4 || ^2.0 || ^3.0",
"mobx": "^6.0.0",
"mobx-react": "^6.0.0",
"react": "^15.0.0 || ^16.0.0",
"react-bootstrap": "^0.30.0",
"react-dom": "^15.0.0 || ^16.0.0"
},
"dependencies": {
"@datastructures-js/max-heap": "^2.0.0",
"autobind-decorator": "^2.4.0",
"cytoscape": "^3.8.2",
"cytoscape-context-menus": "^3.0",
"cytoscape-cose-bilkent": "^4.0.0",
"cytoscape-edge-editing": "^2.0.0",
"cytoscape-edgehandles": "^3.5.1",
"cytoscape-grid-guide": "^2.2.1",
"cytoscape-navigator": "^1.3.3",
"cytoscape-node-resize": "^3.2.0",
"cytoscape-panzoom": "~2.5.2",
"cytoscape-qtip": "iVis-at-Bilkent/cytoscape.js-qtip#master",
"cytoscape-undo-redo": "^1.3.2",
"cytoscape-view-utilities": "^2.0.6",
"file-saver": "^2.0.2",
"jquery-ui-dist": "^1.12.1",
"konva": "^1.6.3",
"lodash": "^4.17.11",
"oncoprintjs": "^4.2.3",
"react-loader-spinner": "^2.3.0",
"react-scrollbar": "^0.5.6",
"react-table": "^6.10.0",
"react-toastify": "^5.3.1",
"react-tooltip": "^3.10.0",
"sharedb": "^1.1.0"
},
"devDependencies": {
"@commitlint/cli": "^7.1.2",
"@commitlint/config-conventional": "^7.1.2",
"@types/cytoscape": "^3.4.0",
"@types/jest": "24.0.11",
"@types/jquery": "^3.3.29",
"@types/node": "11.13.4",
"@types/react": "16.8.13",
"@types/react-bootstrap": "^0.32.19",
"@types/react-dom": "16.8.4",
"babel": "^6.23.0",
"babel-core": "^6.26.3",
"babel-loader": "^8.0.6",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"bootstrap": "^4.3.1",
"colors": "^1.3.2",
"commitizen": "^3.0.0",
"coveralls": "^3.0.2",
"cross-env": "^5.2.0",
"cz-conventional-changelog": "^2.1.0",
"express": "^4.17.1",
"file-loader": "^3.0.1",
"html-webpack-plugin": "^3.2.0",
"http-server": "^0.11.1",
"husky": "^1.0.1",
"jest": "^23.6.0",
"jest-config": "^23.6.0",
"jquery": "latest",
"lint-staged": "^8.0.0",
"lodash.camelcase": "^4.3.0",
"mini-css-extract-plugin": "^0.6.0",
"mobx": "^6.0.0",
"mobx-react": "^6.0.0",
"multer": "^1.4.1",
"prettier": "^1.14.3",
"prompt": "^1.0.0",
"react": "^16.8.6",
"react-bootstrap": "^0.32.0",
"react-dom": "^16.8.6",
"react-scripts": "2.1.8",
"react-scripts-ts": "^3.1.0",
"replace-in-file": "^3.4.2",
"rimraf": "^2.6.2",
"semantic-release": "^15.9.16",
"sharedb-mongo": "latest",
"shelljs": "^0.8.3",
"source-map-loader": "^0.1.6",
"travis-deploy-once": "^5.0.9",
"ts-jest": "^23.10.2",
"ts-loader": "4.0.0",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0",
"tslint-config-standard": "^8.0.1",
"ttf-loader": "^1.0.2",
"typedoc": "^0.12.0",
"typescript": "4.1.3",
"url-loader": "^1.1.2",
"webpack": "^4.32.2",
"webpack-cli": "^3.3.2",
"webpack-dev-server": "^3.5.1",
"webpack-node-externals": "^1.7.2",
"websocket-json-stream": "0.0.3",
"ws": "latest"
"build": "yarn buildApp:prod",
"buildApp:dev": "yarn workspace pathway-mapper-standalone build:dev",
"buildApp:prod": "yarn workspace pathway-mapper-standalone build:prod",
"buildLib:dev": "yarn workspace pathway-mapper build:dev",
"buildLib:prod": "yarn workspace pathway-mapper build:prod",
"start": "yarn workspace pathway-mapper-standalone start"
}
}
5 changes: 2 additions & 3 deletions tsconfig.json → packages/config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"outDir": ".",
"module": "esnext",
"target": "es5",
"lib": ["es6", "dom", "es2016", "es2017"],
Expand All @@ -21,10 +20,10 @@
//"noUnusedParameters": true,
"experimentalDecorators": true,
"typeRoots": [
"node_modules/@types"
"node_modules/@types",
"../../node_modules/@types"
],
"useDefineForClassFields": true
},
"include": ["src"],
"exclude": ["node_modules", "build", "dist", "example", "rollup.config.js"]
}
File renamed without changes.
95 changes: 95 additions & 0 deletions packages/pathway-mapper-standalone/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"name": "pathway-mapper-standalone",
"description": "PathwayMapper for pathway visualization",
"version": "2.1.0",
"author": "i-Vis at Bilkent <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/iVis-at-Bilkent/pathway-mapper"
},
"license": "AGPL-3.0-only",
"engines": {
"yarn": ">=1.21.1",
"node": ">=8.12.0"
},
"scripts": {
"build:dev": "cross-env NODE_ENV=development webpack",
"build:prod": "cross-env NODE_ENV=production webpack",
"start": "node ./src/server.js/"
},
"dependencies": {
"bootstrap": "4.3.1",
"jquery": "^3.2.1",
"mobx": "^6.0.0",
"mobx-react": "^6.0.0",
"react": "16.8.6",
"react-bootstrap": "0.32.4",
"react-dom": "16.8.6",
"react-loader-spinner": "2.3.0",
"pathway-mapper": "2.1.2-beta.0",
"react-scrollbar": "0.5.6",
"react-table": "6.10.0",
"react-toastify": "5.3.2",
"react-tooltip": "3.10.0",
"sharedb": "^1.1.0",
"websocket-json-stream": "0.0.3",
"ws": "latest"
},
"devDependencies": {
"@commitlint/cli": "^7.1.2",
"@commitlint/config-conventional": "^7.1.2",
"@types/cytoscape": "^3.4.0",
"@types/jest": "24.0.11",
"@types/jquery": "^3.3.29",
"@types/node": "11.13.4",
"@types/react": "16.8.13",
"@types/react-bootstrap": "^0.32.19",
"@types/react-dom": "16.8.4",
"babel": "^6.23.0",
"babel-core": "^6.26.3",
"babel-loader": "^8.0.6",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"clean-webpack-plugin": "^3.0.0",
"colors": "^1.3.2",
"commitizen": "^3.0.0",
"coveralls": "^3.0.2",
"cross-env": "^5.2.0",
"cz-conventional-changelog": "^2.1.0",
"express": "^4.17.1",
"file-loader": "^3.0.1",
"html-webpack-plugin": "^3.2.0",
"husky": "^1.0.1",
"jest": "^23.6.0",
"jest-config": "^23.6.0",
"lint-staged": "^8.0.0",
"lodash.camelcase": "^4.3.0",
"mini-css-extract-plugin": "^0.6.0",
"multer": "^1.4.1",
"prettier": "^1.14.3",
"prompt": "^1.0.0",
"react-scripts": "2.1.8",
"react-scripts-ts": "^3.1.0",
"replace-in-file": "^3.4.2",
"rimraf": "^2.6.2",
"semantic-release": "^15.9.16",
"sharedb-mongo": "latest",
"shelljs": "^0.8.3",
"source-map-loader": "^0.1.6",
"travis-deploy-once": "^5.0.9",
"ts-jest": "^23.10.2",
"ts-loader": "4.0.0",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0",
"tslint-config-standard": "^8.0.1",
"ttf-loader": "^1.0.2",
"typedoc": "^0.12.0",
"typescript": "4.1.3",
"url-loader": "^1.1.2",
"webpack": "^4.32.2",
"webpack-cli": "^3.3.2",
"webpack-dev-server": "^3.5.1",
"webpack-node-externals": "^1.7.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import {Grid, Row, Col} from 'react-bootstrap';
import ReactTooltip from 'react-tooltip'
import { VisibilityProperty } from 'csstype';
import { action, makeObservable, observable } from 'mobx';
import { observer } from 'mobx-react';
import { VisibilityProperty } from 'csstype';
import React from 'react';
import { Col, Grid, Row } from 'react-bootstrap';
import ReactTooltip from 'react-tooltip';

interface IWelcomePageProps{
postWelcome: Function;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { PathwayMapper } from 'pathway-mapper';
import "pathway-mapper/dist/base.css";
import React from 'react';
import { render } from 'react-dom';
import PathwayMapper from "./ui/react-pathway-mapper";
import WelcomePage from "./ui/WelcomePage";
import WelcomePage from "./WelcomePage";

window.onload = () => {
const rootEl = document.getElementById('app');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const multerInstance = multer({dest:'./uploads/'});

const staticPath = path.join(__dirname, '../dist');
app.use(express.static(staticPath));
console.log(staticPath);
console.log("Serving files from: " + staticPath);
const server = http.createServer(app);
app.get('/', function (req, res) {
res.sendFile(path.join(__dirname + '/index.html'));
Expand Down
7 changes: 7 additions & 0 deletions packages/pathway-mapper-standalone/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../config/tsconfig.json",
"include": ["src"],
"compilerOptions": {
"outDir": "."
}
}
3 changes: 3 additions & 0 deletions packages/pathway-mapper-standalone/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../config/tslint.json"
}
Loading

0 comments on commit da3c7fd

Please sign in to comment.