Add list view for results and improve grid view

This commit is contained in:
Guntis Smaukstelis
2024-01-25 16:19:59 +02:00
parent bd090f0138
commit 0e83040217
5 changed files with 72 additions and 36 deletions
+2 -2
View File
@@ -1,6 +1,5 @@
import moment from "moment";
import { createSignal } from "solid-js";
import { QueryResult } from "./result/QueryResult";
import { SelectCity } from "../components/SelectCity";
import { SelectTimeRange } from "../components/SelectTimeRange";
@@ -8,6 +7,7 @@ import { SelectField } from "../components/SelectField";
import { SelectGranularity } from "./SelectGranularity";
import { SelectKey } from "./SelectKey";
import { QueryView } from "./result/QueryView";
const nowRounded = new Date(new Date().setMinutes(30));
const dayAgo = moment(nowRounded).subtract(1, "days").subtract(30, "minutes").toDate();
@@ -45,7 +45,7 @@ export function Cities() {
</div>
</div>
<div class="column">
<QueryResult
<QueryView
getCities={getCities}
getStart={getStart}
getEnd={getEnd}