Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "daily"
allow:
- dependency-name: "Mythetech.*"
groups:
mythetech:
patterns:
- "Mythetech.*"
open-pull-requests-limit: 3
commit-message:
prefix: "chore"
31 changes: 31 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PR Tests

on:
pull_request:
branches: [ "main" ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x

- name: Install .NET WASM workload
run: dotnet workload install wasm-tools

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore --configuration Release

- name: Unit tests
run: dotnet test Apollo.Test/Apollo.Test.csproj --no-build --configuration Release --verbosity normal
Comment on lines +9 to +31
4 changes: 2 additions & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Get latest .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0"
dotnet-version: "10.0.x"

- name: Install .Net WASM workload
run: dotnet workload install wasm-tools
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Get latest .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0"
dotnet-version: "10.0.x"

- name: Install .Net WASM workload
run: dotnet workload install wasm-tools
Expand Down
21 changes: 0 additions & 21 deletions Apollo.Client/Infrastructure/WebAssemblyRuntimeEnvironment.cs

This file was deleted.

5 changes: 2 additions & 3 deletions Apollo.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
using Apollo.Client.Analysis;
using Apollo.Client.Code;
using Apollo.Client.Hosting;
using Apollo.Client.Infrastructure;
using Apollo.Components;
using Apollo.Components.Analysis;
using Apollo.Components.Code;
using Apollo.Components.Hosting;
using Apollo.Components.Infrastructure;
using Apollo.Components.Infrastructure.Environment;
using Mythetech.Framework.WebAssembly;
using Mythetech.Framework.Infrastructure.MessageBus;
using Apollo.Infrastructure.Resources;
using Mythetech.Framework.Infrastructure.Mcp;
Expand All @@ -23,7 +22,7 @@

builder.Services.AddMessageBus(typeof(Program).Assembly, typeof(AppState).Assembly, typeof(IConsumer<>).Assembly);

builder.Services.AddSingleton<IRuntimeEnvironment, WebAssemblyRuntimeEnvironment>();
builder.Services.AddRuntimeEnvironment();

builder.Services.AddComponentsAndServices();
builder.Services.AddMcp(); //ToDO - fix in framework, shouldn't be required
Expand Down
2 changes: 1 addition & 1 deletion Apollo.Components/Code/TypeTab.razor
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
}
catch (Exception ex)
{
await DialogService.ShowMessageBox("Error", $"Failed to create instance: {ex.Message}");
await DialogService.ShowMessageBoxAsync("Error", $"Failed to create instance: {ex.Message}");
}
}

Expand Down
2 changes: 1 addition & 1 deletion Apollo.Components/Editor/AboutApolloDialog.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@using System.Reflection
@using Apollo.Components.Infrastructure.Environment
@using Mythetech.Framework.Infrastructure.Environment
@using Apollo.Components.Shared

<MudDialog Class="pa-4 glassmorphic" Style="width: 33vw; height: 45dvh;" ContentStyle="overflow:hidden;">
Expand Down
2 changes: 1 addition & 1 deletion Apollo.Components/Editor/TabViewState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Apollo.Components.Code;
using Apollo.Components.DynamicTabs;
using Apollo.Components.Hosting;
using Apollo.Components.Infrastructure.Environment;
using Mythetech.Framework.Infrastructure.Environment;
using Apollo.Components.Infrastructure.Logging;
using Apollo.Components.Library;
using Apollo.Components.Preview;
Expand Down
2 changes: 1 addition & 1 deletion Apollo.Components/Editor/ToolsMenu.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@using Mythetech.Framework.Infrastructure.MessageBus
@using Apollo.Components.Infrastructure.Environment
@using Mythetech.Framework.Infrastructure.Environment
@using Apollo.Components.NuGet.Commands
@using Apollo.Components.Tools.Commands
@using Apollo.Components.Theme
Expand Down
4 changes: 2 additions & 2 deletions Apollo.Components/Hosting/WebApiRouteTab.razor
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@using Apollo.Components.Hosting.Commands
@using Mythetech.Framework.Infrastructure.MessageBus
@using Apollo.Components.Shared
@using Apollo.Components.Shared.ApolloNotificationBar
@using Mythetech.Framework.Components.Snackbar
@using Apollo.Components.Solutions
@using Apollo.Components.Solutions.Commands
@using Apollo.Components.Theme
Expand Down Expand Up @@ -126,7 +126,7 @@
}
catch (Exception ex)
{
Snackbar.AddApolloNotification(ex.Message, Severity.Error);
Snackbar.AddMythetechNotification(ex.Message, Severity.Error);
}
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Apollo.Components.Infrastructure.Platform
@using Mythetech.Framework.Infrastructure.Platform
@using Microsoft.FluentUI.AspNetCore.Components.Extensions
@using Microsoft.JSInterop
@inherits Apollo.Components.Infrastructure.ApolloBaseComponent
Expand Down
15 changes: 0 additions & 15 deletions Apollo.Components/Infrastructure/Platform/PlatformInfo.cs

This file was deleted.

12 changes: 6 additions & 6 deletions Apollo.Components/Settings/SettingsDialog.razor
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@using Apollo.Components.Settings.Events
@using Apollo.Components.Shared
@using Apollo.Components.Theme
@using Apollo.Components.Shared.ApolloSwitch
@using Mythetech.Framework.Components.Switch
@using Microsoft.JSInterop
@using Apollo.Components.Shared
@implements IDisposable
Expand Down Expand Up @@ -152,16 +152,16 @@
</SettingsSectionDisplay>

<SettingsSectionDisplay Id="section-console" Title="Console">
<ApolloSwitch LabelPlacement="Placement.Left" Color="Color.Secondary" Label="Autoscroll when console input received" @bind-Value="ConsoleOutputService.AutoScroll" />
<MtSwitch Class="settings-switch" LabelPlacement="Placement.Left" Color="Color.Secondary" Label="Autoscroll when console input received" @bind-Value="ConsoleOutputService.AutoScroll" />
</SettingsSectionDisplay>

<SettingsSectionDisplay Id="section-code-analysis" Title="Code Analysis">
<ApolloSwitch
<MtSwitch Class="settings-switch"
LabelPlacement="Placement.Left"
Color="Color.Secondary"
Label="Enable code analysis features (completions, diagnostics)"
@bind-Value="@_codeAnalysisEnabled" />
<ApolloSwitch
<MtSwitch Class="settings-switch"
LabelPlacement="Placement.Left"
Color="Color.Secondary"
Label="Autoscroll when code analysis input received"
Expand All @@ -170,7 +170,7 @@

<SettingsSectionDisplay Id="section-web-application" Title="Web Application">
<MudStack>
<ApolloSwitch
<MtSwitch Class="settings-switch"
LabelPlacement="Placement.Left"
Color="Color.Secondary"
Label="Autoscroll when web host output received"
Expand Down Expand Up @@ -217,7 +217,7 @@

if (property.PropertyType == typeof(bool))
{
<ApolloSwitch
<MtSwitch Class="settings-switch"
LabelPlacement="Placement.Left"
Color="Color.Secondary"
Label="@label"
Expand Down

This file was deleted.

This file was deleted.

35 changes: 0 additions & 35 deletions Apollo.Components/Shared/ApolloSwitch/ApolloSwitch.razor

This file was deleted.

Loading
Loading