Skip to content

Commit

Permalink
Merge pull request #19127 from itisAliRH/cytoscape-npm-package
Browse files Browse the repository at this point in the history
Replace static Cytoscape plugin with npm package
  • Loading branch information
bgruening authored Nov 13, 2024
2 parents 04263ea + a4f6c4c commit 6a017b9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 324 deletions.
3 changes: 1 addition & 2 deletions client/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const xml2js = require("xml2js");
const STATIC_PLUGIN_BUILD_IDS = [
"annotate_image",
"chiraviz",
"cytoscape",
"drawrna",
"editor",
"example",
Expand All @@ -37,7 +36,7 @@ const STATIC_PLUGIN_BUILD_IDS = [
"ts_visjs",
"venn",
];
const INSTALL_PLUGIN_BUILD_IDS = ["ngl", "msa", "openlayers", "vizarr"]; // todo: derive from XML
const INSTALL_PLUGIN_BUILD_IDS = ["cytoscape", "ngl", "msa", "openlayers", "vizarr"]; // todo: derive from XML
const DIST_PLUGIN_BUILD_IDS = ["new_user"];
const PLUGIN_BUILD_IDS = Array.prototype.concat(DIST_PLUGIN_BUILD_IDS, STATIC_PLUGIN_BUILD_IDS);

Expand Down
26 changes: 5 additions & 21 deletions config/plugins/visualizations/cytoscape/config/cytoscape.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
<params>
<param type="dataset" var_name_in_template="hda" required="true">dataset_id</param>
</params>
<entry_point entry_point_type="chart" src="script.js"/>
<requirements>
<requirement type="npm" version="0.0.2" package="@galaxyproject/cytoscape"/>
</requirements>
<entry_point entry_point_type="script" src="dist/index.js" css="dist/index.css" />
<settings>
<input>
<label>Curve style</label>
Expand Down Expand Up @@ -69,10 +72,6 @@
<label>Grid</label>
<value>grid</value>
</data>
<data>
<label>Null</label>
<value>null</value>
</data>
<data>
<label>Preset</label>
<value>preset</value>
Expand All @@ -87,18 +86,7 @@
<label>Directed/Undirected</label>
<name>directed</name>
<help>Select a kind of edge.</help>
<type>select</type>
<display>radio</display>
<data>
<data>
<label>Directed</label>
<value>triangle</value>
</data>
<data>
<label>Undirected</label>
<value></value>
</data>
</data>
<type>boolean</type>
</input>
<input>
<label>Graph algorithms</label>
Expand All @@ -115,10 +103,6 @@
<label>Depth First Search</label>
<value>dfs</value>
</data>
<data>
<label>Depth First Search</label>
<value>dfs</value>
</data>
<data>
<label>Minimum Spanning Tree (Kruskal)</label>
<value>kruskal</value>
Expand Down
22 changes: 0 additions & 22 deletions config/plugins/visualizations/cytoscape/package.json

This file was deleted.

279 changes: 0 additions & 279 deletions config/plugins/visualizations/cytoscape/src/script.js

This file was deleted.

Binary file modified config/plugins/visualizations/cytoscape/static/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6a017b9

Please sign in to comment.