2025-10-10 00:12:14 +02:00
|
|
|
<script>
|
|
|
|
import Button from "layout/Button.svelte";
|
|
|
|
import { logout_user } from "lib/PixeldrainAPI";
|
|
|
|
</script>
|
2024-07-09 18:18:26 +02:00
|
|
|
<ul>
|
|
|
|
<li>Username: {window.user.username}</li>
|
2024-09-12 17:35:12 +02:00
|
|
|
{#if window.user.email === ""}
|
|
|
|
<li class="highlight_blue" style="text-align: initial;">
|
|
|
|
No e-mail address configured. You will not be able to recover your
|
|
|
|
account if you lose your password. Set an e-mail address on the <a
|
|
|
|
href="/user/settings">Settings</a> page.
|
|
|
|
</li>
|
|
|
|
{:else}
|
|
|
|
<li>
|
2024-07-09 18:18:26 +02:00
|
|
|
E-mail address: {window.user.email}
|
2024-09-12 17:35:12 +02:00
|
|
|
</li>
|
|
|
|
{/if}
|
2024-07-09 18:18:26 +02:00
|
|
|
<li>
|
|
|
|
<i class="icon">settings</i>
|
|
|
|
<a href="/user/settings">Account settings</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>Quick navigation</h3>
|
|
|
|
|
|
|
|
<div class="button_row">
|
|
|
|
{#if window.user.subscription.filesystem_access}
|
|
|
|
<a href="/d/me" class="button">
|
|
|
|
<i class="icon">folder</i>
|
|
|
|
Filesystem
|
|
|
|
</a>
|
|
|
|
{/if}
|
2025-10-10 00:12:14 +02:00
|
|
|
<button on:click={()=> logout_user("/")}>
|
2024-07-09 18:18:26 +02:00
|
|
|
<i class="icon">logout</i>
|
|
|
|
Log out
|
2025-10-10 00:12:14 +02:00
|
|
|
</button>
|
2024-07-09 18:18:26 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.button_row {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
2025-10-10 00:12:14 +02:00
|
|
|
.button_row > * {
|
2024-07-09 18:18:26 +02:00
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
font-size: 1.3em;
|
|
|
|
}
|
|
|
|
</style>
|