1.2.1 • Published 3 days ago

hise-publication-viewer v1.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 days ago

hise-publication-viewer

Renders publication objects for the Human Immune System Explorer (HISE).

Exports a React component that renders a publication object, which includes the report, visualizations, and notebook and file download.

Default export is meant to be used only for 'preview mode' in the internal application.

Intaliation and usage

Intall via npm:

npm install hise-publication-viewer
# or
yarn add hise-publication-viewer

Then in a .jsx file:

import PublicationViewer from 'hise-publication-viewer';

...

<PublicationViewer
  publication={{
    // Publication object
  }}
/>

A publication object has the following properties:

{
  //
  // Required fields
  //
  
  // The publication title
  title

  // Short description of publication
  summary

  // List of publication funders
  funders

  // List of author objects with firstName and lastName (required), middleName and suffix,orcidId, affiliation (affil), and affiliation ROR (affilRor)
  authorInfo

  // List of preview images representing publication
  heroImages

  // Link to the publication report, a PDF or HTML file
  reportLink

  // Year of publication
  publicationYear

  // Publishing journal/resource
  publisher

  //
  // Optional fields
  //

  // Link to download the associated Jupyter notebook
  publicNotebook

  // Links to datafiles required to run the notebook
  publicFileSet

  // Links to any github repos related to the publication
  githubLinks

  // Link to an interactive plotly visualization or dash app
  publicVisualization
}

Development

Package components can be developed and tested using Storybook:

yarn storybook

Using the package locally via yarn link

If you want to try using this package locally, run:

yarn link

and in either HISE or public HISE:

yarn link hise-publication-viewer

To see any changes you've made, run

yarn build:local ingest-ui

or

yarn build:local hise-public-ui

build:local runs the normal build script but also replaces the React import so there aren't two versions being imported. The argument after build:local is the directory name of the package you're linking to. For more context: https://github.com/facebook/react/issues/14721#issuecomment-815897397

If this does not work, you may also need to remove and reinstall node_modules from the repo that you are using this package.

Make sure to run yarn build before committing changes.

1.2.1

3 days ago

1.2.0

1 month ago

1.1.10

1 month ago

1.1.9

1 month ago

1.1.8

4 months ago

1.1.7

4 months ago

1.1.6

4 months ago

1.1.5

5 months ago

1.1.4

7 months ago

1.1.3

7 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.49

8 months ago

1.0.48

8 months ago

1.0.44

11 months ago

1.0.43

11 months ago

1.0.42

12 months ago

1.0.41

12 months ago

1.0.47

10 months ago

1.0.46

10 months ago

1.0.45

11 months ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.40

12 months ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.26

1 year ago

1.0.27

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.19

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago