mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-25 02:57:31 +00:00
Add AureliaSpa template (#398)
This commit is contained in:
committed by
SteveSandersonMS
parent
867e60d7fd
commit
e60ea04f86
10
templates/AureliaSpa/Views/Home/Index.cshtml
Normal file
10
templates/AureliaSpa/Views/Home/Index.cshtml
Normal file
@@ -0,0 +1,10 @@
|
||||
@{
|
||||
ViewData["Title"] = "Home Page";
|
||||
}
|
||||
|
||||
<div aurelia-app="boot">Loading...</div>
|
||||
|
||||
@section scripts {
|
||||
<script type="text/javascript" src="~/dist/aurelia-modules-bundle.js" asp-append-version="true"></script>
|
||||
<script type="text/javascript" src="~/dist/app-bundle.js" asp-append-version="true"></script>
|
||||
}
|
||||
6
templates/AureliaSpa/Views/Shared/Error.cshtml
Normal file
6
templates/AureliaSpa/Views/Shared/Error.cshtml
Normal file
@@ -0,0 +1,6 @@
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
||||
<h1 class="text-danger">Error.</h1>
|
||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||
13
templates/AureliaSpa/Views/Shared/_Layout.cshtml
Normal file
13
templates/AureliaSpa/Views/Shared/_Layout.cshtml
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@ViewData["Title"] - Aurelia</title>
|
||||
</head>
|
||||
<body>
|
||||
@RenderBody()
|
||||
|
||||
@RenderSection("scripts", required: false)
|
||||
</body>
|
||||
</html>
|
||||
3
templates/AureliaSpa/Views/_ViewImports.cshtml
Normal file
3
templates/AureliaSpa/Views/_ViewImports.cshtml
Normal file
@@ -0,0 +1,3 @@
|
||||
@using WebApplicationBasic
|
||||
@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
|
||||
@addTagHelper "*, Microsoft.AspNetCore.SpaServices"
|
||||
3
templates/AureliaSpa/Views/_ViewStart.cshtml
Normal file
3
templates/AureliaSpa/Views/_ViewStart.cshtml
Normal file
@@ -0,0 +1,3 @@
|
||||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
||||
Reference in New Issue
Block a user