From 4b42c5235482fe0d3811b4e2936614c79e20d970 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sat, 15 Oct 2022 16:40:58 +0800 Subject: feat: !WIP start of create project page --- .../src/routes/(main)/(app)/projects/+page.svelte | 150 ++++++++++----------- 1 file changed, 74 insertions(+), 76 deletions(-) (limited to 'code/app/src/routes/(main)/(app)/projects/+page.svelte') diff --git a/code/app/src/routes/(main)/(app)/projects/+page.svelte b/code/app/src/routes/(main)/(app)/projects/+page.svelte index ceb08b4..55e9372 100644 --- a/code/app/src/routes/(main)/(app)/projects/+page.svelte +++ b/code/app/src/routes/(main)/(app)/projects/+page.svelte @@ -21,7 +21,7 @@ tempProjects.push({ id: crypto.randomUUID(), name: faker.word.preposition(), - start: Temporal.Now.plainDateISO(), + start: Temporal.Now.plainDateISO().toLocaleString(), description: faker.lorem.words(3), members: [], status: ProjectStatus.IDLE, @@ -52,85 +52,83 @@ const { filterValue } = pluginStates.filter; -
-
-
-

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