11.9.0 • Published 4 days ago

@neuprint/queries v11.9.0

Weekly downloads
94
License
SEE LICENSE IN LI...
Repository
github
Last release
4 days ago

neuPrintExplorerPlugins

lerna

Query and View plugins used by the neuPrintExplorer site to generate reusable query forms and visualisations.

Query plugins generate a form to take user input and query the neuPrint cypher api to fetch data from the server. The resulting data is then passed on to a selected view plugin for display.

View plugins take data from the query plugins and format them in a specific way for display on the site. This could be a table, graphic, or chart.

Writing a Plugin

This is a mono repo managed with lerna, so you will need to install that first. Please see the lerna docs for more information.

Getting started

 % git clone git@github.com:connectome-neuprint/neuPrintExplorerPlugins.git
 % cd neuPrintExplorerPlugins

An example template for the plugins can be found at

packages/query/src/Example.jsx # query plugin
packages/view/src/Example.jsx # view plugin

Copy the example and name it to reflect the purpose of your plugin. Instructions for modifying the template to fit your requirements can be found as comments in the code.

neuPrint plugins are React components from the React framework. A familiarity with the framework would be helpful for authors, but is not required.

neuPrintexplorer uses material-ui components and styles. As such these need to be imported into your plugin. More information can be found at the Material-UI documentation site.

Installing the plugin

Once complete, you will need to install it into the explorer site. Place the plugin in the plugins directory of the neuPrintExplorer checkout, run the build, and it will be automatically included in the site. For Example, here are the steps to add a query plugin.

  1. copy the plugin into the correct location

    % cp Plugin.jsx /plugins/Plugin.jsx

  2. build the explorer.

    % cd % npm run dev

The process for installing View plugins is almost identical. Just change the directory that the files are placed in to the view-plugins directory in neuPrintExplorer.

Testing the plugin.

In order to test the plugin you will need to have a local copy of both neuPrintHTTP and neuPrintExplorer. Information on installing and running them can be found in their respective repositories.

Once installed and running, follow the directions to install your plugin and reload the site to see it in action. Additionally, you can leverage the jest testing framework to test your plugin independently. An example of this can be seen in the example test file at:

  packages/query/src/Example.test.js

Contributing a core plugin.

Setup the plugins to rebuild when modified

% lerna bootstrap
% lerna exec npm link
% lerna link
% lerna exec --parallel -- npm run dev

Make your changes.

To test the new plugins in your local copy of neuPrintExplorer:

% cd neuPrintExplorer
% npm link @neuprint/queries @neuprint/views @neuprint/support

Once you are happy that your plugin is working as intended, you can issue a pull request to have the plugin included in the core @neuprint/plugins package and it will be reviewed by the core team.

11.9.0

4 days ago

11.8.0

7 days ago

11.7.6

11 days ago

11.7.5

1 month ago

11.7.4

2 months ago

11.6.0

5 months ago

11.6.1

5 months ago

11.5.0

6 months ago

11.4.8

9 months ago

11.4.9

7 months ago

11.7.0

5 months ago

11.7.3

5 months ago

11.7.1

5 months ago

11.7.2

5 months ago

11.4.2

11 months ago

11.4.3

11 months ago

11.4.0

11 months ago

11.4.1

11 months ago

11.4.6

11 months ago

11.4.7

11 months ago

11.4.4

11 months ago

11.4.5

11 months ago

11.3.3

11 months ago

11.3.4

11 months ago

11.3.1

11 months ago

11.3.2

11 months ago

11.3.5

11 months ago

11.3.6

11 months ago

11.3.0

11 months ago

11.2.2

2 years ago

11.2.3

2 years ago

11.2.0

2 years ago

11.2.1

2 years ago

11.1.0

2 years ago

11.0.7

2 years ago

11.0.6

2 years ago

11.0.4

2 years ago

11.0.5

2 years ago

11.0.3

3 years ago

11.0.2

3 years ago

11.0.0

3 years ago

11.0.1

3 years ago

10.4.4

3 years ago

10.4.1

3 years ago

10.4.2

3 years ago

10.4.3

3 years ago

10.4.0

3 years ago

10.3.0

3 years ago

10.2.0

4 years ago

10.1.0

4 years ago

10.1.1

4 years ago

10.0.0

4 years ago

9.7.2

4 years ago

9.7.1

4 years ago

9.7.0

4 years ago

9.6.0

4 years ago

9.5.1

4 years ago

9.5.0

4 years ago

9.4.5

4 years ago

9.4.4

4 years ago

9.4.3

4 years ago

9.4.2

4 years ago

9.4.1

4 years ago

9.4.0

4 years ago

9.3.1

4 years ago

9.3.0

4 years ago

9.1.9

4 years ago

9.2.0

4 years ago

9.1.8

4 years ago

9.1.7

4 years ago

9.1.6

4 years ago

9.1.5

4 years ago

9.1.4

4 years ago

9.1.3

4 years ago

9.1.2

4 years ago

9.1.1

4 years ago

9.1.0

4 years ago

9.0.0

4 years ago

8.1.0

4 years ago

8.0.0

4 years ago

7.0.0

4 years ago

6.3.0

4 years ago

6.2.3

4 years ago

6.2.2

4 years ago

6.2.1

4 years ago

6.2.0

4 years ago

6.1.0

5 years ago

6.0.0

5 years ago

5.0.2

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

4.2.0

5 years ago

4.1.0

5 years ago

4.0.4

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

3.5.0

5 years ago

3.4.1

5 years ago

3.4.0

5 years ago

3.3.1

5 years ago

3.3.0

5 years ago

3.2.5

5 years ago

3.2.4

5 years ago

3.2.3

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

2.0.0

5 years ago

1.3.7

5 years ago

1.3.6

5 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago