Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
aster-void committed Apr 20, 2024
1 parent 59d7f97 commit 64491d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
10 changes: 6 additions & 4 deletions backend/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,19 @@ if (doLogging) {
console.log("do logging: true");
}

const log = doLogging ? (...x) => {
console.log(...x);
} : () => {};
const log = doLogging
? (...x) => {
console.log(...x);
}
: () => {};

const app = express();

app.use(cors({ origin: WEB_ORIGIN }));

app.use(express.json());

app.use(express.static("./vite-dist"))
app.use(express.static("./vite-dist"));

/* * * * * * */

Expand Down
21 changes: 7 additions & 14 deletions frontend/zoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function zoom(
arr: Uint8ClampedArray,
width: number,
height: number,
ratio: number
ratio: number,
): Uint8ClampedArray {
console.assert(arr.length === width * height * 4);
const len = width * height;
Expand All @@ -32,17 +32,10 @@ export function zoom(
return ret;
}

export function ZoomedImage({
data,
w,
h,
ratio
}): React.JSX.Element {
return <div>
<IntoImage
arr={zoom(data, w, h, ratio)}
w={w*ratio}
h={h*ratio}
/>
</div>
export function ZoomedImage({ data, w, h, ratio }): React.JSX.Element {
return (
<div>
<IntoImage arr={zoom(data, w, h, ratio)} w={w * ratio} h={h * ratio} />
</div>
);
}

0 comments on commit 64491d6

Please sign in to comment.