update makefile and other tiny refactoring

- remove goccy/json dep
- add explicit types in gpu.go
This commit is contained in:
henrygd
2025-07-08 18:21:14 -04:00
parent 5ddb200a75
commit 99d61a0193
6 changed files with 26 additions and 16 deletions

View File

@@ -11,7 +11,7 @@ const routes = {
* The base path of the application.
* This is used to prepend the base path to all routes.
*/
export const basePath = globalThis.BESZEL.BASE_PATH || ""
export const basePath = BESZEL?.BASE_PATH || ""
/**
* Prepends the base path to the given path.
@@ -41,5 +41,12 @@ function onClick(e: React.MouseEvent<HTMLAnchorElement, MouseEvent>) {
}
export const Link = (props: React.AnchorHTMLAttributes<HTMLAnchorElement>) => {
return <a onClick={onClick} {...props}></a>
let clickFn = onClick
if (props.onClick) {
clickFn = (e) => {
onClick(e)
props.onClick?.(e)
}
}
return <a {...props} onClick={clickFn}></a>
}

View File

@@ -293,7 +293,7 @@ export default function SystemsTable() {
"bg-yellow-500"
}
/>
<span>{info.getValue() as string}</span>
<span className="truncate max-w-14">{info.getValue() as string}</span>
</span>
)
},