26 lines
1.4 KiB
C#
26 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
using Oqtane.Documentation;
|
|
using Oqtane.Models;
|
|
using Oqtane.Shared;
|
|
|
|
namespace Oqtane.Themes.OqtaneTheme
|
|
{
|
|
[PrivateApi("Mark Build-In Theme-Info classes as private, since it's not very useful in the public docs")]
|
|
public class ThemeInfo : ITheme
|
|
{
|
|
public Theme Theme => new Theme
|
|
{
|
|
Name = "Oqtane Theme",
|
|
Version = "1.0.0",
|
|
ThemeSettingsType = "Oqtane.Themes.OqtaneTheme.ThemeSettings, Oqtane.Client",
|
|
ContainerSettingsType = "Oqtane.Themes.OqtaneTheme.ContainerSettings, Oqtane.Client",
|
|
Resources = new List<Resource>()
|
|
{
|
|
new Resource { ResourceType = ResourceType.Stylesheet, Url = "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/5.2.0/cyborg/bootstrap.min.css", Integrity = "sha512-d6pZJl/sNcj0GFkp4kTjXtPE14deuUsOqFQtxkj0KyBJQl+4e0qsEyuIDcNqrYuGoauAW3sWyDCQp49mhF4Syw==", CrossOrigin = "anonymous" },
|
|
new Resource { ResourceType = ResourceType.Stylesheet, Url = "~/Theme.css" },
|
|
new Resource { ResourceType = ResourceType.Script, Url = "https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.0/js/bootstrap.bundle.min.js", Integrity = "sha512-9GacT4119eY3AcosfWtHMsT5JyZudrexyEVzTBWV3viP/YfB9e2pEy3N7WXL3SV6ASXpTU0vzzSxsbfsuUH4sQ==", CrossOrigin = "anonymous" }
|
|
}
|
|
};
|
|
}
|
|
}
|