Skip to content

Commit 75a4d13

Browse files
committed
Replaced package.manifest with new BackOfficeJavaScriptAsset class
1 parent 83a9d8f commit 75a4d13

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/Skybrud.Umbraco.MultiNodeTreePicker/App_Plugins/Skybrud.Umbraco.MultiNodeTreePicker/package.manifest

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

src/Skybrud.Umbraco.MultiNodeTreePicker/Composers/MntpComposer.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
using Skybrud.Umbraco.MultiNodeTreePicker.Converters;
22
using Umbraco.Cms.Core.Composing;
33
using Umbraco.Cms.Core.DependencyInjection;
4+
using Umbraco.Cms.Core.WebAssets;
45

56
namespace Skybrud.Umbraco.MultiNodeTreePicker.Composers {
67

78
internal sealed class MntpComposer : IComposer {
89

910
public void Compose(IUmbracoBuilder builder) {
1011
builder.WithCollectionBuilder<MntpConverterCollectionBuilder>().Add(() => builder.TypeLoader.GetTypes<IMntpItemConverter>());
12+
builder.BackOfficeAssets().Append<BackOfficeJavaScriptAsset>();
13+
}
14+
15+
public class BackOfficeJavaScriptAsset : IAssetFile {
16+
17+
public AssetType DependencyType => AssetType.Javascript;
18+
19+
public string FilePath { get; set; }
20+
21+
public BackOfficeJavaScriptAsset() {
22+
FilePath = "/App_Plugins/Skybrud.Umbraco.MultiNodeTreePicker/MntpConverter.js";
23+
}
24+
1125
}
1226

1327
}

0 commit comments

Comments
 (0)