Separate Faktiska workflow and refine symbol picker

This commit is contained in:
b0txec
2026-08-18 22:45:14 +03:00
parent ffb89024f1
commit 82199b8a45
7 changed files with 29 additions and 24 deletions
+8 -3
View File
@@ -5,10 +5,11 @@ import { ResultKeyVal, resultOrder, ResultOrderKeys } from "../../../consts";
import { SelectOrder } from "../SelectOrder";
import { QueryResult } from "../helpers";
import { GridResult } from "./GridResult";
import { MapView } from "../../../components/map/MapView";
type ResultView = "grid" | "list";
const resultViews: Array<ResultView> = ["grid", "list"];
const viewLabels: Record<ResultView,string> = {grid:'grid',list:'list'}
type ResultView = "grid" | "list" | "map_1920x1080" | "map_1920x1080_wind" | "map_3840x1440" | "map_3840x1440_wind";
const resultViews: Array<ResultView> = ["grid", "list", "map_1920x1080", "map_1920x1080_wind", "map_3840x1440", "map_3840x1440_wind"];
const viewLabels: Record<ResultView,string> = {grid:'grid',list:'list',map_1920x1080:'map_1920x1080',map_1920x1080_wind:'map_1920x1080_wind',map_3840x1440:'map_3840x1440',map_3840x1440_wind:'map_3840x1440_wind'}
export const ResultView: Component<{
result: Resource<QueryResult>
@@ -72,6 +73,10 @@ export const ResultView: Component<{
/>)}
</div>
</Show>
<Show when={getResultView() === "map_1920x1080"}><MapView type="map_1920x1080" data={cityData}/></Show>
<Show when={getResultView() === "map_1920x1080_wind"}><MapView type="map_1920x1080_wind" data={cityData}/></Show>
<Show when={getResultView() === "map_3840x1440"}><MapView type="map_3840x1440" data={cityData}/></Show>
<Show when={getResultView() === "map_3840x1440_wind"}><MapView type="map_3840x1440_wind" data={cityData}/></Show>
</div>
</div>
);