1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-25 15:59:38 +02:00

chore: Disable email verification for new users, update search functionality, and improve note card display

This commit is contained in:
Sean Morley 2024-08-04 21:50:15 -04:00
parent 10466f5913
commit 7c61fa3363
5 changed files with 67 additions and 63 deletions

View file

@ -28,17 +28,15 @@
const searchGo = async (e: Event) => {
e.preventDefault();
let reload: boolean = false;
if ($page.url.pathname === '/search') {
reload = true;
let url = new URL(window.location.href);
url.searchParams.set('query', query);
goto(url.toString(), { invalidateAll: true });
}
if (query) {
await goto(`/search?query=${query}`);
if (reload) {
window.location.reload();
}
goto(`/search?query=${query}`);
}
};
</script>

View file

@ -33,6 +33,9 @@
>
<div class="card-body">
<h2 class="card-title overflow-ellipsis">{note.name}</h2>
{#if note.links && note.links.length > 0}
<p>{note.links.length} links</p>
{/if}
<div class="card-actions justify-end">
<!-- <button class="btn btn-neutral mb-2" on:click={() => goto(`/notes/${note.id}`)}
><Launch class="w-6 h-6" />Open Details</button

View file

@ -168,7 +168,7 @@
<a href={link} class="link link-primary" target="_blank">{link}</a>
<button
type="button"
class="btn btn-sm btn-error absolute right-0"
class="btn btn-sm btn-error absolute right-0 mr-4"
on:click={() => {
newNote.links = newNote.links.filter((_, index) => index !== i);
}}