cleanup and annoying line endings.
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Management.Instrumentation;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Formatting;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web.Http;
|
||||
using System.Web.Http.Controllers;
|
||||
@@ -17,18 +13,16 @@ using Umbraco.Core;
|
||||
using Umbraco.Web.Models.Trees;
|
||||
using Umbraco.Web.Mvc;
|
||||
using Umbraco.Web.WebApi;
|
||||
using umbraco.BusinessLogic;
|
||||
using umbraco.cms.presentation.Trees;
|
||||
using Umbraco.Core.Services;
|
||||
using ApplicationTree = Umbraco.Core.Models.ApplicationTree;
|
||||
using IAuthorizationFilter = System.Web.Http.Filters.IAuthorizationFilter;
|
||||
using UrlHelper = System.Web.Http.Routing.UrlHelper;
|
||||
|
||||
namespace Umbraco.Web.Trees
|
||||
{
|
||||
internal static class ApplicationTreeExtensions
|
||||
{
|
||||
|
||||
|
||||
private static readonly ConcurrentDictionary<Type, TreeAttribute> TreeAttributeCache = new ConcurrentDictionary<Type, TreeAttribute>();
|
||||
|
||||
internal static TreeAttribute GetTreeAttribute(this Type treeControllerType)
|
||||
@@ -48,15 +42,15 @@ namespace Umbraco.Web.Trees
|
||||
//assign the properties of this object to those of the metadata attribute
|
||||
return treeAttributes[0];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
internal static TreeAttribute GetTreeAttribute(this ApplicationTree tree)
|
||||
{
|
||||
return tree.GetRuntimeType().GetTreeAttribute();
|
||||
}
|
||||
}
|
||||
|
||||
internal static string GetRootNodeDisplayName(this TreeAttribute attribute, ILocalizedTextService textService)
|
||||
{
|
||||
{
|
||||
//if title is defined, return that
|
||||
if (string.IsNullOrEmpty(attribute.Title) == false)
|
||||
return attribute.Title;
|
||||
@@ -69,7 +63,7 @@ namespace Umbraco.Web.Trees
|
||||
|
||||
//is returned to signal that a label was not found
|
||||
return "[" + attribute.Alias + "]";
|
||||
}
|
||||
}
|
||||
|
||||
internal static Attempt<Type> TryGetControllerTree(this ApplicationTree appTree)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user