Farbpalette vorladen lassen

Bootstraper läd jetzt die farbeinstellung sofort und nicht nachträglich

cleanup and rework

PDF switch to HTML

export fix

Colorsystem

Farben für knöpfe hinzugefügt als anpassung

button color

button color primary and secondary change
This commit is contained in:
2026-03-23 22:42:52 +01:00
parent d5649dc189
commit d85f2e0fb3
84 changed files with 4216 additions and 1814 deletions
+27
View File
@@ -0,0 +1,27 @@
using System.Globalization;
namespace cfs_tracker.Helpers;
public static class DateHelper
{
public static readonly CultureInfo GermanCulture = new("de-DE");
public static DateTime StartOfWeekMonday(DateTime date)
{
var normalized = date.Date;
var diff = (7 + (normalized.DayOfWeek - DayOfWeek.Monday)) % 7;
return normalized.AddDays(-diff);
}
public static string ToGermanDateText(DateTime date) =>
date.ToString("dddd, dd. MMMM yyyy", GermanCulture);
public static string ToGermanShortDay(DateTime date) =>
date.ToString("ddd dd.MM.", GermanCulture);
public static string ToGermanMonthYear(DateTime date) =>
date.ToString("MMMM yyyy", GermanCulture);
public static string ToGermanYear(DateTime date) =>
date.ToString("yyyy", GermanCulture);
}