Compare commits
No commits in common. "52703c6f7bf52ff1a13d282ddcc002bcf3f970cb" and "37d22c78e0346e4789caa863d463e94bdb00a720" have entirely different histories.
52703c6f7b
...
37d22c78e0
@ -1,30 +0,0 @@
|
|||||||
**/.classpath
|
|
||||||
**/.dockerignore
|
|
||||||
**/.env
|
|
||||||
**/.git
|
|
||||||
**/.gitignore
|
|
||||||
**/.project
|
|
||||||
**/.settings
|
|
||||||
**/.toolstarget
|
|
||||||
**/.vs
|
|
||||||
**/.vscode
|
|
||||||
**/*.*proj.user
|
|
||||||
**/*.dbmdl
|
|
||||||
**/*.jfm
|
|
||||||
**/azds.yaml
|
|
||||||
**/bin
|
|
||||||
**/charts
|
|
||||||
**/docker-compose*
|
|
||||||
**/Dockerfile*
|
|
||||||
**/node_modules
|
|
||||||
**/npm-debug.log
|
|
||||||
**/obj
|
|
||||||
**/secrets.dev.yaml
|
|
||||||
**/values.dev.yaml
|
|
||||||
LICENSE
|
|
||||||
README.md
|
|
||||||
!**/.gitignore
|
|
||||||
!.git/HEAD
|
|
||||||
!.git/config
|
|
||||||
!.git/packed-refs
|
|
||||||
!.git/refs/heads/**
|
|
||||||
@ -1,108 +0,0 @@
|
|||||||
using System.Globalization;
|
|
||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
using UWLecturePlan.Models;
|
|
||||||
using UWLib;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace UWLecturePlan.Controllers
|
|
||||||
{
|
|
||||||
public class LectureController : Controller
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
public IActionResult Index(LecturesViewModel model)
|
|
||||||
{
|
|
||||||
LectureContext db = new(@"Data/lecture.db");
|
|
||||||
|
|
||||||
model.Semester ??= GetSemester(DateTime.Now);
|
|
||||||
|
|
||||||
var from = DateTime.Now;
|
|
||||||
|
|
||||||
var date = DateTime.ParseExact(model.Date, "dd.MM.yyyy", CultureInfo.GetCultureInfo("de"));
|
|
||||||
|
|
||||||
|
|
||||||
model.LectureEvents = [.. db.LectureEvents.Include(x=>x.Lecture)
|
|
||||||
.Where(x => x.Lecture.Semester == model.Semester)
|
|
||||||
.Where(x => x.Lecture.Branch == model.Branch || model.Branch == null)
|
|
||||||
|
|
||||||
.Where(x => x.From.Date == date)];
|
|
||||||
|
|
||||||
if (model.TypeFilter != null)
|
|
||||||
{
|
|
||||||
model.LectureEvents = model.LectureEvents
|
|
||||||
.Where(x => x.Lecture.Type == model.TypeFilter).ToList();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (model.Location != null)
|
|
||||||
{
|
|
||||||
model.LectureEvents = model.LectureEvents
|
|
||||||
.Where(x => x.Location?.Contains(model.Location) ?? false).ToList();
|
|
||||||
}
|
|
||||||
|
|
||||||
model.Branches = [.. db.LectureEvents.Select(x => x.Lecture.Branch).Distinct().OrderBy(x => x)];
|
|
||||||
|
|
||||||
model.Types = [.. db.LectureEvents.Select(x => x.Lecture.Type).Distinct().OrderBy(x => x)];
|
|
||||||
|
|
||||||
model.Semesters = [.. db.LectureEvents.Select(x => x.Lecture.Semester).Distinct().OrderBy(x => x)];
|
|
||||||
|
|
||||||
model.Days = db.LectureEvents
|
|
||||||
.Where(x => x.Lecture.Semester == model.Semester)
|
|
||||||
.Where(x => x.Lecture.Branch == model.Branch || model.Branch == null)
|
|
||||||
.GroupBy(x => x.From.Date).ToDictionary(x => x.Key, x => x.Count());
|
|
||||||
|
|
||||||
|
|
||||||
return View(model);
|
|
||||||
}
|
|
||||||
|
|
||||||
// This presumes that weeks start with Monday.
|
|
||||||
// Week 1 is the 1st week of the year with a Thursday in it.
|
|
||||||
public static int GetIso8601WeekOfYear(DateTime time)
|
|
||||||
{
|
|
||||||
// Seriously cheat. If its Monday, Tuesday or Wednesday, then it'll
|
|
||||||
// be the same week# as whatever Thursday, Friday or Saturday are,
|
|
||||||
// and we always get those right
|
|
||||||
DayOfWeek day = CultureInfo.InvariantCulture.Calendar.GetDayOfWeek(time);
|
|
||||||
if (day >= DayOfWeek.Monday && day <= DayOfWeek.Wednesday)
|
|
||||||
{
|
|
||||||
time = time.AddDays(3);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Return the week of our adjusted day
|
|
||||||
return CultureInfo.InvariantCulture.Calendar.GetWeekOfYear(time, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static DateTime FirstDateOfWeekISO8601(int year, int weekOfYear)
|
|
||||||
{
|
|
||||||
DateTime jan1 = new(year, 1, 1);
|
|
||||||
int daysOffset = DayOfWeek.Thursday - jan1.DayOfWeek;
|
|
||||||
|
|
||||||
// Use first Thursday in January to get first week of the year as
|
|
||||||
// it will never be in Week 52/53
|
|
||||||
DateTime firstThursday = jan1.AddDays(daysOffset);
|
|
||||||
var cal = CultureInfo.CurrentCulture.Calendar;
|
|
||||||
int firstWeek = cal.GetWeekOfYear(firstThursday, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday);
|
|
||||||
|
|
||||||
var weekNum = weekOfYear;
|
|
||||||
// As we're adding days to a date in Week 1,
|
|
||||||
// we need to subtract 1 in order to get the right date for week #1
|
|
||||||
if (firstWeek == 1)
|
|
||||||
{
|
|
||||||
weekNum -= 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Using the first Thursday as starting week ensures that we are starting in the right year
|
|
||||||
// then we add number of weeks multiplied with days
|
|
||||||
var result = firstThursday.AddDays(weekNum * 7);
|
|
||||||
|
|
||||||
// Subtract 3 days from Thursday to get Monday, which is the first weekday in ISO8601
|
|
||||||
return result.AddDays(-3);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public static string GetSemester(DateTime time)
|
|
||||||
{
|
|
||||||
return time.Year + (time.Month <= 6 ? "S" : "W");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
@ -1,25 +0,0 @@
|
|||||||
#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
|
|
||||||
USER root
|
|
||||||
WORKDIR /app
|
|
||||||
EXPOSE 8080
|
|
||||||
EXPOSE 8081
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
|
||||||
ARG BUILD_CONFIGURATION=Release
|
|
||||||
WORKDIR /src
|
|
||||||
COPY ["UWLecturePlan/UWLecturePlan.csproj", "UWLecturePlan/"]
|
|
||||||
RUN dotnet restore "./UWLecturePlan/UWLecturePlan.csproj"
|
|
||||||
COPY . .
|
|
||||||
WORKDIR "/src/UWLecturePlan"
|
|
||||||
RUN dotnet build "./UWLecturePlan.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
|
||||||
|
|
||||||
FROM build AS publish
|
|
||||||
ARG BUILD_CONFIGURATION=Release
|
|
||||||
RUN dotnet publish "./UWLecturePlan.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
|
||||||
|
|
||||||
FROM base AS final
|
|
||||||
WORKDIR /app
|
|
||||||
COPY --from=publish /app/publish .
|
|
||||||
ENTRYPOINT ["dotnet", "UWLecturePlan.dll"]
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
namespace UWLecturePlan.Models
|
|
||||||
{
|
|
||||||
public class ErrorViewModel
|
|
||||||
{
|
|
||||||
public string? RequestId { get; set; }
|
|
||||||
|
|
||||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,30 +0,0 @@
|
|||||||
using System.ComponentModel;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using UWLib;
|
|
||||||
|
|
||||||
namespace UWLecturePlan.Models
|
|
||||||
{
|
|
||||||
public class LecturesViewModel
|
|
||||||
{
|
|
||||||
|
|
||||||
public string? Semester { get; set; }
|
|
||||||
|
|
||||||
public string? Location { get; set; }
|
|
||||||
|
|
||||||
public string? Branch { get; set; }
|
|
||||||
|
|
||||||
public string? TypeFilter { get; set; }
|
|
||||||
|
|
||||||
public string Date { get; set; } = DateTime.Today.ToString("dd.MM.yyyy");
|
|
||||||
|
|
||||||
public List<LectureEvent> LectureEvents { get; set; } = [];
|
|
||||||
|
|
||||||
public List<string> Branches { get; set; } = [];
|
|
||||||
|
|
||||||
public List<string> Types { get; set; } = [];
|
|
||||||
|
|
||||||
public List<string> Semesters { get; set; } = [];
|
|
||||||
|
|
||||||
public Dictionary<DateTime, int> Days { get; set; } = [];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,34 +0,0 @@
|
|||||||
using System.ComponentModel;
|
|
||||||
using Microsoft.AspNetCore.Mvc.ModelBinding.Binders;
|
|
||||||
using UWLecturePlan;
|
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
|
||||||
|
|
||||||
// Add services to the container.
|
|
||||||
builder.Services.AddControllersWithViews(x => x.ModelBinderProviders.Insert(0, new DateTimeModelBinderProvider())).AddRazorRuntimeCompilation();
|
|
||||||
|
|
||||||
var app = builder.Build();
|
|
||||||
|
|
||||||
// Configure the HTTP request pipeline.
|
|
||||||
if (!app.Environment.IsDevelopment())
|
|
||||||
{
|
|
||||||
app.UseExceptionHandler("/Home/Error");
|
|
||||||
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
|
||||||
app.UseHsts();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
app.UseHttpsRedirection();
|
|
||||||
app.UseStaticFiles();
|
|
||||||
|
|
||||||
app.UseRouting();
|
|
||||||
|
|
||||||
app.UseAuthorization();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
app.MapControllerRoute(
|
|
||||||
name: "default",
|
|
||||||
pattern: "{controller=Lecture}/{action=Index}/{id?}");
|
|
||||||
|
|
||||||
app.Run();
|
|
||||||
@ -1,49 +0,0 @@
|
|||||||
{
|
|
||||||
"profiles": {
|
|
||||||
"http": {
|
|
||||||
"commandName": "Project",
|
|
||||||
"launchBrowser": true,
|
|
||||||
"environmentVariables": {
|
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
|
||||||
},
|
|
||||||
"dotnetRunMessages": true,
|
|
||||||
"applicationUrl": "http://localhost:5068"
|
|
||||||
},
|
|
||||||
"https": {
|
|
||||||
"commandName": "Project",
|
|
||||||
"launchBrowser": true,
|
|
||||||
"environmentVariables": {
|
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
|
||||||
},
|
|
||||||
"dotnetRunMessages": true,
|
|
||||||
"applicationUrl": "https://localhost:7171;http://localhost:5068"
|
|
||||||
},
|
|
||||||
"IIS Express": {
|
|
||||||
"commandName": "IISExpress",
|
|
||||||
"launchBrowser": true,
|
|
||||||
"environmentVariables": {
|
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Container (Dockerfile)": {
|
|
||||||
"commandName": "Docker",
|
|
||||||
"launchBrowser": true,
|
|
||||||
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
|
|
||||||
"environmentVariables": {
|
|
||||||
"ASPNETCORE_HTTPS_PORTS": "8081",
|
|
||||||
"ASPNETCORE_HTTP_PORTS": "8080"
|
|
||||||
},
|
|
||||||
"publishAllPorts": true,
|
|
||||||
"useSSL": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"$schema": "http://json.schemastore.org/launchsettings.json",
|
|
||||||
"iisSettings": {
|
|
||||||
"windowsAuthentication": false,
|
|
||||||
"anonymousAuthentication": true,
|
|
||||||
"iisExpress": {
|
|
||||||
"applicationUrl": "http://localhost:28378",
|
|
||||||
"sslPort": 44359
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
|
||||||
<Nullable>enable</Nullable>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
|
||||||
<UserSecretsId>e2d409c6-bca2-4155-a6fc-531196d785a6</UserSecretsId>
|
|
||||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.10" />
|
|
||||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.20.1" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\UWLib\UWLib.csproj" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<None Update="Data\lecture.db">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
||||||
@ -1,180 +0,0 @@
|
|||||||
@using System.Text.RegularExpressions
|
|
||||||
@using System.Globalization;
|
|
||||||
@model LecturesViewModel
|
|
||||||
@{
|
|
||||||
ViewData["Title"] = "Vorlesungsplan";
|
|
||||||
|
|
||||||
string GetBranchName(string branch)
|
|
||||||
{
|
|
||||||
Regex regex = new Regex(@".* - (.*)");
|
|
||||||
|
|
||||||
var match = regex.Match(branch);
|
|
||||||
if (match.Success)
|
|
||||||
{
|
|
||||||
return match.Groups[1].Value;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return branch;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@section Header {
|
|
||||||
<search class="container-fluid">
|
|
||||||
<form method="get" class=" mb-2">
|
|
||||||
<div class="row g-1">
|
|
||||||
<div class="order-1 col-6 col-sm-3 col-md-2 col-lg-2 col-xl-2 col-xxl-1">
|
|
||||||
<label for="Semester" class="form-label">Semester:</label>
|
|
||||||
<select asp-for="Semester" class="form-select">
|
|
||||||
@foreach (var semester in Model.Semesters)
|
|
||||||
{
|
|
||||||
<option value="@semester">
|
|
||||||
@semester
|
|
||||||
</option>
|
|
||||||
}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="order-1 col-6 col-sm-3 col-md-3 col-lg-2 col-xl-2 col-xxl-2">
|
|
||||||
<label for="Date" class="form-label">Datum:</label>
|
|
||||||
<select asp-for="Date" class="form-select">
|
|
||||||
@foreach (var day in Model.Days)
|
|
||||||
{
|
|
||||||
if (@day.Key.ToString("dd.MM.yyyy") == Model.Date)
|
|
||||||
{
|
|
||||||
<option value="@day.Key.ToString("dd.MM.yyyy")" selected>
|
|
||||||
@day.Key.ToString("ddd dd.MM.yyyy", CultureInfo.GetCultureInfo("de"))
|
|
||||||
</option>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<option value="@day.Key.ToString("dd.MM.yyyy")">
|
|
||||||
@day.Key.ToString("ddd dd.MM.yyyy", CultureInfo.GetCultureInfo("de"))
|
|
||||||
</option>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="order-1 col-12 col-sm-6 col-md-7 col-lg-3 col-xxl-2">
|
|
||||||
<label class="form-label" for="Location">Ort:</label> <input type="text" asp-for="Location" class="form-control" />
|
|
||||||
</div>
|
|
||||||
<div class="order-1 col-12 col-sm-10 col-lg-4 col-xxl">
|
|
||||||
<label for="TypeFilter" class="form-label">Typ:</label>
|
|
||||||
<select type="text" asp-for="TypeFilter" class="form-select">
|
|
||||||
<option value="">Alle</option>
|
|
||||||
@foreach (var branch in Model.Types.OrderBy(x => GetBranchName(x)))
|
|
||||||
{
|
|
||||||
<option value="@branch">
|
|
||||||
@GetBranchName(branch)
|
|
||||||
</option>
|
|
||||||
}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="col-12 col-xxl order-0 order-xxl-1 col-xxl-3">
|
|
||||||
<label for="Branch" class="form-label">Studiengang:</label>
|
|
||||||
|
|
||||||
<select type="text" asp-for="Branch" class="form-select">
|
|
||||||
<option value="">Alle</option>
|
|
||||||
@foreach (var branch in Model.Branches.OrderBy(x => GetBranchName(x)))
|
|
||||||
{
|
|
||||||
<option value="@branch">
|
|
||||||
@GetBranchName(branch)
|
|
||||||
</option>
|
|
||||||
}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="order-1 col-12 col-sm-2 col-lg-1 align-self-end text-end">
|
|
||||||
<input type="submit" value="Filter" class="btn btn-primary w-100" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</search>
|
|
||||||
}
|
|
||||||
|
|
||||||
<div class="container-fluid" id="lectures">
|
|
||||||
<div class="accordion">
|
|
||||||
@foreach (var time in Model.LectureEvents.GroupBy(x => x.From).OrderBy(x => x.Key))
|
|
||||||
{
|
|
||||||
string timeId = time.Key.ToString("HHmm");
|
|
||||||
string timeHeader = $"header-{timeId}";
|
|
||||||
string timeCollapse = $"collapse-{timeId}";
|
|
||||||
string timeAccordion = $"accordion-{timeId}";
|
|
||||||
<div class="accordion-item">
|
|
||||||
<h2 id="@timeHeader" class="accordion-header">
|
|
||||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#@timeCollapse" aria-expanded="false" aria-controls="@timeCollapse">
|
|
||||||
@time.Key.ToString("HH:mm")
|
|
||||||
</button>
|
|
||||||
</h2>
|
|
||||||
<div id="@timeCollapse" class="accordion-collapse collapse" aria-labelledby="@timeHeader">
|
|
||||||
<div class="accordion-body">
|
|
||||||
<div class="accordion accordion-flush" id="@timeAccordion">
|
|
||||||
|
|
||||||
@foreach (var eventItem in time.Distinct().OrderBy(x => x.Lecture.Title))
|
|
||||||
{
|
|
||||||
string eventId = $"{timeId}-{eventItem.Id}";
|
|
||||||
string eventHeader = $"header-{eventId}";
|
|
||||||
string eventCollapse = $"collapse-{eventId}";
|
|
||||||
<div class="accordion-item">
|
|
||||||
<h3 id="@eventHeader" class="accordion-header">
|
|
||||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#@eventCollapse" aria-expanded="false" aria-controls="@eventCollapse">
|
|
||||||
@Html.Raw(eventItem.Lecture.Title)
|
|
||||||
</button>
|
|
||||||
</h3>
|
|
||||||
<div id="@eventCollapse" class="accordion-collapse collapse" aria-labelledby="@eventHeader" data-bs-parent="#@timeAccordion">
|
|
||||||
<div class="accordion-body">
|
|
||||||
<div class="time">
|
|
||||||
<span>Zeitraum:</span>
|
|
||||||
<time datetime="@eventItem.From.ToString("HH:mm")" class="fw-bolder">@eventItem.From.ToString("HH:mm")</time> - <time datetime="@eventItem.To.ToString("HH:mm")" class="fw-bolder">@eventItem.To.ToString("HH:mm")</time>
|
|
||||||
</div>
|
|
||||||
<div class="room">
|
|
||||||
<span>Ort:</span>
|
|
||||||
<address class="d-inline fw-bolder">@eventItem.Location</address>
|
|
||||||
</div>
|
|
||||||
<a href="@eventItem.Lecture.Url">@eventItem.Lecture.Url</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<noscript>
|
|
||||||
<style>
|
|
||||||
#lectures {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
details {
|
|
||||||
}
|
|
||||||
|
|
||||||
details > :not(summary) {
|
|
||||||
margin-left: 15px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@foreach (var time in Model.LectureEvents.GroupBy(x => x.From).OrderBy(x => x.Key))
|
|
||||||
{
|
|
||||||
<details>
|
|
||||||
<summary>@time.Key.ToString("HH:mm")</summary>
|
|
||||||
@foreach (var eventItem in time.Distinct().OrderBy(x => x.Lecture.Title))
|
|
||||||
{
|
|
||||||
<details class="lecture">
|
|
||||||
<summary class="title">@eventItem.Lecture.Title</summary>
|
|
||||||
|
|
||||||
<div class="time">Zeitraum: @eventItem.From.ToString("HH:mm") - @eventItem.To.ToString("HH:mm")</div>
|
|
||||||
<div class="room">Ort: @eventItem.Location</div>
|
|
||||||
|
|
||||||
<a href="@eventItem.Lecture.Url">@eventItem.Lecture.Url</a>
|
|
||||||
|
|
||||||
</details>
|
|
||||||
}
|
|
||||||
|
|
||||||
</details>
|
|
||||||
}
|
|
||||||
</noscript>
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
@model ErrorViewModel
|
|
||||||
@{
|
|
||||||
ViewData["Title"] = "Error";
|
|
||||||
}
|
|
||||||
|
|
||||||
<h1 class="text-danger">Error.</h1>
|
|
||||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
|
||||||
|
|
||||||
@if (Model.ShowRequestId)
|
|
||||||
{
|
|
||||||
<p>
|
|
||||||
<strong>Request ID:</strong> <code>@Model.RequestId</code>
|
|
||||||
</p>
|
|
||||||
}
|
|
||||||
|
|
||||||
<h3>Development Mode</h3>
|
|
||||||
<p>
|
|
||||||
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
|
||||||
It can result in displaying sensitive information from exceptions to end users.
|
|
||||||
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
|
||||||
and restarting the app.
|
|
||||||
</p>
|
|
||||||
@ -1,57 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<!-- Primary Meta Tags -->
|
|
||||||
<title>UniForAll</title>
|
|
||||||
<meta name="title" content="UniForAll" />
|
|
||||||
<meta name="description" content="Stundenplan für Gasthörer und Studierende" />
|
|
||||||
|
|
||||||
<!-- Open Graph / Facebook -->
|
|
||||||
<meta property="og:type" content="website" />
|
|
||||||
<meta property="og:url" content="https://uniforall.nihil.foo/" />
|
|
||||||
<meta property="og:title" content="UniForAll" />
|
|
||||||
<meta property="og:description" content="Stundenplan für Gasthörer und Studierende" />
|
|
||||||
<meta property="og:type" content="article">
|
|
||||||
<meta property="og:image" content="https://uniforall.nihil.foo/images/ufalogobig.png" />
|
|
||||||
<meta property="og:image:secure_url" content="https://uniforall.nihil.foo/images/ufalogobig.png" />
|
|
||||||
<meta property="og:image:type" content="image/png">
|
|
||||||
<meta property="og:image:width" content="1200">
|
|
||||||
<meta property="og:image:height" content="628">
|
|
||||||
<!-- Twitter -->
|
|
||||||
<meta property="twitter:card" content="summary_large_image" />
|
|
||||||
<meta property="twitter:url" content="https://uniforall.nihil.foo/" />
|
|
||||||
<meta property="twitter:title" content="UniForAll" />
|
|
||||||
<meta property="twitter:description" content="Stundenplan für Gasthörer und Studierende" />
|
|
||||||
<meta property="twitter:image" content="https://uniforall.nihil.foo/images/ufalogobig.png" />
|
|
||||||
<meta property="twitter:image:src" content="https://uniforall.nihil.foo/images/ufalogobig.png" />
|
|
||||||
|
|
||||||
<!-- Meta Tags Generated with https://metatags.io -->
|
|
||||||
|
|
||||||
<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="~/UWLecturePlan.styles.css" asp-append-version="true" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header class="p-3 pb-0">
|
|
||||||
@await RenderSectionAsync("Header", required: false)
|
|
||||||
</header>
|
|
||||||
<main role="main" class="p-3 pt-0 pb-0">
|
|
||||||
@RenderBody()
|
|
||||||
</main>
|
|
||||||
@await RenderSectionAsync("Scripts", required: false)
|
|
||||||
<footer class="p-3 text-center">
|
|
||||||
<p class="container-fluid">
|
|
||||||
© 2024 UniForAll
|
|
||||||
</p>
|
|
||||||
<address class="d-inline">
|
|
||||||
<a href="mailto:uniforall@nihil.foo">uniforall@nihil.foo</a>
|
|
||||||
</address>
|
|
||||||
|
|
||||||
</footer>
|
|
||||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
|
||||||
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
|
||||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@ -1,48 +0,0 @@
|
|||||||
/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
|
|
||||||
for details on configuring this project to bundle and minify static web assets. */
|
|
||||||
|
|
||||||
a.navbar-brand {
|
|
||||||
white-space: normal;
|
|
||||||
text-align: center;
|
|
||||||
word-break: break-all;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #0077cc;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-primary {
|
|
||||||
color: #fff;
|
|
||||||
background-color: #1b6ec2;
|
|
||||||
border-color: #1861ac;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
|
|
||||||
color: #fff;
|
|
||||||
background-color: #1b6ec2;
|
|
||||||
border-color: #1861ac;
|
|
||||||
}
|
|
||||||
|
|
||||||
.border-top {
|
|
||||||
border-top: 1px solid #e5e5e5;
|
|
||||||
}
|
|
||||||
.border-bottom {
|
|
||||||
border-bottom: 1px solid #e5e5e5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.box-shadow {
|
|
||||||
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
|
|
||||||
}
|
|
||||||
|
|
||||||
button.accept-policy {
|
|
||||||
font-size: 1rem;
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
width: 100%;
|
|
||||||
white-space: nowrap;
|
|
||||||
line-height: 60px;
|
|
||||||
}
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
|
||||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
@using UWLecturePlan
|
|
||||||
@using UWLecturePlan.Models
|
|
||||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
@{
|
|
||||||
Layout = "_Layout";
|
|
||||||
}
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"Logging": {
|
|
||||||
"LogLevel": {
|
|
||||||
"Default": "Information",
|
|
||||||
"Microsoft.AspNetCore": "Warning"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
|
|
||||||
"Logging": {
|
|
||||||
"LogLevel": {
|
|
||||||
"Default": "Information",
|
|
||||||
"Microsoft.AspNetCore": "Warning"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"AllowedHosts": "*"
|
|
||||||
}
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Condensed&display=swap');
|
|
||||||
|
|
||||||
html {
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
html {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
|
|
||||||
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
|
||||||
position: relative;
|
|
||||||
min-height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--bs-primary: #0d6efd;
|
|
||||||
--bs-primary: #ff0000;
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 22 KiB |
@ -1,4 +0,0 @@
|
|||||||
// Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
|
|
||||||
// for details on configuring this project to bundle and minify static web assets.
|
|
||||||
|
|
||||||
// Write your JavaScript code.
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2011-2021 Twitter, Inc.
|
|
||||||
Copyright (c) 2011-2021 The Bootstrap Authors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,427 +0,0 @@
|
|||||||
/*!
|
|
||||||
* Bootstrap Reboot v5.1.0 (https://getbootstrap.com/)
|
|
||||||
* Copyright 2011-2021 The Bootstrap Authors
|
|
||||||
* Copyright 2011-2021 Twitter, Inc.
|
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
|
||||||
*/
|
|
||||||
*,
|
|
||||||
*::before,
|
|
||||||
*::after {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-reduced-motion: no-preference) {
|
|
||||||
:root {
|
|
||||||
scroll-behavior: smooth;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: var(--bs-body-font-family);
|
|
||||||
font-size: var(--bs-body-font-size);
|
|
||||||
font-weight: var(--bs-body-font-weight);
|
|
||||||
line-height: var(--bs-body-line-height);
|
|
||||||
color: var(--bs-body-color);
|
|
||||||
text-align: var(--bs-body-text-align);
|
|
||||||
background-color: var(--bs-body-bg);
|
|
||||||
-webkit-text-size-adjust: 100%;
|
|
||||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
hr {
|
|
||||||
margin: 1rem 0;
|
|
||||||
color: inherit;
|
|
||||||
background-color: currentColor;
|
|
||||||
border: 0;
|
|
||||||
opacity: 0.25;
|
|
||||||
}
|
|
||||||
|
|
||||||
hr:not([size]) {
|
|
||||||
height: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
h6, h5, h4, h3, h2, h1 {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
font-weight: 500;
|
|
||||||
line-height: 1.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: calc(1.375rem + 1.5vw);
|
|
||||||
}
|
|
||||||
@media (min-width: 1200px) {
|
|
||||||
h1 {
|
|
||||||
font-size: 2.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-size: calc(1.325rem + 0.9vw);
|
|
||||||
}
|
|
||||||
@media (min-width: 1200px) {
|
|
||||||
h2 {
|
|
||||||
font-size: 2rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
h3 {
|
|
||||||
font-size: calc(1.3rem + 0.6vw);
|
|
||||||
}
|
|
||||||
@media (min-width: 1200px) {
|
|
||||||
h3 {
|
|
||||||
font-size: 1.75rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
h4 {
|
|
||||||
font-size: calc(1.275rem + 0.3vw);
|
|
||||||
}
|
|
||||||
@media (min-width: 1200px) {
|
|
||||||
h4 {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
h5 {
|
|
||||||
font-size: 1.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
h6 {
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
abbr[title],
|
|
||||||
abbr[data-bs-original-title] {
|
|
||||||
-webkit-text-decoration: underline dotted;
|
|
||||||
text-decoration: underline dotted;
|
|
||||||
cursor: help;
|
|
||||||
-webkit-text-decoration-skip-ink: none;
|
|
||||||
text-decoration-skip-ink: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
address {
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
font-style: normal;
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
ol,
|
|
||||||
ul {
|
|
||||||
padding-left: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
ol,
|
|
||||||
ul,
|
|
||||||
dl {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
ol ol,
|
|
||||||
ul ul,
|
|
||||||
ol ul,
|
|
||||||
ul ol {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
dt {
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
dd {
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote {
|
|
||||||
margin: 0 0 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
b,
|
|
||||||
strong {
|
|
||||||
font-weight: bolder;
|
|
||||||
}
|
|
||||||
|
|
||||||
small {
|
|
||||||
font-size: 0.875em;
|
|
||||||
}
|
|
||||||
|
|
||||||
mark {
|
|
||||||
padding: 0.2em;
|
|
||||||
background-color: #fcf8e3;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub,
|
|
||||||
sup {
|
|
||||||
position: relative;
|
|
||||||
font-size: 0.75em;
|
|
||||||
line-height: 0;
|
|
||||||
vertical-align: baseline;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub {
|
|
||||||
bottom: -0.25em;
|
|
||||||
}
|
|
||||||
|
|
||||||
sup {
|
|
||||||
top: -0.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #0d6efd;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
a:hover {
|
|
||||||
color: #0a58ca;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:not([href]):not([class]), a:not([href]):not([class]):hover {
|
|
||||||
color: inherit;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre,
|
|
||||||
code,
|
|
||||||
kbd,
|
|
||||||
samp {
|
|
||||||
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
||||||
font-size: 1em;
|
|
||||||
direction: ltr /* rtl:ignore */;
|
|
||||||
unicode-bidi: bidi-override;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre {
|
|
||||||
display: block;
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
overflow: auto;
|
|
||||||
font-size: 0.875em;
|
|
||||||
}
|
|
||||||
pre code {
|
|
||||||
font-size: inherit;
|
|
||||||
color: inherit;
|
|
||||||
word-break: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
code {
|
|
||||||
font-size: 0.875em;
|
|
||||||
color: #d63384;
|
|
||||||
word-wrap: break-word;
|
|
||||||
}
|
|
||||||
a > code {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
kbd {
|
|
||||||
padding: 0.2rem 0.4rem;
|
|
||||||
font-size: 0.875em;
|
|
||||||
color: #fff;
|
|
||||||
background-color: #212529;
|
|
||||||
border-radius: 0.2rem;
|
|
||||||
}
|
|
||||||
kbd kbd {
|
|
||||||
padding: 0;
|
|
||||||
font-size: 1em;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
figure {
|
|
||||||
margin: 0 0 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
img,
|
|
||||||
svg {
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
|
||||||
caption-side: bottom;
|
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
|
|
||||||
caption {
|
|
||||||
padding-top: 0.5rem;
|
|
||||||
padding-bottom: 0.5rem;
|
|
||||||
color: #6c757d;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
th {
|
|
||||||
text-align: inherit;
|
|
||||||
text-align: -webkit-match-parent;
|
|
||||||
}
|
|
||||||
|
|
||||||
thead,
|
|
||||||
tbody,
|
|
||||||
tfoot,
|
|
||||||
tr,
|
|
||||||
td,
|
|
||||||
th {
|
|
||||||
border-color: inherit;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
button:focus:not(:focus-visible) {
|
|
||||||
outline: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
input,
|
|
||||||
button,
|
|
||||||
select,
|
|
||||||
optgroup,
|
|
||||||
textarea {
|
|
||||||
margin: 0;
|
|
||||||
font-family: inherit;
|
|
||||||
font-size: inherit;
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
button,
|
|
||||||
select {
|
|
||||||
text-transform: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
[role=button] {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
select {
|
|
||||||
word-wrap: normal;
|
|
||||||
}
|
|
||||||
select:disabled {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
[list]::-webkit-calendar-picker-indicator {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
button,
|
|
||||||
[type=button],
|
|
||||||
[type=reset],
|
|
||||||
[type=submit] {
|
|
||||||
-webkit-appearance: button;
|
|
||||||
}
|
|
||||||
button:not(:disabled),
|
|
||||||
[type=button]:not(:disabled),
|
|
||||||
[type=reset]:not(:disabled),
|
|
||||||
[type=submit]:not(:disabled) {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-moz-focus-inner {
|
|
||||||
padding: 0;
|
|
||||||
border-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea {
|
|
||||||
resize: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
fieldset {
|
|
||||||
min-width: 0;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
legend {
|
|
||||||
float: left;
|
|
||||||
width: 100%;
|
|
||||||
padding: 0;
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
font-size: calc(1.275rem + 0.3vw);
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
|
||||||
@media (min-width: 1200px) {
|
|
||||||
legend {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
legend + * {
|
|
||||||
clear: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-datetime-edit-fields-wrapper,
|
|
||||||
::-webkit-datetime-edit-text,
|
|
||||||
::-webkit-datetime-edit-minute,
|
|
||||||
::-webkit-datetime-edit-hour-field,
|
|
||||||
::-webkit-datetime-edit-day-field,
|
|
||||||
::-webkit-datetime-edit-month-field,
|
|
||||||
::-webkit-datetime-edit-year-field {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-inner-spin-button {
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
[type=search] {
|
|
||||||
outline-offset: -2px;
|
|
||||||
-webkit-appearance: textfield;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* rtl:raw:
|
|
||||||
[type="tel"],
|
|
||||||
[type="url"],
|
|
||||||
[type="email"],
|
|
||||||
[type="number"] {
|
|
||||||
direction: ltr;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
::-webkit-search-decoration {
|
|
||||||
-webkit-appearance: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-color-swatch-wrapper {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
::file-selector-button {
|
|
||||||
font: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-file-upload-button {
|
|
||||||
font: inherit;
|
|
||||||
-webkit-appearance: button;
|
|
||||||
}
|
|
||||||
|
|
||||||
output {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
iframe {
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
summary {
|
|
||||||
display: list-item;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
progress {
|
|
||||||
vertical-align: baseline;
|
|
||||||
}
|
|
||||||
|
|
||||||
[hidden] {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*# sourceMappingURL=bootstrap-reboot.css.map */
|
|
||||||
File diff suppressed because one or more lines are too long
@ -1,8 +0,0 @@
|
|||||||
/*!
|
|
||||||
* Bootstrap Reboot v5.1.0 (https://getbootstrap.com/)
|
|
||||||
* Copyright 2011-2021 The Bootstrap Authors
|
|
||||||
* Copyright 2011-2021 Twitter, Inc.
|
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
|
||||||
*/*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:.25}hr:not([size]){height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-original-title],abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]::-webkit-calendar-picker-indicator{display:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
|
|
||||||
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
|
|
||||||
File diff suppressed because one or more lines are too long
@ -1,424 +0,0 @@
|
|||||||
/*!
|
|
||||||
* Bootstrap Reboot v5.1.0 (https://getbootstrap.com/)
|
|
||||||
* Copyright 2011-2021 The Bootstrap Authors
|
|
||||||
* Copyright 2011-2021 Twitter, Inc.
|
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
|
||||||
*/
|
|
||||||
*,
|
|
||||||
*::before,
|
|
||||||
*::after {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-reduced-motion: no-preference) {
|
|
||||||
:root {
|
|
||||||
scroll-behavior: smooth;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: var(--bs-body-font-family);
|
|
||||||
font-size: var(--bs-body-font-size);
|
|
||||||
font-weight: var(--bs-body-font-weight);
|
|
||||||
line-height: var(--bs-body-line-height);
|
|
||||||
color: var(--bs-body-color);
|
|
||||||
text-align: var(--bs-body-text-align);
|
|
||||||
background-color: var(--bs-body-bg);
|
|
||||||
-webkit-text-size-adjust: 100%;
|
|
||||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
hr {
|
|
||||||
margin: 1rem 0;
|
|
||||||
color: inherit;
|
|
||||||
background-color: currentColor;
|
|
||||||
border: 0;
|
|
||||||
opacity: 0.25;
|
|
||||||
}
|
|
||||||
|
|
||||||
hr:not([size]) {
|
|
||||||
height: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
h6, h5, h4, h3, h2, h1 {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
font-weight: 500;
|
|
||||||
line-height: 1.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: calc(1.375rem + 1.5vw);
|
|
||||||
}
|
|
||||||
@media (min-width: 1200px) {
|
|
||||||
h1 {
|
|
||||||
font-size: 2.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
font-size: calc(1.325rem + 0.9vw);
|
|
||||||
}
|
|
||||||
@media (min-width: 1200px) {
|
|
||||||
h2 {
|
|
||||||
font-size: 2rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
h3 {
|
|
||||||
font-size: calc(1.3rem + 0.6vw);
|
|
||||||
}
|
|
||||||
@media (min-width: 1200px) {
|
|
||||||
h3 {
|
|
||||||
font-size: 1.75rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
h4 {
|
|
||||||
font-size: calc(1.275rem + 0.3vw);
|
|
||||||
}
|
|
||||||
@media (min-width: 1200px) {
|
|
||||||
h4 {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
h5 {
|
|
||||||
font-size: 1.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
h6 {
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
abbr[title],
|
|
||||||
abbr[data-bs-original-title] {
|
|
||||||
-webkit-text-decoration: underline dotted;
|
|
||||||
text-decoration: underline dotted;
|
|
||||||
cursor: help;
|
|
||||||
-webkit-text-decoration-skip-ink: none;
|
|
||||||
text-decoration-skip-ink: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
address {
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
font-style: normal;
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
ol,
|
|
||||||
ul {
|
|
||||||
padding-right: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
ol,
|
|
||||||
ul,
|
|
||||||
dl {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
ol ol,
|
|
||||||
ul ul,
|
|
||||||
ol ul,
|
|
||||||
ul ol {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
dt {
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
dd {
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote {
|
|
||||||
margin: 0 0 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
b,
|
|
||||||
strong {
|
|
||||||
font-weight: bolder;
|
|
||||||
}
|
|
||||||
|
|
||||||
small {
|
|
||||||
font-size: 0.875em;
|
|
||||||
}
|
|
||||||
|
|
||||||
mark {
|
|
||||||
padding: 0.2em;
|
|
||||||
background-color: #fcf8e3;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub,
|
|
||||||
sup {
|
|
||||||
position: relative;
|
|
||||||
font-size: 0.75em;
|
|
||||||
line-height: 0;
|
|
||||||
vertical-align: baseline;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub {
|
|
||||||
bottom: -0.25em;
|
|
||||||
}
|
|
||||||
|
|
||||||
sup {
|
|
||||||
top: -0.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #0d6efd;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
a:hover {
|
|
||||||
color: #0a58ca;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:not([href]):not([class]), a:not([href]):not([class]):hover {
|
|
||||||
color: inherit;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre,
|
|
||||||
code,
|
|
||||||
kbd,
|
|
||||||
samp {
|
|
||||||
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
||||||
font-size: 1em;
|
|
||||||
direction: ltr ;
|
|
||||||
unicode-bidi: bidi-override;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre {
|
|
||||||
display: block;
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
overflow: auto;
|
|
||||||
font-size: 0.875em;
|
|
||||||
}
|
|
||||||
pre code {
|
|
||||||
font-size: inherit;
|
|
||||||
color: inherit;
|
|
||||||
word-break: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
code {
|
|
||||||
font-size: 0.875em;
|
|
||||||
color: #d63384;
|
|
||||||
word-wrap: break-word;
|
|
||||||
}
|
|
||||||
a > code {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
kbd {
|
|
||||||
padding: 0.2rem 0.4rem;
|
|
||||||
font-size: 0.875em;
|
|
||||||
color: #fff;
|
|
||||||
background-color: #212529;
|
|
||||||
border-radius: 0.2rem;
|
|
||||||
}
|
|
||||||
kbd kbd {
|
|
||||||
padding: 0;
|
|
||||||
font-size: 1em;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
figure {
|
|
||||||
margin: 0 0 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
img,
|
|
||||||
svg {
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
|
||||||
caption-side: bottom;
|
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
|
|
||||||
caption {
|
|
||||||
padding-top: 0.5rem;
|
|
||||||
padding-bottom: 0.5rem;
|
|
||||||
color: #6c757d;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
th {
|
|
||||||
text-align: inherit;
|
|
||||||
text-align: -webkit-match-parent;
|
|
||||||
}
|
|
||||||
|
|
||||||
thead,
|
|
||||||
tbody,
|
|
||||||
tfoot,
|
|
||||||
tr,
|
|
||||||
td,
|
|
||||||
th {
|
|
||||||
border-color: inherit;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
button:focus:not(:focus-visible) {
|
|
||||||
outline: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
input,
|
|
||||||
button,
|
|
||||||
select,
|
|
||||||
optgroup,
|
|
||||||
textarea {
|
|
||||||
margin: 0;
|
|
||||||
font-family: inherit;
|
|
||||||
font-size: inherit;
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
button,
|
|
||||||
select {
|
|
||||||
text-transform: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
[role=button] {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
select {
|
|
||||||
word-wrap: normal;
|
|
||||||
}
|
|
||||||
select:disabled {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
[list]::-webkit-calendar-picker-indicator {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
button,
|
|
||||||
[type=button],
|
|
||||||
[type=reset],
|
|
||||||
[type=submit] {
|
|
||||||
-webkit-appearance: button;
|
|
||||||
}
|
|
||||||
button:not(:disabled),
|
|
||||||
[type=button]:not(:disabled),
|
|
||||||
[type=reset]:not(:disabled),
|
|
||||||
[type=submit]:not(:disabled) {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-moz-focus-inner {
|
|
||||||
padding: 0;
|
|
||||||
border-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea {
|
|
||||||
resize: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
fieldset {
|
|
||||||
min-width: 0;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
legend {
|
|
||||||
float: right;
|
|
||||||
width: 100%;
|
|
||||||
padding: 0;
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
font-size: calc(1.275rem + 0.3vw);
|
|
||||||
line-height: inherit;
|
|
||||||
}
|
|
||||||
@media (min-width: 1200px) {
|
|
||||||
legend {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
legend + * {
|
|
||||||
clear: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-datetime-edit-fields-wrapper,
|
|
||||||
::-webkit-datetime-edit-text,
|
|
||||||
::-webkit-datetime-edit-minute,
|
|
||||||
::-webkit-datetime-edit-hour-field,
|
|
||||||
::-webkit-datetime-edit-day-field,
|
|
||||||
::-webkit-datetime-edit-month-field,
|
|
||||||
::-webkit-datetime-edit-year-field {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-inner-spin-button {
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
[type=search] {
|
|
||||||
outline-offset: -2px;
|
|
||||||
-webkit-appearance: textfield;
|
|
||||||
}
|
|
||||||
|
|
||||||
[type="tel"],
|
|
||||||
[type="url"],
|
|
||||||
[type="email"],
|
|
||||||
[type="number"] {
|
|
||||||
direction: ltr;
|
|
||||||
}
|
|
||||||
::-webkit-search-decoration {
|
|
||||||
-webkit-appearance: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-color-swatch-wrapper {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
::file-selector-button {
|
|
||||||
font: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-file-upload-button {
|
|
||||||
font: inherit;
|
|
||||||
-webkit-appearance: button;
|
|
||||||
}
|
|
||||||
|
|
||||||
output {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
iframe {
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
summary {
|
|
||||||
display: list-item;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
progress {
|
|
||||||
vertical-align: baseline;
|
|
||||||
}
|
|
||||||
|
|
||||||
[hidden] {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
/*# sourceMappingURL=bootstrap-reboot.rtl.css.map */
|
|
||||||
File diff suppressed because one or more lines are too long
@ -1,8 +0,0 @@
|
|||||||
/*!
|
|
||||||
* Bootstrap Reboot v5.1.0 (https://getbootstrap.com/)
|
|
||||||
* Copyright 2011-2021 The Bootstrap Authors
|
|
||||||
* Copyright 2011-2021 Twitter, Inc.
|
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
||||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
|
||||||
*/*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:.25}hr:not([size]){height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-original-title],abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-right:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-right:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:right}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]::-webkit-calendar-picker-indicator{display:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:right;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:right}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}[type=email],[type=number],[type=tel],[type=url]{direction:ltr}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
|
|
||||||
/*# sourceMappingURL=bootstrap-reboot.rtl.min.css.map */
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
11221
UWLecturePlan/wwwroot/lib/bootstrap/dist/css/bootstrap.css
vendored
11221
UWLecturePlan/wwwroot/lib/bootstrap/dist/css/bootstrap.css
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
5026
UWLecturePlan/wwwroot/lib/bootstrap/dist/js/bootstrap.js
vendored
5026
UWLecturePlan/wwwroot/lib/bootstrap/dist/js/bootstrap.js
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,23 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) .NET Foundation and Contributors
|
|
||||||
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
@ -1,435 +0,0 @@
|
|||||||
/**
|
|
||||||
* @license
|
|
||||||
* Unobtrusive validation support library for jQuery and jQuery Validate
|
|
||||||
* Copyright (c) .NET Foundation. All rights reserved.
|
|
||||||
* Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
||||||
* @version v4.0.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*jslint white: true, browser: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: false */
|
|
||||||
/*global document: false, jQuery: false */
|
|
||||||
|
|
||||||
(function (factory) {
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define("jquery.validate.unobtrusive", ['jquery-validation'], factory);
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// CommonJS-like environments that support module.exports
|
|
||||||
module.exports = factory(require('jquery-validation'));
|
|
||||||
} else {
|
|
||||||
// Browser global
|
|
||||||
jQuery.validator.unobtrusive = factory(jQuery);
|
|
||||||
}
|
|
||||||
}(function ($) {
|
|
||||||
var $jQval = $.validator,
|
|
||||||
adapters,
|
|
||||||
data_validation = "unobtrusiveValidation";
|
|
||||||
|
|
||||||
function setValidationValues(options, ruleName, value) {
|
|
||||||
options.rules[ruleName] = value;
|
|
||||||
if (options.message) {
|
|
||||||
options.messages[ruleName] = options.message;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function splitAndTrim(value) {
|
|
||||||
return value.replace(/^\s+|\s+$/g, "").split(/\s*,\s*/g);
|
|
||||||
}
|
|
||||||
|
|
||||||
function escapeAttributeValue(value) {
|
|
||||||
// As mentioned on http://api.jquery.com/category/selectors/
|
|
||||||
return value.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g, "\\$1");
|
|
||||||
}
|
|
||||||
|
|
||||||
function getModelPrefix(fieldName) {
|
|
||||||
return fieldName.substr(0, fieldName.lastIndexOf(".") + 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
function appendModelPrefix(value, prefix) {
|
|
||||||
if (value.indexOf("*.") === 0) {
|
|
||||||
value = value.replace("*.", prefix);
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
function onError(error, inputElement) { // 'this' is the form element
|
|
||||||
var container = $(this).find("[data-valmsg-for='" + escapeAttributeValue(inputElement[0].name) + "']"),
|
|
||||||
replaceAttrValue = container.attr("data-valmsg-replace"),
|
|
||||||
replace = replaceAttrValue ? $.parseJSON(replaceAttrValue) !== false : null;
|
|
||||||
|
|
||||||
container.removeClass("field-validation-valid").addClass("field-validation-error");
|
|
||||||
error.data("unobtrusiveContainer", container);
|
|
||||||
|
|
||||||
if (replace) {
|
|
||||||
container.empty();
|
|
||||||
error.removeClass("input-validation-error").appendTo(container);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
error.hide();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function onErrors(event, validator) { // 'this' is the form element
|
|
||||||
var container = $(this).find("[data-valmsg-summary=true]"),
|
|
||||||
list = container.find("ul");
|
|
||||||
|
|
||||||
if (list && list.length && validator.errorList.length) {
|
|
||||||
list.empty();
|
|
||||||
container.addClass("validation-summary-errors").removeClass("validation-summary-valid");
|
|
||||||
|
|
||||||
$.each(validator.errorList, function () {
|
|
||||||
$("<li />").html(this.message).appendTo(list);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function onSuccess(error) { // 'this' is the form element
|
|
||||||
var container = error.data("unobtrusiveContainer");
|
|
||||||
|
|
||||||
if (container) {
|
|
||||||
var replaceAttrValue = container.attr("data-valmsg-replace"),
|
|
||||||
replace = replaceAttrValue ? $.parseJSON(replaceAttrValue) : null;
|
|
||||||
|
|
||||||
container.addClass("field-validation-valid").removeClass("field-validation-error");
|
|
||||||
error.removeData("unobtrusiveContainer");
|
|
||||||
|
|
||||||
if (replace) {
|
|
||||||
container.empty();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function onReset(event) { // 'this' is the form element
|
|
||||||
var $form = $(this),
|
|
||||||
key = '__jquery_unobtrusive_validation_form_reset';
|
|
||||||
if ($form.data(key)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// Set a flag that indicates we're currently resetting the form.
|
|
||||||
$form.data(key, true);
|
|
||||||
try {
|
|
||||||
$form.data("validator").resetForm();
|
|
||||||
} finally {
|
|
||||||
$form.removeData(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
$form.find(".validation-summary-errors")
|
|
||||||
.addClass("validation-summary-valid")
|
|
||||||
.removeClass("validation-summary-errors");
|
|
||||||
$form.find(".field-validation-error")
|
|
||||||
.addClass("field-validation-valid")
|
|
||||||
.removeClass("field-validation-error")
|
|
||||||
.removeData("unobtrusiveContainer")
|
|
||||||
.find(">*") // If we were using valmsg-replace, get the underlying error
|
|
||||||
.removeData("unobtrusiveContainer");
|
|
||||||
}
|
|
||||||
|
|
||||||
function validationInfo(form) {
|
|
||||||
var $form = $(form),
|
|
||||||
result = $form.data(data_validation),
|
|
||||||
onResetProxy = $.proxy(onReset, form),
|
|
||||||
defaultOptions = $jQval.unobtrusive.options || {},
|
|
||||||
execInContext = function (name, args) {
|
|
||||||
var func = defaultOptions[name];
|
|
||||||
func && $.isFunction(func) && func.apply(form, args);
|
|
||||||
};
|
|
||||||
|
|
||||||
if (!result) {
|
|
||||||
result = {
|
|
||||||
options: { // options structure passed to jQuery Validate's validate() method
|
|
||||||
errorClass: defaultOptions.errorClass || "input-validation-error",
|
|
||||||
errorElement: defaultOptions.errorElement || "span",
|
|
||||||
errorPlacement: function () {
|
|
||||||
onError.apply(form, arguments);
|
|
||||||
execInContext("errorPlacement", arguments);
|
|
||||||
},
|
|
||||||
invalidHandler: function () {
|
|
||||||
onErrors.apply(form, arguments);
|
|
||||||
execInContext("invalidHandler", arguments);
|
|
||||||
},
|
|
||||||
messages: {},
|
|
||||||
rules: {},
|
|
||||||
success: function () {
|
|
||||||
onSuccess.apply(form, arguments);
|
|
||||||
execInContext("success", arguments);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
attachValidation: function () {
|
|
||||||
$form
|
|
||||||
.off("reset." + data_validation, onResetProxy)
|
|
||||||
.on("reset." + data_validation, onResetProxy)
|
|
||||||
.validate(this.options);
|
|
||||||
},
|
|
||||||
validate: function () { // a validation function that is called by unobtrusive Ajax
|
|
||||||
$form.validate();
|
|
||||||
return $form.valid();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
$form.data(data_validation, result);
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
$jQval.unobtrusive = {
|
|
||||||
adapters: [],
|
|
||||||
|
|
||||||
parseElement: function (element, skipAttach) {
|
|
||||||
/// <summary>
|
|
||||||
/// Parses a single HTML element for unobtrusive validation attributes.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="element" domElement="true">The HTML element to be parsed.</param>
|
|
||||||
/// <param name="skipAttach" type="Boolean">[Optional] true to skip attaching the
|
|
||||||
/// validation to the form. If parsing just this single element, you should specify true.
|
|
||||||
/// If parsing several elements, you should specify false, and manually attach the validation
|
|
||||||
/// to the form when you are finished. The default is false.</param>
|
|
||||||
var $element = $(element),
|
|
||||||
form = $element.parents("form")[0],
|
|
||||||
valInfo, rules, messages;
|
|
||||||
|
|
||||||
if (!form) { // Cannot do client-side validation without a form
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
valInfo = validationInfo(form);
|
|
||||||
valInfo.options.rules[element.name] = rules = {};
|
|
||||||
valInfo.options.messages[element.name] = messages = {};
|
|
||||||
|
|
||||||
$.each(this.adapters, function () {
|
|
||||||
var prefix = "data-val-" + this.name,
|
|
||||||
message = $element.attr(prefix),
|
|
||||||
paramValues = {};
|
|
||||||
|
|
||||||
if (message !== undefined) { // Compare against undefined, because an empty message is legal (and falsy)
|
|
||||||
prefix += "-";
|
|
||||||
|
|
||||||
$.each(this.params, function () {
|
|
||||||
paramValues[this] = $element.attr(prefix + this);
|
|
||||||
});
|
|
||||||
|
|
||||||
this.adapt({
|
|
||||||
element: element,
|
|
||||||
form: form,
|
|
||||||
message: message,
|
|
||||||
params: paramValues,
|
|
||||||
rules: rules,
|
|
||||||
messages: messages
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$.extend(rules, { "__dummy__": true });
|
|
||||||
|
|
||||||
if (!skipAttach) {
|
|
||||||
valInfo.attachValidation();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
parse: function (selector) {
|
|
||||||
/// <summary>
|
|
||||||
/// Parses all the HTML elements in the specified selector. It looks for input elements decorated
|
|
||||||
/// with the [data-val=true] attribute value and enables validation according to the data-val-*
|
|
||||||
/// attribute values.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="selector" type="String">Any valid jQuery selector.</param>
|
|
||||||
|
|
||||||
// $forms includes all forms in selector's DOM hierarchy (parent, children and self) that have at least one
|
|
||||||
// element with data-val=true
|
|
||||||
var $selector = $(selector),
|
|
||||||
$forms = $selector.parents()
|
|
||||||
.addBack()
|
|
||||||
.filter("form")
|
|
||||||
.add($selector.find("form"))
|
|
||||||
.has("[data-val=true]");
|
|
||||||
|
|
||||||
$selector.find("[data-val=true]").each(function () {
|
|
||||||
$jQval.unobtrusive.parseElement(this, true);
|
|
||||||
});
|
|
||||||
|
|
||||||
$forms.each(function () {
|
|
||||||
var info = validationInfo(this);
|
|
||||||
if (info) {
|
|
||||||
info.attachValidation();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
adapters = $jQval.unobtrusive.adapters;
|
|
||||||
|
|
||||||
adapters.add = function (adapterName, params, fn) {
|
|
||||||
/// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation.</summary>
|
|
||||||
/// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used
|
|
||||||
/// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param>
|
|
||||||
/// <param name="params" type="Array" optional="true">[Optional] An array of parameter names (strings) that will
|
|
||||||
/// be extracted from the data-val-nnnn-mmmm HTML attributes (where nnnn is the adapter name, and
|
|
||||||
/// mmmm is the parameter name).</param>
|
|
||||||
/// <param name="fn" type="Function">The function to call, which adapts the values from the HTML
|
|
||||||
/// attributes into jQuery Validate rules and/or messages.</param>
|
|
||||||
/// <returns type="jQuery.validator.unobtrusive.adapters" />
|
|
||||||
if (!fn) { // Called with no params, just a function
|
|
||||||
fn = params;
|
|
||||||
params = [];
|
|
||||||
}
|
|
||||||
this.push({ name: adapterName, params: params, adapt: fn });
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
|
|
||||||
adapters.addBool = function (adapterName, ruleName) {
|
|
||||||
/// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where
|
|
||||||
/// the jQuery Validate validation rule has no parameter values.</summary>
|
|
||||||
/// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used
|
|
||||||
/// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param>
|
|
||||||
/// <param name="ruleName" type="String" optional="true">[Optional] The name of the jQuery Validate rule. If not provided, the value
|
|
||||||
/// of adapterName will be used instead.</param>
|
|
||||||
/// <returns type="jQuery.validator.unobtrusive.adapters" />
|
|
||||||
return this.add(adapterName, function (options) {
|
|
||||||
setValidationValues(options, ruleName || adapterName, true);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
adapters.addMinMax = function (adapterName, minRuleName, maxRuleName, minMaxRuleName, minAttribute, maxAttribute) {
|
|
||||||
/// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where
|
|
||||||
/// the jQuery Validate validation has three potential rules (one for min-only, one for max-only, and
|
|
||||||
/// one for min-and-max). The HTML parameters are expected to be named -min and -max.</summary>
|
|
||||||
/// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used
|
|
||||||
/// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param>
|
|
||||||
/// <param name="minRuleName" type="String">The name of the jQuery Validate rule to be used when you only
|
|
||||||
/// have a minimum value.</param>
|
|
||||||
/// <param name="maxRuleName" type="String">The name of the jQuery Validate rule to be used when you only
|
|
||||||
/// have a maximum value.</param>
|
|
||||||
/// <param name="minMaxRuleName" type="String">The name of the jQuery Validate rule to be used when you
|
|
||||||
/// have both a minimum and maximum value.</param>
|
|
||||||
/// <param name="minAttribute" type="String" optional="true">[Optional] The name of the HTML attribute that
|
|
||||||
/// contains the minimum value. The default is "min".</param>
|
|
||||||
/// <param name="maxAttribute" type="String" optional="true">[Optional] The name of the HTML attribute that
|
|
||||||
/// contains the maximum value. The default is "max".</param>
|
|
||||||
/// <returns type="jQuery.validator.unobtrusive.adapters" />
|
|
||||||
return this.add(adapterName, [minAttribute || "min", maxAttribute || "max"], function (options) {
|
|
||||||
var min = options.params.min,
|
|
||||||
max = options.params.max;
|
|
||||||
|
|
||||||
if (min && max) {
|
|
||||||
setValidationValues(options, minMaxRuleName, [min, max]);
|
|
||||||
}
|
|
||||||
else if (min) {
|
|
||||||
setValidationValues(options, minRuleName, min);
|
|
||||||
}
|
|
||||||
else if (max) {
|
|
||||||
setValidationValues(options, maxRuleName, max);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
adapters.addSingleVal = function (adapterName, attribute, ruleName) {
|
|
||||||
/// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where
|
|
||||||
/// the jQuery Validate validation rule has a single value.</summary>
|
|
||||||
/// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used
|
|
||||||
/// in the data-val-nnnn HTML attribute(where nnnn is the adapter name).</param>
|
|
||||||
/// <param name="attribute" type="String">[Optional] The name of the HTML attribute that contains the value.
|
|
||||||
/// The default is "val".</param>
|
|
||||||
/// <param name="ruleName" type="String" optional="true">[Optional] The name of the jQuery Validate rule. If not provided, the value
|
|
||||||
/// of adapterName will be used instead.</param>
|
|
||||||
/// <returns type="jQuery.validator.unobtrusive.adapters" />
|
|
||||||
return this.add(adapterName, [attribute || "val"], function (options) {
|
|
||||||
setValidationValues(options, ruleName || adapterName, options.params[attribute]);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
$jQval.addMethod("__dummy__", function (value, element, params) {
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
|
|
||||||
$jQval.addMethod("regex", function (value, element, params) {
|
|
||||||
var match;
|
|
||||||
if (this.optional(element)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
match = new RegExp(params).exec(value);
|
|
||||||
return (match && (match.index === 0) && (match[0].length === value.length));
|
|
||||||
});
|
|
||||||
|
|
||||||
$jQval.addMethod("nonalphamin", function (value, element, nonalphamin) {
|
|
||||||
var match;
|
|
||||||
if (nonalphamin) {
|
|
||||||
match = value.match(/\W/g);
|
|
||||||
match = match && match.length >= nonalphamin;
|
|
||||||
}
|
|
||||||
return match;
|
|
||||||
});
|
|
||||||
|
|
||||||
if ($jQval.methods.extension) {
|
|
||||||
adapters.addSingleVal("accept", "mimtype");
|
|
||||||
adapters.addSingleVal("extension", "extension");
|
|
||||||
} else {
|
|
||||||
// for backward compatibility, when the 'extension' validation method does not exist, such as with versions
|
|
||||||
// of JQuery Validation plugin prior to 1.10, we should use the 'accept' method for
|
|
||||||
// validating the extension, and ignore mime-type validations as they are not supported.
|
|
||||||
adapters.addSingleVal("extension", "extension", "accept");
|
|
||||||
}
|
|
||||||
|
|
||||||
adapters.addSingleVal("regex", "pattern");
|
|
||||||
adapters.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");
|
|
||||||
adapters.addMinMax("length", "minlength", "maxlength", "rangelength").addMinMax("range", "min", "max", "range");
|
|
||||||
adapters.addMinMax("minlength", "minlength").addMinMax("maxlength", "minlength", "maxlength");
|
|
||||||
adapters.add("equalto", ["other"], function (options) {
|
|
||||||
var prefix = getModelPrefix(options.element.name),
|
|
||||||
other = options.params.other,
|
|
||||||
fullOtherName = appendModelPrefix(other, prefix),
|
|
||||||
element = $(options.form).find(":input").filter("[name='" + escapeAttributeValue(fullOtherName) + "']")[0];
|
|
||||||
|
|
||||||
setValidationValues(options, "equalTo", element);
|
|
||||||
});
|
|
||||||
adapters.add("required", function (options) {
|
|
||||||
// jQuery Validate equates "required" with "mandatory" for checkbox elements
|
|
||||||
if (options.element.tagName.toUpperCase() !== "INPUT" || options.element.type.toUpperCase() !== "CHECKBOX") {
|
|
||||||
setValidationValues(options, "required", true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
adapters.add("remote", ["url", "type", "additionalfields"], function (options) {
|
|
||||||
var value = {
|
|
||||||
url: options.params.url,
|
|
||||||
type: options.params.type || "GET",
|
|
||||||
data: {}
|
|
||||||
},
|
|
||||||
prefix = getModelPrefix(options.element.name);
|
|
||||||
|
|
||||||
$.each(splitAndTrim(options.params.additionalfields || options.element.name), function (i, fieldName) {
|
|
||||||
var paramName = appendModelPrefix(fieldName, prefix);
|
|
||||||
value.data[paramName] = function () {
|
|
||||||
var field = $(options.form).find(":input").filter("[name='" + escapeAttributeValue(paramName) + "']");
|
|
||||||
// For checkboxes and radio buttons, only pick up values from checked fields.
|
|
||||||
if (field.is(":checkbox")) {
|
|
||||||
return field.filter(":checked").val() || field.filter(":hidden").val() || '';
|
|
||||||
}
|
|
||||||
else if (field.is(":radio")) {
|
|
||||||
return field.filter(":checked").val() || '';
|
|
||||||
}
|
|
||||||
return field.val();
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
setValidationValues(options, "remote", value);
|
|
||||||
});
|
|
||||||
adapters.add("password", ["min", "nonalphamin", "regex"], function (options) {
|
|
||||||
if (options.params.min) {
|
|
||||||
setValidationValues(options, "minlength", options.params.min);
|
|
||||||
}
|
|
||||||
if (options.params.nonalphamin) {
|
|
||||||
setValidationValues(options, "nonalphamin", options.params.nonalphamin);
|
|
||||||
}
|
|
||||||
if (options.params.regex) {
|
|
||||||
setValidationValues(options, "regex", options.params.regex);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
adapters.add("fileextensions", ["extensions"], function (options) {
|
|
||||||
setValidationValues(options, "extension", options.params.extensions);
|
|
||||||
});
|
|
||||||
|
|
||||||
$(function () {
|
|
||||||
$jQval.unobtrusive.parse(document);
|
|
||||||
});
|
|
||||||
|
|
||||||
return $jQval.unobtrusive;
|
|
||||||
}));
|
|
||||||
File diff suppressed because one or more lines are too long
@ -1,22 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
=====================
|
|
||||||
|
|
||||||
Copyright Jörn Zaefferer
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,21 +0,0 @@
|
|||||||
|
|
||||||
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
10881
UWLecturePlan/wwwroot/lib/jquery/dist/jquery.js
vendored
10881
UWLecturePlan/wwwroot/lib/jquery/dist/jquery.js
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,24 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
|
|
||||||
namespace UWLib
|
|
||||||
{
|
|
||||||
[PrimaryKey(nameof(Id), nameof(Semester))]
|
|
||||||
public class Lecture
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public required string Semester { get; set; }
|
|
||||||
public string? Title { get; set; }
|
|
||||||
public string? Url { get; set; }
|
|
||||||
public string? Description { get; set; }
|
|
||||||
public List<LectureEvent> Events { get; set; } = [];
|
|
||||||
public string? Branch { get; set; }
|
|
||||||
|
|
||||||
public string? Type{ get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,45 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
|
|
||||||
namespace UWLib
|
|
||||||
{
|
|
||||||
public class LectureContext : DbContext
|
|
||||||
{
|
|
||||||
public DbSet<Lecture> Lectures { get; set; }
|
|
||||||
public DbSet<LectureEvent> LectureEvents { get; set; }
|
|
||||||
|
|
||||||
public DbSet<ScrapedLink> ScrapedLinks { get; set; }
|
|
||||||
|
|
||||||
public DbSet<LinkToScrape> LinksToScrape { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
public string DbPath { get; }
|
|
||||||
|
|
||||||
|
|
||||||
public LectureContext(string path)
|
|
||||||
{
|
|
||||||
DbPath = path;
|
|
||||||
Database.Migrate();
|
|
||||||
}
|
|
||||||
|
|
||||||
public LectureContext()
|
|
||||||
{
|
|
||||||
var folder = Environment.SpecialFolder.LocalApplicationData;
|
|
||||||
var path = Environment.GetFolderPath(folder);
|
|
||||||
DbPath = System.IO.Path.Join(path, "lecture.db");
|
|
||||||
DbPath = "lecture.db";
|
|
||||||
|
|
||||||
Database.Migrate();
|
|
||||||
}
|
|
||||||
|
|
||||||
// The following configures EF to create a Sqlite database file in the
|
|
||||||
// special "local" folder for your platform.
|
|
||||||
protected override void OnConfiguring(DbContextOptionsBuilder options)
|
|
||||||
=> options.UseSqlite($"Data Source={DbPath}");
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
namespace UWLib
|
|
||||||
{
|
|
||||||
public class LectureEvent
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public DateTime From { get; set; }
|
|
||||||
public DateTime To { get; set; }
|
|
||||||
public string? Location { get; set; }
|
|
||||||
|
|
||||||
public required Lecture Lecture { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace UWLib
|
|
||||||
{
|
|
||||||
public class LinkToScrape
|
|
||||||
{
|
|
||||||
[Key]
|
|
||||||
public required string Url { get; set; }
|
|
||||||
public int Sort { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
95
UWLib/Migrations/20241011153557_Init.Designer.cs
generated
95
UWLib/Migrations/20241011153557_Init.Designer.cs
generated
@ -1,95 +0,0 @@
|
|||||||
// <auto-generated />
|
|
||||||
using System;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
||||||
using UWLib;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace UWLib.Migrations
|
|
||||||
{
|
|
||||||
[DbContext(typeof(LectureContext))]
|
|
||||||
[Migration("20241011153557_Init")]
|
|
||||||
partial class Init
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
||||||
{
|
|
||||||
#pragma warning disable 612, 618
|
|
||||||
modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.Lecture", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("Semester")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Description")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Title")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id", "Semester");
|
|
||||||
|
|
||||||
b.ToTable("Lectures");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LectureEvent", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<DateTime>("From")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<int>("LectureId")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("LectureSemester")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Location")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("To")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("LectureId", "LectureSemester");
|
|
||||||
|
|
||||||
b.ToTable("LectureEvents");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LectureEvent", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("UWLib.Lecture", "Lecture")
|
|
||||||
.WithMany("Events")
|
|
||||||
.HasForeignKey("LectureId", "LectureSemester")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Lecture");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.Lecture", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Events");
|
|
||||||
});
|
|
||||||
#pragma warning restore 612, 618
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,68 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace UWLib.Migrations
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
public partial class Init : Migration
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "Lectures",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<int>(type: "INTEGER", nullable: false),
|
|
||||||
Semester = table.Column<string>(type: "TEXT", nullable: false),
|
|
||||||
Title = table.Column<string>(type: "TEXT", nullable: false),
|
|
||||||
Url = table.Column<string>(type: "TEXT", nullable: false),
|
|
||||||
Description = table.Column<string>(type: "TEXT", nullable: true)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_Lectures", x => new { x.Id, x.Semester });
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "LectureEvents",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
||||||
.Annotation("Sqlite:Autoincrement", true),
|
|
||||||
From = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
||||||
To = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
||||||
Location = table.Column<string>(type: "TEXT", nullable: false),
|
|
||||||
LectureId = table.Column<int>(type: "INTEGER", nullable: false),
|
|
||||||
LectureSemester = table.Column<string>(type: "TEXT", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_LectureEvents", x => x.Id);
|
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_LectureEvents_Lectures_LectureId_LectureSemester",
|
|
||||||
columns: x => new { x.LectureId, x.LectureSemester },
|
|
||||||
principalTable: "Lectures",
|
|
||||||
principalColumns: ["Id", "Semester"],
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
});
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_LectureEvents_LectureId_LectureSemester",
|
|
||||||
table: "LectureEvents",
|
|
||||||
columns: ["LectureId", "LectureSemester"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "LectureEvents");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "Lectures");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
108
UWLib/Migrations/20241012131142_ScrapedLinks.Designer.cs
generated
108
UWLib/Migrations/20241012131142_ScrapedLinks.Designer.cs
generated
@ -1,108 +0,0 @@
|
|||||||
// <auto-generated />
|
|
||||||
using System;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
||||||
using UWLib;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace UWLib.Migrations
|
|
||||||
{
|
|
||||||
[DbContext(typeof(LectureContext))]
|
|
||||||
[Migration("20241012131142_ScrapedLinks")]
|
|
||||||
partial class ScrapedLinks
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
||||||
{
|
|
||||||
#pragma warning disable 612, 618
|
|
||||||
modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.Lecture", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("Semester")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Description")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Title")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id", "Semester");
|
|
||||||
|
|
||||||
b.ToTable("Lectures");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LectureEvent", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<DateTime>("From")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<int>("LectureId")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("LectureSemester")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Location")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("To")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("LectureId", "LectureSemester");
|
|
||||||
|
|
||||||
b.ToTable("LectureEvents");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.ScrapedLink", b =>
|
|
||||||
{
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("LastScrape")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Url");
|
|
||||||
|
|
||||||
b.ToTable("ScrapedLinks");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LectureEvent", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("UWLib.Lecture", "Lecture")
|
|
||||||
.WithMany("Events")
|
|
||||||
.HasForeignKey("LectureId", "LectureSemester")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Lecture");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.Lecture", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Events");
|
|
||||||
});
|
|
||||||
#pragma warning restore 612, 618
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,34 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace UWLib.Migrations
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
public partial class ScrapedLinks : Migration
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "ScrapedLinks",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Url = table.Column<string>(type: "TEXT", nullable: false),
|
|
||||||
LastScrape = table.Column<DateTime>(type: "TEXT", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_ScrapedLinks", x => x.Url);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "ScrapedLinks");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
112
UWLib/Migrations/20241012131329_Branch.Designer.cs
generated
112
UWLib/Migrations/20241012131329_Branch.Designer.cs
generated
@ -1,112 +0,0 @@
|
|||||||
// <auto-generated />
|
|
||||||
using System;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
||||||
using UWLib;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace UWLib.Migrations
|
|
||||||
{
|
|
||||||
[DbContext(typeof(LectureContext))]
|
|
||||||
[Migration("20241012131329_Branch")]
|
|
||||||
partial class Branch
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
||||||
{
|
|
||||||
#pragma warning disable 612, 618
|
|
||||||
modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.Lecture", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("Semester")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Branch")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Description")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Title")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id", "Semester");
|
|
||||||
|
|
||||||
b.ToTable("Lectures");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LectureEvent", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<DateTime>("From")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<int>("LectureId")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("LectureSemester")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Location")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("To")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("LectureId", "LectureSemester");
|
|
||||||
|
|
||||||
b.ToTable("LectureEvents");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.ScrapedLink", b =>
|
|
||||||
{
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("LastScrape")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Url");
|
|
||||||
|
|
||||||
b.ToTable("ScrapedLinks");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LectureEvent", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("UWLib.Lecture", "Lecture")
|
|
||||||
.WithMany("Events")
|
|
||||||
.HasForeignKey("LectureId", "LectureSemester")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Lecture");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.Lecture", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Events");
|
|
||||||
});
|
|
||||||
#pragma warning restore 612, 618
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace UWLib.Migrations
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
public partial class Branch : Migration
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.AddColumn<string>(
|
|
||||||
name: "Branch",
|
|
||||||
table: "Lectures",
|
|
||||||
type: "TEXT",
|
|
||||||
nullable: false,
|
|
||||||
defaultValue: "");
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "Branch",
|
|
||||||
table: "Lectures");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,125 +0,0 @@
|
|||||||
// <auto-generated />
|
|
||||||
using System;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
||||||
using UWLib;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace UWLib.Migrations
|
|
||||||
{
|
|
||||||
[DbContext(typeof(LectureContext))]
|
|
||||||
[Migration("20241012140426_LinksToScrape")]
|
|
||||||
partial class LinksToScrape
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
||||||
{
|
|
||||||
#pragma warning disable 612, 618
|
|
||||||
modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.Lecture", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("Semester")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Branch")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Description")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Title")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id", "Semester");
|
|
||||||
|
|
||||||
b.ToTable("Lectures");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LectureEvent", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<DateTime>("From")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<int>("LectureId")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("LectureSemester")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Location")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("To")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("LectureId", "LectureSemester");
|
|
||||||
|
|
||||||
b.ToTable("LectureEvents");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LinkToScrape", b =>
|
|
||||||
{
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<int>("Sort")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.HasKey("Url");
|
|
||||||
|
|
||||||
b.ToTable("LinksToScrape");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.ScrapedLink", b =>
|
|
||||||
{
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("LastScrape")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Url");
|
|
||||||
|
|
||||||
b.ToTable("ScrapedLinks");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LectureEvent", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("UWLib.Lecture", "Lecture")
|
|
||||||
.WithMany("Events")
|
|
||||||
.HasForeignKey("LectureId", "LectureSemester")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Lecture");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.Lecture", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Events");
|
|
||||||
});
|
|
||||||
#pragma warning restore 612, 618
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace UWLib.Migrations
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
public partial class LinksToScrape : Migration
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.CreateTable(
|
|
||||||
name: "LinksToScrape",
|
|
||||||
columns: table => new
|
|
||||||
{
|
|
||||||
Url = table.Column<string>(type: "TEXT", nullable: false),
|
|
||||||
Sort = table.Column<int>(type: "INTEGER", nullable: false)
|
|
||||||
},
|
|
||||||
constraints: table =>
|
|
||||||
{
|
|
||||||
table.PrimaryKey("PK_LinksToScrape", x => x.Url);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "LinksToScrape");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
129
UWLib/Migrations/20241013131123_Type.Designer.cs
generated
129
UWLib/Migrations/20241013131123_Type.Designer.cs
generated
@ -1,129 +0,0 @@
|
|||||||
// <auto-generated />
|
|
||||||
using System;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
||||||
using UWLib;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace UWLib.Migrations
|
|
||||||
{
|
|
||||||
[DbContext(typeof(LectureContext))]
|
|
||||||
[Migration("20241013131123_Type")]
|
|
||||||
partial class Type
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
||||||
{
|
|
||||||
#pragma warning disable 612, 618
|
|
||||||
modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.Lecture", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("Semester")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Branch")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Description")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Title")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Type")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id", "Semester");
|
|
||||||
|
|
||||||
b.ToTable("Lectures");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LectureEvent", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<DateTime>("From")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<int>("LectureId")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("LectureSemester")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Location")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("To")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("LectureId", "LectureSemester");
|
|
||||||
|
|
||||||
b.ToTable("LectureEvents");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LinkToScrape", b =>
|
|
||||||
{
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<int>("Sort")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.HasKey("Url");
|
|
||||||
|
|
||||||
b.ToTable("LinksToScrape");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.ScrapedLink", b =>
|
|
||||||
{
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("LastScrape")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Url");
|
|
||||||
|
|
||||||
b.ToTable("ScrapedLinks");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LectureEvent", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("UWLib.Lecture", "Lecture")
|
|
||||||
.WithMany("Events")
|
|
||||||
.HasForeignKey("LectureId", "LectureSemester")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Lecture");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.Lecture", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Events");
|
|
||||||
});
|
|
||||||
#pragma warning restore 612, 618
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace UWLib.Migrations
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
public partial class Type : Migration
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.AddColumn<string>(
|
|
||||||
name: "Type",
|
|
||||||
table: "Lectures",
|
|
||||||
type: "TEXT",
|
|
||||||
nullable: false,
|
|
||||||
defaultValue: "");
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "Type",
|
|
||||||
table: "Lectures");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,126 +0,0 @@
|
|||||||
// <auto-generated />
|
|
||||||
using System;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
||||||
using UWLib;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace UWLib.Migrations
|
|
||||||
{
|
|
||||||
[DbContext(typeof(LectureContext))]
|
|
||||||
partial class LectureContextModelSnapshot : ModelSnapshot
|
|
||||||
{
|
|
||||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
||||||
{
|
|
||||||
#pragma warning disable 612, 618
|
|
||||||
modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.Lecture", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("Semester")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Branch")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Description")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Title")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Type")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id", "Semester");
|
|
||||||
|
|
||||||
b.ToTable("Lectures");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LectureEvent", b =>
|
|
||||||
{
|
|
||||||
b.Property<int>("Id")
|
|
||||||
.ValueGeneratedOnAdd()
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<DateTime>("From")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<int>("LectureId")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<string>("LectureSemester")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Location")
|
|
||||||
.IsRequired()
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("To")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("LectureId", "LectureSemester");
|
|
||||||
|
|
||||||
b.ToTable("LectureEvents");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LinkToScrape", b =>
|
|
||||||
{
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<int>("Sort")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.HasKey("Url");
|
|
||||||
|
|
||||||
b.ToTable("LinksToScrape");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.ScrapedLink", b =>
|
|
||||||
{
|
|
||||||
b.Property<string>("Url")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("LastScrape")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Url");
|
|
||||||
|
|
||||||
b.ToTable("ScrapedLinks");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.LectureEvent", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("UWLib.Lecture", "Lecture")
|
|
||||||
.WithMany("Events")
|
|
||||||
.HasForeignKey("LectureId", "LectureSemester")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("Lecture");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("UWLib.Lecture", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("Events");
|
|
||||||
});
|
|
||||||
#pragma warning restore 612, 618
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace UWLib
|
|
||||||
{
|
|
||||||
public class ScrapedLink
|
|
||||||
{
|
|
||||||
[Key]
|
|
||||||
public required string Url{ get; set; }
|
|
||||||
|
|
||||||
public DateTime LastScrape { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
|
||||||
<Nullable>enable</Nullable>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.10" />
|
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.10">
|
|
||||||
<PrivateAssets>all</PrivateAssets>
|
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
||||||
</PackageReference>
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
||||||
BIN
UWLib/lecture.db
BIN
UWLib/lecture.db
Binary file not shown.
@ -1,37 +0,0 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 17
|
|
||||||
VisualStudioVersion = 17.10.35027.167
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UWScraper", "UWScraper\UWScraper.csproj", "{AEBB2AEC-4BC8-427E-BFCB-C27607B3342F}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UWLecturePlan", "UWLecturePlan\UWLecturePlan.csproj", "{3E0B740E-C2B9-40E5-A56F-241552C771EB}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UWLib", "UWLib\UWLib.csproj", "{2D556C07-8FE5-47B1-AE98-671069D3ABFC}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{AEBB2AEC-4BC8-427E-BFCB-C27607B3342F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{AEBB2AEC-4BC8-427E-BFCB-C27607B3342F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{AEBB2AEC-4BC8-427E-BFCB-C27607B3342F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{AEBB2AEC-4BC8-427E-BFCB-C27607B3342F}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{3E0B740E-C2B9-40E5-A56F-241552C771EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{3E0B740E-C2B9-40E5-A56F-241552C771EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{3E0B740E-C2B9-40E5-A56F-241552C771EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{3E0B740E-C2B9-40E5-A56F-241552C771EB}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{2D556C07-8FE5-47B1-AE98-671069D3ABFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{2D556C07-8FE5-47B1-AE98-671069D3ABFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{2D556C07-8FE5-47B1-AE98-671069D3ABFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{2D556C07-8FE5-47B1-AE98-671069D3ABFC}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {31EE5D76-78DE-45C6-8453-67B272A65359}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user