Skip to content

Commit

Permalink
build not working
Browse files Browse the repository at this point in the history
  • Loading branch information
tizayi committed Oct 30, 2023
1 parent a29f257 commit f4e56b3
Show file tree
Hide file tree
Showing 7 changed files with 489 additions and 724 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ jobs:

- name: Unit Tests
run: npm run test

- name: build
run: npm run build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dedi-web

[![dedi-web code CI](https://github.com/tizayi/dedi-web/actions/workflows/code.yml/badge.svg)](https://github.com/tizayi/dedi-web/actions/workflows/code.yml)
[![gh-pages](https://github.com/tizayi/dedi-web/actions/workflows/gh-pages.yml/badge.svg)](https://github.com/tizayi/dedi-web/actions/workflows/gh-pages.yml)
[![gh-pages](https://github.com/tizayi/dedi-web/actions/workflows/deploy.yml/badge.svg)](https://github.com/tizayi/dedi-web/actions/workflows/deploy.yml)

A client only Q-Range calculator. Based on dedi within dawn science. Built using react, typescript, mui, zustand, three.js, and h5web/lib.

Expand Down
1,179 changes: 472 additions & 707 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview --port 3000",
"test": "npx vitest",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
"test": "npx vitest"
},
"dependencies": {
"@emotion/react": "^11.11.1",
Expand Down Expand Up @@ -40,7 +38,6 @@
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"gh-pages": "^6.0.0",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vitest": "^0.34.1"
Expand Down
4 changes: 2 additions & 2 deletions src/calculations/ray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export class Ray {
const b =
2 * coeffOfx2 * this.direction.x * this.initial_point.x +
coeffOfxy *
(this.direction.x * this.initial_point.y +
this.direction.y * this.initial_point.x) +
(this.direction.x * this.initial_point.y +
this.direction.y * this.initial_point.x) +
2 * coeffOfy2 * this.direction.y * this.initial_point.y +
coeffOfx * this.direction.x +
coeffOfy * this.direction.y;
Expand Down
16 changes: 8 additions & 8 deletions src/plot/centrePlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ export default function CentrePlot(): JSX.Element {
),
new Vector3(
(ajustedBeamstop.centre.x ?? 0) +
ajustedBeamstop.diameter / 2,
ajustedBeamstop.diameter / 2,
ajustedBeamstop.centre.y ?? 0,
),
new Vector3(
ajustedBeamstop.centre.x ?? 0,
(ajustedBeamstop.centre.y ?? 0) +
ajustedBeamstop.diameter / 2 +
(ajustedBeamstop.clearance ?? 0),
ajustedBeamstop.diameter / 2 +
(ajustedBeamstop.clearance ?? 0),
),
new Vector3(
ajustedCameraTube.centre.x ?? 0,
Expand All @@ -191,7 +191,7 @@ export default function CentrePlot(): JSX.Element {
new Vector3(
ajustedCameraTube.centre.x ?? 0,
(ajustedCameraTube.centre.y ?? 0) +
ajustedCameraTube.diameter / 2,
ajustedCameraTube.diameter / 2,
),
new Vector3(0, 0),
new Vector3(
Expand All @@ -200,8 +200,8 @@ export default function CentrePlot(): JSX.Element {
),
new Vector3(ajustedPoints.ptMin.x, ajustedPoints.ptMin.y),
new Vector3(ajustedPoints.ptMax.x, ajustedPoints.ptMax.y),
requestedMin,
requestedMax,
new Vector3(requestedMin.x, requestedMin.y),
new Vector3(requestedMax.x, requestedMax.y)
]}
>
{(
Expand All @@ -214,8 +214,8 @@ export default function CentrePlot(): JSX.Element {
detectorUpper: Vector3,
minQRange: Vector3,
maxQRange: Vector3,
requestedMin: Vector2,
requestedMax: Vector2,
requestedMin: Vector3,
requestedMax: Vector3,
) => (
<SvgElement>
{plotConfig.cameraTube && (
Expand Down
4 changes: 2 additions & 2 deletions src/results/resultsBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default function ResultsBar(props: {
</FormControl>
</TableCell>
</TableRow>
<TableRow key={"things"}>
<TableRow key={"s"}>
<TableCell component="th" scope="row">
{ScatteringOptions.s}
</TableCell>
Expand Down Expand Up @@ -242,7 +242,7 @@ export default function ResultsBar(props: {
</FormControl>
</TableCell>
</TableRow>
<TableRow key={"things"}>
<TableRow key={"d"}>
<TableCell component="th" scope="row">
{ScatteringOptions.d}
</TableCell>
Expand Down

0 comments on commit f4e56b3

Please sign in to comment.