Skip to content

Commit

Permalink
Links to add-ons page
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Mar 4, 2024
1 parent 366b390 commit d977f8a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/app/+layout.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { search } from "$lib/api/documents.js";
import { getPinnedAddons } from "@/lib/api/addons.js";
import { getPinnedAddons } from "@/lib/api/addons";

export async function load({ url, fetch }) {
const query = url.searchParams.get("q") || "";
Expand Down
4 changes: 3 additions & 1 deletion src/routes/app/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@

<SidebarGroup>
<SidebarItem slot="title"><Plug16 /> Add-Ons</SidebarItem>
<Action slot="action" icon={Book16}>Explore</Action>
<a href="/app/add-ons/" slot="action">
<Action icon={Book16}>Explore</Action>
</a>
<Flex direction="column" gap={0}>
{#await pinnedAddons}
<Empty icon={Hourglass24}>Loading…</Empty>
Expand Down
5 changes: 5 additions & 0 deletions src/routes/app/add-ons/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script lang="ts">
import AddOnBrowser from "@/addons/browser/Browser.svelte";
</script>

<AddOnBrowser />

0 comments on commit d977f8a

Please sign in to comment.