Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Add sponsors and more checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Soneliem committed Nov 25, 2021
1 parent 89720d1 commit 343442a
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 96 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/sponsors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Generate Sponsors README

on:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Generate Sponsors 💖
uses: JamesIves/[email protected]
with:
token: ${{ secrets.SECRETS }}
file: 'README.md'

- name: Deploy to GitHub Pages 🚀
uses: JamesIves/[email protected]
with:
branch: main
folder: '.'
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ Another reason to making this was that I wanted some experience with .NET and GU

I welcome any sort of contribution and am happy to take in any ~~hate/~~ feedback. Open source means open heart :) Also applogies for the code. In the near future I will definitely change the code to something that doesn't break every coding convention.

## Sponsors
This project is sponsored by:
<!-- sponsors --><!-- sponsors -->
Thank you for your support! Any donation of $5 and over will addionally get you into the app's main page.
## Translations

WAIUA Supports full localization and instructions to help with translations can be found in [Localization](https://github.com/Soneliem/WAIUA/blob/master/Localization.md)
Expand Down
32 changes: 15 additions & 17 deletions WAIUA/Commands/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class Main
// return tsk.Result;
//}

private static string DoCachedRequest(Method method, string url, bool addRiotAuth, bool bypassCache = false)
private static string DoCachedRequest(Method method, string url, bool addRiotAuth, bool bypassCache = false)
{
var attemptCache = method == Method.GET && !bypassCache;
if (attemptCache)
Expand Down Expand Up @@ -258,7 +258,7 @@ public static string GetIGUsername(string puuid)
}
catch (Exception)
{
IGN = null;
// ignored
}

return IGN;
Expand Down Expand Up @@ -467,8 +467,6 @@ private static void GetAgentInfo(string agent, sbyte playerno)
{
// ignored
}


}
}

Expand All @@ -487,13 +485,18 @@ private static void GetCardInfo(string card, sbyte playerno)
}
catch (Exception)
{
// ignored
}
}

private static void GetSkinInfo(sbyte playerno)
{
try
{
VandalList[playerno] = null;
VandalNameList[playerno] = null;
PhantomList[playerno] = null;
PhantomNameList[playerno] = null;
if (!string.IsNullOrEmpty(PUUIDList[playerno]))
{
var response = DoCachedRequest(Method.GET,
Expand Down Expand Up @@ -524,16 +527,10 @@ private static void GetSkinInfo(sbyte playerno)
if (phantomchroma == "52221ba2-4e4c-ec76-8c81-3483506d5242")
PhantomList[playerno] = "/Assets/phantom.png";
}
else
{
VandalList[playerno] = null;
VandalNameList[playerno] = null;
PhantomList[playerno] = null;
PhantomNameList[playerno] = null;
}
}
catch (Exception)
{
// ignored
}
}

Expand All @@ -553,8 +550,7 @@ private static void GetCompHistory(string puuid, sbyte playerno)

if (historyinfoObj["Matches"][0]["RankedRatingEarned"] != null)
{
RankProgList[playerno] =
historyinfoObj["Matches"][0]["RankedRatingAfterUpdate"].Value<string>();
RankProgList[playerno] = historyinfoObj["Matches"][0]["RankedRatingAfterUpdate"].Value<string>();
int pmatch = historyinfoObj["Matches"][0]["RankedRatingEarned"].Value<int>();
PGList[playerno] = pmatch.ToString("+#;-#;0");
if (pmatch > 0)
Expand Down Expand Up @@ -592,6 +588,7 @@ private static void GetCompHistory(string puuid, sbyte playerno)
}
catch (Exception)
{
// ignored
}
}

Expand Down Expand Up @@ -738,6 +735,7 @@ private static void GetSeasons()
}
catch (Exception)
{
// ignored
}
}

Expand Down Expand Up @@ -778,6 +776,7 @@ private static bool Tracker(string username, sbyte playerno)
var output = false;
try
{
TrackerUrlList[playerno] = null;
if (!string.IsNullOrEmpty(username))
{
var encodedUsername = Uri.EscapeDataString(username);
Expand All @@ -795,13 +794,10 @@ private static bool Tracker(string username, sbyte playerno)
output = true;
}
}
else
{
TrackerUrlList[playerno] = null;
}
}
catch (Exception)
{
// ignored
}

return output;
Expand All @@ -825,6 +821,7 @@ private static void GetPresences()
}
catch (Exception)
{
// ignored
}
}

Expand All @@ -846,6 +843,7 @@ private static void GetPartyIDs(string puuid, int playerno)
}
catch (Exception)
{
// ignored
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion WAIUA/VersionInfo.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<item>
<version>1.4.0.0</version>
<version>1.4.0.1</version>
<url>https://github.com/Soneliem/WAIUA/releases/latest/download/WAIUA.exe</url>
<changelog>https://github.com/Soneliem/WAIUA/releases/latest</changelog>
<mandatory>false</mandatory>
Expand Down
58 changes: 27 additions & 31 deletions WAIUA/Views/Info.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@
</Grid.RowDefinitions>

<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<Grid Grid.ColumnSpan="3" Background="#181E34">

<Grid.ColumnDefinitions>
<ColumnDefinition Width="70" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="70" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<Button
Expand Down Expand Up @@ -130,7 +130,6 @@
FontSize="20"
Foreground="White"
Opacity="0.7"
Margin="0 0 100 0"
Text="{x:Static p:Resources.SettingsExplanation}"
TextWrapping="Wrap" />
</StackPanel>
Expand Down Expand Up @@ -234,24 +233,6 @@
Text="{x:Static p:Resources.SponsorsTitle}"
TextAlignment="Center"
TextWrapping="Wrap" />
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Ellipse Height="80"
Width="80"
Margin="10"
ToolTip="PantryWizard">
<Ellipse.Fill>
<ImageBrush ImageSource="https://i.pinimg.com/originals/d5/8b/3b/d58b3bebacee938ee7bd91df82bdbdfd.jpg" />
</Ellipse.Fill>
</Ellipse>
<Ellipse Height="80"
Width="80"
Margin="10"
ToolTip="NookiMinaj">
<Ellipse.Fill>
<ImageBrush ImageSource="https://avatars.githubusercontent.com/u/94875072?v=4" />
</Ellipse.Fill>
</Ellipse>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Border Margin="5" Background="#6441A4"
BorderThickness="1"
Expand All @@ -264,8 +245,8 @@
Click="ImageClick"
Tag="https://www.twitch.tv/laskin__"
ToolTip="Follow Laskin on Twitch">
<Ellipse Height="80"
Width="80"
<Ellipse Height="75"
Width="75"
HorizontalAlignment="Center">
<Ellipse.Fill>
<ImageBrush
Expand All @@ -280,8 +261,8 @@
Cursor="Hand"
Tag="https://www.twitch.tv/ladams_"
ToolTip="Follow Ladams on Twitch">
<Ellipse Height="80"
Width="80"
<Ellipse Height="75"
Width="75"
HorizontalAlignment="Center">
<Ellipse.Fill>
<ImageBrush
Expand All @@ -296,8 +277,8 @@
Cursor="Hand"
Tag="https://www.twitch.tv/jendrina22"
ToolTip="Follow jendrina22 on Twitch">
<Ellipse Height="80"
Width="80"
<Ellipse Height="75"
Width="75"
HorizontalAlignment="Center">
<Ellipse.Fill>
<ImageBrush
Expand All @@ -307,6 +288,22 @@
</Button>
</StackPanel>
</Border>
<Ellipse Height="75"
Width="75"
Margin="10"
ToolTip="PantryWizard">
<Ellipse.Fill>
<ImageBrush ImageSource="https://i.pinimg.com/originals/d5/8b/3b/d58b3bebacee938ee7bd91df82bdbdfd.jpg" />
</Ellipse.Fill>
</Ellipse>
<Ellipse Height="75"
Width="75"
Margin="10"
ToolTip="NookiMinaj">
<Ellipse.Fill>
<ImageBrush ImageSource="https://avatars.githubusercontent.com/u/94875072?v=4" />
</Ellipse.Fill>
</Ellipse>
</StackPanel>
</StackPanel>

Expand All @@ -326,7 +323,6 @@
FontSize="20"
Foreground="White"
Opacity="0.7"
Margin="100 0 0 0"
Text="{x:Static p:Resources.InfoExplanation}"
TextAlignment="Right"
TextWrapping="Wrap" />
Expand Down
6 changes: 3 additions & 3 deletions WAIUA/WAIUA.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFramework>net5.0-windows10.0.22000.0</TargetFramework>
<UseWPF>true</UseWPF>
<ApplicationIcon>logo.ico</ApplicationIcon>
<Version>1.4.0.0</Version>
<Version>1.4.0.1</Version>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<StartupObject>WAIUA.App</StartupObject>
<Description>A Windows app to view player ranks and stats in a live Valorant Match</Description>
Expand All @@ -22,8 +22,8 @@
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryType>git</RepositoryType>
<AssemblyVersion>1.4.0.0</AssemblyVersion>
<FileVersion>1.4.0.0</FileVersion>
<AssemblyVersion>1.4.0.1</AssemblyVersion>
<FileVersion>1.4.0.1</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down

0 comments on commit 343442a

Please sign in to comment.