-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Media Indexing into a new module to simplify dependencies. (#14989)
- Loading branch information
1 parent
0dab071
commit 9638cd1
Showing
15 changed files
with
182 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/OrchardCore.Modules/OrchardCore.Media.Indexing.OpenXML/Manifest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using OrchardCore.Modules.Manifest; | ||
|
||
[assembly: Module( | ||
Name = "OpenXML Media Indexing", | ||
Description = "Provides a way to index Office files such as Word and Power Point in search providers", | ||
Dependencies = | ||
[ | ||
"OrchardCore.Media.Indexing" | ||
], | ||
Category = "Search", | ||
Author = ManifestConstants.OrchardCoreTeam, | ||
Website = ManifestConstants.OrchardCoreWebsite, | ||
Version = ManifestConstants.OrchardCoreVersion | ||
)] |
28 changes: 28 additions & 0 deletions
28
...Core.Modules/OrchardCore.Media.Indexing.OpenXML/OrchardCore.Media.Indexing.OpenXML.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<!-- NuGet properties--> | ||
<Title>OrchardCore OpenXML files Indexing</Title> | ||
<Description> | ||
$(OCCMSDescription) | ||
|
||
The media module adds OpenXML files indexing support. | ||
</Description> | ||
<PackageTags>$(PackageTags) OrchardCoreCMS ContentManagement</PackageTags> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<FrameworkReference Include="Microsoft.AspNetCore.App" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\OrchardCore\OrchardCore.Indexing.Abstractions\OrchardCore.Indexing.Abstractions.csproj" /> | ||
<ProjectReference Include="..\..\OrchardCore\OrchardCore.Media.Abstractions\OrchardCore.Media.Abstractions.csproj" /> | ||
<ProjectReference Include="..\..\OrchardCore\OrchardCore.Module.Targets\OrchardCore.Module.Targets.csproj" /> | ||
<ProjectReference Include="..\..\OrchardCore\OrchardCore.ResourceManagement\OrchardCore.ResourceManagement.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="DocumentFormat.OpenXml" /> | ||
</ItemGroup> | ||
</Project> |
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
src/OrchardCore.Modules/OrchardCore.Media.Indexing.OpenXML/Startup.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Microsoft.Extensions.DependencyInjection; | ||
using OrchardCore.Modules; | ||
|
||
namespace OrchardCore.Media.Indexing.OpenXML; | ||
|
||
public class Startup : StartupBase | ||
{ | ||
public override void ConfigureServices(IServiceCollection services) | ||
{ | ||
services.AddMediaFileTextProvider<WordDocumentMediaFileTextProvider>(".docx"); | ||
services.AddMediaFileTextProvider<PresentationDocumentMediaFileTextProvider>(".pptx"); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/OrchardCore.Modules/OrchardCore.Media.Indexing.Pdf/Manifest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using OrchardCore.Modules.Manifest; | ||
|
||
[assembly: Module( | ||
Name = "PDF Media Indexing", | ||
Description = "Provides a way to index PDF files in search providers.", | ||
Dependencies = | ||
[ | ||
"OrchardCore.Media.Indexing" | ||
], | ||
Category = "Search", | ||
Author = ManifestConstants.OrchardCoreTeam, | ||
Website = ManifestConstants.OrchardCoreWebsite, | ||
Version = ManifestConstants.OrchardCoreVersion | ||
)] |
28 changes: 28 additions & 0 deletions
28
src/OrchardCore.Modules/OrchardCore.Media.Indexing.Pdf/OrchardCore.Media.Indexing.Pdf.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<!-- NuGet properties--> | ||
<Title>OrchardCore PDF files Indexing</Title> | ||
<Description> | ||
$(OCCMSDescription) | ||
|
||
The media module adds PDF files indexing support. | ||
</Description> | ||
<PackageTags>$(PackageTags) OrchardCoreCMS ContentManagement</PackageTags> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<FrameworkReference Include="Microsoft.AspNetCore.App" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\OrchardCore\OrchardCore.Indexing.Abstractions\OrchardCore.Indexing.Abstractions.csproj" /> | ||
<ProjectReference Include="..\..\OrchardCore\OrchardCore.Media.Abstractions\OrchardCore.Media.Abstractions.csproj" /> | ||
<ProjectReference Include="..\..\OrchardCore\OrchardCore.Module.Targets\OrchardCore.Module.Targets.csproj" /> | ||
<ProjectReference Include="..\..\OrchardCore\OrchardCore.ResourceManagement\OrchardCore.ResourceManagement.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="PdfPig" /> | ||
</ItemGroup> | ||
</Project> |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
src/OrchardCore.Modules/OrchardCore.Media.Indexing.Pdf/Startup.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Microsoft.Extensions.DependencyInjection; | ||
using OrchardCore.Modules; | ||
|
||
namespace OrchardCore.Media.Indexing.Pdf; | ||
|
||
public class Startup : StartupBase | ||
{ | ||
public override void ConfigureServices(IServiceCollection services) | ||
{ | ||
services.AddMediaFileTextProvider<PdfMediaFileTextProvider>(".pdf"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters