mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feat: use named layout more efficient
This commit is contained in:
1 parent
7f064e03b8
commit
cd3c918f69
4 files changed
+17
-19
No files matched your search
-6
@@ -1,12 +1,6 @@
|
||||
<script lang="ts">
|
||||
import Shell from '$lib/layout/shell.svelte';
|
||||
import Header from '$lib/layout/header.svelte';
|
||||
import { updateLayout } from '$lib/stores/layout';
|
||||
|
||||
updateLayout({
|
||||
title: 'Projects',
|
||||
level: 0
|
||||
});
|
||||
</script>
|
||||
|
||||
<Shell>
|
||||
@@ -0,0 +1,16 @@
|
||||
<script lang="ts">
|
||||
import Shell from '$lib/layout/shell.svelte';
|
||||
import SideNavigation from '$lib/layout/navigation.svelte';
|
||||
import Header from '$lib/layout/header.svelte';
|
||||
</script>
|
||||
|
||||
<Shell showSideNavigation>
|
||||
<svelte:fragment slot="header">
|
||||
<Header />
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="side">
|
||||
<SideNavigation />
|
||||
</svelte:fragment>
|
||||
<slot />
|
||||
<footer class="main-footer" />
|
||||
</Shell>
|
||||
@@ -1,7 +1,4 @@
|
||||
<script lang="ts">
|
||||
import Shell from '$lib/layout/shell.svelte';
|
||||
import SideNavigation from '$lib/layout/navigation.svelte';
|
||||
import Header from '$lib/layout/header.svelte';
|
||||
import { updateLayout } from '$lib/stores/layout';
|
||||
|
||||
updateLayout({
|
||||
@@ -10,13 +7,4 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<Shell showSideNavigation>
|
||||
<svelte:fragment slot="header">
|
||||
<Header />
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="side">
|
||||
<SideNavigation />
|
||||
</svelte:fragment>
|
||||
<slot />
|
||||
<footer class="main-footer" />
|
||||
</Shell>
|
||||
<slot />
|
||||
File renamed without changes.
Reference in new issue
Block a user