Rename server project
This commit is contained in:
parent
9ba9887eb1
commit
cb061e09c5
477 changed files with 515 additions and 625 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<Version>0.8.0</Version>
|
||||
<Version>0.9.0</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
|
||||
namespace LANCommander
|
||||
namespace LANCommander.Server
|
||||
{
|
||||
public class ApiMiddleware
|
||||
{
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace LANCommander.Areas.Identity.Pages.Account
|
||||
namespace LANCommander.Server.Areas.Identity.Pages.Account
|
||||
{
|
||||
/// <summary>
|
||||
/// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
@page
|
||||
@using LANCommander.Models;
|
||||
@using LANCommander.Services;
|
||||
@using LANCommander.Server.Models;
|
||||
@using LANCommander.Server.Services;
|
||||
@model FirstTimeSetupModel
|
||||
@{
|
||||
Layout = "/UI/Views/Shared/_LayoutBasic.cshtml";
|
||||
|
|
@ -12,7 +12,7 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Identity.UI.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
|
@ -20,7 +20,7 @@ using Microsoft.AspNetCore.Mvc.RazorPages;
|
|||
using Microsoft.AspNetCore.WebUtilities;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace LANCommander.Areas.Identity.Pages.Account
|
||||
namespace LANCommander.Server.Areas.Identity.Pages.Account
|
||||
{
|
||||
public class FirstTimeSetupModel : PageModel
|
||||
{
|
||||
|
|
@ -8,14 +8,14 @@ using System.Text;
|
|||
using System.Text.Encodings.Web;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Identity.UI.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using Microsoft.AspNetCore.WebUtilities;
|
||||
|
||||
namespace LANCommander.Areas.Identity.Pages.Account
|
||||
namespace LANCommander.Server.Areas.Identity.Pages.Account
|
||||
{
|
||||
public class ForgotPasswordModel : PageModel
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
@page
|
||||
@using LANCommander.Models;
|
||||
@using LANCommander.Services;
|
||||
@using LANCommander.Server.Models;
|
||||
@using LANCommander.Server.Services;
|
||||
@model LoginModel
|
||||
@{ Layout = "/UI/Views/Shared/_LayoutBasic.cshtml"; }
|
||||
|
||||
|
|
@ -8,16 +8,16 @@ using System.ComponentModel.DataAnnotations;
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Identity.UI.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
|
||||
namespace LANCommander.Areas.Identity.Pages.Account
|
||||
namespace LANCommander.Server.Areas.Identity.Pages.Account
|
||||
{
|
||||
public class LoginModel : PageModel
|
||||
{
|
||||
|
|
@ -5,13 +5,13 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace LANCommander.Areas.Identity.Pages.Account
|
||||
namespace LANCommander.Server.Areas.Identity.Pages.Account
|
||||
{
|
||||
public class LogoutModel : PageModel
|
||||
{
|
||||
|
|
@ -5,13 +5,13 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Threading.Tasks;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace LANCommander.Areas.Identity.Pages.Account.Manage
|
||||
namespace LANCommander.Server.Areas.Identity.Pages.Account.Manage
|
||||
{
|
||||
public class ChangePasswordModel : PageModel
|
||||
{
|
||||
|
|
@ -6,12 +6,12 @@ using System;
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Encodings.Web;
|
||||
using System.Threading.Tasks;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace LANCommander.Areas.Identity.Pages.Account.Manage
|
||||
namespace LANCommander.Server.Areas.Identity.Pages.Account.Manage
|
||||
{
|
||||
public class IndexModel : PageModel
|
||||
{
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
using System;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
|
||||
namespace LANCommander.Areas.Identity.Pages.Account.Manage
|
||||
namespace LANCommander.Server.Areas.Identity.Pages.Account.Manage
|
||||
{
|
||||
/// <summary>
|
||||
/// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
|
||||
|
|
@ -5,12 +5,12 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Threading.Tasks;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace LANCommander.Areas.Identity.Pages.Account.Manage
|
||||
namespace LANCommander.Server.Areas.Identity.Pages.Account.Manage
|
||||
{
|
||||
public class SetPasswordModel : PageModel
|
||||
{
|
||||
|
|
@ -0,0 +1 @@
|
|||
@using LANCommander.Server.Areas.Identity.Pages.Account.Manage
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
@page
|
||||
@using LANCommander.Models;
|
||||
@using LANCommander.Services;
|
||||
@using LANCommander.Server.Models;
|
||||
@using LANCommander.Server.Services;
|
||||
@model RegisterModel
|
||||
@{ Layout = "/UI/Views/Shared/_LayoutBasic.cshtml"; }
|
||||
@{
|
||||
|
|
@ -12,16 +12,16 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Identity.UI.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using Microsoft.AspNetCore.WebUtilities;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
|
||||
namespace LANCommander.Areas.Identity.Pages.Account
|
||||
namespace LANCommander.Server.Areas.Identity.Pages.Account
|
||||
{
|
||||
public class RegisterModel : PageModel
|
||||
{
|
||||
|
|
@ -7,13 +7,13 @@ using System.ComponentModel.DataAnnotations;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using Microsoft.AspNetCore.WebUtilities;
|
||||
|
||||
namespace LANCommander.Areas.Identity.Pages.Account
|
||||
namespace LANCommander.Server.Areas.Identity.Pages.Account
|
||||
{
|
||||
public class ResetPasswordModel : PageModel
|
||||
{
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace LANCommander.Areas.Identity.Pages.Account
|
||||
namespace LANCommander.Server.Areas.Identity.Pages.Account
|
||||
{
|
||||
/// <summary>
|
||||
/// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used
|
||||
|
|
@ -0,0 +1 @@
|
|||
@using LANCommander.Server.Areas.Identity.Pages.Account
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
@using Microsoft.AspNetCore.Identity
|
||||
@using LANCommander.Server.Areas.Identity
|
||||
@using LANCommander.Server.Areas.Identity.Pages
|
||||
@using LANCommander.Server.Data.Models
|
||||
@using LANCommander.Server.UI.Components
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using AutoMapper;
|
||||
|
||||
namespace LANCommander
|
||||
namespace LANCommander.Server
|
||||
{
|
||||
public class AutoMapper : Profile
|
||||
{
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
using LANCommander.Data;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Extensions;
|
||||
using LANCommander.Models;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Data;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using LANCommander.Server.Extensions;
|
||||
using LANCommander.Server.Models;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Authorize(AuthenticationSchemes = "Bearer")]
|
||||
[Route("api/[controller]")]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using LANCommander.Data.Models;
|
||||
using LANCommander.Models;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using LANCommander.Server.Models;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
|
@ -11,7 +11,7 @@ using System.Security.Claims;
|
|||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
public class TokenModel
|
||||
{
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
using LANCommander.Data;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Extensions;
|
||||
using LANCommander.Models;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Data;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using LANCommander.Server.Extensions;
|
||||
using LANCommander.Server.Models;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Authorize(AuthenticationSchemes = "Bearer")]
|
||||
[Route("api/[controller]")]
|
||||
|
|
@ -1,17 +1,17 @@
|
|||
using AutoMapper;
|
||||
using LANCommander.Data;
|
||||
using LANCommander.Data.Enums;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Extensions;
|
||||
using LANCommander.Models;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Data;
|
||||
using LANCommander.Server.Data.Enums;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using LANCommander.Server.Extensions;
|
||||
using LANCommander.Server.Models;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using ZiggyCreatures.Caching.Fusion;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Authorize(AuthenticationSchemes = "Bearer")]
|
||||
[Route("api/[controller]")]
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
using AutoMapper;
|
||||
using LANCommander.Data;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Extensions;
|
||||
using LANCommander.Server.Data;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using LANCommander.Server.Extensions;
|
||||
using LANCommander.Server.Services;
|
||||
using LANCommander.SDK.Models;
|
||||
using LANCommander.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Authorize(AuthenticationSchemes = "Bearer")]
|
||||
[Route("api/[controller]")]
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
using LANCommander.SDK.Models;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Semver;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Authorize(AuthenticationSchemes = "Bearer")]
|
||||
[Route("api/[controller]")]
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
using AutoMapper;
|
||||
using LANCommander.Data;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Extensions;
|
||||
using LANCommander.Models;
|
||||
using LANCommander.Server.Data;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using LANCommander.Server.Extensions;
|
||||
using LANCommander.Server.Models;
|
||||
using LANCommander.SDK;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Authorize(AuthenticationSchemes = "Bearer")]
|
||||
[Route("api/[controller]")]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
using AutoMapper;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Authorize(AuthenticationSchemes = "Bearer")]
|
||||
[Route("api/[controller]")]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using LANCommander.Data.Models;
|
||||
using LANCommander.Models;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using LANCommander.Server.Models;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
|
@ -11,7 +11,7 @@ using System.Security.Claims;
|
|||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[Authorize(AuthenticationSchemes = "Bearer")]
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
using AutoMapper;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Extensions;
|
||||
using LANCommander.Models;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using LANCommander.Server.Extensions;
|
||||
using LANCommander.Server.Models;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Authorize(AuthenticationSchemes = "Bearer")]
|
||||
[Route("api/[controller]")]
|
||||
|
|
@ -1,16 +1,16 @@
|
|||
using AutoMapper;
|
||||
using LANCommander.Data;
|
||||
using LANCommander.Data.Models;
|
||||
using LANCommander.Extensions;
|
||||
using LANCommander.Models;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Data;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using LANCommander.Server.Extensions;
|
||||
using LANCommander.Server.Models;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Runtime.Intrinsics.X86;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Authorize(AuthenticationSchemes = "Bearer")]
|
||||
[Route("api/[controller]")]
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
using AutoMapper;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Authorize(AuthenticationSchemes = "Bearer")]
|
||||
[Route("api/[controller]")]
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
using LANCommander.Models;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Models;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace LANCommander.Controllers.Api
|
||||
namespace LANCommander.Server.Controllers.Api
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace LANCommander.Controllers
|
||||
namespace LANCommander.Server.Controllers
|
||||
{
|
||||
public class BaseController : Controller
|
||||
{
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
using LANCommander.Data;
|
||||
using LANCommander.Extensions;
|
||||
using LANCommander.Models;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Data;
|
||||
using LANCommander.Server.Extensions;
|
||||
using LANCommander.Server.Models;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace LANCommander.Controllers
|
||||
namespace LANCommander.Server.Controllers
|
||||
{
|
||||
[Authorize]
|
||||
public class DownloadController : Controller
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
using LANCommander.SDK.Helpers;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.IO.Compression;
|
||||
|
||||
namespace LANCommander.Controllers
|
||||
namespace LANCommander.Server.Controllers
|
||||
{
|
||||
[Authorize(Roles = "Administrator")]
|
||||
public class GamesController : BaseController
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
using AutoMapper;
|
||||
using LANCommander.SDK.Helpers;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.IO.Compression;
|
||||
|
||||
namespace LANCommander.Controllers
|
||||
namespace LANCommander.Server.Controllers
|
||||
{
|
||||
[Authorize(Roles = "Administrator")]
|
||||
public class RedistributablesController : BaseController
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
using AutoMapper;
|
||||
using LANCommander.SDK.Helpers;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.IO.Compression;
|
||||
|
||||
namespace LANCommander.Controllers
|
||||
namespace LANCommander.Server.Controllers
|
||||
{
|
||||
public class ServerController : Controller
|
||||
{
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
using LANCommander.Models;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Models;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NLog;
|
||||
|
||||
namespace LANCommander.Controllers
|
||||
namespace LANCommander.Server.Controllers
|
||||
{
|
||||
[Authorize(Roles = "Administrator")]
|
||||
public class UploadController : Controller
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
using LANCommander.Data.Models;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using Microsoft.Build.Framework;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LANCommander.Data
|
||||
namespace LANCommander.Server.Data
|
||||
{
|
||||
public class DatabaseContext : IdentityDbContext<User, Role, Guid>
|
||||
{
|
||||
|
|
@ -33,7 +33,7 @@ namespace LANCommander.Data
|
|||
builder.ConfigureBaseRelationships<Redistributable>();
|
||||
builder.ConfigureBaseRelationships<SavePath>();
|
||||
builder.ConfigureBaseRelationships<Script>();
|
||||
builder.ConfigureBaseRelationships<Server>();
|
||||
builder.ConfigureBaseRelationships<Data.Models.Server>();
|
||||
builder.ConfigureBaseRelationships<ServerConsole>();
|
||||
builder.ConfigureBaseRelationships<ServerHttpPath>();
|
||||
builder.ConfigureBaseRelationships<Tag>();
|
||||
|
|
@ -182,31 +182,31 @@ namespace LANCommander.Data
|
|||
#endregion
|
||||
|
||||
#region Server Relationships
|
||||
builder.Entity<Server>()
|
||||
builder.Entity<Data.Models.Server>()
|
||||
.HasOne(s => s.Game)
|
||||
.WithMany(g => g.Servers)
|
||||
.IsRequired(false)
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
|
||||
builder.Entity<Server>()
|
||||
builder.Entity<Data.Models.Server>()
|
||||
.HasMany<ServerConsole>()
|
||||
.WithOne(sl => sl.Server)
|
||||
.IsRequired(true)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
|
||||
builder.Entity<Server>()
|
||||
builder.Entity<Data.Models.Server>()
|
||||
.HasMany<ServerHttpPath>()
|
||||
.WithOne(s => s.Server)
|
||||
.IsRequired(true)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
|
||||
builder.Entity<Server>()
|
||||
builder.Entity<Data.Models.Server>()
|
||||
.HasMany(s => s.Scripts)
|
||||
.WithOne(s => s.Server)
|
||||
.IsRequired(false)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
|
||||
builder.Entity<Server>()
|
||||
builder.Entity<Data.Models.Server>()
|
||||
.HasMany(s => s.Actions)
|
||||
.WithOne(s => s.Server)
|
||||
.IsRequired(false)
|
||||
|
|
@ -266,7 +266,7 @@ namespace LANCommander.Data
|
|||
|
||||
public DbSet<PlaySession>? PlaySessions { get; set; }
|
||||
|
||||
public DbSet<Server>? Servers { get; set; }
|
||||
public DbSet<Data.Models.Server>? Servers { get; set; }
|
||||
|
||||
public DbSet<ServerConsole>? ServerConsoles { get; set; }
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace LANCommander.Data.Enums
|
||||
namespace LANCommander.Server.Data.Enums
|
||||
{
|
||||
public enum GameType
|
||||
{
|
||||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace LANCommander.Data.Enums
|
||||
namespace LANCommander.Server.Data.Enums
|
||||
{
|
||||
public enum SavePathType
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace LANCommander.Data.Enums
|
||||
namespace LANCommander.Server.Data.Enums
|
||||
{
|
||||
public enum ScriptType
|
||||
{
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace LANCommander.Data.Enums
|
||||
namespace LANCommander.Server.Data.Enums
|
||||
{
|
||||
public enum ServerAutostartMethod
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace LANCommander.Data.Enums
|
||||
namespace LANCommander.Server.Data.Enums
|
||||
{
|
||||
public enum ServerConsoleType
|
||||
{
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using LANCommander.Data.Models;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LANCommander.Data
|
||||
namespace LANCommander.Server.Data
|
||||
{
|
||||
public static class ModelBuilderExtensions
|
||||
{
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Actions")]
|
||||
public class Action : BaseModel
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
public class Archive : BaseModel
|
||||
{
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
public abstract class BaseModel
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
public abstract class BaseTaxonomyModel : BaseModel
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Categories")]
|
||||
public class Category : BaseTaxonomyModel
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Collections")]
|
||||
public class Collection : BaseTaxonomyModel
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
public class Company : BaseModel
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Engines")]
|
||||
public class Engine : BaseTaxonomyModel
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
using LANCommander.Data.Enums;
|
||||
using LANCommander.Server.Data.Enums;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Games")]
|
||||
public class Game : BaseModel
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("GameSaves")]
|
||||
public class GameSave : BaseModel
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Genres")]
|
||||
public class Genre : BaseTaxonomyModel
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Keys")]
|
||||
public class Key : BaseModel
|
||||
|
|
@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Media")]
|
||||
public class Media : BaseModel
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
using LANCommander.Data.Enums;
|
||||
using LANCommander.Server.Data.Enums;
|
||||
using LANCommander.SDK.Enums;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("MultiplayerModes")]
|
||||
public class MultiplayerMode : BaseModel
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Platforms")]
|
||||
public class Platform : BaseTaxonomyModel
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("PlaySessions")]
|
||||
public class PlaySession : BaseModel
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Redistributables")]
|
||||
public class Redistributable : BaseModel
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using Microsoft.AspNetCore.Identity;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Roles")]
|
||||
public class Role : IdentityRole<Guid>
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
using LANCommander.Data.Enums;
|
||||
using LANCommander.Server.Data.Enums;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("SavePaths")]
|
||||
public class SavePath : BaseModel
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
using LANCommander.Data.Enums;
|
||||
using LANCommander.Server.Data.Enums;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Scripts")]
|
||||
public class Script : BaseModel
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
using LANCommander.Data.Enums;
|
||||
using LANCommander.Server.Data.Enums;
|
||||
using LANCommander.SDK.Enums;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
public class Server : BaseModel
|
||||
{
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
using LANCommander.Data.Enums;
|
||||
using LANCommander.Server.Data.Enums;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
public class ServerConsole : BaseModel
|
||||
{
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
public class ServerHttpPath : BaseModel
|
||||
{
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Tags")]
|
||||
public class Tag : BaseTaxonomyModel
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Data.Models
|
||||
namespace LANCommander.Server.Data.Models
|
||||
{
|
||||
[Table("Users")]
|
||||
public class User : IdentityUser<Guid>
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
using LANCommander.Data.Models;
|
||||
using LANCommander.Server.Data.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
namespace LANCommander.Data
|
||||
namespace LANCommander.Server.Data
|
||||
{
|
||||
public class Repository<T> : IDisposable where T : BaseModel
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace LANCommander.Extensions
|
||||
namespace LANCommander.Server.Extensions
|
||||
{
|
||||
public static class ArrayExtensions
|
||||
{
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Reflection;
|
||||
|
||||
namespace LANCommander.Extensions
|
||||
namespace LANCommander.Server.Extensions
|
||||
{
|
||||
public static class EnumExtensions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace LANCommander.Extensions
|
||||
namespace LANCommander.Server.Extensions
|
||||
{
|
||||
public static class FileExtensions
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace LANCommander.Extensions
|
||||
namespace LANCommander.Server.Extensions
|
||||
{
|
||||
public static class ListExtensions
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace LANCommander.Extensions
|
||||
namespace LANCommander.Server.Extensions
|
||||
{
|
||||
public static class StringExtensions
|
||||
{
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
using Microsoft.EntityFrameworkCore.Metadata.Conventions;
|
||||
using System.IO.Compression;
|
||||
|
||||
namespace LANCommander.Extensions
|
||||
namespace LANCommander.Server.Extensions
|
||||
{
|
||||
public static class ZipArchiveExtensions
|
||||
{
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
using NLog;
|
||||
|
||||
namespace LANCommander.Hubs
|
||||
namespace LANCommander.Server.Hubs
|
||||
{
|
||||
public class GameServerHub : Hub
|
||||
{
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
using LANCommander.SDK;
|
||||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace LANCommander.Hubs
|
||||
namespace LANCommander.Server.Hubs
|
||||
{
|
||||
public class LoggingHub : Hub
|
||||
{
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace LANCommander.Hubs
|
||||
namespace LANCommander.Server.Hubs
|
||||
{
|
||||
public class ServerProcessHub : Hub
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using LANCommander.Services;
|
||||
using LANCommander.Server.Services;
|
||||
|
||||
namespace LANCommander.Jobs.Background
|
||||
namespace LANCommander.Server.Jobs.Background
|
||||
{
|
||||
public class PatchArchiveBackgroundJob
|
||||
{
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue