21 lines
No EOL
658 B
C#
21 lines
No EOL
658 B
C#
using System.Text.Json;
|
|
using Microsoft.FluentUI.AspNetCore.Components;
|
|
|
|
namespace blazingconsole.Types
|
|
{
|
|
public class SiteSettings
|
|
{
|
|
public string ApiURL { get; set; } = "https://blazing-api.bedcrab.dev";
|
|
public DesignThemeModes ThemeMode { get; set; } = DesignThemeModes.System;
|
|
public OfficeColor AccentColor { get; set; } = OfficeColor.OneNote;
|
|
|
|
public SiteSettings Clone() {
|
|
var json = JsonSerializer.Serialize(this);
|
|
return JsonSerializer.Deserialize<SiteSettings>(json)!;
|
|
}
|
|
|
|
public string RelativeUrl(string path) {
|
|
return $"{ApiURL}{path}";
|
|
}
|
|
}
|
|
} |