mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
filterbar wip
This commit is contained in:
parent
10ea8ddcbc
commit
e5c9aeb7fe
15 changed files with 1905 additions and 420 deletions
|
|
@ -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)
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue