Skip to content

Commit

Permalink
Revert "Started MVC + React App"
Browse files Browse the repository at this point in the history
This reverts commit 0a0d765.
  • Loading branch information
tsv2013 committed Jan 23, 2023
1 parent 0a0d765 commit 9085985
Show file tree
Hide file tree
Showing 26 changed files with 48 additions and 14,624 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -286,5 +286,3 @@ __pycache__/
*.btm.cs
*.odx.cs
*.xsd.cs

node_modules
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceRoot}/bin/Debug/net6.0/surveyjs-aspnet-mvc.dll",
"program": "${workspaceRoot}/bin/Debug/netcoreapp3.1/surveyjs-aspnet-mvc.dll",
"args": [],
"cwd": "${workspaceRoot}",
"stopAtEntry": false,
Expand Down
36 changes: 0 additions & 36 deletions Controllers/HomeController.cs

This file was deleted.

8 changes: 0 additions & 8 deletions Models/ErrorViewModel.cs

This file was deleted.

55 changes: 24 additions & 31 deletions Program.cs
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
builder.Services.AddControllersWithViews();

builder.Services.AddSession(options => {
options.IdleTimeout = TimeSpan.FromMinutes(30);
});

var app = builder.Build();

// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment()) {
app.UseExceptionHandler("/Home/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;

namespace surveyjs_aspnet_mvc
{
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}

public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
}
}

app.UseHttpsRedirection();
app.UseStaticFiles();

app.UseRouting();

app.UseAuthorization();

app.UseSession();

app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");

app.Run();
8 changes: 0 additions & 8 deletions Views/Home/Index.cshtml

This file was deleted.

12 changes: 0 additions & 12 deletions Views/Home/MySurveys.cshtml

This file was deleted.

6 changes: 0 additions & 6 deletions Views/Home/Privacy.cshtml

This file was deleted.

25 changes: 0 additions & 25 deletions Views/Shared/Error.cshtml

This file was deleted.

54 changes: 0 additions & 54 deletions Views/Shared/_Layout.cshtml

This file was deleted.

48 changes: 0 additions & 48 deletions Views/Shared/_Layout.cshtml.css

This file was deleted.

2 changes: 0 additions & 2 deletions Views/Shared/_ValidationScriptsPartial.cshtml

This file was deleted.

3 changes: 0 additions & 3 deletions Views/_ViewImports.cshtml

This file was deleted.

3 changes: 0 additions & 3 deletions Views/_ViewStart.cshtml

This file was deleted.

Loading

0 comments on commit 9085985

Please sign in to comment.