From fee36d2d9c6dd5eb6fe4d8dcd1abffbf0545e935 Mon Sep 17 00:00:00 2001 From: Felix Schlegel Date: Tue, 21 Jan 2025 00:19:42 +0100 Subject: [PATCH] feat: add basic project settings layout --- .../ProjectSettingsLayout.svelte | 61 +++++++++++++++++++ .../[projectId]/settings/general/+page.svelte | 6 +- .../[projectId]/settings/members/+page.svelte | 6 +- .../[projectId]/settings/review/+page.svelte | 6 +- .../[projectId]/settings/slr/+page.svelte | 6 +- 5 files changed, 81 insertions(+), 4 deletions(-) create mode 100644 src/lib/components/composites/project-components/ProjectSettingsLayout.svelte diff --git a/src/lib/components/composites/project-components/ProjectSettingsLayout.svelte b/src/lib/components/composites/project-components/ProjectSettingsLayout.svelte new file mode 100644 index 00000000..a0c07e62 --- /dev/null +++ b/src/lib/components/composites/project-components/ProjectSettingsLayout.svelte @@ -0,0 +1,61 @@ + + +
+
+ {#each tabs as tab} + + + {tab.label} + + {/each} +
+ +
+ {@render children?.()} +
+
diff --git a/src/routes/project/[projectId]/settings/general/+page.svelte b/src/routes/project/[projectId]/settings/general/+page.svelte index a6a81940..314e9732 100644 --- a/src/routes/project/[projectId]/settings/general/+page.svelte +++ b/src/routes/project/[projectId]/settings/general/+page.svelte @@ -1,9 +1,13 @@ General | Settings | {project.name}

Project {project.id} Settings - General

+ +General content diff --git a/src/routes/project/[projectId]/settings/members/+page.svelte b/src/routes/project/[projectId]/settings/members/+page.svelte index 834bef0b..f564eda4 100644 --- a/src/routes/project/[projectId]/settings/members/+page.svelte +++ b/src/routes/project/[projectId]/settings/members/+page.svelte @@ -1,9 +1,13 @@ Members | Settings | {project.name}

Project {project.id} Settings - Members

+ +Members content diff --git a/src/routes/project/[projectId]/settings/review/+page.svelte b/src/routes/project/[projectId]/settings/review/+page.svelte index bcb358f6..f8142764 100644 --- a/src/routes/project/[projectId]/settings/review/+page.svelte +++ b/src/routes/project/[projectId]/settings/review/+page.svelte @@ -1,9 +1,13 @@ Review | Settings | {project.name}

Project {project.id} Settings - Review

+ +Review content diff --git a/src/routes/project/[projectId]/settings/slr/+page.svelte b/src/routes/project/[projectId]/settings/slr/+page.svelte index 80bd5fbb..dd40abb1 100644 --- a/src/routes/project/[projectId]/settings/slr/+page.svelte +++ b/src/routes/project/[projectId]/settings/slr/+page.svelte @@ -1,9 +1,13 @@ SLR | Settings | {project.name}

Project {project.id} Settings - SLR

+ +SLR content