Skip to content

Commit

Permalink
Merge pull request #99 from strem-app/chore/update-dependencies
Browse files Browse the repository at this point in the history
Chore/update dependencies
  • Loading branch information
grofit authored Dec 30, 2024
2 parents 22f1e45 + 07bfa9d commit 20a5f93
Show file tree
Hide file tree
Showing 27 changed files with 109 additions and 77 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 8.0
- name: Setup .NET 9.0
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: Run Build Script
shell: pwsh
run: |
./build.ps1 --buildNo='0.9.${{github.run_number}}' --target='build-and-test'
./build.ps1 --buildNo='0.10.${{github.run_number}}' --target='build-and-test'
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
Expand All @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v3
- name: Package App Script
shell: pwsh
run: ./build.ps1 --buildNo='0.9.${{github.run_number}}' --target='publish'
run: ./build.ps1 --buildNo='0.10.${{github.run_number}}' --target='publish'
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down
3 changes: 2 additions & 1 deletion src/Strem.Build/Strem.Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
Expand All @@ -13,6 +13,7 @@
<PackageReference Include="Cake.Coverlet" Version="2.5.4" />
<PackageReference Include="Cake.Frosting" Version="2.2.0" />
<PackageReference Include="Glob" Version="1.1.9" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Strem.Core/Events/Broker/MessageBroker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class MessageBroker : IMessageBroker, IDisposable

public void Publish<T>(T message)
{
object notifier;
object? notifier;
lock (_notifiers)
{
if (_isDisposed) { return; }
Expand Down
4 changes: 2 additions & 2 deletions src/Strem.Core/Services/Browsers/File/IFileBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

public interface IFileBrowser
{
string BrowseToOpenFile(string startingDirectory = null, string filterList = null);
string BrowseToSaveFile(string startingDirectory = null, string filterList = null);
string BrowseToOpenFile(string? startingDirectory = null, string? filterList = null);
string BrowseToSaveFile(string? startingDirectory = null, string? filterList = null);
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Strem.Core.Services.Validation.Attributes;

public class IsFloatAttribute : ValidationAttribute
{
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
protected override ValidationResult IsValid(object? value, ValidationContext validationContext)
{
if (value == null) { return ValidationResult.Success;}

Expand Down
10 changes: 5 additions & 5 deletions src/Strem.Core/Strem.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>Library</OutputType>
Expand All @@ -11,11 +11,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="SharpHook.Reactive" Version="5.3.1" />
<PackageReference Include="System.Reactive" Version="6.0.0" />
<PackageReference Include="SharpHook.Reactive" Version="5.3.8" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Strem.Core/Variables/Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Variables : IVariables
[JsonIgnore]
public IObservable<KeyValuePair<VariableEntry, string>> OnVariableChanged => OnChangedSubject;

public Variables(Dictionary<VariableEntry, string> state = null)
public Variables(Dictionary<VariableEntry, string>? state = null)
{ Data = state ?? new Dictionary<VariableEntry, string>(); }

public VariableEntry FindFullyQualifiedEntry(string variableName)
Expand Down
5 changes: 3 additions & 2 deletions src/Strem.Data/Strem.Data.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>true</IsPackable>
Expand All @@ -10,7 +10,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="LiteDB" Version="5.0.19" />
<PackageReference Include="LiteDB" Version="5.0.21" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
17 changes: 9 additions & 8 deletions src/Strem.Flows.Default/Strem.Flows.Default.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<OutputType>Library</OutputType>
Expand All @@ -16,13 +16,14 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BlazorMonaco" Version="3.1.0" />
<PackageReference Include="IronPython" Version="3.4.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.4.1" />
<PackageReference Include="RestSharp" Version="108.0.1" />
<PackageReference Include="SharpHook.Reactive" Version="5.3.1" />
<PackageReference Include="Westwind.Scripting" Version="1.4.1" />
<PackageReference Include="BlazorMonaco" Version="3.3.0" />
<PackageReference Include="IronPython" Version="3.4.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.0" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.4.6" />
<PackageReference Include="RestSharp" Version="112.1.0" />
<PackageReference Include="SharpHook.Reactive" Version="5.3.8" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
<PackageReference Include="Westwind.Scripting" Version="1.5.1" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/Strem.Flows/Strem.Flows.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>Library</OutputType>
Expand All @@ -11,10 +11,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Reactive" Version="6.0.0" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
11 changes: 6 additions & 5 deletions src/Strem.Infrastructure/Strem.Infrastructure.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>Library</OutputType>
Expand All @@ -18,12 +18,13 @@

<ItemGroup>
<PackageReference Include="Glob" Version="1.1.9" />
<PackageReference Include="LiteDB" Version="5.0.19" />
<PackageReference Include="LiteDB" Version="5.0.21" />
<PackageReference Include="Persistity.Flow" Version="2.0.47" />
<PackageReference Include="Persistity.Serializers.Json" Version="2.0.47" />
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions src/Strem.OBS/Strem.OBS.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>12</LangVersion>
Expand All @@ -13,9 +13,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.0" />
<PackageReference Include="Obs.v5.WebSocket.Reactive" Version="1.0.11" />
<PackageReference Include="Persistity" Version="2.0.47" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions src/Strem.Platforms.Windows/Strem.Platforms.Windows.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
Expand All @@ -10,7 +10,8 @@

<ItemGroup>
<PackageReference Include="NAudio" Version="2.2.1" />
<PackageReference Include="System.Speech" Version="8.0.0" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
<PackageReference Include="System.Speech" Version="9.0.0" />
<PackageReference Include="TextCopy" Version="6.2.1" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/Strem.Portals/Components/App/PortalCreator.razor
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@

public void Create()
{
var newFlow = new PortalData(Guid.NewGuid(), Data.Name);
var newPortal = new PortalData(Guid.NewGuid(), Data.Name);
Data.Name = string.Empty;
OnPortalCreated.InvokeAsync(newFlow);
OnPortalCreated.InvokeAsync(newPortal);
}

public void Cancel()
Expand Down
8 changes: 5 additions & 3 deletions src/Strem.Portals/Components/App/UserPortals.razor
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
@using Strem.Core.Extensions
@using Strem.Core.Events.Bus
@using System.Reactive.Disposables
@using Strem.Core.Services.Browsers.File
@using Strem.Core.Services.UI.Modal
@using Strem.Core.Services.UI.Notifications
@using Strem.Flows.Services.Data
@using Strem.Portals.Data
@using Strem.Portals.Events
@using Strem.Portals.Data.Overrides
@using Strem.Portals.Extensions
@using Strem.Portals.Services.Data
@using Strem.Portals.Services.Stores

Expand All @@ -15,6 +14,7 @@
@inject IFileBrowser FileBrowser;
@inject IPortalImporter PortalImporter;
@inject IPortalExporter PortalExporter;
@inject GridElementRuntimeStyles GridElementRuntimeStyles

@implements IDisposable

Expand Down Expand Up @@ -119,6 +119,8 @@
public void OnPortalCreated(PortalData newPortal)
{
PortalStore.Add(newPortal);
GridElementRuntimeStyles.RefreshStylesFor(newPortal);

SelectPortal(newPortal);
ModalService.CloseModal();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Strem.Portals/Components/Client/PortalViewer.razor
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
public async Task NotifyButtonPressed(GridElementData gridElementData)
{
EventBus.PublishAsync(new PortalElementPressedEvent(Portal.Id, Portal.Name, gridElementData.Id, gridElementData.Name));
await Js.InvokeVoidAsync("animateElementById", gridElementData.Id, "heartBeat");
await Js.InvokeVoidAsync("animateElementById", gridElementData.Id, "pulse", "1s");
}

public void NotifySliderValueChanged(GridElementData gridElementData, int value)
Expand Down
17 changes: 13 additions & 4 deletions src/Strem.Portals/Extensions/ButtonRuntimeStylesExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,24 @@ public static GridElementRuntimeStyles PopulateRuntimeStyles(this GridElementRun
return buttonRuntimeStyles;
}

public static void RefreshStylesFor(this GridElementRuntimeStyles styles, PortalData portalData)
{
if (!styles.RuntimeStyles.ContainsKey(portalData.Id))
{ styles.RuntimeStyles.Add(portalData.Id, new Dictionary<Guid, ElementStyles>()); }

var portalRuntimeStyles = styles.RuntimeStyles[portalData.Id];
portalRuntimeStyles.Clear();

foreach (var elementData in portalData.Elements)
{ portalRuntimeStyles.Add(elementData.Id, new ElementStyles(elementData.DefaultStyles)); }
}

public static void RefreshStylesFor(this GridElementRuntimeStyles styles, Guid portalId, GridElementData gridElement)
{
if(!styles.RuntimeStyles.ContainsKey(portalId))
{ return; }
{ styles.RuntimeStyles.Add(portalId, new Dictionary<Guid, ElementStyles>()); }

var portalStyles = styles.RuntimeStyles[portalId];
if(!portalStyles.ContainsKey(gridElement.Id))
{ return; }

portalStyles[gridElement.Id] = new ElementStyles(gridElement.DefaultStyles);
}

Expand Down
5 changes: 3 additions & 2 deletions src/Strem.Portals/Strem.Portals.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Version>0.0.0</Version>
<IsPackable>true</IsPackable>
<LangVersion>12</LangVersion>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>


Expand All @@ -16,7 +16,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.0" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions src/Strem.StreamElements/Strem.StreamElements.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>0.0.0</Version>
Expand All @@ -15,9 +15,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="StreamElements.WebSocket.Reactive" Version="1.0.2" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions src/Strem.Todos/Strem.Todos.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>true</IsPackable>
Expand All @@ -14,7 +14,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="9.0.0" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit 20a5f93

Please sign in to comment.