mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix some layout for users
This commit is contained in:
1 parent
68d779db05
commit
65251655db
6 files changed
+31
-14
No files matched your search
@@ -6,10 +6,6 @@
|
||||
import { user } from '$lib/stores/user';
|
||||
import { project } from '../../routes/console/[project]/store';
|
||||
|
||||
const toggleTheme = () => {
|
||||
$app.theme = $app.theme === 'light' ? 'dark' : 'light';
|
||||
};
|
||||
|
||||
let showDropdown = false;
|
||||
</script>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
class="drop-button"
|
||||
class:is-selected={$page.url.pathname === path}
|
||||
href={path}>
|
||||
<span class="icon-home" aria-hidden="true" />
|
||||
<span class="icon-chart-bar" aria-hidden="true" />
|
||||
<span class="text">Home</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<title>Appwrite - Users</title>
|
||||
</svelte:head>
|
||||
|
||||
{#if $page.url.pathname.endsWith(`/users`) || $page.url.pathname.endsWith(`/users/teams`) || $page.url.pathname.endsWith(`/users/usage`) || $page.url.pathname.endsWith(`/users/settings`)}
|
||||
{#if $page.url.pathname.endsWith(`/users`) || $page.url.pathname.endsWith(`/users/teams`) || $page.url.pathname.endsWith(`/users/usage`) || $page.url.pathname.endsWith(`/users/authentication`) || $page.url.pathname.endsWith(`/users/security`)}
|
||||
<Cover>
|
||||
<svelte:fragment slot="title">Users</svelte:fragment>
|
||||
<Tabs />
|
||||
|
||||
@@ -7,10 +7,12 @@
|
||||
</script>
|
||||
|
||||
<div class="tabs">
|
||||
<button class="tabs-button-scroll is-start" aria-label="Show items in start side"
|
||||
><span class="icon-cheveron-left" aria-hidden="true" /></button>
|
||||
<button class="tabs-button-scroll is-end" aria-label="Show items in end side"
|
||||
><span class="icon-cheveron-right" aria-hidden="true" /></button>
|
||||
<button class="tabs-button-scroll is-start" aria-label="Show items in start side">
|
||||
<span class="icon-cheveron-left" aria-hidden="true" />
|
||||
</button>
|
||||
<button class="tabs-button-scroll is-end" aria-label="Show items in end side">
|
||||
<span class="icon-cheveron-right" aria-hidden="true" />
|
||||
</button>
|
||||
<ul class="tabs-list scroll-shadow-horizontal">
|
||||
<li class="tabs-item">
|
||||
<a
|
||||
@@ -28,6 +30,15 @@
|
||||
<span class="text">Teams</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="tabs-item">
|
||||
<a
|
||||
class="tabs-button"
|
||||
href={`${base}/console/${project}/users/authentication`}
|
||||
class:is-selected={$page.url.pathname ===
|
||||
`${base}/console/${project}/users/authentication`}>
|
||||
<span class="text">Authentication</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="tabs-item">
|
||||
<a
|
||||
class="tabs-button"
|
||||
@@ -39,10 +50,9 @@
|
||||
<li class="tabs-item">
|
||||
<a
|
||||
class="tabs-button"
|
||||
href={`${base}/console/${project}/users/settings`}
|
||||
class:is-selected={$page.url.pathname ===
|
||||
`${base}/console/${project}/users/settings`}>
|
||||
<span class="text">Settings</span>
|
||||
href={`${base}/console/${project}/users/security`}
|
||||
class:is-selected={$page.url.pathname === `${base}/console/${project}/users/security`}>
|
||||
<span class="text">Security</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
File renamed without changes.
@@ -0,0 +1,11 @@
|
||||
<script>
|
||||
import { Card } from '$lib/components';
|
||||
import { Container } from '$lib/layout';
|
||||
</script>
|
||||
|
||||
<Container>
|
||||
<h7 class="heading-level-7">Users</h7>
|
||||
<Card />
|
||||
<h7 class="heading-level-7">Session length</h7>
|
||||
<Card />
|
||||
</Container>
|
||||
Reference in new issue
Block a user