use newer Resource overload methods

This commit is contained in:
sbwalker
2025-09-16 12:50:01 -04:00
parent c38dc69d3b
commit 503134d38c
3 changed files with 4 additions and 4 deletions

View File

@ -94,7 +94,7 @@ else
public override List<Resource> Resources => new List<Resource>() public override List<Resource> Resources => new List<Resource>()
{ {
new Resource { ResourceType = ResourceType.Stylesheet, Url = ModulePath() + "Module.css" } new Stylesheet(ModulePath() + "Module.css")
}; };
protected override async Task OnInitializedAsync() protected override async Task OnInitializedAsync()

View File

@ -51,8 +51,8 @@
public override List<Resource> Resources { get; set; } = new List<Resource>() public override List<Resource> Resources { get; set; } = new List<Resource>()
{ {
new Resource { ResourceType = ResourceType.Script, Url = "_content/Radzen.Blazor/Radzen.Blazor.js", Location = ResourceLocation.Body }, new Script("_content/Radzen.Blazor/Radzen.Blazor.js"),
new Resource { ResourceType = ResourceType.Script, Url = "js/texteditors/radzen/radzen-interop.js", Location = ResourceLocation.Body } new Script("js/texteditors/radzen/radzen-interop.js")
}; };
protected override void OnInitialized() protected override void OnInitialized()

View File

@ -18,7 +18,7 @@ namespace Oqtane.Modules.HtmlText
SettingsType = "Oqtane.Modules.HtmlText.Settings, Oqtane.Client", SettingsType = "Oqtane.Modules.HtmlText.Settings, Oqtane.Client",
Resources = new List<Resource>() Resources = new List<Resource>()
{ {
new Resource { ResourceType = ResourceType.Stylesheet, Url = "~/Module.css" } new Stylesheet("~/Module.css")
} }
}; };
} }