-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using jcdcdev.Umbraco.Core.Extensions; | ||
using jcdcdev.Umbraco.Core.Web.Models.Manifests; | ||
using Umbraco.Cms.Core.Manifest; | ||
using Umbraco.Cms.Infrastructure.Manifest; | ||
|
||
namespace Umbraco.Community.BackOfficeOrganiser.Composing; | ||
|
||
public class BackOfficeOrganiserPackageManifestReader : IPackageManifestReader | ||
{ | ||
public async Task<IEnumerable<PackageManifest>> ReadPackageManifestsAsync() | ||
Check warning on line 10 in src/Umbraco.Community.BackOfficeOrganiser/Composing/BackOfficeOrganiserPackageManifestReader.cs GitHub Actions / release
Check warning on line 10 in src/Umbraco.Community.BackOfficeOrganiser/Composing/BackOfficeOrganiserPackageManifestReader.cs GitHub Actions / release
Check warning on line 10 in src/Umbraco.Community.BackOfficeOrganiser/Composing/BackOfficeOrganiserPackageManifestReader.cs GitHub Actions / build
Check warning on line 10 in src/Umbraco.Community.BackOfficeOrganiser/Composing/BackOfficeOrganiserPackageManifestReader.cs GitHub Actions / build
Check warning on line 10 in src/Umbraco.Community.BackOfficeOrganiser/Composing/BackOfficeOrganiserPackageManifestReader.cs GitHub Actions / release
Check warning on line 10 in src/Umbraco.Community.BackOfficeOrganiser/Composing/BackOfficeOrganiserPackageManifestReader.cs GitHub Actions / release
|
||
{ | ||
var extensions = new List<IManifest>(); | ||
var packageManifest = new PackageManifest | ||
{ | ||
Name = Constants.PackageName, | ||
Version = EnvironmentExtensions.CurrentAssemblyVersion().ToSemVer()?.ToString() ?? "0.1.0", | ||
AllowPublicAccess = false, | ||
AllowTelemetry = false, | ||
Extensions = [] | ||
}; | ||
|
||
extensions.Add(new EntryPointManifest | ||
{ | ||
Name = "backoffice-organiser.entrypoint", | ||
Alias = "backoffice-organiser.entrypoint", | ||
Js = "/App_Plugins/Umbraco.Community.BackOfficeOrganiser/dist/index.js" | ||
}); | ||
|
||
packageManifest.Extensions = extensions.OfType<object>().ToArray(); | ||
return [packageManifest]; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Umbraco.Community.BackOfficeOrganiser; | ||
|
||
public class Constants | ||
{ | ||
public const string PackageName = "Umbraco.Community.BackOfficeOrganiser"; | ||
} |
This file was deleted.