Skip to content

Commit 155c36c

Browse files
author
Xing Han Lu
committed
Changed imports for cytoscapejs from local to npm, updated package.json
1 parent 4fcfa93 commit 155c36c

File tree

15 files changed

+19
-631
lines changed

15 files changed

+19
-631
lines changed

dash_cytoscape/TestComponent.py

Lines changed: 0 additions & 62 deletions
This file was deleted.

dash_cytoscape/_imports_.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from .Cytoscape import Cytoscape
2-
from .TestComponent import TestComponent
32

43

54
__all__ = [
65
"Cytoscape",
7-
"TestComponent",
86
]

dash_cytoscape/bundle.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_cytoscape/metadata.json

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -256,40 +256,5 @@
256256
"description": "The array of edge data currently selected by taps and boxes"
257257
}
258258
}
259-
},
260-
"src/lib/components/TestComponent.react.js": {
261-
"description": "ExampleComponent is an example component.\r\nIt takes a property, `label`, and\r\ndisplays it.\r\nIt renders an input with the property `value`\r\nwhich is editable by the user.",
262-
"displayName": "TestComponent",
263-
"methods": [],
264-
"props": {
265-
"id": {
266-
"type": {
267-
"name": "string"
268-
},
269-
"required": false,
270-
"description": "The ID used to identify this compnent in Dash callbacks"
271-
},
272-
"label": {
273-
"type": {
274-
"name": "string"
275-
},
276-
"required": true,
277-
"description": "A label that will be printed when this component is rendered."
278-
},
279-
"value": {
280-
"type": {
281-
"name": "string"
282-
},
283-
"required": false,
284-
"description": "The value displayed in the input"
285-
},
286-
"setProps": {
287-
"type": {
288-
"name": "func"
289-
},
290-
"required": false,
291-
"description": "Dash-assigned callback that should be called whenever any of the\r\nproperties change"
292-
}
293-
}
294259
}
295260
}

dash_cytoscape/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"author": "The Plotly Team",
1515
"license": "MIT",
1616
"dependencies": {
17-
"cytoscape": "^3.2.15",
1817
"lodash": "^4.17.11",
1918
"ramda": "^0.25.0",
2019
"react": "15.4.2",
20+
"react-cytoscapejs": "1.0.0",
2121
"react-dom": "15.4.2"
2222
},
2323
"devDependencies": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"author": "The Plotly Team",
1515
"license": "MIT",
1616
"dependencies": {
17-
"cytoscape": "^3.2.15",
1817
"lodash": "^4.17.11",
1918
"ramda": "^0.25.0",
2019
"react": "15.4.2",
20+
"react-cytoscapejs": "1.0.0",
2121
"react-dom": "15.4.2"
2222
},
2323
"devDependencies": {

src/lib/components/Cytoscape.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
import React, {Component} from 'react';
66
import PropTypes from 'prop-types';
7-
import CytoscapeComponent from '../../react-cytoscapejs/src/component.js';
7+
import CytoscapeComponent from 'react-cytoscapejs/src';
88
import _ from 'lodash';
99

1010

src/react-cytoscapejs/src/component.js

Lines changed: 0 additions & 68 deletions
This file was deleted.

src/react-cytoscapejs/src/defaults.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/react-cytoscapejs/src/diff.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)