-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/0.4.0' into main
- Loading branch information
Showing
44 changed files
with
812 additions
and
687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/charliefoxtwo/ViLA/main/Configuration/Schema/ActionConfiguration.json.schema", | ||
"logLevel": "information", | ||
"$schema": "https://raw.githubusercontent.com/charliefoxtwo/ViLA/main/Configuration/Schema/ViLAConfiguration.json.schema", | ||
"logLevel": "INFORMATION", | ||
"checkUpdates": true, | ||
"checkPrerelease": false, | ||
"disabledPlugins": [ ] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// ReSharper disable UnusedAutoPropertyAccessor.Global | ||
// ReSharper disable ClassNeverInstantiated.Global | ||
#pragma warning disable 8618 | ||
|
||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using Core; | ||
using Newtonsoft.Json; | ||
using Virpil.Communicator; | ||
|
||
namespace Configuration; | ||
|
||
public class DeviceConfiguration | ||
{ | ||
public BaseTrigger? Trigger { get; set; } | ||
public Dictionary<string, Device>? Devices { get; set; } | ||
|
||
public static Dictionary<string, DeviceConfiguration?> GetDeviceConfigurations() | ||
{ | ||
return Directory.EnumerateFiles("Configuration", "*.json", SearchOption.AllDirectories) | ||
.Select(f => new KeyValuePair<string, DeviceConfiguration?>(f.Split('/').Last(), JsonConvert.DeserializeObject<DeviceConfiguration>(File.ReadAllText(f)))) | ||
.Where(kvp => kvp.Key != "ViLA.json") | ||
.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); | ||
} | ||
} | ||
|
||
public class Device : Dictionary<BoardType, BoardActions> | ||
{ | ||
} | ||
|
||
public class BoardActions : Dictionary<int, List<LedAction>> | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
// ReSharper disable UnusedAutoPropertyAccessor.Global | ||
// ReSharper disable ClassNeverInstantiated.Global | ||
|
||
using Core; | ||
|
||
#pragma warning disable 8618 | ||
|
||
namespace Configuration | ||
namespace Configuration; | ||
|
||
public class LedAction | ||
{ | ||
public class LedAction | ||
{ | ||
public string Color { get; set; } | ||
public Trigger Trigger { get; set; } | ||
} | ||
} | ||
public string Color { get; set; } | ||
public BaseTrigger Trigger { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.