Skip to content

Commit 19c2b19

Browse files
committed
feat: add jcdcdev.Umbraco.Core
1 parent cddc058 commit 19c2b19

File tree

9 files changed

+18
-67
lines changed

9 files changed

+18
-67
lines changed

src/Umbraco.Community.FileSystemProviders.B2/Composing/Composer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using jcdcdev.Umbraco.Core.Composing;
12
using Our.Umbraco.StorageProviders.AWSS3;
23
using Umbraco.Cms.Core.Composing;
34
using Umbraco.Cms.Core.DependencyInjection;
@@ -12,7 +13,7 @@ public class Composer : IComposer
1213
{
1314
public void Compose(IUmbracoBuilder builder)
1415
{
15-
builder.ManifestFilters().Append<ManifestFilter>();
16+
builder.AddSimpleManifestFilter(Constants.PackageName);
1617
builder.AddB2MediaFileSystem();
1718
}
1819
}

src/Umbraco.Community.FileSystemProviders.B2/Composing/ManifestFilter.cs

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/Umbraco.Community.FileSystemProviders.B2/Constants.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ namespace Umbraco.Community.FileSystemProviders.B2;
22

33
public class Constants
44
{
5+
public const string PackageName = "Umbraco.Community.FileSystemProviders.B2";
56
public const string Section = "Umbraco:Storage:B2:Media";
67

78
public class HealthChecks

src/Umbraco.Community.FileSystemProviders.B2/HealthChecks/ApplicationKeyHealthCheck.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using jcdcdev.Umbraco.Core.HealthChecks;
12
using Microsoft.Extensions.Options;
23
using Umbraco.Cms.Core.HealthChecks;
34
using Umbraco.Cms.Core.Services;
@@ -10,8 +11,12 @@ namespace Umbraco.Community.FileSystemProviders.B2.HealthChecks;
1011
Constants.HealthChecks.ApplicationKey.Name,
1112
Description = Constants.HealthChecks.ApplicationKey.Description,
1213
Group = Constants.HealthChecks.Groups.Configuration)]
13-
internal class ApplicationKeyHealthCheck(ILocalizedTextService textService, IOptions<B2Options> options) : ConfigurationNotNullHealthcheck<B2Options>(textService, options)
14+
internal class ApplicationKeyHealthCheck : ConfigurationNotNullHealthcheck<B2Options>
1415
{
16+
public ApplicationKeyHealthCheck(ILocalizedTextService textService, IOptions<B2Options> options) : base(textService, options)
17+
{
18+
}
19+
1520
public override string ItemPath => Constants.HealthChecks.ApplicationKey.ItemPath;
1621
public override string ReadMoreLink => Constants.HealthChecks.ApplicationKey.ReadMoreLink;
1722
public override string CurrentValue => Options.Credentials?.ApplicationKey ?? string.Empty;

src/Umbraco.Community.FileSystemProviders.B2/HealthChecks/BucketNameHealthCheck.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using jcdcdev.Umbraco.Core.HealthChecks;
12
using Microsoft.Extensions.Hosting;
23
using Microsoft.Extensions.Options;
34
using Umbraco.Cms.Core.HealthChecks;

src/Umbraco.Community.FileSystemProviders.B2/HealthChecks/ConfigurationNotNullHealthcheck.cs

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/Umbraco.Community.FileSystemProviders.B2/HealthChecks/KeyIdHealthCheck.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using jcdcdev.Umbraco.Core.HealthChecks;
12
using Microsoft.Extensions.Options;
23
using Umbraco.Cms.Core.HealthChecks;
34
using Umbraco.Cms.Core.Services;

src/Umbraco.Community.FileSystemProviders.B2/HealthChecks/ServiceUrlHealthCheck.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using jcdcdev.Umbraco.Core.HealthChecks;
12
using Microsoft.Extensions.Options;
23
using Umbraco.Cms.Core.HealthChecks;
34
using Umbraco.Cms.Core.Services;

src/Umbraco.Community.FileSystemProviders.B2/Umbraco.Community.FileSystemProviders.B2.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="[10.4.0,11.0.0)"/>
3131
<PackageReference Include="Umbraco.Cms.Web.Common" Version="[10.4.0,11.0.0)"/>
3232
<PackageReference Include="Our.Umbraco.StorageProviders.AWSS3" Version="1.3.0"/>
33+
<PackageReference Include="jcdcdev.Umbraco.Core" Version="0.3.0"/>
3334
</ItemGroup>
3435

3536
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
@@ -38,6 +39,7 @@
3839
<PackageReference Include="Umbraco.Cms.Web.Common" Version="[11.0.0,13.0.0)"/>
3940
<PackageReference Include="Umbraco.Cms.Imaging.ImageSharp" Version="[11.0.0,13.0.0)"/>
4041
<PackageReference Include="Our.Umbraco.StorageProviders.AWSS3" Version="1.3.0"/>
42+
<PackageReference Include="jcdcdev.Umbraco.Core" Version="0.3.0"/>
4143
</ItemGroup>
4244

4345
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
@@ -46,6 +48,7 @@
4648
<PackageReference Include="Umbraco.Cms.Web.Common" Version="[13.0.0,14.0.0)"/>
4749
<PackageReference Include="Umbraco.Cms.Imaging.ImageSharp" Version="[13.0.0,14.0.0)"/>
4850
<PackageReference Include="Our.Umbraco.StorageProviders.AWSS3" Version="1.3.0"/>
51+
<PackageReference Include="jcdcdev.Umbraco.Core" Version="0.3.0"/>
4952
</ItemGroup>
5053

5154
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
@@ -58,4 +61,7 @@
5861
<None Include="..\..\docs\icon.png" Pack="true" PackagePath="images\icon.png"/>
5962
<None Include="..\..\.github\README.md" Pack="true" PackagePath="\"/>
6063
</ItemGroup>
64+
65+
<ItemGroup>
66+
</ItemGroup>
6167
</Project>

0 commit comments

Comments
 (0)