Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
rerpha committed Oct 1, 2024
1 parent c843df8 commit 3d1dd37
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ Allows monitoring of instrument PVs via a web page.

## Development

[Install NodeJS](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) - we are using `nvm-windows` for installing on windows, and the `lts` version of node.
[Install NodeJS](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) - we are using `nvm-windows` for installing on windows, and the `lts` version of node.

To install all dependencies, use:

To install all dependencies, use:
```bash
npm install
```
Expand All @@ -34,10 +35,12 @@ To start in dev mode, use:
```

#### Container approach

To run in containerd instead, build the image with `nerdctl build -t web-dashboard .`
then `run` with `nerdctl run -p 3000:3000 web-dashboard`

to pass the WS URL to the container, run with `-e NEXT_PUBLIC_WS_URL=ws://<hostname>:<port>/pvws/pv`

### Building

For a production build, run `npm run build`. To start this build natively, use `npm run start`.
17 changes: 14 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ export default function Home() {
</h1>

<p className="text-zinc-500 dark:text-zinc-300">
The Science and Technology Facilities Council (STFC)&apos; world-class neutron and muon instruments give unique insights into materials at the atomic level, providing scientists advanced research capabilities across numerous disciplines.
The Science and Technology Facilities Council (STFC)&apos;
world-class neutron and muon instruments give unique
insights into materials at the atomic level, providing
scientists advanced research capabilities across numerous
disciplines.
</p>

<a
Expand Down Expand Up @@ -137,7 +141,11 @@ export default function Home() {
</h1>

<p className="text-zinc-500 dark:text-zinc-300">
The IBEX Control System provides a user-friendly interface for scientists to manage and control instruments at the neutron and muon sources of STFC. They can configure experiments, monitor data collection, and adjust parameters in real time for precise, efficient operation.
The IBEX Control System provides a user-friendly interface
for scientists to manage and control instruments at the
neutron and muon sources of STFC. They can configure
experiments, monitor data collection, and adjust
parameters in real time for precise, efficient operation.
</p>

<a
Expand Down Expand Up @@ -187,7 +195,10 @@ export default function Home() {
</h1>

<p className="text-zinc-500 dark:text-zinc-300">
Data is collected by EPICS, forwarded by PVWS, and then streamed to the browser by a websocket. This real-time access to results allows for adjustments and quick analysis.
Data is collected by EPICS, forwarded by PVWS, and then
streamed to the browser by a websocket. This real-time
access to results allows for adjustments and quick
analysis.
</p>

<Link
Expand Down
3 changes: 2 additions & 1 deletion app/wall/components/JenkinsJobsIframe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default function JenkinsJobIframe() {
</h1>{" "}
<p className="text-md text-left w-full text-black dark:text-white">
Tip: Open the jobs into a{" "}
<span className="font-bold underline">new tab</span> only. If you cannot see this, you probably aren&apos;t connected to the ISIS network.
<span className="font-bold underline">new tab</span> only. If you cannot
see this, you probably aren&apos;t connected to the ISIS network.
</p>
<iframe
className="w-full h-[300px] mt-4 border-2 border-gray-100 dark:border-black rounded-lg shadow-sm hover:shadow-lg hover:border-black dark:hover:border-white transition-all duration-200"
Expand Down

0 comments on commit 3d1dd37

Please sign in to comment.