Skip to content

Commit 883e2a9

Browse files
samples
1 parent a77fd2f commit 883e2a9

File tree

6 files changed

+41
-9
lines changed

6 files changed

+41
-9
lines changed

Samples/Difficult/Reinforced.Typings.Samples.Difficult.CodeGenerators/App_Start/RouteConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void RegisterRoutes(RouteCollection routes)
1616
routes.MapRoute(
1717
name: "Default",
1818
url: "{controller}/{action}/{id}",
19-
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
19+
defaults: new { controller = "Home", action = "JQuery", id = UrlParameter.Optional }
2020
);
2121
}
2222
}

Samples/Difficult/Reinforced.Typings.Samples.Difficult.CodeGenerators/Controllers/HomeController.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ namespace Reinforced.Typings.Samples.Difficult.CodeGenerators.Controllers
88
{
99
public class HomeController : Controller
1010
{
11-
public ActionResult Index()
11+
public ActionResult JQuery()
12+
{
13+
return View();
14+
}
15+
16+
public ActionResult Angular()
1217
{
1318
return View();
1419
}

Samples/Difficult/Reinforced.Typings.Samples.Difficult.CodeGenerators/Reinforced.Typings.Samples.Difficult.CodeGenerators.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,10 +1001,11 @@
10011001
</Content>
10021002
<Content Include="Views\Web.config" />
10031003
<Content Include="Views\_ViewStart.cshtml" />
1004-
<Content Include="Views\Home\Index.cshtml" />
1004+
<Content Include="Views\Home\JQuery.cshtml" />
10051005
<Content Include="Scripts\jquery-1.10.2.min.map" />
10061006
<Content Include="Views\Shared\_Layout.cshtml" />
10071007
<Content Include="Scripts\version.json" />
1008+
<Content Include="Views\Home\Angular.cshtml" />
10081009
</ItemGroup>
10091010
<ItemGroup />
10101011
<ItemGroup>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
@{
3+
ViewBag.Title = "Angular";
4+
}
5+
6+
<h2>Angular</h2>
7+

Samples/Difficult/Reinforced.Typings.Samples.Difficult.CodeGenerators/Views/Home/Index.cshtml renamed to Samples/Difficult/Reinforced.Typings.Samples.Difficult.CodeGenerators/Views/Home/JQuery.cshtml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
ViewBag.Title = "Home Page";
33
}
44

5-
<div class="jumbotron">
6-
<h1 id="loading">Reinforced.Typings</h1>
7-
<p class="lead">Reinforced.Typings is a free framework for generating TypeScript glue code.</p>
8-
9-
</div>
105

116
<div class="row">
127

Samples/Difficult/Reinforced.Typings.Samples.Difficult.CodeGenerators/Views/Shared/_Layout.cshtml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="viewport" content="width=device-width" />
66
<title>Reinforced.Typings Test Application</title>
7-
<link rel="stylesheet" href="~/Content/bootstrap.min.css"/>
7+
<link rel="stylesheet" href="~/Content/bootstrap.min.css" />
88
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.10.2.min.js")"></script>
99
<script type="text/javascript" src="~/Scripts/bootstrap.min.js"></script>
1010
<script type="text/javascript" src="/Scripts/ReinforcedTypings/query.js"></script>
@@ -13,6 +13,30 @@
1313
</head>
1414
<body>
1515
<div class="container">
16+
<div class="jumbotron">
17+
<h1 id="loading">Reinforced.Typings</h1>
18+
<p class="lead">Reinforced.Typings is a free framework for generating TypeScript glue code.</p>
19+
</div>
20+
<nav class="navbar navbar-default">
21+
<div class="container-fluid">
22+
<!-- Brand and toggle get grouped for better mobile display -->
23+
<div class="navbar-header">
24+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
25+
<span class="sr-only">Toggle navigation</span>
26+
<span class="icon-bar"></span>
27+
<span class="icon-bar"></span>
28+
<span class="icon-bar"></span>
29+
</button>
30+
<a class="navbar-brand" href="#">Available demos:</a>
31+
</div>
32+
33+
<!-- Collect the nav links, forms, and other content for toggling -->
34+
<ul class="nav navbar-nav">
35+
<li class=""><a href="@Url.Action("JQuery", "Home")">JQuery demo</a></li>
36+
<li class=""><a href="@Url.Action("Angular","Home")">Angular.js demo</a></li>
37+
</ul>
38+
</div><!-- /.navbar-collapse -->
39+
</nav>
1640
@RenderBody()
1741
</div>
1842
</body>

0 commit comments

Comments
 (0)