This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
forked from meower-media/client
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
2,868 additions
and
169 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<script> | ||
import Container from "../Container.svelte"; | ||
import ProfileView from "../ProfileView.svelte"; | ||
import {relationships} from "../stores.js"; | ||
let blockedUsers = []; | ||
relationships.subscribe(_relationships => { | ||
blockedUsers = []; | ||
for (let [username, state] of Object.entries(_relationships)) { | ||
if (state == 2) blockedUsers.push(username); | ||
} | ||
}); | ||
</script> | ||
|
||
<Container> | ||
<h1>Blocked Users</h1> | ||
Here are the users you have blocked. You can unblock them at anytime. While blocked, | ||
they won't be able to direct message you, add you to group chats, and you may | ||
not be able to view their posts depending on your privacy settings. | ||
</Container> | ||
|
||
{#if blockedUsers.length === 0} | ||
<Container>Looks like you haven't blocked anyone yet.</Container> | ||
{:else} | ||
{#each blockedUsers as username} | ||
<ProfileView {username} small={true} canClick={true} /> | ||
{/each} | ||
{/if} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<script> | ||
import Container from "../Container.svelte"; | ||
import SwitchThemeModal from "../modals/settings/SwitchTheme.svelte"; | ||
import SwitchBGMSFXModal from "../modals/settings/SwitchBGMSFX.svelte"; | ||
import {user} from "../stores.js"; | ||
import * as clm from "../clmanager.js"; | ||
import * as modals from "../modals.js"; | ||
</script> | ||
|
||
<Container> | ||
<h1>Personalization</h1> | ||
Here you can change the look and feel of the Meower client. | ||
</Container> | ||
|
||
<Container> | ||
<div class="settings-controls"> | ||
<button | ||
class="circle settings" | ||
on:click={() => | ||
clm.updateProfile({ | ||
layout: $user.layout === "new" ? "old" : "new", | ||
})} | ||
/> | ||
</div> | ||
|
||
<h2>Layout</h2> | ||
The layout is currently set to {$user.layout}. | ||
</Container> | ||
<Container> | ||
<div class="settings-controls"> | ||
<button | ||
class="circle settings" | ||
on:click={() => modals.showModal(SwitchThemeModal)} | ||
/> | ||
</div> | ||
|
||
<h2>Theme</h2> | ||
{#if !$user.theme.startsWith("custom:")} | ||
The theme is currently set to {$user.theme} ({$user.mode | ||
? "light" | ||
: "dark"}). | ||
{:else} | ||
You are currently using a custom theme! How cool is that! | ||
{/if} | ||
</Container> | ||
<Container> | ||
<div class="settings-controls"> | ||
<input | ||
type="checkbox" | ||
bind:checked={$user.sfx} | ||
on:change={() => clm.updateProfile({sfx: $user.sfx})} | ||
/> | ||
</div> | ||
|
||
<h2>Sound Effects</h2> | ||
Sound effects (for new messages) are currently {!$user.sfx | ||
? "disabled" | ||
: "enabled"}. | ||
</Container> | ||
<Container> | ||
<div class="settings-controls"> | ||
{#if $user.bgm} | ||
<button | ||
class="circle settings" | ||
on:click={() => modals.showModal(SwitchBGMSFXModal)} | ||
/> | ||
{/if} | ||
<input | ||
type="checkbox" | ||
bind:checked={$user.bgm} | ||
on:change={() => clm.updateProfile({bgm: $user.bgm})} | ||
/> | ||
</div> | ||
|
||
<h2>Background Music</h2> | ||
Background music is currently {!$user.bgm ? "disabled" : "enabled"}. | ||
{#if $user.bgm} | ||
Click the cog button to change the song. | ||
{/if} | ||
</Container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script> | ||
import ProfileView from "../ProfileView.svelte"; | ||
import Container from "../Container.svelte"; | ||
import {user} from "../stores.js"; | ||
</script> | ||
|
||
<ProfileView username={$user.name} canDoActions={true} /> | ||
|
||
<Container>This page is still being worked on :/</Container> |
Oops, something went wrong.