generated from egmont11/ASP.Net-Core-MVC-Template
Rename
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace TemplateWeb.Areas.Admin.Controllers;
|
namespace StuzkovakWeb.Areas.Admin.Controllers;
|
||||||
|
|
||||||
[Area("Admin")]
|
[Area("Admin")]
|
||||||
[Authorize(Roles = "Admin")]
|
[Authorize(Roles = "Admin")]
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace TemplateWeb.Areas.Admin.Controllers;
|
namespace StuzkovakWeb.Areas.Admin.Controllers;
|
||||||
|
|
||||||
public class DashboardController : AdminBaseController
|
public class DashboardController : AdminBaseController
|
||||||
{
|
{
|
||||||
+3
-3
@@ -1,9 +1,9 @@
|
|||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using TemplateWeb.Entities;
|
using StuzkovakWeb.Entities;
|
||||||
using TemplateWeb.Models;
|
using StuzkovakWeb.Models;
|
||||||
|
|
||||||
namespace TemplateWeb.Areas.Admin.Controllers;
|
namespace StuzkovakWeb.Areas.Admin.Controllers;
|
||||||
|
|
||||||
public class UsersController : AdminBaseController
|
public class UsersController : AdminBaseController
|
||||||
{
|
{
|
||||||
+1
-1
@@ -22,7 +22,7 @@
|
|||||||
<header>
|
<header>
|
||||||
<nav class="navbar navbar-expand-sm navbar-dark bg-dark border-bottom box-shadow">
|
<nav class="navbar navbar-expand-sm navbar-dark bg-dark border-bottom box-shadow">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">TemplateWeb <small class="text-muted">Admin</small></a>
|
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">StuzkovakWeb <small class="text-muted">Admin</small></a>
|
||||||
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
|
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
|
||||||
<ul class="navbar-nav flex-grow-1">
|
<ul class="navbar-nav flex-grow-1">
|
||||||
</ul>
|
</ul>
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
@using TemplateWeb
|
@using StuzkovakWeb
|
||||||
@using TemplateWeb.Models
|
@using StuzkovakWeb.Models
|
||||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||||
+3
-3
@@ -3,10 +3,10 @@ using System.Text.Json;
|
|||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using TemplateWeb.Entities;
|
using StuzkovakWeb.Entities;
|
||||||
using TemplateWeb.Models;
|
using StuzkovakWeb.Models;
|
||||||
|
|
||||||
namespace TemplateWeb.Controllers;
|
namespace StuzkovakWeb.Controllers;
|
||||||
|
|
||||||
public class AuthController : Controller
|
public class AuthController : Controller
|
||||||
{
|
{
|
||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using TemplateWeb.Models;
|
using StuzkovakWeb.Models;
|
||||||
|
|
||||||
namespace TemplateWeb.Controllers;
|
namespace StuzkovakWeb.Controllers;
|
||||||
|
|
||||||
public class HomeController : Controller
|
public class HomeController : Controller
|
||||||
{
|
{
|
||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using TemplateWeb.Entities;
|
using StuzkovakWeb.Entities;
|
||||||
|
|
||||||
namespace TemplateWeb.Data;
|
namespace StuzkovakWeb.Data;
|
||||||
|
|
||||||
public class AppDbContext : IdentityDbContext<UserEntity>
|
public class AppDbContext : IdentityDbContext<UserEntity>
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using TemplateWeb.Entities;
|
using StuzkovakWeb.Entities;
|
||||||
|
|
||||||
namespace TemplateWeb.Data;
|
namespace StuzkovakWeb.Data;
|
||||||
|
|
||||||
public static class DataSeeder
|
public static class DataSeeder
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
|
|
||||||
namespace TemplateWeb.Entities;
|
namespace StuzkovakWeb.Entities;
|
||||||
|
|
||||||
public class UserEntity : IdentityUser
|
public class UserEntity : IdentityUser
|
||||||
{
|
{
|
||||||
+7
-7
@@ -5,11 +5,11 @@ using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
using TemplateWeb.Data;
|
using StuzkovakWeb.Data;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
namespace TemplateWeb.Migrations
|
namespace StuzkovakWeb.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(AppDbContext))]
|
[DbContext(typeof(AppDbContext))]
|
||||||
[Migration("20260501160159_SwitchToIdentity")]
|
[Migration("20260501160159_SwitchToIdentity")]
|
||||||
@@ -157,7 +157,7 @@ namespace TemplateWeb.Migrations
|
|||||||
b.ToTable("AspNetUserTokens", (string)null);
|
b.ToTable("AspNetUserTokens", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("TemplateWeb.Entities.UserEntity", b =>
|
modelBuilder.Entity("StuzkovakWeb.Entities.UserEntity", b =>
|
||||||
{
|
{
|
||||||
b.Property<string>("Id")
|
b.Property<string>("Id")
|
||||||
.HasColumnType("text");
|
.HasColumnType("text");
|
||||||
@@ -232,7 +232,7 @@ namespace TemplateWeb.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("TemplateWeb.Entities.UserEntity", null)
|
b.HasOne("StuzkovakWeb.Entities.UserEntity", null)
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("UserId")
|
.HasForeignKey("UserId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
@@ -241,7 +241,7 @@ namespace TemplateWeb.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("TemplateWeb.Entities.UserEntity", null)
|
b.HasOne("StuzkovakWeb.Entities.UserEntity", null)
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("UserId")
|
.HasForeignKey("UserId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
@@ -256,7 +256,7 @@ namespace TemplateWeb.Migrations
|
|||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("TemplateWeb.Entities.UserEntity", null)
|
b.HasOne("StuzkovakWeb.Entities.UserEntity", null)
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("UserId")
|
.HasForeignKey("UserId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
@@ -265,7 +265,7 @@ namespace TemplateWeb.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("TemplateWeb.Entities.UserEntity", null)
|
b.HasOne("StuzkovakWeb.Entities.UserEntity", null)
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("UserId")
|
.HasForeignKey("UserId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
+1
-1
@@ -4,7 +4,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
namespace TemplateWeb.Migrations
|
namespace StuzkovakWeb.Migrations
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class SwitchToIdentity : Migration
|
public partial class SwitchToIdentity : Migration
|
||||||
+7
-7
@@ -4,11 +4,11 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||||
using TemplateWeb.Data;
|
using StuzkovakWeb.Data;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
namespace TemplateWeb.Migrations
|
namespace StuzkovakWeb.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(AppDbContext))]
|
[DbContext(typeof(AppDbContext))]
|
||||||
partial class AppDbContextModelSnapshot : ModelSnapshot
|
partial class AppDbContextModelSnapshot : ModelSnapshot
|
||||||
@@ -154,7 +154,7 @@ namespace TemplateWeb.Migrations
|
|||||||
b.ToTable("AspNetUserTokens", (string)null);
|
b.ToTable("AspNetUserTokens", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("TemplateWeb.Entities.UserEntity", b =>
|
modelBuilder.Entity("StuzkovakWeb.Entities.UserEntity", b =>
|
||||||
{
|
{
|
||||||
b.Property<string>("Id")
|
b.Property<string>("Id")
|
||||||
.HasColumnType("text");
|
.HasColumnType("text");
|
||||||
@@ -229,7 +229,7 @@ namespace TemplateWeb.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("TemplateWeb.Entities.UserEntity", null)
|
b.HasOne("StuzkovakWeb.Entities.UserEntity", null)
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("UserId")
|
.HasForeignKey("UserId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
@@ -238,7 +238,7 @@ namespace TemplateWeb.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("TemplateWeb.Entities.UserEntity", null)
|
b.HasOne("StuzkovakWeb.Entities.UserEntity", null)
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("UserId")
|
.HasForeignKey("UserId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
@@ -253,7 +253,7 @@ namespace TemplateWeb.Migrations
|
|||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("TemplateWeb.Entities.UserEntity", null)
|
b.HasOne("StuzkovakWeb.Entities.UserEntity", null)
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("UserId")
|
.HasForeignKey("UserId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
@@ -262,7 +262,7 @@ namespace TemplateWeb.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("TemplateWeb.Entities.UserEntity", null)
|
b.HasOne("StuzkovakWeb.Entities.UserEntity", null)
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("UserId")
|
.HasForeignKey("UserId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace TemplateWeb.Models;
|
namespace StuzkovakWeb.Models;
|
||||||
|
|
||||||
public class ServiceResult
|
public class ServiceResult
|
||||||
{
|
{
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
using TemplateWeb.Entities;
|
using StuzkovakWeb.Entities;
|
||||||
|
|
||||||
namespace TemplateWeb.Models;
|
namespace StuzkovakWeb.Models;
|
||||||
|
|
||||||
public class UserWithRolesViewModel
|
public class UserWithRolesViewModel
|
||||||
{
|
{
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
using dotenv.net;
|
using dotenv.net;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using TemplateWeb.Data;
|
using StuzkovakWeb.Data;
|
||||||
using TemplateWeb.Entities;
|
using StuzkovakWeb.Entities;
|
||||||
|
|
||||||
namespace TemplateWeb;
|
namespace StuzkovakWeb;
|
||||||
|
|
||||||
public class Program
|
public class Program
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace TemplateWeb.Models;
|
namespace StuzkovakWeb.Models;
|
||||||
|
|
||||||
public class AuthLoginViewModel
|
public class AuthLoginViewModel
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace TemplateWeb.Models;
|
namespace StuzkovakWeb.Models;
|
||||||
|
|
||||||
public class AuthRegisterViewModel
|
public class AuthRegisterViewModel
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace TemplateWeb.Models;
|
namespace StuzkovakWeb.Models;
|
||||||
|
|
||||||
public class ErrorViewModel
|
public class ErrorViewModel
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace TemplateWeb.Models;
|
namespace StuzkovakWeb.Models;
|
||||||
|
|
||||||
public class ProfileViewModel
|
public class ProfileViewModel
|
||||||
{
|
{
|
||||||
+4
-4
@@ -3,17 +3,17 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
<title>@ViewData["Title"] - TemplateWeb</title>
|
<title>@ViewData["Title"] - StuzkovakWeb</title>
|
||||||
<script type="importmap"></script>
|
<script type="importmap"></script>
|
||||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css"/>
|
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css"/>
|
||||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true"/>
|
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true"/>
|
||||||
<link rel="stylesheet" href="~/TemplateWeb.styles.css" asp-append-version="true"/>
|
<link rel="stylesheet" href="~/StuzkovakWeb.styles.css" asp-append-version="true"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
|
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">TemplateWeb</a>
|
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">StuzkovakWeb</a>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
||||||
aria-expanded="false" aria-label="Toggle navigation">
|
aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
<footer class="border-top footer text-muted">
|
<footer class="border-top footer text-muted">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
© 2026 - TemplateWeb - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
© 2026 - StuzkovakWeb - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
@using TemplateWeb
|
@using StuzkovakWeb
|
||||||
@using TemplateWeb.Models
|
@using StuzkovakWeb.Models
|
||||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user