Compare commits

..

No commits in common. "fe5c408d6ba23b86c046b6b9ea4c8a38f88aabfc" and "46f186e227eb6efb80b395e6fd1b00b6fad0b35c" have entirely different histories.

3 changed files with 2 additions and 27 deletions

View File

@ -1,8 +0,0 @@
-- migrate:up
insert into bgg_user (username,neighbourhood) VALUES ('ck13','Hintonburg');
-- migrate:down
delete from bgg_user where username = 'ck13';

View File

@ -18,5 +18,4 @@ INSERT INTO "schema_migrations" (version) VALUES
('20240130205124'),
('20240201201248'),
('20240204153045'),
('20240205142447'),
('20240206141649');
('20240205142447');

View File

@ -3,21 +3,10 @@
<input type="checkbox" bind:checked={show_hidden} />
<span> show hidden </span>
</label>
<div class="field label prefix border">
<i>search</i>
<input type="text" bind:value={search_text} />
<label>Search</label>
</div>
</div>
<div class="games">
{#each games.filter((game) => {
if (search_text.length < 3) return true;
const target = search_text.toLowerCase();
return game.name.toLowerCase().includes(target) || game.username
.toLowerCase()
.includes(target);
}) as game}
{#each games as game}
{#if show_hidden || !$games_hidden[[game.username, game.bgg_id].join('!')]}
<div
transition:slide={{ delay: 250, duration: 300 }}
@ -105,8 +94,6 @@
let show_hidden = false;
let search_text = '';
// add filter
// add sort (user, game, price)
@ -157,7 +144,4 @@
display: flex;
flex-direction: row-reverse;
}
.options > div {
margin-right: 1em;
}
</style>