Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

Commit f795c08

Browse files
author
CDAGaming
committed
V1.0.0 - 1st Dev Build
1 parent c7392fd commit f795c08

21 files changed

Lines changed: 7292 additions & 0 deletions

APIHub.sln

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.26206.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "APIHub", "APIHub\APIHub.csproj", "{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Debug|x64 = Debug|x64
12+
Debug|x86 = Debug|x86
13+
Release|Any CPU = Release|Any CPU
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}.Debug|x64.ActiveCfg = Debug|x64
21+
{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}.Debug|x64.Build.0 = Debug|x64
22+
{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}.Debug|x86.ActiveCfg = Debug|x86
23+
{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}.Debug|x86.Build.0 = Debug|x86
24+
{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}.Release|x64.ActiveCfg = Release|x64
27+
{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}.Release|x64.Build.0 = Release|x64
28+
{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}.Release|x86.ActiveCfg = Release|x86
29+
{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}.Release|x86.Build.0 = Release|x86
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
EndGlobal

APIHub/APIHub.csproj

Lines changed: 193 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{283590E6-9A6C-4F3C-8130-43B1D1B9FB4E}</ProjectGuid>
8+
<OutputType>WinExe</OutputType>
9+
<RootNamespace>APIHub</RootNamespace>
10+
<AssemblyName>APIHub</AssemblyName>
11+
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
14+
<WarningLevel>4</WarningLevel>
15+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
16+
<NuGetPackageImportStamp>
17+
</NuGetPackageImportStamp>
18+
</PropertyGroup>
19+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20+
<PlatformTarget>AnyCPU</PlatformTarget>
21+
<DebugSymbols>true</DebugSymbols>
22+
<DebugType>full</DebugType>
23+
<Optimize>true</Optimize>
24+
<OutputPath>bin\Debug\</OutputPath>
25+
<DefineConstants>DEBUG;TRACE</DefineConstants>
26+
<ErrorReport>prompt</ErrorReport>
27+
<WarningLevel>4</WarningLevel>
28+
</PropertyGroup>
29+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
30+
<PlatformTarget>AnyCPU</PlatformTarget>
31+
<DebugType>pdbonly</DebugType>
32+
<Optimize>true</Optimize>
33+
<OutputPath>bin\Release\</OutputPath>
34+
<DefineConstants>TRACE</DefineConstants>
35+
<ErrorReport>prompt</ErrorReport>
36+
<WarningLevel>4</WarningLevel>
37+
</PropertyGroup>
38+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
39+
<DebugSymbols>true</DebugSymbols>
40+
<OutputPath>bin\x64\Debug\</OutputPath>
41+
<DefineConstants>DEBUG;TRACE</DefineConstants>
42+
<Optimize>true</Optimize>
43+
<DebugType>full</DebugType>
44+
<PlatformTarget>x64</PlatformTarget>
45+
<ErrorReport>prompt</ErrorReport>
46+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
47+
<Prefer32Bit>true</Prefer32Bit>
48+
</PropertyGroup>
49+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
50+
<OutputPath>bin\x64\Release\</OutputPath>
51+
<DefineConstants>TRACE</DefineConstants>
52+
<Optimize>true</Optimize>
53+
<DebugType>pdbonly</DebugType>
54+
<PlatformTarget>x64</PlatformTarget>
55+
<ErrorReport>prompt</ErrorReport>
56+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
57+
<Prefer32Bit>true</Prefer32Bit>
58+
</PropertyGroup>
59+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
60+
<DebugSymbols>true</DebugSymbols>
61+
<OutputPath>bin\x86\Debug\</OutputPath>
62+
<DefineConstants>DEBUG;TRACE</DefineConstants>
63+
<Optimize>true</Optimize>
64+
<DebugType>full</DebugType>
65+
<PlatformTarget>x86</PlatformTarget>
66+
<ErrorReport>prompt</ErrorReport>
67+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
68+
<Prefer32Bit>true</Prefer32Bit>
69+
</PropertyGroup>
70+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
71+
<OutputPath>bin\x86\Release\</OutputPath>
72+
<DefineConstants>TRACE</DefineConstants>
73+
<Optimize>true</Optimize>
74+
<DebugType>pdbonly</DebugType>
75+
<PlatformTarget>x86</PlatformTarget>
76+
<ErrorReport>prompt</ErrorReport>
77+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
78+
<Prefer32Bit>true</Prefer32Bit>
79+
</PropertyGroup>
80+
<PropertyGroup>
81+
<ApplicationIcon>icon.ico</ApplicationIcon>
82+
</PropertyGroup>
83+
<ItemGroup>
84+
<Reference Include="DeltaCompressionDotNet, Version=2.0.0.0, Culture=neutral, PublicKeyToken=1d14d6e5194e7f4a, processorArchitecture=MSIL">
85+
<HintPath>..\packages\DeltaCompressionDotNet.2.0.0.0-rc1\lib\net20\DeltaCompressionDotNet.dll</HintPath>
86+
</Reference>
87+
<Reference Include="ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, processorArchitecture=MSIL">
88+
<HintPath>..\packages\squirrel.windows.1.5.2\lib\Net45\ICSharpCode.SharpZipLib.dll</HintPath>
89+
</Reference>
90+
<Reference Include="MahApps.Metro, Version=1.5.0.0, Culture=neutral, processorArchitecture=MSIL">
91+
<HintPath>..\packages\MahApps.Metro.1.5.0-alpha005\lib\net45\MahApps.Metro.dll</HintPath>
92+
</Reference>
93+
<Reference Include="Mono.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
94+
<HintPath>..\packages\Mono.Cecil.0.10.0-beta2\lib\net40\Mono.Cecil.dll</HintPath>
95+
</Reference>
96+
<Reference Include="Mono.Cecil.Mdb, Version=0.10.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
97+
<HintPath>..\packages\Mono.Cecil.0.10.0-beta2\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
98+
</Reference>
99+
<Reference Include="Mono.Cecil.Pdb, Version=0.10.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
100+
<HintPath>..\packages\Mono.Cecil.0.10.0-beta2\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
101+
</Reference>
102+
<Reference Include="Mono.Cecil.Rocks, Version=0.10.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
103+
<HintPath>..\packages\Mono.Cecil.0.10.0-beta2\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
104+
</Reference>
105+
<Reference Include="NuGet.Squirrel, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
106+
<HintPath>..\packages\squirrel.windows.1.5.2\lib\Net45\NuGet.Squirrel.dll</HintPath>
107+
</Reference>
108+
<Reference Include="Splat, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
109+
<HintPath>..\packages\Splat.2.0.0\lib\Net45\Splat.dll</HintPath>
110+
</Reference>
111+
<Reference Include="Squirrel, Version=1.5.2.0, Culture=neutral, processorArchitecture=MSIL">
112+
<HintPath>..\packages\squirrel.windows.1.5.2\lib\Net45\Squirrel.dll</HintPath>
113+
</Reference>
114+
<Reference Include="System" />
115+
<Reference Include="System.Data" />
116+
<Reference Include="System.Drawing" />
117+
<Reference Include="System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
118+
<HintPath>..\packages\MahApps.Metro.1.5.0-alpha005\lib\net45\System.Windows.Interactivity.dll</HintPath>
119+
<Private>True</Private>
120+
</Reference>
121+
<Reference Include="System.Xml" />
122+
<Reference Include="Microsoft.CSharp" />
123+
<Reference Include="System.Core" />
124+
<Reference Include="System.Xml.Linq" />
125+
<Reference Include="System.Data.DataSetExtensions" />
126+
<Reference Include="System.Net.Http" />
127+
<Reference Include="System.Xaml">
128+
<RequiredTargetFramework>4.0</RequiredTargetFramework>
129+
</Reference>
130+
<Reference Include="WindowsBase" />
131+
<Reference Include="PresentationCore" />
132+
<Reference Include="PresentationFramework" />
133+
</ItemGroup>
134+
<ItemGroup>
135+
<ApplicationDefinition Include="App.xaml">
136+
<Generator>MSBuild:Compile</Generator>
137+
<SubType>Designer</SubType>
138+
</ApplicationDefinition>
139+
<Page Include="MainWindow.xaml">
140+
<Generator>MSBuild:Compile</Generator>
141+
<SubType>Designer</SubType>
142+
</Page>
143+
<Compile Include="App.xaml.cs">
144+
<DependentUpon>App.xaml</DependentUpon>
145+
<SubType>Code</SubType>
146+
</Compile>
147+
<Compile Include="MainWindow.xaml.cs">
148+
<DependentUpon>MainWindow.xaml</DependentUpon>
149+
<SubType>Code</SubType>
150+
</Compile>
151+
</ItemGroup>
152+
<ItemGroup>
153+
<Compile Include="Properties\AssemblyInfo.cs">
154+
<SubType>Code</SubType>
155+
</Compile>
156+
<Compile Include="Properties\Resources.Designer.cs">
157+
<AutoGen>True</AutoGen>
158+
<DesignTime>True</DesignTime>
159+
<DependentUpon>Resources.resx</DependentUpon>
160+
</Compile>
161+
<Compile Include="Properties\Settings.Designer.cs">
162+
<AutoGen>True</AutoGen>
163+
<DependentUpon>Settings.settings</DependentUpon>
164+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
165+
</Compile>
166+
<EmbeddedResource Include="Properties\Resources.resx">
167+
<Generator>ResXFileCodeGenerator</Generator>
168+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
169+
</EmbeddedResource>
170+
<None Include="packages.config" />
171+
<None Include="Properties\Settings.settings">
172+
<Generator>SettingsSingleFileGenerator</Generator>
173+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
174+
</None>
175+
<None Include="Resources\Montserrat-Regular.ttf" />
176+
</ItemGroup>
177+
<ItemGroup>
178+
<None Include="App.config" />
179+
</ItemGroup>
180+
<ItemGroup>
181+
<Resource Include="Resources\background.jpg" />
182+
</ItemGroup>
183+
<ItemGroup>
184+
<Resource Include="icon.ico" />
185+
</ItemGroup>
186+
<ItemGroup>
187+
<Resource Include="Resources\icon.png" />
188+
</ItemGroup>
189+
<ItemGroup>
190+
<Resource Include="Resources\icon.ico" />
191+
</ItemGroup>
192+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
193+
</Project>

APIHub/App.config

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<configSections>
4+
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
5+
<section name="APIHub.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
6+
</sectionGroup>
7+
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
8+
<section name="APIHub.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
9+
</sectionGroup>
10+
</configSections>
11+
<startup>
12+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
13+
</startup>
14+
<userSettings>
15+
<APIHub.Properties.Settings>
16+
<setting name="CurrentVersion" serializeAs="String">
17+
<value />
18+
</setting>
19+
<setting name="Theme" serializeAs="String">
20+
<value>Blue</value>
21+
</setting>
22+
<setting name="FutureVersion" serializeAs="String">
23+
<value />
24+
</setting>
25+
<setting name="Filter" serializeAs="String">
26+
<value />
27+
</setting>
28+
<setting name="UpdateQueued" serializeAs="String">
29+
<value>False</value>
30+
</setting>
31+
</APIHub.Properties.Settings>
32+
</userSettings>
33+
<applicationSettings>
34+
<APIHub.Properties.Settings>
35+
<setting name="LowRPM" serializeAs="String">
36+
<value>http://google.com</value>
37+
</setting>
38+
<setting name="MediumRPM" serializeAs="String">
39+
<value>http://google.com</value>
40+
</setting>
41+
<setting name="HighRPM" serializeAs="String">
42+
<value>http://google.com</value>
43+
</setting>
44+
<setting name="DefaultTheme" serializeAs="String">
45+
<value>Blue</value>
46+
</setting>
47+
<setting name="Scheme" serializeAs="String">
48+
<value>BaseLight</value>
49+
</setting>
50+
<setting name="DefaultFilter" serializeAs="String">
51+
<value>HighRPM</value>
52+
</setting>
53+
</APIHub.Properties.Settings>
54+
</applicationSettings>
55+
<runtime>
56+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
57+
<dependentAssembly>
58+
<assemblyIdentity name="Mono.Cecil" publicKeyToken="0738eb9f132ed756" culture="neutral" />
59+
<bindingRedirect oldVersion="0.0.0.0-0.10.0.0" newVersion="0.10.0.0" />
60+
</dependentAssembly>
61+
</assemblyBinding>
62+
</runtime>
63+
</configuration>

APIHub/App.xaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Application x:Class="APIHub.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:APIHub"
5+
StartupUri="MainWindow.xaml">
6+
<Application.Resources>
7+
<ResourceDictionary>
8+
<ResourceDictionary.MergedDictionaries>
9+
<!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! -->
10+
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
11+
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
12+
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
13+
<!-- Accent and AppTheme setting -->
14+
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
15+
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
16+
</ResourceDictionary.MergedDictionaries>
17+
</ResourceDictionary>
18+
19+
</Application.Resources>
20+
</Application>

APIHub/App.xaml.cs

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Reflection;
7+
using System.Threading.Tasks;
8+
using System.Windows;
9+
using APIHub.Properties;
10+
using Squirrel;
11+
12+
namespace APIHub
13+
{
14+
/// <summary>
15+
/// Interaction logic for App.xaml
16+
/// </summary>
17+
public partial class App : Application
18+
{
19+
protected override async void OnStartup(StartupEventArgs e)
20+
{
21+
// Launch Window and Start Events
22+
new MainWindow().Show();
23+
base.OnStartup(e);
24+
25+
//Sets Current Version and Resets Future Version
26+
Version CurrentVer = Assembly.GetExecutingAssembly().GetName().Version;
27+
string CurrentVersion = CurrentVer.ToString();
28+
Settings.Default.CurrentVersion = CurrentVersion;
29+
Settings.Default.Save();
30+
31+
// Auto Update Functionality
32+
using (var updater = await UpdateManager.GitHubUpdateManager("https://github.com/CDAGaming/APIHub", null, null, null, false, null))
33+
{
34+
var updatecheck = await updater.CheckForUpdate();
35+
36+
if (updatecheck.ReleasesToApply.Any())
37+
{
38+
List<ReleaseEntry> updatedownloads = updatecheck.ReleasesToApply;
39+
string FutureVersion = updatecheck.FutureReleaseEntry.Version.ToString();
40+
Version FutureVer = Version.Parse(FutureVersion);
41+
Settings.Default.FutureVersion = FutureVersion;
42+
Settings.Default.Save();
43+
44+
if (CurrentVer < FutureVer)
45+
{
46+
await updater.DownloadReleases(updatedownloads);
47+
MessageBoxResult msgresult = MessageBox.Show("An Update is Available: " + " from V" + CurrentVersion + " to V" + FutureVersion + ", Do you Wish to Update Now?", "New Update Available!", MessageBoxButton.YesNo, MessageBoxImage.Exclamation);
48+
49+
if (msgresult == MessageBoxResult.Yes)
50+
{
51+
await updater.ApplyReleases(updatecheck);
52+
Application.Current.Shutdown();
53+
}
54+
else
55+
{
56+
// Update will show on Next Launch
57+
}
58+
}
59+
}
60+
else
61+
{
62+
// Nothing Happens.
63+
}
64+
} // */
65+
}
66+
}
67+
}

0 commit comments

Comments
 (0)