From 4dbef3fcd7a14437d55c555cf10d50de8e50d7d1 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Fri, 9 Dec 2022 11:57:12 +0900
Subject: feat: Move everything out of $lib

---
 .../routes/(main)/(app)/projects/create/+page.svelte | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

(limited to 'code/app/src/routes/(main)/(app)/projects/create/+page.svelte')

diff --git a/code/app/src/routes/(main)/(app)/projects/create/+page.svelte b/code/app/src/routes/(main)/(app)/projects/create/+page.svelte
index 1741506..ab38b2e 100644
--- a/code/app/src/routes/(main)/(app)/projects/create/+page.svelte
+++ b/code/app/src/routes/(main)/(app)/projects/create/+page.svelte
@@ -1,8 +1,8 @@
 <script lang="ts">
-    import { useSWR } from "sswr";
-    import { Input, TextArea, Combobox, Button } from "$lib/components";
-    import type { ProjectMember } from "$lib/models/projects/ProjectMember";
-    import LL from "$lib/i18n/i18n-svelte";
+    import {useSWR} from "sswr";
+    import {Input, TextArea, Combobox, Button} from "$components";
+    import type {ProjectMember} from "$models/projects/ProjectMember";
+    import LL from "$i18n/i18n-svelte";
 
     const formData = {
         name: {
@@ -36,16 +36,16 @@
         alert("Submitted");
     }
 
-    const { data: members } = useSWR("projectMembers");
+    const {data: members} = useSWR("projectMembers");
 </script>
 
 <h1>Create a new project</h1>
 <form on:submit|preventDefault={submit_form_async} class="max-w-md flex flex-col gap-2">
-    <Input label="Name" bind:value={formData.name.value} errors={formData.name.errors} required />
-    <TextArea label="Description" bind:value={formData.description.value} errors={formData.description.errors} />
+    <Input label="Name" bind:value={formData.name.value} errors={formData.name.errors} required/>
+    <TextArea label="Description" bind:value={formData.description.value} errors={formData.description.errors}/>
     <section class="grid grid-flow-row sm:grid-flow-col gap-2">
-        <Input type="date" label="Start" bind:value={formData.start.value} errors={formData.start.errors} />
-        <Input type="date" label="Stop" bind:value={formData.stop.value} errors={formData.stop.errors} />
+        <Input type="date" label="Start" bind:value={formData.start.value} errors={formData.start.errors}/>
+        <Input type="date" label="Stop" bind:value={formData.stop.value} errors={formData.stop.errors}/>
     </section>
     <Combobox options={$members} label={$LL.app.members()}>
         <svelte:fragment slot="no-records">
@@ -57,5 +57,5 @@
             {/if}
         </svelte:fragment>
     </Combobox>
-    <Button text={$LL.submit()} />
+    <Button text={$LL.submit()}/>
 </form>
-- 
cgit v1.3

