Moved db to Data folder

Added Favicon
This commit is contained in:
Robin Weichselbraun 2024-10-21 12:38:44 +02:00
parent 0703de3d74
commit b0dd765110
7 changed files with 25 additions and 11 deletions

View File

@ -13,7 +13,7 @@ namespace UWLecturePlan.Controllers
public IActionResult Index(LecturesViewModel model) public IActionResult Index(LecturesViewModel model)
{ {
LectureContext db = new(@"lecture.db"); LectureContext db = new(@"Data/lecture.db");
model.Semester ??= GetSemester(DateTime.Now); model.Semester ??= GetSemester(DateTime.Now);

View File

@ -1,7 +1,7 @@
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. #See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER app USER root
WORKDIR /app WORKDIR /app
EXPOSE 8080 EXPOSE 8080
EXPOSE 8081 EXPOSE 8081

View File

@ -17,4 +17,10 @@
<ProjectReference Include="..\UWLib\UWLib.csproj" /> <ProjectReference Include="..\UWLib\UWLib.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Update="Data\lecture.db">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project> </Project>

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - UWLecturePlan</title> <title>@ViewData["Title"] - UniForAll</title>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" /> <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" /> <link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
<link rel="stylesheet" href="~/UWLecturePlan.styles.css" asp-append-version="true" /> <link rel="stylesheet" href="~/UWLecturePlan.styles.css" asp-append-version="true" />
@ -16,13 +16,14 @@
@RenderBody() @RenderBody()
</main> </main>
@await RenderSectionAsync("Scripts", required: false) @await RenderSectionAsync("Scripts", required: false)
<footer class="p-3"> <footer class="p-3 text-center">
<p class="container-fluid text-center"> <p class="container-fluid">
&copy; 2024 Uni for All &copy; 2024 UniForAll
<address>
<a href="mailto:uniforall@nihil.foo">uniforall@nihil.foo</a>
</address>
</p> </p>
<address class="d-inline">
<a href="mailto:uniforall@nihil.foo">uniforall@nihil.foo</a>
</address>
</footer> </footer>
<script src="~/lib/jquery/dist/jquery.min.js"></script> <script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script> <script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>

View File

@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Condensed&display=swap');
html { html {
font-size: 14px; font-size: 14px;
} }
@ -15,4 +17,9 @@ html {
html { html {
position: relative; position: relative;
min-height: 100%; min-height: 100%;
}
:root {
--bs-primary: #0d6efd;
--bs-primary: #ff0000;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -5,9 +5,9 @@ VisualStudioVersion = 17.10.35027.167
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UWScraper", "UWScraper\UWScraper.csproj", "{AEBB2AEC-4BC8-427E-BFCB-C27607B3342F}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UWScraper", "UWScraper\UWScraper.csproj", "{AEBB2AEC-4BC8-427E-BFCB-C27607B3342F}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UWLecturePlan", "UWLecturePlan\UWLecturePlan.csproj", "{3E0B740E-C2B9-40E5-A56F-241552C771EB}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UWLecturePlan", "UWLecturePlan\UWLecturePlan.csproj", "{3E0B740E-C2B9-40E5-A56F-241552C771EB}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UWLib", "UWLib\UWLib.csproj", "{2D556C07-8FE5-47B1-AE98-671069D3ABFC}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UWLib", "UWLib\UWLib.csproj", "{2D556C07-8FE5-47B1-AE98-671069D3ABFC}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution