Core - Flattened namespaces

Shared UI - Flattened namespaces
Shared UI - General housekeeping
Project - Code cleanup
This commit is contained in:
SpoinkyNL committed 2020-09-01 00:14:08 +02:00
1 parent 029e39ec1d
commit 8718d01eae
454 files changed
+1678 -1938

No files matched your search

@@ -1,6 +1,4 @@
using System;
using LiteDB;
using Newtonsoft.Json;
namespace Artemis.Storage.Entities.Plugins
{
@@ -11,7 +11,9 @@ namespace Artemis.Storage.Entities.Profile.Conditions
public string ListPropertyPath { get; set; }
public string LeftPropertyPath { get; set; }
public string RightPropertyPath { get; set; }
// Stored as a string to be able to control serialization and deserialization ourselves
public string RightStaticValue { get; set; }
@@ -23,7 +23,7 @@ namespace Artemis.Storage.Entities.Profile
public bool Enabled { get; set; }
public List<LedEntity> Leds { get; set; }
[BsonRef("ProfileEntity")]
public ProfileEntity Profile { get; set; }
@@ -16,7 +16,7 @@ namespace Artemis.Storage.Migrations
foreach (var profileEntityFolder in profileEntity.Folders)
{
profileEntityFolder.Enabled = true;
foreach (var layerEffectEntity in profileEntityFolder.LayerEffects)
foreach (var layerEffectEntity in profileEntityFolder.LayerEffects)
layerEffectEntity.Enabled = true;
}
@@ -1,6 +1,5 @@
using System;
using System.Linq;
using System.Runtime.InteropServices;
using Artemis.Storage.Entities.Profile;
using Artemis.Storage.Migrations.Interfaces;
using LiteDB;
@@ -20,7 +19,7 @@ namespace Artemis.Storage.Migrations
{
if (folder.PropertyEntities.Any(p => p.KeyframeEntities.Any()))
folder.MainSegmentLength = folder.PropertyEntities.Where(p => p.KeyframeEntities.Any()).Max(p => p.KeyframeEntities.Max(k => k.Position));
if (folder.MainSegmentLength == TimeSpan.Zero)
if (folder.MainSegmentLength == TimeSpan.Zero)
folder.MainSegmentLength = TimeSpan.FromSeconds(5);
folder.DisplayContinuously = true;
@@ -12,7 +12,7 @@ namespace Artemis.Storage.Repositories
internal PluginRepository(LiteRepository repository)
{
_repository = repository;
_repository.Database.GetCollection<PluginSettingEntity>().EnsureIndex(s => new {s.Name, s.PluginGuid}, true);
}