Skip to content

Commit 9085985

Browse files
committed
Revert "Started MVC + React App"
This reverts commit 0a0d765.
1 parent 0a0d765 commit 9085985

26 files changed

+48
-14624
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,5 +286,3 @@ __pycache__/
286286
*.btm.cs
287287
*.odx.cs
288288
*.xsd.cs
289-
290-
node_modules

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"preLaunchTask": "build",
1212
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceRoot}/bin/Debug/net6.0/surveyjs-aspnet-mvc.dll",
13+
"program": "${workspaceRoot}/bin/Debug/netcoreapp3.1/surveyjs-aspnet-mvc.dll",
1414
"args": [],
1515
"cwd": "${workspaceRoot}",
1616
"stopAtEntry": false,

Controllers/HomeController.cs

Lines changed: 0 additions & 36 deletions
This file was deleted.

Models/ErrorViewModel.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

Program.cs

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
1-
var builder = WebApplication.CreateBuilder(args);
2-
3-
// Add services to the container.
4-
builder.Services.AddControllersWithViews();
5-
6-
builder.Services.AddSession(options => {
7-
options.IdleTimeout = TimeSpan.FromMinutes(30);
8-
});
9-
10-
var app = builder.Build();
11-
12-
// Configure the HTTP request pipeline.
13-
if (!app.Environment.IsDevelopment()) {
14-
app.UseExceptionHandler("/Home/Error");
15-
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
16-
app.UseHsts();
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Threading.Tasks;
6+
using Microsoft.AspNetCore;
7+
using Microsoft.AspNetCore.Hosting;
8+
using Microsoft.Extensions.Configuration;
9+
using Microsoft.Extensions.Logging;
10+
11+
namespace surveyjs_aspnet_mvc
12+
{
13+
public class Program
14+
{
15+
public static void Main(string[] args)
16+
{
17+
BuildWebHost(args).Run();
18+
}
19+
20+
public static IWebHost BuildWebHost(string[] args) =>
21+
WebHost.CreateDefaultBuilder(args)
22+
.UseStartup<Startup>()
23+
.Build();
24+
}
1725
}
18-
19-
app.UseHttpsRedirection();
20-
app.UseStaticFiles();
21-
22-
app.UseRouting();
23-
24-
app.UseAuthorization();
25-
26-
app.UseSession();
27-
28-
app.MapControllerRoute(
29-
name: "default",
30-
pattern: "{controller=Home}/{action=Index}/{id?}");
31-
32-
app.Run();

Views/Home/Index.cshtml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Views/Home/MySurveys.cshtml

Lines changed: 0 additions & 12 deletions
This file was deleted.

Views/Home/Privacy.cshtml

Lines changed: 0 additions & 6 deletions
This file was deleted.

Views/Shared/Error.cshtml

Lines changed: 0 additions & 25 deletions
This file was deleted.

Views/Shared/_Layout.cshtml

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)