qol: formatting

This commit is contained in:
Gary Sharp
2025-07-20 13:47:56 +10:00
parent 49da389c2c
commit 5792771ea1
158 changed files with 693 additions and 679 deletions
@@ -138,7 +138,7 @@ namespace Disco.Web.Areas.Config
context.MapRoute(
"Config_Plugins",
"Config/Plugins",
new { controller = "Plugins", action = "Index"}
new { controller = "Plugins", action = "Index" }
);
context.MapRoute(
"Config_Plugins_Install",
@@ -15,10 +15,10 @@ namespace Disco.Web.Areas.Config.Controllers
public virtual ActionResult Index()
{
IndexViewModel vm = new IndexViewModel()
{
PluginManifests = Plugins.GetPlugins(),
PluginLibrary = PluginLibrary.LoadManifest(Database)
};
{
PluginManifests = Plugins.GetPlugins(),
PluginLibrary = PluginLibrary.LoadManifest(Database)
};
return View(vm);
}
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Disco.Models.Services.Authorization;
using Disco.Models.UI.Config.AuthorizationRole;
using Disco.Models.Services.Authorization;
using Disco.Web.Areas.API.Models.Shared;
using System.Collections.Generic;
namespace Disco.Web.Areas.Config.Models.AuthorizationRole
{
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Linq;
using Disco.Data.Repository;
using Disco.Data.Repository;
using Disco.Models.UI.Config.DeviceBatch;
using System.Collections.Generic;
using System.Linq;
namespace Disco.Web.Areas.Config.Models.DeviceBatch
{
@@ -10,7 +10,7 @@ namespace Disco.Web.Areas.Config.Models.DeviceBatch
public Disco.Models.Repository.DeviceBatch DeviceBatch { get; set; }
public Disco.Models.Repository.DeviceModel DefaultDeviceModel { get; set; }
public List<Disco.Models.Repository.DeviceModel> DeviceModels { get; set; }
public List<ConfigDeviceBatchShowModelMembership> DeviceModelMembers { get; set; }
@@ -1,6 +1,6 @@
using System;
using Disco.Models.UI.Config.DeviceBatch;
using System;
using System.ComponentModel.DataAnnotations;
using Disco.Models.UI.Config.DeviceBatch;
namespace Disco.Web.Areas.Config.Models.DeviceBatch
{
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Linq;
using Disco.Data.Repository;
using Disco.Data.Repository;
using Disco.Models.UI.Config.DeviceModel;
using System.Collections.Generic;
using System.Linq;
namespace Disco.Web.Areas.Config.Models.DeviceModel
{
@@ -1,9 +1,9 @@
using System.Collections.Generic;
using Disco.Data.Repository;
using Disco.Models.UI.Config.DocumentTemplate;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Disco.Data.Repository;
using Disco.Models.UI.Config.DocumentTemplate;
namespace Disco.Web.Areas.Config.Models.DocumentTemplate
{
@@ -7,7 +7,7 @@ namespace Disco.Web.Areas.Config.Models.DocumentTemplate
public class CreatePackageModel : ConfigDocumentTemplateCreatePackageModel
{
public DocumentTemplatePackage Package { get; set; }
public List<string> Scopes
{
get
@@ -7,7 +7,7 @@ namespace Disco.Web.Areas.Config.Models.DocumentTemplate
{
public class UndetectedPagesModel : ConfigDocumentTemplateUndetectedPagesModel
{
public List<Disco.Models.Repository.DocumentTemplate> DocumentTemplates { get; set; }
public List<SelectListItem> DocumentTemplatesSelectListItems
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using Disco.Models.UI.Config.Logging;
using Disco.Services.Logging;
using Disco.Services.Logging.Models;
using Disco.Models.UI.Config.Logging;
using System.Collections.Generic;
namespace Disco.Web.Areas.Config.Models.Logging
{
@@ -1,14 +1,14 @@
using System.Collections.Generic;
using Disco.Models.BI.Config;
using System.ComponentModel.DataAnnotations;
using Disco.Models.BI.Config;
using Disco.Models.UI.Config.Organisation;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Disco.Web.Areas.Config.Models.Organisation
{
public class IndexModel : ConfigOrganisationIndexModel
{
public string OrganisationName { get; set; }
[Display(Name="Enabled")]
[Display(Name = "Enabled")]
public bool MultiSiteMode { get; set; }
public List<OrganisationAddress> OrganisationAddresses { get; set; }
}
@@ -23,7 +23,7 @@ namespace Disco.Web.Areas.Config.Models.Plugins
if (PluginLibrary == null || PluginLibrary.Plugins == null || PluginLibrary.Plugins.Count == 0 ||
PluginManifests == null || PluginManifests.Count == 0)
{
_PluginUpdates = new Dictionary<PluginManifest,Tuple<PluginLibraryItemV2,PluginLibraryItemReleaseV2>>(); // No Updates
_PluginUpdates = new Dictionary<PluginManifest, Tuple<PluginLibraryItemV2, PluginLibraryItemReleaseV2>>(); // No Updates
}
else
{
@@ -8,7 +8,7 @@ namespace Disco.Web.Areas.Config.Models.Shared
public string Description { get; set; }
public string CategoryDescription { get; set; }
public string UpdateUrl { get; set; }
public ADManagedGroup ManagedGroup { get; set; }
@@ -77,7 +77,7 @@ namespace Disco.Web.Areas.Config.Models.SystemConfig
#region Active Directory
[Display(Name="Search All Servers")]
[Display(Name = "Search All Servers")]
public bool ADSearchAllServers { get; set; }
public List<ADDomain> ADDomains { get; set; }