mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 02:30:13 +00:00
Beginning React+Redux "Music Store" sample
This commit is contained in:
10
samples/react/MusicStore/Views/Home/Index.cshtml
Executable file
10
samples/react/MusicStore/Views/Home/Index.cshtml
Executable file
@@ -0,0 +1,10 @@
|
||||
@{
|
||||
ViewData["Title"] = "Home Page";
|
||||
}
|
||||
|
||||
<div id="react-app">Loading...</div>
|
||||
|
||||
@section scripts {
|
||||
<script src="/dist/vendor.bundle.js"></script>
|
||||
<script src="/dist/main.js"></script>
|
||||
}
|
||||
6
samples/react/MusicStore/Views/Shared/Error.cshtml
Executable file
6
samples/react/MusicStore/Views/Shared/Error.cshtml
Executable 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>
|
||||
11
samples/react/MusicStore/Views/Shared/_Layout.cshtml
Executable file
11
samples/react/MusicStore/Views/Shared/_Layout.cshtml
Executable file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>@ViewData["Title"]</title>
|
||||
</head>
|
||||
<body>
|
||||
@RenderBody()
|
||||
@RenderSection("scripts", required: false)
|
||||
</body>
|
||||
</html>
|
||||
2
samples/react/MusicStore/Views/_ViewImports.cshtml
Executable file
2
samples/react/MusicStore/Views/_ViewImports.cshtml
Executable file
@@ -0,0 +1,2 @@
|
||||
@using MusicStore
|
||||
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
|
||||
3
samples/react/MusicStore/Views/_ViewStart.cshtml
Executable file
3
samples/react/MusicStore/Views/_ViewStart.cshtml
Executable file
@@ -0,0 +1,3 @@
|
||||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
||||
Reference in New Issue
Block a user