adding hidden basic asp.net core backend (#30)

Base functionality:

    DB
    email sending
    user registration & login
    storing new characters and reading them back

Notes:

    Functionality is "hidden" with no links pointing to it.
    Most pages are scaffolded and not reviewed at all :(
    local Dev db setup is pushed to git
    NO local email setup :(
This commit is contained in:
2023-12-19 19:03:57 +01:00
committed by GitHub
parent 19b002ff24
commit 7bb7ab6f13
154 changed files with 39394 additions and 1325 deletions
+56
View File
@@ -0,0 +1,56 @@
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Kemkas.Web.ViewModels;
public struct CharacterDto
{
[Required]
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("nem")]
public string? Nem { get; set; }
[JsonPropertyName("kor")]
public double? Kor { get; set; }
[JsonPropertyName("jellem")]
public string Jellem { get; set; }
[JsonPropertyName("isten")]
public string? Isten { get; set; }
[JsonPropertyName("faj")]
public string Faj { get; set; }
[JsonPropertyName("osztaly")]
public string Osztaly { get; set; }
[JsonPropertyName("tulajdonsagok")]
public KarakterTulajdonsagokDto Tulajdonsagok { get; set; }
[JsonPropertyName("kepzettsegek")]
public IList<string> Kepzettsegek { get; set; }
[JsonPropertyName("tolvajkepzettsegek")]
public IList<string>? Tolvajkepzettsegek { get; set; }
[JsonPropertyName("szint")]
public byte Szint { get; set; }
[JsonPropertyName("hpRolls")]
public IList<byte> HpRolls { get; set; }
[JsonPropertyName("tulajdonsagNovelesek")]
public IList<string> TulajdonsagNovelesek { get; set; }
[JsonPropertyName("harcosSpecializaciok")]
public IList<string> HarcosSpecializaciok { get; set; }
[JsonPropertyName("kalozKritikus")]
public IList<string> KalozKritikus { get; set; }
[JsonPropertyName("felszereles")]
public KarakterFelszerelesDto Felszereles { get; set; }
}
@@ -0,0 +1,15 @@
using System.Text.Json.Serialization;
namespace Kemkas.Web.ViewModels;
public struct KarakterFelszerelesDto
{
[JsonPropertyName("pancelID")]
public string? PancelId { get; set; }
[JsonPropertyName("pajzsID")]
public string? PajzsId { get; set; }
[JsonPropertyName("fegyverIDk")]
public IList<string> FegyverIds { get; set; }
}
@@ -0,0 +1,11 @@
namespace Kemkas.Web.ViewModels;
public struct KarakterTulajdonsagokDto
{
public byte T_Ero { get; set; }
public byte T_Ugy { get; set; }
public byte T_Egs { get; set; }
public byte T_Int { get; set; }
public byte T_Bol { get; set; }
public byte T_Kar { get; set; }
}
+12
View File
@@ -0,0 +1,12 @@
namespace Kemkas.Web.ViewModels;
public class WeatherForecast
{
public DateOnly Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string? Summary { get; set; }
}