Files
Umbraco-CMS/src/Umbraco.Web/Trees/ScriptsTreeController.cs

21 lines
698 B
C#
Raw Normal View History

2019-01-07 12:59:38 +01:00
using Umbraco.Core;
using Umbraco.Core.IO;
2017-05-30 18:13:11 +02:00
using Umbraco.Web.Composing;
using Umbraco.Web.Models.Trees;
namespace Umbraco.Web.Trees
{
2019-01-22 09:31:47 +01:00
[CoreTree]
[Tree(Constants.Applications.Settings, Constants.Trees.Scripts, TreeTitle = "Scripts", SortOrder = 10, TreeGroup = Constants.Trees.Groups.Templating)]
public class ScriptsTreeController : FileSystemTreeController
{
protected override IFileSystem FileSystem => Current.FileSystems.ScriptsFileSystem; // TODO: inject
2017-05-12 14:49:44 +02:00
private static readonly string[] ExtensionsStatic = { "js" };
2017-05-12 14:49:44 +02:00
protected override string[] Extensions => ExtensionsStatic;
2017-05-12 14:49:44 +02:00
protected override string FileIcon => "icon-script";
}
}