Fix Warnings
Test Rlz
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: Build App
|
name: Build App
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: ${{ gitea.actor }} is building
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -17,16 +17,13 @@ jobs:
|
|||||||
- name: Setup .NET 6.x
|
- name: Setup .NET 6.x
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
# Semantic version range syntax or exact version of a dotnet version
|
# Semantic version range syntax or exact version of a dotnet version
|
||||||
dotnet-version: '6.x'
|
dotnet-version: '6.x'
|
||||||
|
|
||||||
- run: echo "Build."
|
- run: echo "Build."
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
||||||
- name: List files in the repository
|
|
||||||
run: |
|
|
||||||
ls ${{ gitea.workspace }}
|
|
||||||
- name: Restore Deps
|
- name: Restore Deps
|
||||||
run : |
|
run : |
|
||||||
cd LaDOSE.Src/
|
cd LaDOSE.Src/
|
||||||
@@ -55,5 +52,12 @@ jobs:
|
|||||||
name: build-winx64.zip
|
name: build-winx64.zip
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
overwrite: true
|
overwrite: true
|
||||||
- run: echo "This job's status is ${{ job.status }}."
|
|
||||||
|
- name: Release
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
env:
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
build-winx64.zip
|
||||||
|
build-linux64.zip
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal;
|
|||||||
|
|
||||||
namespace LaDOSE.Api;
|
namespace LaDOSE.Api;
|
||||||
|
|
||||||
|
#pragma warning disable EF1001
|
||||||
public class NpgsqlSqlGenerationLowercaseHelper : NpgsqlSqlGenerationHelper
|
public class NpgsqlSqlGenerationLowercaseHelper : NpgsqlSqlGenerationHelper
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
static string ToLowerCase(string input) => input.ToLower();
|
static string ToLowerCase(string input) => input.ToLower();
|
||||||
@@ -14,4 +16,5 @@ public class NpgsqlSqlGenerationLowercaseHelper : NpgsqlSqlGenerationHelper
|
|||||||
=> base.DelimitIdentifier(ToLowerCase(identifier));
|
=> base.DelimitIdentifier(ToLowerCase(identifier));
|
||||||
public override void DelimitIdentifier(StringBuilder builder, string identifier)
|
public override void DelimitIdentifier(StringBuilder builder, string identifier)
|
||||||
=> base.DelimitIdentifier(builder, ToLowerCase(identifier));
|
=> base.DelimitIdentifier(builder, ToLowerCase(identifier));
|
||||||
}
|
}
|
||||||
|
#pragma warning restore EF1001
|
||||||
@@ -36,20 +36,20 @@
|
|||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,0,0,5">
|
<StackPanel Grid.Row="0" Orientation="Vertical" Margin="0,0,0,5">
|
||||||
<Label>Date :</Label>
|
<Label>Date :</Label>
|
||||||
<StackPanel Orientation="Horizontal" Width="210">
|
<StackPanel Orientation="Vertical" VerticalAlignment="Stretch">
|
||||||
<DatePicker SelectedDate="{Binding From}" Width="100" BorderBrush="{x:Null}">
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
|
||||||
</DatePicker>
|
<DatePicker SelectedDate="{Binding From}" Margin="5,0,5,0" MonthFormat="MMMM" YearFormat="yyyy" DayVisible="False">
|
||||||
|
</DatePicker>
|
||||||
<DatePicker SelectedDate="{Binding To}" Width="100" Margin="5,0,5,0" BorderBrush="{x:Null}">
|
<Button Padding="5,0,5,0" Margin="5,0,5,0" x:Name="SelectMonth" HorizontalContentAlignment="Center" Command="{Binding SelectMonth}" Width="60">Month</Button>
|
||||||
</DatePicker>
|
</StackPanel>
|
||||||
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
|
||||||
|
<DatePicker SelectedDate="{Binding To}" Margin="5,0,5,0" MonthFormat="MMMM" YearFormat="yyyy" DayVisible="False">
|
||||||
|
</DatePicker>
|
||||||
|
<Button Padding="5,0,5,0" Margin="5,0,5,0" x:Name="SelectYear" HorizontalContentAlignment="Center" Width="60" Command="{Binding SelectYear}">Year</Button>
|
||||||
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<Label>Usefull :</Label>
|
|
||||||
<Button Padding="5,0,5,0" x:Name="SelectMonth" Command="{Binding SelectMonth}">Month</Button>
|
|
||||||
<Button Padding="5,0,5,0" Margin="5,0,5,0" x:Name="SelectYear" Command="{Binding SelectYear}">Year</Button>
|
|
||||||
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<Button Grid.Row="1" x:Name="LoadTournaments" Command="{Binding LoadTournaments}">Update</Button>
|
<Button Grid.Row="1" x:Name="LoadTournaments" Command="{Binding LoadTournaments}">Update</Button>
|
||||||
<ListBox Grid.Row="2" ItemsSource="{Binding Tournaments}" x:Name="TournamentList" Margin="0,0,0,5"
|
<ListBox Grid.Row="2" ItemsSource="{Binding Tournaments}" x:Name="TournamentList" Margin="0,0,0,5"
|
||||||
@@ -132,15 +132,15 @@
|
|||||||
<Button Padding="5,0,5,0" Margin="5,0,5,0" x:Name="SelectRegexp">Select</Button>
|
<Button Padding="5,0,5,0" Margin="5,0,5,0" x:Name="SelectRegexp">Select</Button>
|
||||||
<Button x:Name="Select" >Get Tournaments Result</Button>
|
<Button x:Name="Select" >Get Tournaments Result</Button>
|
||||||
</DockPanel>-->
|
</DockPanel>-->
|
||||||
<Button x:Name="Select" Grid.ColumnSpan="3" Command="{Binding Select}">Get Tournaments Result</Button>
|
<Button x:Name="Select" Grid.ColumnSpan="3" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" Command="{Binding Select}">Get Tournaments Result</Button>
|
||||||
|
|
||||||
|
|
||||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="3" Orientation="Horizontal">
|
<StackPanel Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" Orientation="Horizontal">
|
||||||
<TextBlock> Game :</TextBlock>
|
<TextBlock> Game :</TextBlock>
|
||||||
<TextBlock Margin="5,0,0,0" Text="{Binding Results.Games.Count}" />
|
<TextBlock Margin="5,0,0,0" Text="{Binding Results.Games.Count}" />
|
||||||
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<ListBox Grid.Row="2" ItemsSource="{Binding Results.Games}" Margin="5,5,5,5"
|
<ListBox Grid.Column="0" Grid.Row="2" ItemsSource="{Binding Results.Games}" Margin="5,5,5,5"
|
||||||
IsTextSearchEnabled="True" TextSearch.Text="Name"
|
IsTextSearchEnabled="True" TextSearch.Text="Name"
|
||||||
SelectedItem="{Binding SelectedGame}">
|
SelectedItem="{Binding SelectedGame}">
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
</ListBox.ItemTemplate>
|
</ListBox.ItemTemplate>
|
||||||
|
|
||||||
</ListBox>
|
</ListBox>
|
||||||
<StackPanel Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Orientation="Horizontal">
|
<StackPanel Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Orientation="Horizontal">
|
||||||
<TextBlock> Participents :</TextBlock>
|
<TextBlock> Participents :</TextBlock>
|
||||||
<TextBlock Margin="5,0,0,0" Text="{Binding Results.Participents.Count}" />
|
<TextBlock Margin="5,0,0,0" Text="{Binding Results.Participents.Count}" />
|
||||||
|
|
||||||
@@ -204,9 +204,9 @@
|
|||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
|
|
||||||
<Button Grid.Row="4" Grid.ColumnSpan="3" x:Name="Export" Command="{Binding Export}">Export</Button>
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
<Button Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="3" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" x:Name="Export" Command="{Binding Export}">Export</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
@@ -12,62 +12,62 @@ namespace LaDOSE.Business.Provider.SmashProvider
|
|||||||
public int totalPages { get; set; }
|
public int totalPages { get; set; }
|
||||||
public int page { get; set; }
|
public int page { get; set; }
|
||||||
public int perPage { get; set; }
|
public int perPage { get; set; }
|
||||||
public string sortBy { get; set; }
|
public string? sortBy { get; set; }
|
||||||
public string filter { get; set; }
|
public string? filter { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class TournamentType
|
public class TournamentType
|
||||||
{
|
{
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
|
|
||||||
public string Name { get; set; }
|
public string? Name { get; set; }
|
||||||
|
|
||||||
[JsonConverter(typeof(UnixDateTimeConverter))]
|
[JsonConverter(typeof(UnixDateTimeConverter))]
|
||||||
public DateTime startAt { get; set; }
|
public DateTime startAt { get; set; }
|
||||||
public List<EventType> Events { get; set; }
|
public List<EventType>? Events { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
public class VideoGameType
|
public class VideoGameType
|
||||||
{
|
{
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
public string Name { get; set; }
|
public string? Name { get; set; }
|
||||||
}
|
}
|
||||||
public class ScoreType
|
public class ScoreType
|
||||||
{
|
{
|
||||||
public string label { get; set; }
|
public string? label { get; set; }
|
||||||
public int? value { get; set; }
|
public int? value { get; set; }
|
||||||
public string displayValue { get; set; }
|
public string? displayValue { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
public class StatType
|
public class StatType
|
||||||
{
|
{
|
||||||
public ScoreType score { get; set; }
|
public ScoreType? score { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class StandingType
|
public class StandingType
|
||||||
{
|
{
|
||||||
public string id { get; set; }
|
public string? id { get; set; }
|
||||||
|
|
||||||
public int placement { get; set; }
|
public int placement { get; set; }
|
||||||
|
|
||||||
public ParticipantType player { get; set; }
|
public ParticipantType? player { get; set; }
|
||||||
|
|
||||||
public StatType stats { get; set; }
|
public StatType? stats { get; set; }
|
||||||
|
|
||||||
public EntrantType entrant { get; set; }
|
public EntrantType? entrant { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ParticipantType
|
public class ParticipantType
|
||||||
{
|
{
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
public string gamerTag { get; set; }
|
public string? gamerTag { get; set; }
|
||||||
public UserType? user { get; set; }
|
public UserType? user { get; set; }
|
||||||
}
|
}
|
||||||
public class UserType
|
public class UserType
|
||||||
{
|
{
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
public string name { get; set; }
|
public string? name { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,48 +75,48 @@ namespace LaDOSE.Business.Provider.SmashProvider
|
|||||||
{
|
{
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
|
|
||||||
public string name { get; set; }
|
public string? name { get; set; }
|
||||||
public string state { get; set; }
|
public string? state { get; set; }
|
||||||
|
|
||||||
public VideoGameType videogame { get; set; }
|
public VideoGameType? videogame { get; set; }
|
||||||
public Node<StandingType> standings { get; set; }
|
public Node<StandingType>? standings { get; set; }
|
||||||
public Node<SetType> sets { get; set; }
|
public Node<SetType>? sets { get; set; }
|
||||||
|
|
||||||
public Node<EntrantType> entrants { get; set; }
|
public Node<EntrantType>? entrants { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class EntrantType
|
public class EntrantType
|
||||||
{
|
{
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
public string name { get; set; }
|
public string? name { get; set; }
|
||||||
public bool? isDisqualified { get; set; }
|
public bool? isDisqualified { get; set; }
|
||||||
public List<ParticipantType> participants { get; set; }
|
public List<ParticipantType>? participants { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
public class SlotType
|
public class SlotType
|
||||||
{
|
{
|
||||||
public string id { get; set; }
|
public string? id { get; set; }
|
||||||
public int slotIndex { get; set; }
|
public int slotIndex { get; set; }
|
||||||
|
|
||||||
public StandingType standing { get; set; }
|
public StandingType? standing { get; set; }
|
||||||
|
|
||||||
public EntrantType entrant { get; set; }
|
public EntrantType? entrant { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
public class SetType
|
public class SetType
|
||||||
{
|
{
|
||||||
public string id { get; set; }
|
public string? id { get; set; }
|
||||||
public int? lPlacement { get; set; }
|
public int? lPlacement { get; set; }
|
||||||
public int? wPlacement { get; set; }
|
public int? wPlacement { get; set; }
|
||||||
public int? round { get; set; }
|
public int? round { get; set; }
|
||||||
public List<SlotType> slots { get; set; }
|
public List<SlotType>? slots { get; set; }
|
||||||
public string identifier { get; set; }
|
public string? identifier { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
public class Node<T>
|
public class Node<T>
|
||||||
{
|
{
|
||||||
public PageInfoType pageInfo { get; set; }
|
public PageInfoType? pageInfo { get; set; }
|
||||||
public List<T> nodes { get; set; }
|
public List<T>? nodes { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -125,18 +125,18 @@ namespace LaDOSE.Business.Provider.SmashProvider
|
|||||||
|
|
||||||
public class TournamentResponse
|
public class TournamentResponse
|
||||||
{
|
{
|
||||||
public TournamentType Tournament { get; set; }
|
public TournamentType? Tournament { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class EventResponse
|
public class EventResponse
|
||||||
{
|
{
|
||||||
public EventType Event { get; set; }
|
public EventType? Event { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
public class SetsResponse
|
public class SetsResponse
|
||||||
{
|
{
|
||||||
public EventType Event { get; set; }
|
public EventType? Event { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user