Initial commit of refactoring of package installer for the installer process. Converted a few webforms pages/controls to the new format, created

new JS class to manage the installation, created new MVC controller for managing the ajax installation
This commit is contained in:
Shannon Deminick
2012-10-16 01:33:35 +05:00
parent 0e0c4fcb1f
commit 6f778c26d1
21 changed files with 954 additions and 883 deletions

View File

@@ -133,8 +133,9 @@ namespace Umbraco.Web
/// </summary>
protected internal void CreateRoutes()
{
var umbracoPath = GlobalSettings.UmbracoMvcArea;
//set routes
//Create the front-end route
var defaultRoute = RouteTable.Routes.MapRoute(
"Umbraco_default",
"Umbraco/RenderMvc/{action}/{id}",
@@ -142,7 +143,13 @@ namespace Umbraco.Web
);
defaultRoute.RouteHandler = new RenderRouteHandler(ControllerBuilder.Current.GetControllerFactory());
var umbracoPath = GlobalSettings.UmbracoMvcArea;
//Create the install routes
var installPackageRoute = RouteTable.Routes.MapRoute(
"Umbraco_install_packages",
"Install/PackageInstaller/{action}/{id}",
new { controller = "InstallPackage", action = "Index", id = UrlParameter.Optional }
);
installPackageRoute.DataTokens.Add("area", umbracoPath);
//we need to find the surface controllers and route them
var surfaceControllers = SurfaceControllerResolver.Current.RegisteredSurfaceControllers.ToArray();