Skip to content

Commit

Permalink
Delete logic relating to an old website not used anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthetus committed Aug 31, 2023
1 parent b9b77d8 commit a32edea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 159 deletions.
61 changes: 0 additions & 61 deletions Source/Lib/Luthetus.Ide.RazorLib/Account/LoginFormDisplay.razor

This file was deleted.

86 changes: 0 additions & 86 deletions Source/Lib/Luthetus.Ide.RazorLib/Account/LoginFormDisplay.razor.cs

This file was deleted.

16 changes: 4 additions & 12 deletions Source/Lib/Luthetus.Ide.RazorLib/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@
using Microsoft.Extensions.DependencyInjection;
using Luthetus.TextEditor.RazorLib.HostedServiceCase.CompilerServiceCase;
using Luthetus.TextEditor.RazorLib;
using Luthetus.Common.RazorLib.Store.AccountCase;
using Fluxor;
using Luthetus.Ide.ClassLib.ComponentRenderers;
using Luthetus.Ide.ClassLib;
using Luthetus.Common.RazorLib.FileSystem.Interfaces;
using Luthetus.Common.RazorLib.FileSystem.Classes.Local;
using Luthetus.Common.RazorLib.FileSystem.Classes.Website;
using Luthetus.Common.RazorLib.FileSystem.Classes.InMemoryFileSystem;

namespace Luthetus.Ide.RazorLib;

Expand Down Expand Up @@ -45,20 +43,14 @@ public static IServiceCollection AddLuthetusIdeRazorLibServices(
if (isNativeApplication)
{
environmentProviderFactory = _ => new LocalEnvironmentProvider();

fileSystemProviderFactory = _ => new LocalFileSystemProvider();
}
else
{
environmentProviderFactory = serviceProvider =>
new WebsiteEnvironmentProvider(
serviceProvider.GetRequiredService<IState<AccountState>>());
environmentProviderFactory = _ => new InMemoryEnvironmentProvider();

fileSystemProviderFactory = serviceProvider =>
new WebsiteFileSystemProvider(
serviceProvider.GetRequiredService<IEnvironmentProvider>(),
serviceProvider.GetRequiredService<IState<AccountState>>(),
serviceProvider.GetRequiredService<HttpClient>());
fileSystemProviderFactory = serviceProvider => new InMemoryFileSystemProvider(
serviceProvider.GetRequiredService<IEnvironmentProvider>());
}

services
Expand Down

0 comments on commit a32edea

Please sign in to comment.