mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Code reformat.
This commit is contained in:
Submodule DiscImageChef.CommonTypes updated: 2e73c622cf...16f61defb8
Submodule DiscImageChef.Console updated: 9ba23c5700...2c212157cf
Submodule DiscImageChef.Decoders updated: a5c650440d...d864bfab6c
Submodule DiscImageChef.Dto updated: 292c6bbea6...63b83b4f8b
Submodule DiscImageChef.Helpers updated: 6937468728...a7d7c673a1
@@ -16,8 +16,8 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
|||||||
|
|
||||||
// GET: Admin/DeviceStats
|
// GET: Admin/DeviceStats
|
||||||
public async Task<IActionResult> Index() =>
|
public async Task<IActionResult> Index() =>
|
||||||
View(await _context.DeviceStats.OrderBy(d => d.Manufacturer).ThenBy(d => d.Model).
|
View(await _context.DeviceStats.OrderBy(d => d.Manufacturer).ThenBy(d => d.Model).ThenBy(d => d.Bus).
|
||||||
ThenBy(d => d.Bus).ToListAsync());
|
ToListAsync());
|
||||||
|
|
||||||
// GET: Admin/DeviceStats/Edit/5
|
// GET: Admin/DeviceStats/Edit/5
|
||||||
public async Task<IActionResult> Edit(int? id)
|
public async Task<IActionResult> Edit(int? id)
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.CommonTypes.Metadata;
|
using DiscImageChef.CommonTypes.Metadata;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.CommonTypes.Metadata;
|
using DiscImageChef.CommonTypes.Metadata;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.CommonTypes.Metadata;
|
using DiscImageChef.CommonTypes.Metadata;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DiscImageChef.CommonTypes.Metadata;
|
using DiscImageChef.CommonTypes.Metadata;
|
||||||
using DiscImageChef.Server.Models;
|
using DiscImageChef.Server.Models;
|
||||||
|
|||||||
@@ -232,8 +232,8 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
|||||||
|
|
||||||
if(fieldInfo.FieldType.IsArray)
|
if(fieldInfo.FieldType.IsArray)
|
||||||
{
|
{
|
||||||
Array la = lv as Array;
|
var la = lv as Array;
|
||||||
Array ra = rv as Array;
|
var ra = rv as Array;
|
||||||
|
|
||||||
switch(la)
|
switch(la)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -73,11 +73,9 @@ namespace DiscImageChef.Server.Models
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, DisplayName("Physical type")]
|
||||||
[DisplayName("Physical type")]
|
|
||||||
public string PhysicalType => MediaType.type;
|
public string PhysicalType => MediaType.type;
|
||||||
[NotMapped]
|
[NotMapped, DisplayName("Logical type")]
|
||||||
[DisplayName("Logical type")]
|
|
||||||
public string LogicalType => MediaType.subType;
|
public string LogicalType => MediaType.subType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,9 +20,10 @@ namespace DiscImageChef.Server
|
|||||||
// This method gets called by the runtime. Use this method to add services to the container.
|
// This method gets called by the runtime. Use this method to add services to the container.
|
||||||
public void ConfigureServices(IServiceCollection services)
|
public void ConfigureServices(IServiceCollection services)
|
||||||
{
|
{
|
||||||
services.AddDbContext<DicServerContext>(options =>
|
services.AddDbContext<DicServerContext>(options => options.
|
||||||
options.UseMySql(Configuration.
|
UseMySql(Configuration.
|
||||||
GetConnectionString("DefaultConnection")).UseLazyLoadingProxies());
|
GetConnectionString("DefaultConnection")).
|
||||||
|
UseLazyLoadingProxies());
|
||||||
|
|
||||||
services.AddDefaultIdentity<IdentityUser>(options =>
|
services.AddDefaultIdentity<IdentityUser>(options =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user