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 --- .../src/routes/(main)/(app)/projects/+page.svelte | 228 +++++++++++---------- .../(main)/(app)/projects/create/+page.svelte | 20 +- 2 files changed, 127 insertions(+), 121 deletions(-) (limited to 'code/app/src/routes/(main)/(app)/projects') 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

- -