added object controls and fixed the grainbag visualizer

This commit is contained in:
csawatzky 2025-03-27 14:00:48 -06:00
parent 7bf4736066
commit d8b42c8050
5 changed files with 406 additions and 22 deletions

View file

@ -127,19 +127,20 @@ export default function GrainBagProvider(props: PropsWithChildren<Props>) {
};
const listHistory = (id: string, limit: number, offset: number, start?: string, end?: string) => {
return get<pond.ListGrainBagHistoryResponse>(
pondURL(
"/grainbags/" +
id +
"/history?limit=" +
limit +
"&offset=" +
offset +
(start && "&start=" + start) +
(end && "&end=" + end) +
(as && "&as=" + as)
)
);
let url = pondURL(
"/grainbags/" +
id +
"/history?limit=" +
limit +
"&offset=" +
offset +
(start && "&start=" + start) +
(end && "&end=" + end)
)
if (as) {
url = url + "?as=" + as
}
return get<pond.ListGrainBagHistoryResponse>(url);
};
return (