Skip to content

Commit b43cce6

Browse files
committed
Add web project
1 parent 1997d48 commit b43cce6

54 files changed

Lines changed: 39751 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
namespace StyleCop.Analyzers.Status.Web
2+
{
3+
using System.Web.Optimization;
4+
5+
public class BundleConfig
6+
{
7+
public static void RegisterBundles(BundleCollection bundles)
8+
{
9+
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
10+
"~/Scripts/jquery-{version}.js"));
11+
12+
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
13+
"~/Scripts/jquery.validate*"));
14+
15+
// Use the development version of Modernizr to develop with and learn from. Then, when you're
16+
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
17+
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
18+
"~/Scripts/modernizr-*"));
19+
20+
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
21+
"~/Scripts/bootstrap.js",
22+
"~/Scripts/respond.js"));
23+
24+
bundles.Add(new StyleBundle("~/Content/css").Include(
25+
"~/Content/bootstrap.css",
26+
"~/Content/site.css"));
27+
}
28+
}
29+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
namespace StyleCop.Analyzers.Status.Web
2+
{
3+
using System.Web.Mvc;
4+
5+
public class FilterConfig
6+
{
7+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
8+
{
9+
filters.Add(new HandleErrorAttribute());
10+
}
11+
}
12+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
namespace StyleCop.Analyzers.Status.Web
2+
{
3+
using System.Web.Mvc;
4+
using System.Web.Routing;
5+
6+
public class RouteConfig
7+
{
8+
public static void RegisterRoutes(RouteCollection routes)
9+
{
10+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
11+
12+
routes.MapRoute(
13+
name: "Default",
14+
url: "{controller}/{action}/{id}",
15+
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional });
16+
}
17+
}
18+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
body {
2+
padding-top: 50px;
3+
padding-bottom: 20px;
4+
}
5+
6+
/* Set padding to keep content from hitting the edges */
7+
.body-content {
8+
padding-left: 15px;
9+
padding-right: 15px;
10+
}
11+
12+
/* Override the default bootstrap behavior where horizontal description lists
13+
will truncate terms that are too long to fit in the left column
14+
*/
15+
.dl-horizontal dt {
16+
white-space: normal;
17+
}
18+
19+
/* Set width on the form input elements since they're 100% wide by default */
20+
input,
21+
select,
22+
textarea {
23+
max-width: 280px;
24+
}

0 commit comments

Comments
 (0)