Merge pull request #4423 from sbwalker/dev
update module template to .NET 8.0.7
This commit is contained in:
commit
c6373ef582
|
@ -66,8 +66,8 @@ namespace Oqtane.Modules.HtmlText.Manager
|
|||
Title = pageModule.Module.Title,
|
||||
Description = string.Empty,
|
||||
Body = htmltext.Content,
|
||||
ContentModifiedBy = htmltext.ModifiedBy,
|
||||
ContentModifiedOn = htmltext.ModifiedOn
|
||||
ContentModifiedBy = htmltext.CreatedBy,
|
||||
ContentModifiedOn = htmltext.CreatedOn
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,8 +38,7 @@ else
|
|||
}
|
||||
|
||||
@code {
|
||||
// uncomment the following line to use Static render mode for this component
|
||||
// public override string RenderMode => RenderModes.Static;
|
||||
public override string RenderMode => RenderModes.Static;
|
||||
|
||||
public override List<Resource> Resources => new List<Resource>()
|
||||
{
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.6" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="8.0.6" />
|
||||
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.6" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.7" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="8.0.7" />
|
||||
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.7" />
|
||||
<PackageReference Include="System.Net.Http.Json" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Localization" Version="2.2.0" />
|
||||
|
|
|
@ -9,6 +9,7 @@ using Oqtane.Interfaces;
|
|||
using Oqtane.Enums;
|
||||
using Oqtane.Repository;
|
||||
using [Owner].Module.[Module].Repository;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace [Owner].Module.[Module].Manager
|
||||
{
|
||||
|
@ -60,23 +61,25 @@ namespace [Owner].Module.[Module].Manager
|
|||
}
|
||||
}
|
||||
|
||||
public List<SearchContent> GetSearchContents(Oqtane.Models.Module module, DateTime startTime)
|
||||
public Task<List<SearchContent>> GetSearchContentsAsync(PageModule pageModule, DateTime lastIndexedOn)
|
||||
{
|
||||
var searchContentList = new List<SearchContent>();
|
||||
var searchContentList = new List<SearchContent>();
|
||||
|
||||
var [Module]s = _[Module]Repository.Get[Module]s(module.ModuleId);
|
||||
foreach (var [Module] in [Module]s)
|
||||
{
|
||||
searchContentList.Add(new SearchContent
|
||||
{
|
||||
Title = module.Title,
|
||||
Description = string.Empty,
|
||||
Body = [Module].Name,
|
||||
ModifiedTime = [Module].ModifiedOn
|
||||
});
|
||||
}
|
||||
foreach (var [Module] in _[Module]Repository.Get[Module]s(pageModule.ModuleId))
|
||||
{
|
||||
if ([Module].ModifiedOn >= lastIndexedOn)
|
||||
{
|
||||
searchContentList.Add(new SearchContent
|
||||
{
|
||||
Title = pageModule.Module.Title,
|
||||
Body = [Module].Name,
|
||||
ContentModifiedBy = [Module].ModifiedBy,
|
||||
ContentModifiedOn = [Module].ModifiedOn
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return searchContentList;
|
||||
return Task.FromResult(searchContentList);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.6" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.6" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.6" />
|
||||
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.6" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.7" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.7" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.7" />
|
||||
<PackageReference Include="Microsoft.Extensions.Localization" Version="8.0.7" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Loading…
Reference in New Issue
Block a user