restructure

This commit is contained in:
2025-04-22 22:12:49 +02:00
parent f0a05ca119
commit 9802a4a0e8
27 changed files with 8128 additions and 105 deletions

View File

@ -3,53 +3,97 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59 VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{BEDF4556-0366-45BC-B0F3-9FF4EB11B9CB}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickDish.Domain", "src\QuickDish.Domain\QuickDish.Domain.csproj", "{63C229FA-5E13-457A-868E-25B0C9C58AA6}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickDish.Core", "src\QuickDish.Core\QuickDish.Core.csproj", "{5172647D-5B13-42BB-A416-75C959BAFFA5}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickDish.Application", "src\QuickDish.Application\QuickDish.Application.csproj", "{A53CDB6D-8EAD-4C1D-A175-A64C90CF4B6B}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickDish.DataAccess", "src\QuickDish.DataAccess\QuickDish.DataAccess.csproj", "{946E5234-8F12-4A33-A5F3-E470E664201B}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickDish.Infrastructure", "src\QuickDish.Infrastructure\QuickDish.Infrastructure.csproj", "{86A26505-418B-49A8-99B6-52DE52C1B2F4}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickDish.BLL", "src\QuickDish.BLL\QuickDish.BLL.csproj", "{D3AD1315-4F57-495E-A866-81358666C649}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickDish.Api", "src\QuickDish.Api\QuickDish.Api.csproj", "{21F9F0FA-71DD-42ED-AAB4-88AF11F8B6AB}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickDish.Api", "src\QuickDish.Api\QuickDish.Api.csproj", "{6A10F280-8396-444B-AD0E-EF4A20323AED}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickDish.Client", "src\QuickDish.Client\QuickDish.Client.csproj", "{AAEC702A-326A-40B8-9E02-04767A66D084}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickDish.Client", "src\QuickDish.Client\QuickDish.Client.csproj", "{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5172647D-5B13-42BB-A416-75C959BAFFA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5172647D-5B13-42BB-A416-75C959BAFFA5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5172647D-5B13-42BB-A416-75C959BAFFA5}.Debug|x64.ActiveCfg = Debug|Any CPU
{5172647D-5B13-42BB-A416-75C959BAFFA5}.Debug|x64.Build.0 = Debug|Any CPU
{5172647D-5B13-42BB-A416-75C959BAFFA5}.Debug|x86.ActiveCfg = Debug|Any CPU
{5172647D-5B13-42BB-A416-75C959BAFFA5}.Debug|x86.Build.0 = Debug|Any CPU
{5172647D-5B13-42BB-A416-75C959BAFFA5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5172647D-5B13-42BB-A416-75C959BAFFA5}.Release|Any CPU.Build.0 = Release|Any CPU
{5172647D-5B13-42BB-A416-75C959BAFFA5}.Release|x64.ActiveCfg = Release|Any CPU
{5172647D-5B13-42BB-A416-75C959BAFFA5}.Release|x64.Build.0 = Release|Any CPU
{5172647D-5B13-42BB-A416-75C959BAFFA5}.Release|x86.ActiveCfg = Release|Any CPU
{5172647D-5B13-42BB-A416-75C959BAFFA5}.Release|x86.Build.0 = Release|Any CPU
{946E5234-8F12-4A33-A5F3-E470E664201B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{946E5234-8F12-4A33-A5F3-E470E664201B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{946E5234-8F12-4A33-A5F3-E470E664201B}.Debug|x64.ActiveCfg = Debug|Any CPU
{946E5234-8F12-4A33-A5F3-E470E664201B}.Debug|x64.Build.0 = Debug|Any CPU
{946E5234-8F12-4A33-A5F3-E470E664201B}.Debug|x86.ActiveCfg = Debug|Any CPU
{946E5234-8F12-4A33-A5F3-E470E664201B}.Debug|x86.Build.0 = Debug|Any CPU
{946E5234-8F12-4A33-A5F3-E470E664201B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{946E5234-8F12-4A33-A5F3-E470E664201B}.Release|Any CPU.Build.0 = Release|Any CPU
{946E5234-8F12-4A33-A5F3-E470E664201B}.Release|x64.ActiveCfg = Release|Any CPU
{946E5234-8F12-4A33-A5F3-E470E664201B}.Release|x64.Build.0 = Release|Any CPU
{946E5234-8F12-4A33-A5F3-E470E664201B}.Release|x86.ActiveCfg = Release|Any CPU
{946E5234-8F12-4A33-A5F3-E470E664201B}.Release|x86.Build.0 = Release|Any CPU
{D3AD1315-4F57-495E-A866-81358666C649}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D3AD1315-4F57-495E-A866-81358666C649}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D3AD1315-4F57-495E-A866-81358666C649}.Debug|x64.ActiveCfg = Debug|Any CPU
{D3AD1315-4F57-495E-A866-81358666C649}.Debug|x64.Build.0 = Debug|Any CPU
{D3AD1315-4F57-495E-A866-81358666C649}.Debug|x86.ActiveCfg = Debug|Any CPU
{D3AD1315-4F57-495E-A866-81358666C649}.Debug|x86.Build.0 = Debug|Any CPU
{D3AD1315-4F57-495E-A866-81358666C649}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D3AD1315-4F57-495E-A866-81358666C649}.Release|Any CPU.Build.0 = Release|Any CPU
{D3AD1315-4F57-495E-A866-81358666C649}.Release|x64.ActiveCfg = Release|Any CPU
{D3AD1315-4F57-495E-A866-81358666C649}.Release|x64.Build.0 = Release|Any CPU
{D3AD1315-4F57-495E-A866-81358666C649}.Release|x86.ActiveCfg = Release|Any CPU
{D3AD1315-4F57-495E-A866-81358666C649}.Release|x86.Build.0 = Release|Any CPU
{6A10F280-8396-444B-AD0E-EF4A20323AED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6A10F280-8396-444B-AD0E-EF4A20323AED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6A10F280-8396-444B-AD0E-EF4A20323AED}.Debug|x64.ActiveCfg = Debug|Any CPU
{6A10F280-8396-444B-AD0E-EF4A20323AED}.Debug|x64.Build.0 = Debug|Any CPU
{6A10F280-8396-444B-AD0E-EF4A20323AED}.Debug|x86.ActiveCfg = Debug|Any CPU
{6A10F280-8396-444B-AD0E-EF4A20323AED}.Debug|x86.Build.0 = Debug|Any CPU
{6A10F280-8396-444B-AD0E-EF4A20323AED}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6A10F280-8396-444B-AD0E-EF4A20323AED}.Release|Any CPU.Build.0 = Release|Any CPU
{6A10F280-8396-444B-AD0E-EF4A20323AED}.Release|x64.ActiveCfg = Release|Any CPU
{6A10F280-8396-444B-AD0E-EF4A20323AED}.Release|x64.Build.0 = Release|Any CPU
{6A10F280-8396-444B-AD0E-EF4A20323AED}.Release|x86.ActiveCfg = Release|Any CPU
{6A10F280-8396-444B-AD0E-EF4A20323AED}.Release|x86.Build.0 = Release|Any CPU
{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}.Debug|x64.ActiveCfg = Debug|Any CPU
{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}.Debug|x64.Build.0 = Debug|Any CPU
{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}.Debug|x86.ActiveCfg = Debug|Any CPU
{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}.Debug|x86.Build.0 = Debug|Any CPU
{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}.Release|Any CPU.Build.0 = Release|Any CPU
{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}.Release|x64.ActiveCfg = Release|Any CPU
{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}.Release|x64.Build.0 = Release|Any CPU
{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}.Release|x86.ActiveCfg = Release|Any CPU
{4F796B85-0487-4DE0-A086-EEDE32ECD3B3}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{63C229FA-5E13-457A-868E-25B0C9C58AA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{63C229FA-5E13-457A-868E-25B0C9C58AA6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{63C229FA-5E13-457A-868E-25B0C9C58AA6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{63C229FA-5E13-457A-868E-25B0C9C58AA6}.Release|Any CPU.Build.0 = Release|Any CPU
{A53CDB6D-8EAD-4C1D-A175-A64C90CF4B6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A53CDB6D-8EAD-4C1D-A175-A64C90CF4B6B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A53CDB6D-8EAD-4C1D-A175-A64C90CF4B6B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A53CDB6D-8EAD-4C1D-A175-A64C90CF4B6B}.Release|Any CPU.Build.0 = Release|Any CPU
{86A26505-418B-49A8-99B6-52DE52C1B2F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{86A26505-418B-49A8-99B6-52DE52C1B2F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{86A26505-418B-49A8-99B6-52DE52C1B2F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{86A26505-418B-49A8-99B6-52DE52C1B2F4}.Release|Any CPU.Build.0 = Release|Any CPU
{21F9F0FA-71DD-42ED-AAB4-88AF11F8B6AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{21F9F0FA-71DD-42ED-AAB4-88AF11F8B6AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{21F9F0FA-71DD-42ED-AAB4-88AF11F8B6AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{21F9F0FA-71DD-42ED-AAB4-88AF11F8B6AB}.Release|Any CPU.Build.0 = Release|Any CPU
{AAEC702A-326A-40B8-9E02-04767A66D084}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AAEC702A-326A-40B8-9E02-04767A66D084}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AAEC702A-326A-40B8-9E02-04767A66D084}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AAEC702A-326A-40B8-9E02-04767A66D084}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution GlobalSection(NestedProjects) = preSolution
{63C229FA-5E13-457A-868E-25B0C9C58AA6} = {BEDF4556-0366-45BC-B0F3-9FF4EB11B9CB} {5172647D-5B13-42BB-A416-75C959BAFFA5} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B}
{A53CDB6D-8EAD-4C1D-A175-A64C90CF4B6B} = {BEDF4556-0366-45BC-B0F3-9FF4EB11B9CB} {946E5234-8F12-4A33-A5F3-E470E664201B} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B}
{86A26505-418B-49A8-99B6-52DE52C1B2F4} = {BEDF4556-0366-45BC-B0F3-9FF4EB11B9CB} {D3AD1315-4F57-495E-A866-81358666C649} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B}
{21F9F0FA-71DD-42ED-AAB4-88AF11F8B6AB} = {BEDF4556-0366-45BC-B0F3-9FF4EB11B9CB} {6A10F280-8396-444B-AD0E-EF4A20323AED} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B}
{AAEC702A-326A-40B8-9E02-04767A66D084} = {BEDF4556-0366-45BC-B0F3-9FF4EB11B9CB} {4F796B85-0487-4DE0-A086-EEDE32ECD3B3} = {827E0CD3-B72D-47B6-A68D-7590B98EB39B}
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal

View File

@ -3,17 +3,15 @@ var builder = WebApplication.CreateBuilder(args);
// Add services to the container. // Add services to the container.
builder.Services.AddControllers(); builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle // Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
builder.Services.AddEndpointsApiExplorer(); builder.Services.AddOpenApi();
builder.Services.AddSwaggerGen();
var app = builder.Build(); var app = builder.Build();
// Configure the HTTP request pipeline. // Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment()) if (app.Environment.IsDevelopment())
{ {
app.UseSwagger(); app.MapOpenApi();
app.UseSwaggerUI();
} }
app.UseHttpsRedirection(); app.UseHttpsRedirection();

View File

@ -1,20 +1,11 @@
{ {
"$schema": "http://json.schemastore.org/launchsettings.json", "$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:54692",
"sslPort": 44361
}
},
"profiles": { "profiles": {
"http": { "http": {
"commandName": "Project", "commandName": "Project",
"dotnetRunMessages": true, "dotnetRunMessages": true,
"launchBrowser": true, "launchBrowser": false,
"launchUrl": "swagger", "applicationUrl": "http://localhost:5280",
"applicationUrl": "http://localhost:5235",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
@ -22,17 +13,8 @@
"https": { "https": {
"commandName": "Project", "commandName": "Project",
"dotnetRunMessages": true, "dotnetRunMessages": true,
"launchBrowser": true, "launchBrowser": false,
"launchUrl": "swagger", "applicationUrl": "https://localhost:7275;http://localhost:5280",
"applicationUrl": "https://localhost:7164;http://localhost:5235",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }

View File

@ -1,18 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" /> <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.4" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\QuickDish.Application\QuickDish.Application.csproj" /> <ProjectReference Include="..\QuickDish.BLL\QuickDish.BLL.csproj" />
<ProjectReference Include="..\QuickDish.Infrastructure\QuickDish.Infrastructure.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -1,4 +1,4 @@
@QuickDish.Api_HostAddress = http://localhost:5235 @QuickDish.Api_HostAddress = http://localhost:5280
GET {{QuickDish.Api_HostAddress}}/weatherforecast/ GET {{QuickDish.Api_HostAddress}}/weatherforecast/
Accept: application/json Accept: application/json

View File

@ -1,6 +0,0 @@
namespace QuickDish.Application;
public class Class1
{
}

View File

@ -0,0 +1,6 @@
namespace QuickDish.BLL;
public class Class1
{
}

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\QuickDish.Application\QuickDish.Application.csproj" /> <ProjectReference Include="..\QuickDish.DataAccess\QuickDish.DataAccess.csproj" />
</ItemGroup> </ItemGroup>
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>

View File

@ -5,7 +5,10 @@ public partial class App : Application
public App() public App()
{ {
InitializeComponent(); InitializeComponent();
}
MainPage = new AppShell(); protected override Window CreateWindow(IActivationState? activationState)
{
return new Window(new AppShell());
} }
} }

View File

@ -4,7 +4,7 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:QuickDish.Client" xmlns:local="clr-namespace:QuickDish.Client"
Shell.FlyoutBehavior="Disabled" Shell.FlyoutBehavior="Flyout"
Title="QuickDish.Client"> Title="QuickDish.Client">
<ShellContent <ShellContent

View File

@ -11,7 +11,7 @@
Source="dotnet_bot.png" Source="dotnet_bot.png"
HeightRequest="185" HeightRequest="185"
Aspect="AspectFit" Aspect="AspectFit"
SemanticProperties.Description="dot net bot in a race car number eight" /> SemanticProperties.Description="dot net bot in a hovercraft number nine" />
<Label <Label
Text="Hello, World!" Text="Hello, World!"

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest package="maui-application-id-placeholder" version="0.0.0" api-version="8" xmlns="http://tizen.org/ns/packages"> <manifest package="maui-application-id-placeholder" version="0.0.0" api-version="9" xmlns="http://tizen.org/ns/packages">
<profile name="common" /> <profile name="common" />
<ui-application appid="maui-application-id-placeholder" exec="QuickDish.Client.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single"> <ui-application appid="maui-application-id-placeholder" exec="QuickDish.Client.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single">
<label>maui-application-title-placeholder</label> <label>maui-application-title-placeholder</label>

View File

@ -8,7 +8,7 @@
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" /> <Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
<mp:PhoneIdentity PhoneProductId="CDA04EFF-6E81-4D58-84FD-75B014FC7125" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> <mp:PhoneIdentity PhoneProductId="15A51895-3B19-487D-A63F-1414325A1307" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties> <Properties>
<DisplayName>$placeholder$</DisplayName> <DisplayName>$placeholder$</DisplayName>

View File

@ -1,7 +1,7 @@
{ {
"profiles": { "profiles": {
"Windows Machine": { "Windows Machine": {
"commandName": "MsixPackage", "commandName": "Project",
"nativeDebugging": false "nativeDebugging": false
} }
} }

View File

@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks> <TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks> <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET --> <!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> --> <!-- <TargetFrameworks>$(TargetFrameworks);net9.0-tizen</TargetFrameworks> -->
<!-- Note for MacCatalyst: <!-- Note for MacCatalyst:
The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64. The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.
@ -30,8 +30,11 @@
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion> <ApplicationVersion>1</ApplicationVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion> <!-- To develop, package, and publish an app to the Microsoft Store, see: https://aka.ms/MauiTemplateUnpackaged -->
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion> <WindowsPackageType>None</WindowsPackageType>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
@ -58,8 +61,11 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" /> <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" /> <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.1" /> </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\QuickDish.Core\QuickDish.Core.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 91 KiB

View File

@ -208,7 +208,7 @@
<Setter Property="TitleColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" /> <Setter Property="TitleColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
<Setter Property="BackgroundColor" Value="Transparent" /> <Setter Property="BackgroundColor" Value="Transparent" />
<Setter Property="FontFamily" Value="OpenSansRegular"/> <Setter Property="FontFamily" Value="OpenSansRegular"/>
<Setter Property="FontSize" Value="14"/> <Setter Property="FontSize" Value="14" />
<Setter Property="MinimumHeightRequest" Value="44"/> <Setter Property="MinimumHeightRequest" Value="44"/>
<Setter Property="MinimumWidthRequest" Value="44"/> <Setter Property="MinimumWidthRequest" Value="44"/>
<Setter Property="VisualStateManager.VisualStateGroups"> <Setter Property="VisualStateManager.VisualStateGroups">
@ -393,6 +393,30 @@
</Setter> </Setter>
</Style> </Style>
<!--
<Style TargetType="TitleBar">
<Setter Property="MinimumHeightRequest" Value="32"/>
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="TitleActiveStates">
<VisualState x:Name="TitleBarTitleActive">
<VisualState.Setters>
<Setter Property="BackgroundColor" Value="Transparent" />
<Setter Property="ForegroundColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="TitleBarTitleInactive">
<VisualState.Setters>
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
<Setter Property="ForegroundColor" Value="{AppThemeBinding Light={StaticResource Gray400}, Dark={StaticResource Gray500}}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
-->
<Style TargetType="Page" ApplyToDerivedTypes="True"> <Style TargetType="Page" ApplyToDerivedTypes="True">
<Setter Property="Padding" Value="0"/> <Setter Property="Padding" Value="0"/>
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource OffBlack}}" /> <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource OffBlack}}" />

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>

View File

@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QuickDish.Core;
/// <summary>
/// The base recipe class which holds basic tags defining the recipe, a title, a short description and an image and pdf url for the actualy recipe.
/// </summary>
internal class Recipe
{
public string Title { get; set; }
public string Description { get; set; }
public string[] Tags { get; set; }
public string ImageUrl { get; set; }
public string RecipeUrl { get; set; }
public Recipe(string title, string description, string[] tags, string imageUrl, string recipeUrl)
{
if (string.IsNullOrWhiteSpace(title))
throw new ArgumentException("Title can't be empty", nameof(title));
if (string.IsNullOrWhiteSpace(description))
throw new ArgumentException("Description can't be empty", nameof(description));
if (string.IsNullOrWhiteSpace(recipeUrl))
throw new ArgumentException("The Url to the Recipe can't be empty", nameof(recipeUrl));
if (string.IsNullOrWhiteSpace(imageUrl))
throw new ArgumentException("The Url to the Image of the Recipe can't be empty", nameof(imageUrl));
Title = title;
Description = description;
Tags = tags;
ImageUrl = imageUrl;
RecipeUrl = recipeUrl;
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QuickDish.Core;
internal class User
{
public int Id { get; set; }
public string Username { get; set; }
public string PasswordHash { get; set; }
}

View File

@ -0,0 +1,6 @@
namespace QuickDish.DataAccess;
public class Class1
{
}

View File

@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\QuickDish.Domain\QuickDish.Domain.csproj" /> <ProjectReference Include="..\QuickDish.Core\QuickDish.Core.csproj" />
</ItemGroup> </ItemGroup>
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>

View File

@ -1,6 +0,0 @@
namespace QuickDish.Domain;
public class Class1
{
}

View File

@ -1,6 +0,0 @@
namespace QuickDish.Infrastructure;
public class Class1
{
}