From 4dbef3fcd7a14437d55c555cf10d50de8e50d7d1 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Fri, 9 Dec 2022 11:57:12 +0900 Subject: feat: Move everything out of $lib --- code/app/src/routes/(main)/(app)/+layout.svelte | 534 +++++++++++---------- .../src/routes/(main)/(app)/projects/+page.svelte | 228 ++++----- .../(main)/(app)/projects/create/+page.svelte | 20 +- .../src/routes/(main)/(app)/settings/+page.svelte | 106 ++-- code/app/src/routes/(main)/(public)/+layout.svelte | 8 +- .../(main)/(public)/reset-password/+page.svelte | 30 +- .../(public)/reset-password/[id]/+page.server.ts | 10 +- .../(public)/reset-password/[id]/+page.svelte | 33 +- .../routes/(main)/(public)/sign-in/+page.svelte | 88 ++-- .../(main)/(public)/sign-in/tests/index.spec.ts | 12 +- .../routes/(main)/(public)/sign-up/+page.svelte | 46 +- code/app/src/routes/(main)/+layout.server.ts | 35 +- code/app/src/routes/(main)/+layout.svelte | 12 +- code/app/src/routes/(main)/+layout.ts | 18 +- 14 files changed, 607 insertions(+), 573 deletions(-) (limited to 'code/app/src/routes/(main)') diff --git a/code/app/src/routes/(main)/(app)/+layout.svelte b/code/app/src/routes/(main)/(app)/+layout.svelte index a280fa7..6cb70ef 100644 --- a/code/app/src/routes/(main)/(app)/+layout.svelte +++ b/code/app/src/routes/(main)/(app)/+layout.svelte @@ -1,151 +1,162 @@
- - - (sidebarOpen = false)}> - -
- - -
- - + + + (sidebarOpen = false)}> -
- -
+
- - - - -
-
-
+
+
- - -
- -
- -
- -
-
-
- -
- -
-
-
-
- - -
- - Open user menu - -
- +
+ +
+ +
+
+
+ +
+ +
+
- - -
+
+ + +
+ + Open user menu + +
+ + +
+ + View + profile + + + + Settings + +
+ + sign_out()} + class="text-gray-700 block px-4 py-2 text-sm"> Sign out + +
+
+
+
+
+
+
-
+
+ +
-
- -
- diff --git a/code/app/src/routes/(main)/(app)/projects/+page.svelte b/code/app/src/routes/(main)/(app)/projects/+page.svelte index e39a886..1508118 100644 --- a/code/app/src/routes/(main)/(app)/projects/+page.svelte +++ b/code/app/src/routes/(main)/(app)/projects/+page.svelte @@ -1,137 +1,143 @@
-
-

Projects

-

A list of all the projects in your organsation.

-
-
- -
+
+

Projects

+

A list of all the projects in your organsation.

+
+
+ +
- - - {#each $headerRows as headerRow (headerRow.id)} - - - {#each headerRow.cells as cell (cell.id)} - - + {#each $headerRows as headerRow (headerRow.id)} + + + {#each headerRow.cells as cell (cell.id)} + + - - {/each} - - - {/each} - - - {#each $rows as row (row.id)} - - - {#each row.cells as cell (cell.id)} - {@const materialisedCell = cell.render()} - - + + {/each} + + + {#each $rows as row (row.id)} + + + {#each row.cells as cell (cell.id)} + {@const materialisedCell = cell.render()} + + - - {/each} - - - {/each} - -
-
- - +
+
+ + + > {#if props.sort.order === "asc"} - + {:else if props.sort.order === "desc"} - + {:else if !props.sort.disabled} - + {/if} - {#if cell.id === "status"} + {#if cell.id === "status"} - {/if} -
-
- {#if cell.id === "name"} + {/if} + + + + {/each} +
+ {#if cell.id === "name"} - + - {:else if cell.id === "status"} - - {:else} - - {/if} -
+ {:else if cell.id === "status"} + + {:else} + + {/if} + + + {/each} + + + {/each} + +
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 @@

Create a new project

- -