This repository was archived by the owner on Apr 30, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
210 additions
and
58 deletions.
There are no files selected for viewing
25 changes: 0 additions & 25 deletions
25
src/API/Discord.API/Models/Enums/Guilds/ExplicitContentFilterLevel.cs
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
src/API/Discord.API/Models/Enums/Settings/ExplicitContentFilterLevel.cs
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,25 @@ | ||
// Quarrel © 2022 | ||
|
||
namespace Discord.API.Models.Enums.Settings | ||
{ | ||
/// <summary> | ||
/// The content filter level. | ||
/// </summary> | ||
public enum ExplicitContentFilterLevel : int | ||
{ | ||
/// <summary> | ||
/// Filter content from nobody. | ||
/// </summary> | ||
None, | ||
|
||
/// <summary> | ||
/// Filter content not from my friends | ||
/// </summary> | ||
Public, | ||
|
||
/// <summary> | ||
/// Filter content from everyone. | ||
/// </summary> | ||
All, | ||
} | ||
} |
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
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
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,55 @@ | ||
<UserControl | ||
x:Class="Quarrel.SubPages.UserSettings.Pages.PrivacyPage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Quarrel.SubPages.UserSettings.Pages" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
d:DesignHeight="300" | ||
d:DesignWidth="800"> | ||
|
||
<ScrollViewer> | ||
<StackPanel Padding="16"> | ||
<TextBlock x:Uid="UserSettings/DMFilterTB" | ||
Text="DIRECT MESSAGE FILTERING" | ||
FontSize="18" | ||
FontWeight="Bold" | ||
Foreground="{ThemeResource SystemControlBackgroundAccentBrush}" | ||
TextWrapping="Wrap"/> | ||
<TextBlock x:Uid="UserSettings/DMFilterDescTB" | ||
Text="Analyze and automatically delete direct messages containing explicit content" | ||
TextWrapping="Wrap" FontSize="12" Opacity="0.75" | ||
Foreground="{ThemeResource SystemControlBackgroundAccentBrush}"/> | ||
|
||
<RadioButton IsChecked="{x:Bind ViewModel.FilterAll, Mode=TwoWay}" | ||
Style="{StaticResource QuarrelRadioButton}" | ||
Foreground="{StaticResource DiscordGreenBrush}" | ||
Margin="0,6,0,0" | ||
GroupName="Filtering"> | ||
<StackPanel> | ||
<TextBlock x:Uid="UserSettings/ProtectMeTB" Text="Protect me"/> | ||
<TextBlock x:Uid="UserSettings/ProtectMeDescTB" FontSize="11" Foreground="{ThemeResource InvertedBackground}" Opacity="0.5" TextWrapping="Wrap" Text="Analyze all DMs" /> | ||
</StackPanel> | ||
</RadioButton> | ||
<RadioButton IsChecked="{x:Bind ViewModel.FilterPublic, Mode=TwoWay}" | ||
Style="{StaticResource QuarrelRadioButton}" | ||
Foreground="{StaticResource DiscordYellowBrush}" | ||
GroupName="Filtering"> | ||
<StackPanel> | ||
<TextBlock x:Uid="UserSettings/NiceFriendsTB" Text="My friends are nice"/> | ||
<TextBlock x:Uid="UserSettings/NiceFriendsDescTB" FontSize="11" Foreground="{ThemeResource InvertedBackground}" Opacity="0.5" TextWrapping="Wrap" Text="Analyze all DMs, except from my friends"/> | ||
</StackPanel> | ||
</RadioButton> | ||
<RadioButton IsChecked="{x:Bind ViewModel.FilterNone, Mode=TwoWay}" | ||
Style="{StaticResource QuarrelRadioButton}" | ||
Foreground="{StaticResource DiscordRedBrush}" | ||
GroupName="Filtering"> | ||
<StackPanel> | ||
<TextBlock x:Uid="UserSettings/DangerZoneTB" Text="I live dangerously"/> | ||
<TextBlock x:Uid="UserSettings/DangerZoneDescTB" FontSize="11" Foreground="{ThemeResource InvertedBackground}" Opacity="0.5" TextWrapping="Wrap" Text="Don't analyze any DMs"/> | ||
</StackPanel> | ||
</RadioButton> | ||
</StackPanel> | ||
</ScrollViewer> | ||
</UserControl> |
17 changes: 17 additions & 0 deletions
17
src/Quarrel/SubPages/UserSettings/Pages/PrivacyPage.xaml.cs
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,17 @@ | ||
// Quarrel © 2022 | ||
|
||
using Quarrel.ViewModels.SubPages.UserSettings.Pages; | ||
using Windows.UI.Xaml.Controls; | ||
|
||
namespace Quarrel.SubPages.UserSettings.Pages | ||
{ | ||
public sealed partial class PrivacyPage : UserControl | ||
{ | ||
public PrivacyPage() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
|
||
public PrivacyPageViewModel ViewModel => (PrivacyPageViewModel)DataContext; | ||
} | ||
} |
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