Skip to content

Commit a5095c6

Browse files
author
Rafael J. Staib
committed
Move source code to a MVC project and start with subpage design
1 parent 35898ba commit a5095c6

File tree

218 files changed

+212647
-12742
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+212647
-12742
lines changed

JSteps.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JSteps", "JSteps\JSteps.csproj", "{AC970BEF-92E2-46D4-B563-04E3D93C8EA9}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Release|Any CPU = Release|Any CPU
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{AC970BEF-92E2-46D4-B563-04E3D93C8EA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13+
{AC970BEF-92E2-46D4-B563-04E3D93C8EA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{AC970BEF-92E2-46D4-B563-04E3D93C8EA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
15+
{AC970BEF-92E2-46D4-B563-04E3D93C8EA9}.Release|Any CPU.Build.0 = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

JSteps.v11.suo

40 KB
Binary file not shown.

JSteps/App_Start/BundleConfig.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace JSteps
5+
{
6+
public class BundleConfig
7+
{
8+
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
9+
public static void RegisterBundles(BundleCollection bundles)
10+
{
11+
bundles.Add(new ScriptBundle("~/Scripts/Base")
12+
.Include("~/Scripts/jquery-{version}.js")
13+
.Include("~/Scripts/bootstrap.js")
14+
.Include("~/Scripts/viewport-fix-mobile-ie10.js")
15+
.Include("~/Scripts/social.js")
16+
.Include("~/Scripts/tracking.js"));
17+
18+
bundles.Add(new ScriptBundle("~/Scripts/html5shiv")
19+
.Include("~/Scripts/html5shiv.js"));
20+
21+
bundles.Add(new StyleBundle("~/Content/Base")
22+
.Include("~/Content/bootstrap.css")
23+
.Include("~/Content/viewport-fix-mobile-ie10.css")
24+
.Include("~/Content/custom.css"));
25+
}
26+
}
27+
}

JSteps/App_Start/FilterConfig.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Web;
2+
using System.Web.Mvc;
3+
4+
namespace JSteps
5+
{
6+
public class FilterConfig
7+
{
8+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9+
{
10+
filters.Add(new HandleErrorAttribute());
11+
}
12+
}
13+
}

JSteps/App_Start/RouteConfig.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Routing;
7+
8+
namespace JSteps
9+
{
10+
public class RouteConfig
11+
{
12+
public static void RegisterRoutes(RouteCollection routes)
13+
{
14+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15+
16+
routes.MapRoute(
17+
name: "Default",
18+
url: "{controller}/{action}/{id}",
19+
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
20+
);
21+
}
22+
}
23+
}

JSteps/App_Start/WebApiConfig.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web.Http;
5+
6+
namespace JSteps
7+
{
8+
public static class WebApiConfig
9+
{
10+
public static void Register(HttpConfiguration config)
11+
{
12+
config.Routes.MapHttpRoute(
13+
name: "DefaultApi",
14+
routeTemplate: "api/{controller}/{id}",
15+
defaults: new { id = RouteParameter.Optional }
16+
);
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)