Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

Commit

Permalink
First commit, hi.
Browse files Browse the repository at this point in the history
first commit yes
  • Loading branch information
jewdev committed Apr 4, 2020
1 parent 03295d8 commit 5947180
Show file tree
Hide file tree
Showing 17 changed files with 937 additions and 2 deletions.
41 changes: 39 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,39 @@
# jewDCC
Custom Connection for Discord!
# jewDCC <img src="https://i.imgur.com/W2QSZeG.gif" align="right">

jewDCC - A program I made to add custom connections to Discord, Google-ish material GUI and very good UX, trust me.

## [Download](https://github.com/jewdev/jewDCC/releases/latest)

## [LICENSE](https://github.com/jewdev/jewDCC/blob/master/LICENSE)

## Author

**jewDCC** © [jewdev](https://github.com/jewdev) Authored and maintained by jewdev.

## Screenshot
![screenshot](https://i.imgur.com/8IZezp3.png)

## Special Thanks
> Special thanks for my beta testers!
> > [Ryan Montgomery](https://github.com/ryanrohypnol) - I "improved" his own Discord Custom Connections repository in Python and I wanted to re-make in C#, and, here we are!
## FAQ
1. Q: What the heck does DCC means?

A: DCC stands for "Discord Custom Connections" in this context.

2. Q: How can I report bugs?

A: Open new issue [here](https://github.com/jewdev/jewDCC/issues).

3. Q: How can I contribute?

A: If you know how to code, feel free to improve the program and open a pull request [here](https://github.com/jewdev/jewDCC/pulls), if you don't know how to code so just fork and star this repository!

4. Q: Can you help me with the program?

A: No.

5. Q: Are you really a jew?

A: Yes, I'm a *real* jew.
25 changes: 25 additions & 0 deletions jewDCC.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29905.134
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "jewDCC", "jewDCC\jewDCC.csproj", "{AD162585-DD8A-4096-B4BF-D0B13D0271D4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{AD162585-DD8A-4096-B4BF-D0B13D0271D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AD162585-DD8A-4096-B4BF-D0B13D0271D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AD162585-DD8A-4096-B4BF-D0B13D0271D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AD162585-DD8A-4096-B4BF-D0B13D0271D4}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7751B888-B027-4129-B311-5CF04E20EA3C}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions jewDCC/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
17 changes: 17 additions & 0 deletions jewDCC/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Application x:Class="jewDCC.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:jewDCC"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.DeepPurple.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions jewDCC/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace jewDCC
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
3 changes: 3 additions & 0 deletions jewDCC/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Costura />
</Weavers>
111 changes: 111 additions & 0 deletions jewDCC/FodyWeavers.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
<xs:element name="Weavers">
<xs:complexType>
<xs:all>
<xs:element name="Costura" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:all>
<xs:element minOccurs="0" maxOccurs="1" name="ExcludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="IncludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="PreloadOrder" type="xs:string">
<xs:annotation>
<xs:documentation>The order of preloaded assemblies, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
<xs:attribute name="CreateTemporaryAssemblies" type="xs:boolean">
<xs:annotation>
<xs:documentation>This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeDebugSymbols" type="xs:boolean">
<xs:annotation>
<xs:documentation>Controls if .pdbs for reference assemblies are also embedded.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableCompression" type="xs:boolean">
<xs:annotation>
<xs:documentation>Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableCleanup" type="xs:boolean">
<xs:annotation>
<xs:documentation>As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="LoadAtModuleInit" type="xs:boolean">
<xs:annotation>
<xs:documentation>Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IgnoreSatelliteAssemblies" type="xs:boolean">
<xs:annotation>
<xs:documentation>Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ExcludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="PreloadOrder" type="xs:string">
<xs:annotation>
<xs:documentation>The order of preloaded assemblies, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="VerifyAssembly" type="xs:boolean">
<xs:annotation>
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="VerifyIgnoreCodes" type="xs:string">
<xs:annotation>
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="GenerateXsd" type="xs:boolean">
<xs:annotation>
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
117 changes: 117 additions & 0 deletions jewDCC/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<Window x:Class="jewDCC.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:jewDCC"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="{DynamicResource MaterialDesignPaper}"
FontFamily="{DynamicResource MaterialDesignFont}"
WindowState="Normal"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
ResizeMode="NoResize"
MouseDown="Window_MouseDown"
materialDesign:ThemeAssist.Theme="Dark">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Button
Style="{StaticResource MaterialDesignFloatingActionMiniButton}"
HorizontalAlignment="Left"
ToolTip="Close" Margin="750,10,0,400"
Background="#FF605C" Click="ExitButton">
<materialDesign:PackIcon
Kind="WindowClose"
Height="24"
Width="24" />
</Button>

<Button
Style="{StaticResource MaterialDesignFloatingActionMiniButton}"
HorizontalAlignment="Left"
ToolTip="Minimize" Margin="705,10,0,400"
Background="#FFBD44" Click="MinimizeButton">
<materialDesign:PackIcon
Kind="WindowMinimize"
Height="24"
Width="24" />
</Button>

<Button
Style="{StaticResource MaterialDesignFloatingActionMiniButton}"
HorizontalAlignment="Left"
ToolTip="About" Margin="10,10,0,400"
Background="#30ABFA" Click="AboutButton">
<materialDesign:PackIcon
Kind="About"
Height="24"
Width="24" />
</Button>

<Button
Style="{StaticResource MaterialDesignFloatingActionMiniButton}"
HorizontalAlignment="Left"
ToolTip="MaterialDesignFloatingActionMiniButton"
Click="Button_Click" Margin="457,199,0,224" Height="Auto" Width="28">
<materialDesign:PackIcon
Kind="StickerEmoji"
Height="18"
Width="18" />
</Button>

<TextBlock
Style="{StaticResource MaterialDesignHeadline2TextBlock}" Text="jewDCC" Margin="305,10,281,367"/>

<ComboBox
Name="TypeComboBox"
materialDesign:HintAssist.Hint="Connection Type"
materialDesign:TextFieldAssist.HasClearButton="True"
Style="{StaticResource MaterialDesignFloatingHintComboBox}"
Margin="305,141,315,269" SelectionChanged="TypeComboBox_SelectionChanged">
<ComboBoxItem>
Skype
</ComboBoxItem>
<ComboBoxItem>
Battle.Net
</ComboBoxItem>
<ComboBoxItem>
League Of Legends
</ComboBoxItem>
</ComboBox>

<TextBox
Name="NameField"
materialDesign:HintAssist.Hint="Connection Name"
Style="{StaticResource MaterialDesignFloatingHintTextBox}"
VerticalAlignment="Center" Margin="305,186,348,224" Height="40" TextChanged="NameField_TextChanged" />

<TextBox
Name="TokenField"
materialDesign:HintAssist.Hint="Token"
Style="{StaticResource MaterialDesignFloatingHintTextBox}"
VerticalAlignment="Center" Margin="305,231,315,179" Height="40" TextChanged="TokenField_TextChanged" />

<CheckBox
Name="SaveTokenCheckBox"
IsEnabled="False"
Style="{StaticResource MaterialDesignCheckBox}"
Margin="305,271,401,139"
Content="Save Token"/>

<Button
Name="AddConnectionButton"
IsEnabled="False"
Style="{StaticResource MaterialDesignRaisedButton}" Margin="305,332,315,69" Click="AddButton" Height="Auto">
Add Connection
</Button>
</Grid>
</Window>
Loading

0 comments on commit 5947180

Please sign in to comment.