@zac-apps/helium 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ZAC Apps Helium Component
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A react component to manage and visualize the helium consumption of a set of NMR spectrometers. The productive use is showcased in a simple Next JS project ([Source](https://gitlab.rlp.net/zac/helium-app) | [Demo](https://zac.pages.gitlab.rlp.net/helium-app/)).
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ The component can be used in any React App framework and was tested with [Next J
|
|
|
10
10
|
|
|
11
11
|
To provide the compoonent with the required data, the React App has to contain a file `/conf/heliumLookup.json`. A sample spectrometer configuration can be found [here](https://gitlab.rlp.net/zac/zac-helium-component/-/blob/main/conf/heliumLookup.json?ref_type=heads).
|
|
12
12
|
|
|
13
|
-
You can easily setup and download your own spectrometer configuration using the [ZAC Apps Helium Lookup Builder](https://
|
|
13
|
+
You can easily setup and download your own spectrometer configuration using the [ZAC Apps Helium Lookup Builder](https://zac.pages.gitlab.rlp.net/helium-lookup-builder/). Simply place the JSON file obtained from there in your project as described above.
|
|
14
14
|
|
|
15
15
|
## Site environment variables
|
|
16
16
|
|
|
@@ -35,7 +35,7 @@ import Helium from "@zac-apps/helium"
|
|
|
35
35
|
The component is simply called using
|
|
36
36
|
|
|
37
37
|
```
|
|
38
|
-
<Helium
|
|
38
|
+
<Helium />;
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
The component needs to know the site base path. This can either be provided by the environment variables as described above or as a prop:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zac-apps/helium",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"rollup": "node_modules/rollup/dist/rollup.js",
|
|
6
6
|
"dev": "next dev",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"react": "^18",
|
|
68
68
|
"react-dom": "^18"
|
|
69
69
|
},
|
|
70
|
-
"description": "
|
|
70
|
+
"description": "A React component to manage and visualize the helium consumption of a set of NMR spectrometers."
|
|
71
71
|
}
|