@nfdi4plants/arc-web-view
v0.2.0
Published
An Annotated Research Context web viewer in the style of GitHub's Primer ProductUI.
Readme
@nfdi4plants/arc-web-view 
An Annotated Research Context web viewer in the style of GitHub's Primer ProductUI.
Displays basic information about an ARC (Annotated Research Context) and allows to navigate through its structure.
👀 check out the demo
Install
npm i @nfdi4plants/arc-web-viewimport { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { BaseStyles, ThemeProvider } from '@primer/react'
import '@primer/primitives/dist/css/functional/themes/light.css'
import "@primer/css/dist/primer.css";
import { WebViewer } from '@nfdi4plants/arc-web-view'
createRoot(document.getElementById('root')!).render(
<StrictMode>
<ThemeProvider>
<BaseStyles>
<WebViewer /> // will load with empty view
</BaseStyles>
</ThemeProvider>
</StrictMode>,
)
development
This component uses GitHubs Primer ProductUI.
Find more information below:
- Components: https://primer.style/product/components/
- Responsive: https://github.com/primer/css/blob/b5e009778ec01b6e983cba6cbf89cebfdc5a4124/docs/content/support/breakpoints.md#media-query-mixins
Publish components
- Apply changes
- Change version in
package.json - Build component library
npm run build:lib - Publish component library
npm publish --access public
Deploy to GitHub Pages
- Deploy using
gh-pagesnpm library:npm run deploy
Build WebApp
- build web app using
npm run build
