-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
718a7a4
commit 47342b3
Showing
55 changed files
with
89 additions
and
176 deletions.
There are no files selected for viewing
File renamed without changes
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
94 changes: 0 additions & 94 deletions
94
src/Perplex.ContentBlocks.Core/PropertyEditor/ContentBlocksManifestFilter.cs
This file was deleted.
Oops, something went wrong.
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,50 @@ | ||
using System.Diagnostics; | ||
using Umbraco.Cms.Core.Manifest; | ||
|
||
namespace Perplex.ContentBlocks.StaticAssets; | ||
|
||
internal class ManifestFilter : IManifestFilter | ||
{ | ||
void IManifestFilter.Filter(List<PackageManifest> manifests) | ||
{ | ||
var assembly = typeof(PackageManifest).Assembly; | ||
var versionInfo = FileVersionInfo.GetVersionInfo(assembly.Location); | ||
|
||
manifests.Add(new PackageManifest | ||
{ | ||
PackageName = "Perplex.ContentBlocks", | ||
Version = versionInfo.ProductVersion ?? "1.0.0", | ||
AllowPackageTelemetry = false, | ||
BundleOptions = BundleOptions.Default, | ||
Scripts = new[] | ||
{ | ||
// Note: .requires.js should be loaded first | ||
"/App_Plugins/Perplex.ContentBlocks/perplex.content-blocks.requires.js", | ||
|
||
"/App_Plugins/Perplex.ContentBlocks/perplex.content-blocks.api.js", | ||
"/App_Plugins/Perplex.ContentBlocks/perplex.content-blocks.controller.js", | ||
"/App_Plugins/Perplex.ContentBlocks/components/perplex.content-block.component.js", | ||
"/App_Plugins/Perplex.ContentBlocks/components/perplex.content-blocks.add-block.js", | ||
"/App_Plugins/Perplex.ContentBlocks/components/perplex.content-blocks.custom-component.js", | ||
"/App_Plugins/Perplex.ContentBlocks/components/perplex.content-blocks.custom-components.js", | ||
"/App_Plugins/Perplex.ContentBlocks/components/perplex.content-blocks.icon.js", | ||
"/App_Plugins/Perplex.ContentBlocks/components/perplex.content-blocks.nested-content-patch.js", | ||
"/App_Plugins/Perplex.ContentBlocks/configuration/perplex.content-blocks.configuration.structure.js", | ||
"/App_Plugins/Perplex.ContentBlocks/lib/angular-slick.js", | ||
"/App_Plugins/Perplex.ContentBlocks/lib/slick.min.js", | ||
"/App_Plugins/Perplex.ContentBlocks/utils/perplex.content-blocks.copy-paste-service.js", | ||
"/App_Plugins/Perplex.ContentBlocks/utils/perplex.content-blocks.utils.js", | ||
"/App_Plugins/Perplex.ContentBlocks/utils/portal/perplex.content-blocks-portal.js", | ||
"/App_Plugins/Perplex.ContentBlocks/utils/property/perplex.content-blocks.property-scaffold-cache.js", | ||
"/App_Plugins/Perplex.ContentBlocks/utils/property/perplex.content-blocks.property.js", | ||
"/App_Plugins/Perplex.ContentBlocks/utils/tab-focus/perplex.content-blocks.tab-focus-once.directive.js", | ||
"/App_Plugins/Perplex.ContentBlocks/utils/tab-focus/perplex.content-blocks.tab-focus.service.js", | ||
}, | ||
|
||
Stylesheets = new[] | ||
{ | ||
"/App_Plugins/Perplex.ContentBlocks/perplex.content-blocks.css", | ||
}, | ||
}); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Perplex.ContentBlocks.StaticAssets/ManifestFilterComposer.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,10 @@ | ||
using Umbraco.Cms.Core.Composing; | ||
using Umbraco.Cms.Core.DependencyInjection; | ||
|
||
namespace Perplex.ContentBlocks.StaticAssets; | ||
|
||
public class ManifestFilterComposer : IComposer | ||
{ | ||
public void Compose(IUmbracoBuilder builder) | ||
=> builder.ManifestFilters().Append<ManifestFilter>(); | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Perplex.ContentBlocks.StaticAssets/Perplex.ContentBlocks.StaticAssets.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,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Razor"> | ||
|
||
<PropertyGroup Label="NuGet Package"> | ||
<PackageId>Perplex.ContentBlocks.StaticAssets</PackageId> | ||
<PackageTags>umbraco</PackageTags> | ||
<Description>Perplex.ContentBlocks Static Assets</Description> | ||
<StaticWebAssetBasePath>/</StaticWebAssetBasePath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="10.0.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
10 changes: 0 additions & 10 deletions
10
src/Perplex.ContentBlocks/App_Plugins/Perplex.ContentBlocks/components/package.manifest
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/Perplex.ContentBlocks/App_Plugins/Perplex.ContentBlocks/configuration/package.manifest
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/Perplex.ContentBlocks/App_Plugins/Perplex.ContentBlocks/lib/package.manifest
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/Perplex.ContentBlocks/App_Plugins/Perplex.ContentBlocks/package.manifest
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/Perplex.ContentBlocks/App_Plugins/Perplex.ContentBlocks/utils/package.manifest
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
src/Perplex.ContentBlocks/App_Plugins/Perplex.ContentBlocks/utils/portal/package.manifest
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/Perplex.ContentBlocks/App_Plugins/Perplex.ContentBlocks/utils/property/package.manifest
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
src/Perplex.ContentBlocks/App_Plugins/Perplex.ContentBlocks/utils/tab-focus/package.manifest
This file was deleted.
Oops, something went wrong.
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