Compare commits
No commits in common. "fe5c408d6ba23b86c046b6b9ea4c8a38f88aabfc" and "46f186e227eb6efb80b395e6fd1b00b6fad0b35c" have entirely different histories.
fe5c408d6b
...
46f186e227
@ -1,8 +0,0 @@
|
|||||||
-- migrate:up
|
|
||||||
|
|
||||||
insert into bgg_user (username,neighbourhood) VALUES ('ck13','Hintonburg');
|
|
||||||
|
|
||||||
-- migrate:down
|
|
||||||
|
|
||||||
delete from bgg_user where username = 'ck13';
|
|
||||||
|
|
@ -18,5 +18,4 @@ INSERT INTO "schema_migrations" (version) VALUES
|
|||||||
('20240130205124'),
|
('20240130205124'),
|
||||||
('20240201201248'),
|
('20240201201248'),
|
||||||
('20240204153045'),
|
('20240204153045'),
|
||||||
('20240205142447'),
|
('20240205142447');
|
||||||
('20240206141649');
|
|
||||||
|
@ -3,21 +3,10 @@
|
|||||||
<input type="checkbox" bind:checked={show_hidden} />
|
<input type="checkbox" bind:checked={show_hidden} />
|
||||||
<span> show hidden </span>
|
<span> show hidden </span>
|
||||||
</label>
|
</label>
|
||||||
<div class="field label prefix border">
|
|
||||||
<i>search</i>
|
|
||||||
<input type="text" bind:value={search_text} />
|
|
||||||
<label>Search</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="games">
|
<div class="games">
|
||||||
{#each games.filter((game) => {
|
{#each games as 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}
|
|
||||||
{#if show_hidden || !$games_hidden[[game.username, game.bgg_id].join('!')]}
|
{#if show_hidden || !$games_hidden[[game.username, game.bgg_id].join('!')]}
|
||||||
<div
|
<div
|
||||||
transition:slide={{ delay: 250, duration: 300 }}
|
transition:slide={{ delay: 250, duration: 300 }}
|
||||||
@ -105,8 +94,6 @@
|
|||||||
|
|
||||||
let show_hidden = false;
|
let show_hidden = false;
|
||||||
|
|
||||||
let search_text = '';
|
|
||||||
|
|
||||||
// add filter
|
// add filter
|
||||||
// add sort (user, game, price)
|
// add sort (user, game, price)
|
||||||
|
|
||||||
@ -157,7 +144,4 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
}
|
}
|
||||||
.options > div {
|
|
||||||
margin-right: 1em;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user