filterbar wip

This commit is contained in:
Robin Appelman 2023-04-11 23:06:48 +02:00
commit e5c9aeb7fe
15 changed files with 1905 additions and 420 deletions

View file

@ -1,7 +1,13 @@
import {render} from "solid-js/web/dist/web.js";
import {render} from "solid-js/web";
import {ready} from "./ready";
import {FilterBar} from "./filterbar"
import {Api} from "./api";
ready(() => {
render(() => <FilterBar name="World" />, document.querySelector('.filter-bar'))
const filterBar = document.getElementById('filter-bar');
const maps = filterBar.dataset.maps.split(",");
const apiBase = filterBar.dataset.apiBase;
const api = new Api(apiBase);
render(() => <FilterBar maps={maps} api={api} />, filterBar)
});