Skip to content

Commit ed662da

Browse files
committed
Added notes to classes.
1 parent 5bf95af commit ed662da

File tree

4 files changed

+26
-32
lines changed

4 files changed

+26
-32
lines changed

Templates/All-In-One-Template/MySpaProject/MySpaProject.WebSpaAngular/App_Start/MySpaProjectNavigationProvider.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
namespace MySpaProject.WebSpaAngular
55
{
6+
/// <summary>
7+
/// This class defines menus for the application.
8+
/// It uses ABP's menu system.
9+
/// When you add menu items here, they are automatically appear in angular application.
10+
/// See .cshtml and .js files under App/Main/views/layout/header to know how to render menu.
11+
/// </summary>
612
public class MySpaProjectNavigationProvider : INavigationProvider
713
{
814
public void SetNavigation(INavigationProviderContext context)

Templates/All-In-One-Template/MySpaProject/MySpaProject.WebSpaAngular/Controllers/HomeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public class HomeController : MySpaProjectControllerBase
66
{
77
public ActionResult Index()
88
{
9-
return View("~/App/Main/views/layout/layout.cshtml");
9+
return View("~/App/Main/views/layout/layout.cshtml"); //Layout of the angular application.
1010
}
1111
}
1212
}

Templates/All-In-One-Template/MySpaProject/MySpaProject.WebSpaAngular/Controllers/MySpaProjectControllerBase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace MySpaProject.WebSpaAngular.Controllers
44
{
5+
/// <summary>
6+
/// Derive all Controllers from this class.
7+
/// </summary>
58
public abstract class MySpaProjectControllerBase : AbpController
69
{
710
protected MySpaProjectControllerBase()
Lines changed: 16 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,33 @@
1-
<!DOCTYPE html>
1+
@*
2+
IMPORTANT NOTES FROM ASP.NET BOILERPLATE:
3+
4+
This _Layout.cshtml is not used actually. It's left here if you want to add some classic style (MPA)
5+
pages to your application.
6+
7+
See App/Main/views/layout/layout.cshtml for Angular application's layout page.
8+
*@
9+
10+
<!DOCTYPE html>
211
<html lang="en">
312
<head>
4-
5-
<!-- Common meta tags -->
613
<meta charset="utf-8">
714
<meta http-equiv="X-UA-Compatible" content="IE=edge">
815
<meta name="viewport" content="width=device-width, initial-scale=1">
916
<meta name="description" content="">
1017
<meta name="author" content="">
1118

12-
<!-- favicon -->
13-
<link rel="shortcut icon" href="~/favicon.ico">
19+
<title>MySpaProject</title>
1420

15-
<!-- Site title -->
16-
<title>My ASP.NET Boilerplate Project!</title>
21+
<link rel="shortcut icon" href="~/favicon.ico">
1722

18-
<!-- Style for jQueryUI -->
1923
<link href="~/Content/themes/base/all.css" rel="stylesheet" />
20-
21-
<!-- Style for Bootstrap -->
2224
<link href="~/Content/bootstrap-cosmo.min.css" rel="stylesheet">
23-
24-
<!-- Styles for jQuery plug-ins -->
2525
<link href="~/Content/toastr.min.css" rel="stylesheet" />
26-
27-
<!-- Country flags -->
2826
<link href="~/Content/flags/famfamfam-flags.css" rel="stylesheet" />
2927

30-
<!-- Common styles for this application TODO: ??? -->
31-
<link href="~/App/Common/styles/main.css" rel="stylesheet" />
32-
3328
<script type="text/javascript">
3429
//This is used to get the application's root path from javascript. It's useful if you're running application in a virtual directory under IIS.
35-
var abp = abp || {};
36-
abp.appPath = '@ApplicationPath';
30+
var abp = abp || {}; abp.appPath = '@ApplicationPath';
3731
</script>
3832

3933
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
@@ -42,15 +36,10 @@
4236
<script src="@Url.Content("~/Scripts/others/respond.min.js")"></script>
4337
<![endif]-->
4438

45-
<link href="~/App/Main/styles/main.css" rel="stylesheet" />
46-
47-
<!-- Windows Phone 8 and Internet Explorer 10 FIX -->
4839
<script src="~/Abp/Framework/scripts/utils/ie10fix.js"></script>
4940

50-
<!-- Modernizr -->
5141
<script src="~/Scripts/modernizr-2.8.3.js"></script>
5242

53-
<!-- jQuery and plugins -->
5443
<script src="~/Scripts/json2.min.js"></script>
5544
<script src="~/Scripts/jquery-2.1.1.min.js"></script>
5645
<script src="~/Scripts/jquery-ui.min-1.11.1.js"></script>
@@ -59,25 +48,21 @@
5948
<script src="~/Scripts/others/spinjs/spin.js"></script>
6049
<script src="~/Scripts/others/spinjs/jquery.spin.js"></script>
6150

62-
<!-- Twitter Bootstrap -->
6351
<script src="~/Scripts/bootstrap.min.js"></script>
6452

65-
<!-- Abp framework scripts -->
6653
<script src="~/Abp/Framework/scripts/abp.js"></script>
6754
<script src="~/Abp/Framework/scripts/libs/abp.jquery.js"></script>
6855
<script src="~/Abp/Framework/scripts/libs/abp.toastr.js"></script>
6956
<script src="~/Abp/Framework/scripts/libs/abp.blockUI.js"></script>
7057
<script src="~/Abp/Framework/scripts/libs/abp.spin.js"></script>
7158

72-
<!-- Dynamic script of ABP system (It's created on runtime) -->
59+
<!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
60+
<script src="~/api/AbpServiceProxies/GetAll"></script>
7361
<script src="~/AbpLocalization/GetScripts" type="text/javascript"></script>
62+
<script src="~/AbpAuthorization/GetScripts" type="text/javascript"></script>
7463
<script src="~/AbpNavigation/GetScripts" type="text/javascript"></script>
75-
7664
</head>
77-
7865
<body>
79-
8066
@RenderBody()
81-
8267
</body>
8368
</html>

0 commit comments

Comments
 (0)