diff --git a/src/lib/artefact.remote.ts b/src/lib/artefact.remote.ts index 2d15f54..03876ac 100644 --- a/src/lib/artefact.remote.ts +++ b/src/lib/artefact.remote.ts @@ -13,10 +13,10 @@ export const getArtefacts = query( if (tags.length == 0) return a; return a.filter((a) => { - for (const tag of a.tags) { - if (tags.includes(tag)) return true; + for (const tag of tags) { + if (!a.tags.includes(tag)) return false; } - return false; + return true; }); } ); diff --git a/src/lib/components/Artefact.svelte b/src/lib/components/Artefact.svelte index 6583c51..2c87750 100644 --- a/src/lib/components/Artefact.svelte +++ b/src/lib/components/Artefact.svelte @@ -45,8 +45,8 @@ } - -

{artefact.title}

+ +

{artefact.title}

{#each artefact.tags as tag} +
+

+ {artefact.status} +

+ +
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 2dcad6f..565051f 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -2,15 +2,18 @@ import { views } from '$lib/artefact'; import { state } from '$lib/view.svelte'; import '../app.css'; - import { Navbar, NavBrand, NavLi, NavUl, NavHamburger, Select } from 'flowbite-svelte'; + import { Navbar, NavBrand, NavLi, NavUl, NavHamburger, Select, Label } from 'flowbite-svelte'; let { children } = $props(); $inspect(state.view); - + + Repo Mod + + - + Repo Mod @@ -29,7 +32,7 @@ }))} /> - + Projekte @@ -37,6 +40,6 @@ -
+
{@render children?.()}