-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
projects everywhere, maybe needs cleanup
- Loading branch information
Showing
4 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import { getPinnedAddons } from "@/lib/api/addons"; | ||
import * as projects from "$lib/api/projects.js"; | ||
|
||
export async function load({ url, fetch }) { | ||
const pinnedAddons = getPinnedAddons(fetch); | ||
const pinnedProjects = projects | ||
.list({ pinned: true }, fetch) | ||
.then((r) => r.results); | ||
|
||
return { | ||
pinnedAddons, | ||
pinnedProjects, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
<script lang="ts"> | ||
import Flex from "$lib/components/common/Flex.svelte"; | ||
import DocumentUpload from "$lib/components/forms/DocumentUpload.svelte"; | ||
export let form; | ||
</script> | ||
|
||
<svelte:head> | ||
<title>Upload | DocumentCloud</title> | ||
</svelte:head> | ||
|
||
<DocumentUpload /> | ||
<Flex direction="column"> | ||
<h1>Upload documents</h1> | ||
|
||
{#if form?.success} | ||
<p> | ||
{form.message} | ||
</p> | ||
{/if} | ||
|
||
<DocumentUpload /> | ||
</Flex> |